@openproject/primer-view-components 0.17.1 → 0.18.0-rc.3f51ce9a

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
+ .InputGroup.InputGroup-input-width--auto{width:auto}.InputGroup.InputGroup-input-width--small{max-width:min(256px,100vw - 2rem)}.InputGroup.InputGroup-input-width--medium{max-width:min(320px,100vw - 2rem)}.InputGroup.InputGroup-input-width--large{max-width:min(480px,100vw - 2rem)}.InputGroup.InputGroup-input-width--xlarge{max-width:min(640px,100vw - 2rem)}.InputGroup.InputGroup-input-width--xxlarge{max-width:min(960px,100vw - 2rem)}
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "open_project/input_group",
3
+ "selectors": [
4
+ ".InputGroup.InputGroup-input-width--auto",
5
+ ".InputGroup.InputGroup-input-width--small",
6
+ ".InputGroup.InputGroup-input-width--medium",
7
+ ".InputGroup.InputGroup-input-width--large",
8
+ ".InputGroup.InputGroup-input-width--xlarge",
9
+ ".InputGroup.InputGroup-input-width--xxlarge"
10
+ ]
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.17.1",
3
+ "version": "0.18.0-rc.3f51ce9a",
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",
@@ -4810,6 +4810,22 @@
4810
4810
  }
4811
4811
  ]
4812
4812
  },
4813
+ {
4814
+ "component": "OpenProject::InputGroup",
4815
+ "status": "open_project",
4816
+ "a11y_reviewed": false,
4817
+ "short_name": "OpenProjectInputGroup",
4818
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/input_group.rb",
4819
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/input_group/default/",
4820
+ "parameters": [
4821
+ {
4822
+ "name": "system_arguments",
4823
+ "type": "Hash",
4824
+ "default": "N/A",
4825
+ "description": "[System arguments](/system-arguments)"
4826
+ }
4827
+ ]
4828
+ },
4813
4829
  {
4814
4830
  "component": "OpenProject::PageHeader",
4815
4831
  "status": "open_project",
@@ -115,6 +115,7 @@
115
115
  "Primer::OpenProject::FlexLayout": "",
116
116
  "Primer::OpenProject::GridLayout": "",
117
117
  "Primer::OpenProject::GridLayout::Area": "",
118
+ "Primer::OpenProject::InputGroup": "",
118
119
  "Primer::OpenProject::PageHeader": "",
119
120
  "Primer::Tooltip": "",
120
121
  "Primer::Truncate": ""
@@ -302,6 +302,9 @@
302
302
  "FormControl-toggleSwitchInput": [
303
303
  "Primer::Alpha::TextField"
304
304
  ],
305
+ "InputGroup": [
306
+ "Primer::OpenProject::InputGroup"
307
+ ],
305
308
  "Label": [
306
309
  "Primer::Beta::Label"
307
310
  ],
@@ -1374,6 +1374,25 @@
1374
1374
  "span"
1375
1375
  ]
1376
1376
  },
1377
+ "Primer::OpenProject::InputGroup": {
1378
+ "DEFAULT_INPUT_WIDTH": "auto",
1379
+ "INPUT_WIDTH_MAPPINGS": {
1380
+ "auto": "InputGroup-input-width--auto",
1381
+ "small": "InputGroup-input-width--small",
1382
+ "medium": "InputGroup-input-width--medium",
1383
+ "large": "InputGroup-input-width--large",
1384
+ "xlarge": "InputGroup-input-width--xlarge",
1385
+ "xxlarge": "InputGroup-input-width--xxlarge"
1386
+ },
1387
+ "INPUT_WIDTH_OPTIONS": [
1388
+ "auto",
1389
+ "small",
1390
+ "medium",
1391
+ "large",
1392
+ "xlarge",
1393
+ "xxlarge"
1394
+ ]
1395
+ },
1377
1396
  "Primer::OpenProject::PageHeader": {
1378
1397
  "BACK_BUTTON_ICON_OPTIONS": [
1379
1398
  "arrow-left",
@@ -15722,6 +15722,115 @@
15722
15722
 
15723
15723
  ]
15724
15724
  },
