openproject-primer_view_components 0.17.1 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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",
data/static/previews.json CHANGED
@@ -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",
data/static/statuses.json CHANGED
@@ -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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-11-22 00:00:00.000000000 Z
12
+ date: 2023-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -463,6 +463,12 @@ files:
463
463
  - app/components/primer/open_project/grid_layout.html.erb
464
464
  - app/components/primer/open_project/grid_layout.rb
465
465
  - app/components/primer/open_project/grid_layout/area.rb
466
+ - app/components/primer/open_project/input_group.css
467
+ - app/components/primer/open_project/input_group.css.json
468
+ - app/components/primer/open_project/input_group.css.map
469
+ - app/components/primer/open_project/input_group.html.erb
470
+ - app/components/primer/open_project/input_group.pcss
471
+ - app/components/primer/open_project/input_group.rb
466
472
  - app/components/primer/open_project/page_header.css
467
473
  - app/components/primer/open_project/page_header.css.json
468
474
  - app/components/primer/open_project/page_header.css.map
@@ -860,6 +866,7 @@ files:
860
866
  - previews/primer/open_project/drag_handle_preview.rb
861
867
  - previews/primer/open_project/flex_layout_preview.rb
862
868
  - previews/primer/open_project/grid_layout_preview.rb
869
+ - previews/primer/open_project/input_group_preview.rb
863
870
  - previews/primer/open_project/page_header_preview.rb
864
871
  - previews/primer/open_project/page_header_preview/actions.html.erb
865
872
  - previews/primer/open_project/page_header_preview/context_bar_actions.html.erb