openproject-primer_view_components 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- 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/open_project/border_grid/cell.html.erb +3 -0
- data/app/components/primer/open_project/border_grid/cell.rb +25 -0
- data/app/components/primer/open_project/border_grid.css +1 -0
- data/app/components/primer/open_project/border_grid.css.json +11 -0
- data/app/components/primer/open_project/border_grid.css.map +1 -0
- data/app/components/primer/open_project/border_grid.html.erb +7 -0
- data/app/components/primer/open_project/border_grid.pcss +35 -0
- data/app/components/primer/open_project/border_grid.rb +36 -0
- data/app/components/primer/open_project/drag_handle.css +1 -0
- data/app/components/primer/open_project/drag_handle.css.json +6 -0
- data/app/components/primer/open_project/drag_handle.css.map +1 -0
- data/app/components/primer/open_project/drag_handle.html.erb +6 -0
- data/app/components/primer/open_project/drag_handle.pcss +6 -0
- data/app/components/primer/open_project/drag_handle.rb +28 -0
- data/app/components/primer/primer.pcss +2 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/open_project/border_grid_preview.rb +42 -0
- data/previews/primer/open_project/drag_handle_preview.rb +23 -0
- data/static/arguments.json +54 -0
- data/static/audited_at.json +3 -0
- data/static/classes.json +15 -0
- data/static/constants.json +13 -0
- data/static/info_arch.json +182 -0
- data/static/previews.json +81 -0
- data/static/statuses.json +3 -0
- metadata +18 -2
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module OpenProject
|
5
|
+
class BorderGrid
|
6
|
+
# A single cell inside the BorderGrid
|
7
|
+
# A cell can contain for example an action list or a status badge
|
8
|
+
class Cell < Primer::Component
|
9
|
+
status :open_project
|
10
|
+
|
11
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
12
|
+
def initialize(**system_arguments)
|
13
|
+
@system_arguments = system_arguments
|
14
|
+
@system_arguments[:tag] = "div"
|
15
|
+
|
16
|
+
@system_arguments[:classes] =
|
17
|
+
class_names(
|
18
|
+
@system_arguments[:classes],
|
19
|
+
"BorderGrid-cell"
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -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 @@
|
|
1
|
+
{"version":3,"sources":["border_grid.pcss"],"names":[],"mappings":"AAEA,YAMI,wBAAyB,CACzB,mBAAmB,CANnB,aAAc,CAGd,mBAAoB,CADpB,gBAAiB,CAEjB,kBAAmB,CAHnB,UAMJ,CAEA,6BAEI,mBAAmB,CADnB,gBAEJ,CAEA,sBAEI,mBAAmB,CADnB,gBAEJ,CAEA,uCAEI,mBAAmB,CADnB,gBAEJ,CAEA,gBACI,iBACJ,CAEA,iBAEI,mEAAyC,CADzC,kBAEJ","file":"border_grid.css","sourcesContent":["/* CSS for BorderGrid */\n\n.BorderGrid {\n display: table;\n width: 100%;\n margin-top: -16px;\n margin-bottom: -16px;\n table-layout: fixed;\n border-collapse: collapse;\n border-style: hidden\n}\n\n.BorderGrid .BorderGrid-cell {\n padding-top: 16px;\n padding-bottom: 16px\n}\n\n.BorderGrid--spacious {\n margin-top: -24px;\n margin-bottom: -24px\n}\n\n.BorderGrid--spacious .BorderGrid-cell {\n padding-top: 24px;\n padding-bottom: 24px\n}\n\n.BorderGrid-row {\n display: table-row\n}\n\n.BorderGrid-cell {\n display: table-cell;\n border: 1px solid var(--borderColor-muted)\n}\n"]}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* CSS for BorderGrid */
|
2
|
+
|
3
|
+
.BorderGrid {
|
4
|
+
display: table;
|
5
|
+
width: 100%;
|
6
|
+
margin-top: -16px;
|
7
|
+
margin-bottom: -16px;
|
8
|
+
table-layout: fixed;
|
9
|
+
border-collapse: collapse;
|
10
|
+
border-style: hidden
|
11
|
+
}
|
12
|
+
|
13
|
+
.BorderGrid .BorderGrid-cell {
|
14
|
+
padding-top: 16px;
|
15
|
+
padding-bottom: 16px
|
16
|
+
}
|
17
|
+
|
18
|
+
.BorderGrid--spacious {
|
19
|
+
margin-top: -24px;
|
20
|
+
margin-bottom: -24px
|
21
|
+
}
|
22
|
+
|
23
|
+
.BorderGrid--spacious .BorderGrid-cell {
|
24
|
+
padding-top: 24px;
|
25
|
+
padding-bottom: 24px
|
26
|
+
}
|
27
|
+
|
28
|
+
.BorderGrid-row {
|
29
|
+
display: table-row
|
30
|
+
}
|
31
|
+
|
32
|
+
.BorderGrid-cell {
|
33
|
+
display: table-cell;
|
34
|
+
border: 1px solid var(--borderColor-muted)
|
35
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module OpenProject
|
5
|
+
# A set of blocks that are shown below each other with separator lines in between
|
6
|
+
class BorderGrid < Primer::Component
|
7
|
+
status :open_project
|
8
|
+
|
9
|
+
# Use to render a block inside the grid
|
10
|
+
#
|
11
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
12
|
+
renders_many :rows, lambda { |**system_arguments|
|
13
|
+
Primer::OpenProject::BorderGrid::Cell.new(**system_arguments)
|
14
|
+
}
|
15
|
+
|
16
|
+
# @param spacious [Boolean] Whether to add margin to the bottom of the component.
|
17
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
18
|
+
def initialize(spacious: false, **system_arguments)
|
19
|
+
@system_arguments = system_arguments
|
20
|
+
@system_arguments[:tag] = "div"
|
21
|
+
@spacious = spacious
|
22
|
+
|
23
|
+
@system_arguments[:classes] =
|
24
|
+
class_names(
|
25
|
+
@system_arguments[:classes],
|
26
|
+
"BorderGrid",
|
27
|
+
"BorderGrid--spacious" => @spacious
|
28
|
+
)
|
29
|
+
end
|
30
|
+
|
31
|
+
def render?
|
32
|
+
rows.any?
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
.DragHandle{color:var(--fgColor-muted,var(--color-fg-muted));cursor:move}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["drag_handle.pcss"],"names":[],"mappings":"AAEA,YAEI,gDAA2B,CAD3B,WAEJ","file":"drag_handle.css","sourcesContent":["/* CSS for DragHandle */\n\n.DragHandle {\n cursor: move;\n color: var(--fgColor-muted);\n}\n"]}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module OpenProject
|
5
|
+
# Add a general description of component here
|
6
|
+
# Add additional usage considerations or best practices that may aid the user to use the component correctly.
|
7
|
+
# @accessibility Add any accessibility considerations
|
8
|
+
class DragHandle < Primer::Component
|
9
|
+
status :open_project
|
10
|
+
|
11
|
+
DEFAULT_SIZE = Primer::Beta::Octicon::SIZE_DEFAULT
|
12
|
+
SIZE_OPTIONS = Primer::Beta::Octicon::SIZE_OPTIONS
|
13
|
+
|
14
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
15
|
+
def initialize(size: Primer::OpenProject::DragHandle::DEFAULT_SIZE, **system_arguments)
|
16
|
+
@system_arguments = system_arguments
|
17
|
+
@system_arguments[:tag] = "div"
|
18
|
+
@system_arguments[:classes] =
|
19
|
+
class_names(
|
20
|
+
@system_arguments[:classes],
|
21
|
+
"DragHandle"
|
22
|
+
)
|
23
|
+
|
24
|
+
@size = fetch_or_fallback(Primer::OpenProject::DragHandle::SIZE_OPTIONS, size, Primer::OpenProject::DragHandle::DEFAULT_SIZE)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Setup Playground to use all available component props
|
4
|
+
# Setup Features to use individual component props and combinations
|
5
|
+
|
6
|
+
module Primer
|
7
|
+
module OpenProject
|
8
|
+
# @label BorderGrid
|
9
|
+
class BorderGridPreview < ViewComponent::Preview
|
10
|
+
|
11
|
+
# @label Playground
|
12
|
+
# @param spacious [Boolean] toggle
|
13
|
+
def playground(spacious: false)
|
14
|
+
render(Primer::OpenProject::BorderGrid.new(spacious: spacious)) do |grid|
|
15
|
+
grid.with_row { "Block 1" }
|
16
|
+
grid.with_row { "Block 2" }
|
17
|
+
grid.with_row { "Block 3" }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# @label Default Options
|
22
|
+
#
|
23
|
+
# @snapshot
|
24
|
+
def default()
|
25
|
+
render(Primer::OpenProject::BorderGrid.new) do |grid|
|
26
|
+
grid.with_row { "Block 1" }
|
27
|
+
grid.with_row { "Block 2" }
|
28
|
+
grid.with_row { "Block 3" }
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# @label Spacious
|
33
|
+
def spacious()
|
34
|
+
render(Primer::OpenProject::BorderGrid.new(spacious: true)) do |grid|
|
35
|
+
grid.with_row { "Block 1" }
|
36
|
+
grid.with_row { "Block 2" }
|
37
|
+
grid.with_row { "Block 3" }
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Setup Playground to use all available component props
|
4
|
+
# Setup Features to use individual component props and combinations
|
5
|
+
|
6
|
+
module Primer
|
7
|
+
module OpenProject
|
8
|
+
# @label DragHandle
|
9
|
+
class DragHandlePreview < ViewComponent::Preview
|
10
|
+
# @label Default
|
11
|
+
# @snapshot
|
12
|
+
def default(size: :small)
|
13
|
+
render(Primer::OpenProject::DragHandle.new(size: size))
|
14
|
+
end
|
15
|
+
|
16
|
+
# @label Playground
|
17
|
+
# @param size [Symbol] select [xsmall, small, medium]
|
18
|
+
def playground(size: :small)
|
19
|
+
render(Primer::OpenProject::DragHandle.new(size: size))
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/static/arguments.json
CHANGED
@@ -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",
|
data/static/audited_at.json
CHANGED
@@ -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": ""
|
data/static/classes.json
CHANGED
@@ -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
|
],
|
data/static/constants.json
CHANGED
@@ -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": [
|
data/static/info_arch.json
CHANGED
@@ -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",
|