@openproject/primer-view-components 0.79.1 → 0.80.0-rc.874b7451f

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
+ .InlineMessage{align-items:start;color:var(--inline-message-fgColor);column-gap:.5rem;display:grid;font-size:var(--inline-message-fontSize);grid-template-columns:auto 1fr;line-height:var(--inline-message-lineHeight)}.InlineMessage[data-size=small]{--inline-message-fontSize:var(--text-body-size-small);--inline-message-lineHeight:var(--text-body-lineHeight-small,1.6666)}.InlineMessage[data-size=medium]{--inline-message-fontSize:var(--text-body-size-medium);--inline-message-lineHeight:var(--text-body-lineHeight-medium,1.4285)}.InlineMessage[data-variant=warning]{--inline-message-fgColor:var(--fgColor-attention)}.InlineMessage[data-variant=critical]{--inline-message-fgColor:var(--fgColor-danger)}.InlineMessage[data-variant=success]{--inline-message-fgColor:var(--fgColor-success)}.InlineMessage[data-variant=unavailable]{--inline-message-fgColor:var(--fgColor-muted)}.InlineMessageIcon{min-height:calc(var(--inline-message-lineHeight)*var(--inline-message-fontSize))}
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "open_project/inline_message",
3
+ "selectors": [
4
+ ".InlineMessage",
5
+ ".InlineMessage[data-size=small]",
6
+ ".InlineMessage[data-size=medium]",
7
+ ".InlineMessage[data-variant=warning]",
8
+ ".InlineMessage[data-variant=critical]",
9
+ ".InlineMessage[data-variant=success]",
10
+ ".InlineMessage[data-variant=unavailable]",
11
+ ".InlineMessageIcon"
12
+ ]
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.79.1",
3
+ "version": "0.80.0-rc.874b7451f",
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",
@@ -6220,6 +6220,34 @@
6220
6220
  }
6221
6221
  ]
6222
6222
  },
6223
+ {
6224
+ "component": "OpenProject::InlineMessage",
6225
+ "status": "open_project",
6226
+ "a11y_reviewed": false,
6227
+ "short_name": "OpenProjectInlineMessage",
6228
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/inline_message.rb",
6229
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/inline_message/default/",
6230
+ "parameters": [
6231
+ {
6232
+ "name": "scheme",
6233
+ "type": "Symbol",
6234
+ "default": "N/A",
6235
+ "description": "One of `:critical`, `:success`, `:unavailable`, or `:warning`."
6236
+ },
6237
+ {
6238
+ "name": "size",
6239
+ "type": "Symbol",
6240
+ "default": "`:medium`",
6241
+ "description": "One of `:medium` or `:small`."
6242
+ },
6243
+ {
6244
+ "name": "system_arguments",
6245
+ "type": "Hash",
6246
+ "default": "N/A",
6247
+ "description": "[System arguments](/system-arguments)"
6248
+ }
6249
+ ]
6250
+ },
6223
6251
  {
6224
6252
  "component": "OpenProject::InputGroup",
6225
6253
  "status": "open_project",
@@ -157,6 +157,7 @@
157
157
  "Primer::OpenProject::GridLayout": "",
158
158
  "Primer::OpenProject::GridLayout::Area": "",
159
159
  "Primer::OpenProject::Heading": "",
160
+ "Primer::OpenProject::InlineMessage": "",
160
161
  "Primer::OpenProject::InputGroup": "",
161
162
  "Primer::OpenProject::PageHeader": "",
162
163
  "Primer::OpenProject::PageHeader::Dialog": "",
@@ -352,6 +352,12 @@
352
352
  "FormControl-warning": [
353
353
  "Primer::Alpha::TextField"
354
354
  ],
355
+ "InlineMessage": [
356
+ "Primer::OpenProject::InlineMessage"
357
+ ],
358
+ "InlineMessageIcon": [
359
+ "Primer::OpenProject::InlineMessage"
360
+ ],
355
361
  "InputGroup": [
356
362
  "Primer::OpenProject::InputGroup"
357
363
  ],
@@ -1810,6 +1810,20 @@
1810
1810
  "Primer::OpenProject::Heading": {
1811
1811
  "GeneratedSlotMethods": "Primer::OpenProject::Heading::GeneratedSlotMethods"
1812
1812
  },
1813
+ "Primer::OpenProject::InlineMessage": {
1814
+ "DEFAULT_SIZE": "medium",
1815
+ "GeneratedSlotMethods": "Primer::OpenProject::InlineMessage::GeneratedSlotMethods",
1816
+ "SCHEME_OPTIONS": [
1817
+ "warning",
1818
+ "critical",
1819
+ "success",
1820
+ "unavailable"
1821
+ ],
1822
+ "SIZE_OPTIONS": [
1823
+ "small",
1824
+ "medium"
1825
+ ]
1826
+ },
1813
1827
  "Primer::OpenProject::InputGroup": {
1814
1828
  "DEFAULT_INPUT_WIDTH": "auto",
1815
1829
  "GeneratedSlotMethods": "Primer::OpenProject::InputGroup::GeneratedSlotMethods",
@@ -1845,6 +1859,7 @@
1845
1859
  "none",
1846
1860
  "flex"
1847
1861
  ],
1862
+ "DEFAULT_BUTTON_ACTION_SIZE": "medium",
1848
1863
  "DEFAULT_HEADER_VARIANT": "medium",
1849
1864
  "DEFAULT_LEADING_ACTION_DISPLAY": [
1850
1865
  "none",
@@ -20571,6 +20571,71 @@
20571
20571
  ],
20572
20572
  "subcomponents": []
20573
20573
  },