15725
+ {
15726
+ "fully_qualified_name": "Primer::OpenProject::InputGroup",
15727
+ "description": "`InputGroup` is composed of a text field input with a trailing action",
15728
+ "accessibility_docs": null,
15729
+ "is_form_component": false,
15730
+ "is_published": true,
15731
+ "requires_js": false,
15732
+ "component": "OpenProject::InputGroup",
15733
+ "status": "open_project",
15734
+ "a11y_reviewed": false,
15735
+ "short_name": "OpenProjectInputGroup",
15736
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/input_group.rb",
15737
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/input_group/default/",
15738
+ "parameters": [
15739
+ {
15740
+ "name": "system_arguments",
15741
+ "type": "Hash",
15742
+ "default": "N/A",
15743
+ "description": "{{link_to_system_arguments_docs}}"
15744
+ }
15745
+ ],
15746
+ "slots": [
15747
+ {
15748
+ "name": "trailing_action",
15749
+ "description": "A component that will render to the right of the label.\n\nTo render a clipboardCopyButton, call the `with_trailing_action_clipboard_copy_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::ClipboardCopyButton{{/link_to_component}}.\n\nTo render an iconButton, call the `with_trailing_action_icon` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}}.",
15750
+ "parameters": [
15751
+
15752
+ ]
15753
+ },
15754
+ {
15755
+ "name": "text_input",
15756
+ "description": "Input that is the central part of the input group\n\nSince the central use case of this component is a copyClipboard Button next to the input, it is readonly by default",
15757
+ "parameters": [
15758
+ {
15759
+ "name": "readonly",
15760
+ "type": "Boolean",
15761
+ "default": "N/A",
15762
+ "description": "Shall the text field be editable."
15763
+ },
15764
+ {
15765
+ "name": "system_arguments",
15766
+ "type": "Hash",
15767
+ "default": "N/A",
15768
+ "description": "{{link_to_system_arguments_docs}}"
15769
+ }
15770
+ ]
15771
+ }
15772
+ ],
15773
+ "methods": [
15774
+
15775
+ ],
15776
+ "previews": [
15777
+ {
15778
+ "preview_path": "primer/open_project/input_group/default",
15779
+ "name": "default",
15780
+ "snapshot": "true",
15781
+ "skip_rules": {
15782
+ "wont_fix": [
15783
+ "region"
15784
+ ],
15785
+ "will_fix": [
15786
+ "color-contrast"
15787
+ ]
15788
+ }
15789
+ },
15790
+ {
15791
+ "preview_path": "primer/open_project/input_group/playground",
15792
+ "name": "playground",
15793
+ "snapshot": "false",
15794
+ "skip_rules": {
15795
+ "wont_fix": [
15796
+ "region"
15797
+ ],
15798
+ "will_fix": [
15799
+ "color-contrast"
15800
+ ]
15801
+ }
15802
+ },
15803
+ {
15804
+ "preview_path": "primer/open_project/input_group/icon_button",
15805
+ "name": "icon_button",
15806
+ "snapshot": "false",
15807
+ "skip_rules": {
15808
+ "wont_fix": [
15809
+ "region"
15810
+ ],
15811
+ "will_fix": [
15812
+ "color-contrast"
15813
+ ]
15814
+ }
15815
+ },
15816
+ {
15817
+ "preview_path": "primer/open_project/input_group/small_input_width",
15818
+ "name": "small_input_width",
15819
+ "snapshot": "false",
15820
+ "skip_rules": {
15821
+ "wont_fix": [
15822
+ "region"
15823
+ ],
15824
+ "will_fix": [
15825
+ "color-contrast"
15826
+ ]
15827
+ }
15828
+ }
15829
+ ],
15830
+ "subcomponents": [
15831
+
15832
+ ]
15833
+ },
15725
15834
  {
15726
15835
  "fully_qualified_name": "Primer::OpenProject::PageHeader",
15727
15836
  "description": "A ViewComponent PageHeader inspired by the primer react variant",
@@ -3849,6 +3849,66 @@
3849
3849
  }
3850
3850
  ]
3851
3851
  },
3852
+ {
3853
+ "name": "input_group",
3854
+ "component": "OpenProject::InputGroup",
3855
+ "status": "open_project",
3856
+ "lookup_path": "primer/open_project/input_group",
3857
+ "examples": [
3858
+ {
3859
+ "preview_path": "primer/open_project/input_group/default",
3860
+ "name": "default",
3861
+ "snapshot": "true",
3862
+ "skip_rules": {
3863
+ "wont_fix": [
3864
+ "region"
3865
+ ],
3866
+ "will_fix": [
3867
+ "color-contrast"
3868
+ ]
3869
+ }
3870
+ },
3871
+ {
3872
+ "preview_path": "primer/open_project/input_group/playground",
3873
+ "name": "playground",
3874
+ "snapshot": "false",
3875
+ "skip_rules": {
3876
+ "wont_fix": [
3877
+ "region"
3878
+ ],
3879
+ "will_fix": [
3880
+ "color-contrast"
3881
+ ]
3882
+ }
3883
+ },
3884
+ {
3885
+ "preview_path": "primer/open_project/input_group/icon_button",
3886
+ "name": "icon_button",
3887
+ "snapshot": "false",
3888
+ "skip_rules": {
3889
+ "wont_fix": [
3890
+ "region"
3891
+ ],
3892
+ "will_fix": [
3893
+ "color-contrast"
3894
+ ]
3895
+ }
3896
+ },
3897
+ {
3898
+ "preview_path": "primer/open_project/input_group/small_input_width",
3899
+ "name": "small_input_width",
3900
+ "snapshot": "false",
3901
+ "skip_rules": {
3902
+ "wont_fix": [
3903
+ "region"
3904
+ ],
3905
+ "will_fix": [
3906
+ "color-contrast"
3907
+ ]
3908
+ }
3909
+ }
3910
+ ]
3911
+ },
3852
3912
  {
3853
3913
  "name": "label",
3854
3914
  "component": "Label",
@@ -115,6 +115,7 @@
115
115
  "Primer::OpenProject::FlexLayout": "open_project",
116
116
  "Primer::OpenProject::GridLayout": "open_project",
117
117
  "Primer::OpenProject::GridLayout::Area": "open_project",
118
+ "Primer::OpenProject::InputGroup": "open_project",
118
119
  "Primer::OpenProject::PageHeader": "open_project",
119
120
  "Primer::Tooltip": "deprecated",
120
121
  "Primer::Truncate": "deprecated"