20574
+ {
20575
+ "fully_qualified_name": "Primer::OpenProject::InlineMessage",
20576
+ "description": "A simple component to render warning text.\n\nThe warning text is rendered in the \"attention\" Primer color and\nuses a leading alert Octicon for additional emphasis. This component\nis designed to be used \"inline\", e.g. table cells, and in places\nwhere a Banner component might be overkill.",
20577
+ "accessibility_docs": null,
20578
+ "is_form_component": false,
20579
+ "is_published": true,
20580
+ "requires_js": false,
20581
+ "component": "OpenProject::InlineMessage",
20582
+ "status": "open_project",
20583
+ "a11y_reviewed": false,
20584
+ "short_name": "OpenProjectInlineMessage",
20585
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/inline_message.rb",
20586
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/inline_message/default/",
20587
+ "parameters": [
20588
+ {
20589
+ "name": "scheme",
20590
+ "type": "Symbol",
20591
+ "default": "N/A",
20592
+ "description": "One of `:critical`, `:success`, `:unavailable`, or `:warning`."
20593
+ },
20594
+ {
20595
+ "name": "size",
20596
+ "type": "Symbol",
20597
+ "default": "`:medium`",
20598
+ "description": "One of `:medium` or `:small`."
20599
+ },
20600
+ {
20601
+ "name": "system_arguments",
20602
+ "type": "Hash",
20603
+ "default": "N/A",
20604
+ "description": "{{link_to_system_arguments_docs}}"
20605
+ }
20606
+ ],
20607
+ "slots": [],
20608
+ "methods": [],
20609
+ "previews": [
20610
+ {
20611
+ "preview_path": "primer/open_project/inline_message/default",
20612
+ "name": "default",
20613
+ "snapshot": "true",
20614
+ "skip_rules": {
20615
+ "wont_fix": [
20616
+ "region"
20617
+ ],
20618
+ "will_fix": [
20619
+ "color-contrast"
20620
+ ]
20621
+ }
20622
+ },
20623
+ {
20624
+ "preview_path": "primer/open_project/inline_message/playground",
20625
+ "name": "playground",
20626
+ "snapshot": "false",
20627
+ "skip_rules": {
20628
+ "wont_fix": [
20629
+ "region"
20630
+ ],
20631
+ "will_fix": [
20632
+ "color-contrast"
20633
+ ]
20634
+ }
20635
+ }
20636
+ ],
20637
+ "subcomponents": []
20638
+ },
20574
20639
  {
20575
20640
  "fully_qualified_name": "Primer::OpenProject::InputGroup",
20576
20641
  "description": "`InputGroup` is composed of a text field input with a trailing action",
@@ -5104,6 +5104,40 @@
5104
5104
  }
5105
5105
  ]
5106
5106
  },
5107
+ {
5108
+ "name": "inline_message",
5109
+ "component": "OpenProject::InlineMessage",
5110
+ "status": "open_project",
5111
+ "lookup_path": "primer/open_project/inline_message",
5112
+ "examples": [
5113
+ {
5114
+ "preview_path": "primer/open_project/inline_message/default",
5115
+ "name": "default",
5116
+ "snapshot": "true",
5117
+ "skip_rules": {
5118
+ "wont_fix": [
5119
+ "region"
5120
+ ],
5121
+ "will_fix": [
5122
+ "color-contrast"
5123
+ ]
5124
+ }
5125
+ },
5126
+ {
5127
+ "preview_path": "primer/open_project/inline_message/playground",
5128
+ "name": "playground",
5129
+ "snapshot": "false",
5130
+ "skip_rules": {
5131
+ "wont_fix": [
5132
+ "region"
5133
+ ],
5134
+ "will_fix": [
5135
+ "color-contrast"
5136
+ ]
5137
+ }
5138
+ }
5139
+ ]
5140
+ },
5107
5141
  {
5108
5142
  "name": "input_group",
5109
5143
  "component": "OpenProject::InputGroup",
@@ -157,6 +157,7 @@
157
157
  "Primer::OpenProject::GridLayout": "open_project",
158
158
  "Primer::OpenProject::GridLayout::Area": "open_project",
159
159
  "Primer::OpenProject::Heading": "open_project",
160
+ "Primer::OpenProject::InlineMessage": "open_project",
160
161
  "Primer::OpenProject::InputGroup": "open_project",
161
162
  "Primer::OpenProject::PageHeader": "open_project",
162
163
  "Primer::OpenProject::PageHeader::Dialog": "open_project",