openproject-primer_view_components 0.93.0 → 0.95.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -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/collapsible_section.html.erb +7 -7
- data/app/components/primer/open_project/collapsible_section.rb +17 -2
- data/app/components/primer/open_project/color_swatch.css +1 -0
- data/app/components/primer/open_project/color_swatch.css.json +6 -0
- data/app/components/primer/open_project/color_swatch.css.map +1 -0
- data/app/components/primer/open_project/color_swatch.pcss +8 -0
- data/app/components/primer/open_project/color_swatch.rb +57 -0
- data/app/components/primer/open_project/inset_box.css +1 -0
- data/app/components/primer/open_project/inset_box.css.json +9 -0
- data/app/components/primer/open_project/inset_box.css.map +1 -0
- data/app/components/primer/open_project/inset_box.html.erb +46 -0
- data/app/components/primer/open_project/inset_box.pcss +24 -0
- data/app/components/primer/open_project/inset_box.rb +63 -0
- data/app/components/primer/primer.pcss +2 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/open_project/collapsible_section_preview/non_collapsible.html.erb +10 -0
- data/previews/primer/open_project/collapsible_section_preview/playground.html.erb +1 -1
- data/previews/primer/open_project/collapsible_section_preview.rb +13 -2
- data/previews/primer/open_project/color_swatch_preview.rb +27 -0
- data/previews/primer/open_project/inset_box_preview.rb +85 -0
- data/static/arguments.json +58 -2
- data/static/audited_at.json +2 -0
- data/static/classes.json +15 -0
- data/static/classnames.cjs +5 -0
- data/static/classnames.js +5 -0
- data/static/constants.json +33 -0
- data/static/info_arch.json +304 -2
- data/static/previews.json +159 -0
- data/static/statuses.json +2 -0
- metadata +15 -1
data/static/constants.json
CHANGED
|
@@ -1747,6 +1747,11 @@
|
|
|
1747
1747
|
"GeneratedSlotMethods": "Primer::OpenProject::BorderGrid::Cell::GeneratedSlotMethods"
|
|
1748
1748
|
},
|
|
1749
1749
|
"Primer::OpenProject::CollapsibleSection": {
|
|
1750
|
+
"COLLAPSED_OPTIONS": [
|
|
1751
|
+
false,
|
|
1752
|
+
true,
|
|
1753
|
+
"locked"
|
|
1754
|
+
],
|
|
1750
1755
|
"GeneratedSlotMethods": "Primer::OpenProject::CollapsibleSection::GeneratedSlotMethods",
|
|
1751
1756
|
"TITLE_TAG_FALLBACK": "h2",
|
|
1752
1757
|
"TITLE_TAG_OPTIONS": [
|
|
@@ -1762,6 +1767,9 @@
|
|
|
1762
1767
|
"Primer::OpenProject::ColorField": {
|
|
1763
1768
|
"GeneratedSlotMethods": "Primer::OpenProject::ColorField::GeneratedSlotMethods"
|
|
1764
1769
|
},
|
|
1770
|
+
"Primer::OpenProject::ColorSwatch": {
|
|
1771
|
+
"GeneratedSlotMethods": "Primer::OpenProject::ColorSwatch::GeneratedSlotMethods"
|
|
1772
|
+
},
|
|
1765
1773
|
"Primer::OpenProject::DangerDialog": {
|
|
1766
1774
|
"ConfirmationCheckBox": "Primer::OpenProject::DangerDialog::ConfirmationCheckBox",
|
|
1767
1775
|
"FormWrapper": "Primer::OpenProject::DangerDialog::FormWrapper",
|
|
@@ -1895,6 +1903,31 @@
|
|
|
1895
1903
|
"xxlarge"
|
|
1896
1904
|
]
|
|
1897
1905
|
},
|
|
1906
|
+
"Primer::OpenProject::InsetBox": {
|
|
1907
|
+
"DEFAULT_SCHEME": "default",
|
|
1908
|
+
"GeneratedSlotMethods": "Primer::OpenProject::InsetBox::GeneratedSlotMethods",
|
|
1909
|
+
"SCHEME_MAPPINGS": {
|
|
1910
|
+
"default": {
|
|
1911
|
+
"bg": "inset"
|
|
1912
|
+
},
|
|
1913
|
+
"info": {
|
|
1914
|
+
"bg": "accent",
|
|
1915
|
+
"border_color": "accent"
|
|
1916
|
+
},
|
|
1917
|
+
"warning": {
|
|
1918
|
+
"bg": "attention",
|
|
1919
|
+
"border_color": "attention"
|
|
1920
|
+
},
|
|
1921
|
+
"danger": {
|
|
1922
|
+
"bg": "danger",
|
|
1923
|
+
"border_color": "danger"
|
|
1924
|
+
},
|
|
1925
|
+
"success": {
|
|
1926
|
+
"bg": "success",
|
|
1927
|
+
"border_color": "success"
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1898
1931
|
"Primer::OpenProject::PageHeader": {
|
|
1899
1932
|
"BACK_BUTTON_ICON_OPTIONS": [
|
|
1900
1933
|
"arrow-left",
|
data/static/info_arch.json
CHANGED
|
@@ -19614,9 +19614,9 @@
|
|
|
19614
19614
|
},
|
|
19615
19615
|
{
|
|
19616
19616
|
"name": "collapsed",
|
|
19617
|
-
"type": "Boolean",
|
|
19617
|
+
"type": "Boolean, Symbol",
|
|
19618
19618
|
"default": "`false`",
|
|
19619
|
-
"description": "
|
|
19619
|
+
"description": "The initial state of the section. `false` renders it open and toggleable, `true` renders it collapsed and toggleable, and `:locked` keeps it permanently open with the toggle disabled."
|
|
19620
19620
|
},
|
|
19621
19621
|
{
|
|
19622
19622
|
"name": "system_arguments",
|
|
@@ -19748,6 +19748,19 @@
|
|
|
19748
19748
|
]
|
|
19749
19749
|
}
|
|
19750
19750
|
},
|
|
19751
|
+
{
|
|
19752
|
+
"preview_path": "primer/open_project/collapsible_section/non_collapsible",
|
|
19753
|
+
"name": "non_collapsible",
|
|
19754
|
+
"snapshot": "true",
|
|
19755
|
+
"skip_rules": {
|
|
19756
|
+
"wont_fix": [
|
|
19757
|
+
"region"
|
|
19758
|
+
],
|
|
19759
|
+
"will_fix": [
|
|
19760
|
+
"color-contrast"
|
|
19761
|
+
]
|
|
19762
|
+
}
|
|
19763
|
+
},
|
|
19751
19764
|
{
|
|
19752
19765
|
"preview_path": "primer/open_project/collapsible_section/with_link_in_title",
|
|
19753
19766
|
"name": "with_link_in_title",
|
|
@@ -20059,6 +20072,91 @@
|
|
|
20059
20072
|
],
|
|
20060
20073
|
"subcomponents": []
|
|
20061
20074
|
},
|
|
20075
|
+
{
|
|
20076
|
+
"fully_qualified_name": "Primer::OpenProject::ColorSwatch",
|
|
20077
|
+
"description": "Displays a small colored indicator for a given hex color code, optionally\nshowing the hex value next to it.",
|
|
20078
|
+
"accessibility_docs": null,
|
|
20079
|
+
"is_form_component": false,
|
|
20080
|
+
"is_published": true,
|
|
20081
|
+
"requires_js": false,
|
|
20082
|
+
"component": "OpenProject::ColorSwatch",
|
|
20083
|
+
"status": "open_project",
|
|
20084
|
+
"a11y_reviewed": false,
|
|
20085
|
+
"short_name": "OpenProjectColorSwatch",
|
|
20086
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/color_swatch.rb",
|
|
20087
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/color_swatch/default/",
|
|
20088
|
+
"parameters": [
|
|
20089
|
+
{
|
|
20090
|
+
"name": "hexcode",
|
|
20091
|
+
"type": "String",
|
|
20092
|
+
"default": "N/A",
|
|
20093
|
+
"description": "The hex color code to display, e.g. `#FF0000`."
|
|
20094
|
+
},
|
|
20095
|
+
{
|
|
20096
|
+
"name": "show_value",
|
|
20097
|
+
"type": "Boolean",
|
|
20098
|
+
"default": "`false`",
|
|
20099
|
+
"description": "Whether to display the hex value next to the swatch."
|
|
20100
|
+
},
|
|
20101
|
+
{
|
|
20102
|
+
"name": "system_arguments",
|
|
20103
|
+
"type": "Hash",
|
|
20104
|
+
"default": "N/A",
|
|
20105
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
20106
|
+
}
|
|
20107
|
+
],
|
|
20108
|
+
"slots": [],
|
|
20109
|
+
"methods": [
|
|
20110
|
+
{
|
|
20111
|
+
"name": "hexcode",
|
|
20112
|
+
"description": "Returns the value of attribute hexcode.",
|
|
20113
|
+
"parameters": [],
|
|
20114
|
+
"return_types": []
|
|
20115
|
+
}
|
|
20116
|
+
],
|
|
20117
|
+
"previews": [
|
|
20118
|
+
{
|
|
20119
|
+
"preview_path": "primer/open_project/color_swatch/playground",
|
|
20120
|
+
"name": "playground",
|
|
20121
|
+
"snapshot": "false",
|
|
20122
|
+
"skip_rules": {
|
|
20123
|
+
"wont_fix": [
|
|
20124
|
+
"region"
|
|
20125
|
+
],
|
|
20126
|
+
"will_fix": [
|
|
20127
|
+
"color-contrast"
|
|
20128
|
+
]
|
|
20129
|
+
}
|
|
20130
|
+
},
|
|
20131
|
+
{
|
|
20132
|
+
"preview_path": "primer/open_project/color_swatch/default",
|
|
20133
|
+
"name": "default",
|
|
20134
|
+
"snapshot": "true",
|
|
20135
|
+
"skip_rules": {
|
|
20136
|
+
"wont_fix": [
|
|
20137
|
+
"region"
|
|
20138
|
+
],
|
|
20139
|
+
"will_fix": [
|
|
20140
|
+
"color-contrast"
|
|
20141
|
+
]
|
|
20142
|
+
}
|
|
20143
|
+
},
|
|
20144
|
+
{
|
|
20145
|
+
"preview_path": "primer/open_project/color_swatch/with_value",
|
|
20146
|
+
"name": "with_value",
|
|
20147
|
+
"snapshot": "true",
|
|
20148
|
+
"skip_rules": {
|
|
20149
|
+
"wont_fix": [
|
|
20150
|
+
"region"
|
|
20151
|
+
],
|
|
20152
|
+
"will_fix": [
|
|
20153
|
+
"color-contrast"
|
|
20154
|
+
]
|
|
20155
|
+
}
|
|
20156
|
+
}
|
|
20157
|
+
],
|
|
20158
|
+
"subcomponents": []
|
|
20159
|
+
},
|
|
20062
20160
|
{
|
|
20063
20161
|
"fully_qualified_name": "Primer::OpenProject::DangerDialog",
|
|
20064
20162
|
"description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",
|
|
@@ -21520,6 +21618,210 @@
|
|
|
21520
21618
|
],
|
|
21521
21619
|
"subcomponents": []
|
|
21522
21620
|
},
|
|
21621
|
+
{
|
|
21622
|
+
"fully_qualified_name": "Primer::OpenProject::InsetBox",
|
|
21623
|
+
"description": "A box with an inset background, used to call out a piece of content such\nas a tip, a warning, or a code snippet, optionally with a title, icon and actions.",
|
|
21624
|
+
"accessibility_docs": null,
|
|
21625
|
+
"is_form_component": false,
|
|
21626
|
+
"is_published": true,
|
|
21627
|
+
"requires_js": false,
|
|
21628
|
+
"component": "OpenProject::InsetBox",
|
|
21629
|
+
"status": "open_project",
|
|
21630
|
+
"a11y_reviewed": false,
|
|
21631
|
+
"short_name": "OpenProjectInsetBox",
|
|
21632
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/inset_box.rb",
|
|
21633
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/inset_box/default/",
|
|
21634
|
+
"parameters": [
|
|
21635
|
+
{
|
|
21636
|
+
"name": "border",
|
|
21637
|
+
"type": "Boolean",
|
|
21638
|
+
"default": "`true`",
|
|
21639
|
+
"description": "Whether to render a border around the box."
|
|
21640
|
+
},
|
|
21641
|
+
{
|
|
21642
|
+
"name": "scheme",
|
|
21643
|
+
"type": "Symbol",
|
|
21644
|
+
"default": "`:default`",
|
|
21645
|
+
"description": "One of `:danger`, `:default`, `:info`, `:success`, or `:warning`."
|
|
21646
|
+
},
|
|
21647
|
+
{
|
|
21648
|
+
"name": "system_arguments",
|
|
21649
|
+
"type": "Hash",
|
|
21650
|
+
"default": "N/A",
|
|
21651
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
21652
|
+
}
|
|
21653
|
+
],
|
|
21654
|
+
"slots": [
|
|
21655
|
+
{
|
|
21656
|
+
"name": "title_icon",
|
|
21657
|
+
"description": null,
|
|
21658
|
+
"parameters": [
|
|
21659
|
+
{
|
|
21660
|
+
"name": "system_arguments",
|
|
21661
|
+
"type": "Hash",
|
|
21662
|
+
"default": "N/A",
|
|
21663
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
21664
|
+
}
|
|
21665
|
+
]
|
|
21666
|
+
},
|
|
21667
|
+
{
|
|
21668
|
+
"name": "title",
|
|
21669
|
+
"description": null,
|
|
21670
|
+
"parameters": [
|
|
21671
|
+
{
|
|
21672
|
+
"name": "tag",
|
|
21673
|
+
"type": "Symbol",
|
|
21674
|
+
"default": "N/A",
|
|
21675
|
+
"description": "One of `:h1`, `:h2`, `:h3`, `:h4`, `:h5`, or `:h6`."
|
|
21676
|
+
},
|
|
21677
|
+
{
|
|
21678
|
+
"name": "system_arguments",
|
|
21679
|
+
"type": "Hash",
|
|
21680
|
+
"default": "N/A",
|
|
21681
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
21682
|
+
}
|
|
21683
|
+
]
|
|
21684
|
+
},
|
|
21685
|
+
{
|
|
21686
|
+
"name": "actions",
|
|
21687
|
+
"description": null,
|
|
21688
|
+
"parameters": [
|
|
21689
|
+
{
|
|
21690
|
+
"name": "system_arguments",
|
|
21691
|
+
"type": "Hash",
|
|
21692
|
+
"default": "N/A",
|
|
21693
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
21694
|
+
}
|
|
21695
|
+
]
|
|
21696
|
+
},
|
|
21697
|
+
{
|
|
21698
|
+
"name": "clipboard_copy_button",
|
|
21699
|
+
"description": null,
|
|
21700
|
+
"parameters": [
|
|
21701
|
+
{
|
|
21702
|
+
"name": "system_arguments",
|
|
21703
|
+
"type": "Hash",
|
|
21704
|
+
"default": "N/A",
|
|
21705
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
21706
|
+
}
|
|
21707
|
+
]
|
|
21708
|
+
}
|
|
21709
|
+
],
|
|
21710
|
+
"methods": [
|
|
21711
|
+
{
|
|
21712
|
+
"name": "border",
|
|
21713
|
+
"description": "Returns the value of attribute border.",
|
|
21714
|
+
"parameters": [],
|
|
21715
|
+
"return_types": []
|
|
21716
|
+
},
|
|
21717
|
+
{
|
|
21718
|
+
"name": "scheme_arguments",
|
|
21719
|
+
"description": "Returns the value of attribute scheme_arguments.",
|
|
21720
|
+
"parameters": [],
|
|
21721
|
+
"return_types": []
|
|
21722
|
+
},
|
|
21723
|
+
{
|
|
21724
|
+
"name": "system_arguments",
|
|
21725
|
+
"description": "Returns the value of attribute system_arguments.",
|
|
21726
|
+
"parameters": [],
|
|
21727
|
+
"return_types": []
|
|
21728
|
+
}
|
|
21729
|
+
],
|
|
21730
|
+
"previews": [
|
|
21731
|
+
{
|
|
21732
|
+
"preview_path": "primer/open_project/inset_box/playground",
|
|
21733
|
+
"name": "playground",
|
|
21734
|
+
"snapshot": "false",
|
|
21735
|
+
"skip_rules": {
|
|
21736
|
+
"wont_fix": [
|
|
21737
|
+
"region"
|
|
21738
|
+
],
|
|
21739
|
+
"will_fix": [
|
|
21740
|
+
"color-contrast"
|
|
21741
|
+
]
|
|
21742
|
+
}
|
|
21743
|
+
},
|
|
21744
|
+
{
|
|
21745
|
+
"preview_path": "primer/open_project/inset_box/default",
|
|
21746
|
+
"name": "default",
|
|
21747
|
+
"snapshot": "true",
|
|
21748
|
+
"skip_rules": {
|
|
21749
|
+
"wont_fix": [
|
|
21750
|
+
"region"
|
|
21751
|
+
],
|
|
21752
|
+
"will_fix": [
|
|
21753
|
+
"color-contrast"
|
|
21754
|
+
]
|
|
21755
|
+
}
|
|
21756
|
+
},
|
|
21757
|
+
{
|
|
21758
|
+
"preview_path": "primer/open_project/inset_box/with_scheme",
|
|
21759
|
+
"name": "with_scheme",
|
|
21760
|
+
"snapshot": "true",
|
|
21761
|
+
"skip_rules": {
|
|
21762
|
+
"wont_fix": [
|
|
21763
|
+
"region"
|
|
21764
|
+
],
|
|
21765
|
+
"will_fix": [
|
|
21766
|
+
"color-contrast"
|
|
21767
|
+
]
|
|
21768
|
+
}
|
|
21769
|
+
},
|
|
21770
|
+
{
|
|
21771
|
+
"preview_path": "primer/open_project/inset_box/with_icon",
|
|
21772
|
+
"name": "with_icon",
|
|
21773
|
+
"snapshot": "true",
|
|
21774
|
+
"skip_rules": {
|
|
21775
|
+
"wont_fix": [
|
|
21776
|
+
"region"
|
|
21777
|
+
],
|
|
21778
|
+
"will_fix": [
|
|
21779
|
+
"color-contrast"
|
|
21780
|
+
]
|
|
21781
|
+
}
|
|
21782
|
+
},
|
|
21783
|
+
{
|
|
21784
|
+
"preview_path": "primer/open_project/inset_box/with_clipboard_copy_button",
|
|
21785
|
+
"name": "with_clipboard_copy_button",
|
|
21786
|
+
"snapshot": "true",
|
|
21787
|
+
"skip_rules": {
|
|
21788
|
+
"wont_fix": [
|
|
21789
|
+
"region"
|
|
21790
|
+
],
|
|
21791
|
+
"will_fix": [
|
|
21792
|
+
"color-contrast"
|
|
21793
|
+
]
|
|
21794
|
+
}
|
|
21795
|
+
},
|
|
21796
|
+
{
|
|
21797
|
+
"preview_path": "primer/open_project/inset_box/with_actions",
|
|
21798
|
+
"name": "with_actions",
|
|
21799
|
+
"snapshot": "true",
|
|
21800
|
+
"skip_rules": {
|
|
21801
|
+
"wont_fix": [
|
|
21802
|
+
"region"
|
|
21803
|
+
],
|
|
21804
|
+
"will_fix": [
|
|
21805
|
+
"color-contrast"
|
|
21806
|
+
]
|
|
21807
|
+
}
|
|
21808
|
+
},
|
|
21809
|
+
{
|
|
21810
|
+
"preview_path": "primer/open_project/inset_box/without_border",
|
|
21811
|
+
"name": "without_border",
|
|
21812
|
+
"snapshot": "true",
|
|
21813
|
+
"skip_rules": {
|
|
21814
|
+
"wont_fix": [
|
|
21815
|
+
"region"
|
|
21816
|
+
],
|
|
21817
|
+
"will_fix": [
|
|
21818
|
+
"color-contrast"
|
|
21819
|
+
]
|
|
21820
|
+
}
|
|
21821
|
+
}
|
|
21822
|
+
],
|
|
21823
|
+
"subcomponents": []
|
|
21824
|
+
},
|
|
21523
21825
|
{
|
|
21524
21826
|
"fully_qualified_name": "Primer::OpenProject::PageHeader",
|
|
21525
21827
|
"description": "A ViewComponent PageHeader inspired by the primer react variant",
|
data/static/previews.json
CHANGED
|
@@ -8824,6 +8824,19 @@
|
|
|
8824
8824
|
]
|
|
8825
8825
|
}
|
|
8826
8826
|
},
|
|
8827
|
+
{
|
|
8828
|
+
"preview_path": "primer/open_project/collapsible_section/non_collapsible",
|
|
8829
|
+
"name": "non_collapsible",
|
|
8830
|
+
"snapshot": "true",
|
|
8831
|
+
"skip_rules": {
|
|
8832
|
+
"wont_fix": [
|
|
8833
|
+
"region"
|
|
8834
|
+
],
|
|
8835
|
+
"will_fix": [
|
|
8836
|
+
"color-contrast"
|
|
8837
|
+
]
|
|
8838
|
+
}
|
|
8839
|
+
},
|
|
8827
8840
|
{
|
|
8828
8841
|
"preview_path": "primer/open_project/collapsible_section/with_link_in_title",
|
|
8829
8842
|
"name": "with_link_in_title",
|
|
@@ -8977,6 +8990,53 @@
|
|
|
8977
8990
|
}
|
|
8978
8991
|
]
|
|
8979
8992
|
},
|
|
8993
|
+
{
|
|
8994
|
+
"name": "color_swatch",
|
|
8995
|
+
"component": "OpenProject::ColorSwatch",
|
|
8996
|
+
"status": "open_project",
|
|
8997
|
+
"lookup_path": "primer/open_project/color_swatch",
|
|
8998
|
+
"examples": [
|
|
8999
|
+
{
|
|
9000
|
+
"preview_path": "primer/open_project/color_swatch/playground",
|
|
9001
|
+
"name": "playground",
|
|
9002
|
+
"snapshot": "false",
|
|
9003
|
+
"skip_rules": {
|
|
9004
|
+
"wont_fix": [
|
|
9005
|
+
"region"
|
|
9006
|
+
],
|
|
9007
|
+
"will_fix": [
|
|
9008
|
+
"color-contrast"
|
|
9009
|
+
]
|
|
9010
|
+
}
|
|
9011
|
+
},
|
|
9012
|
+
{
|
|
9013
|
+
"preview_path": "primer/open_project/color_swatch/default",
|
|
9014
|
+
"name": "default",
|
|
9015
|
+
"snapshot": "true",
|
|
9016
|
+
"skip_rules": {
|
|
9017
|
+
"wont_fix": [
|
|
9018
|
+
"region"
|
|
9019
|
+
],
|
|
9020
|
+
"will_fix": [
|
|
9021
|
+
"color-contrast"
|
|
9022
|
+
]
|
|
9023
|
+
}
|
|
9024
|
+
},
|
|
9025
|
+
{
|
|
9026
|
+
"preview_path": "primer/open_project/color_swatch/with_value",
|
|
9027
|
+
"name": "with_value",
|
|
9028
|
+
"snapshot": "true",
|
|
9029
|
+
"skip_rules": {
|
|
9030
|
+
"wont_fix": [
|
|
9031
|
+
"region"
|
|
9032
|
+
],
|
|
9033
|
+
"will_fix": [
|
|
9034
|
+
"color-contrast"
|
|
9035
|
+
]
|
|
9036
|
+
}
|
|
9037
|
+
}
|
|
9038
|
+
]
|
|
9039
|
+
},
|
|
8980
9040
|
{
|
|
8981
9041
|
"name": "danger_dialog",
|
|
8982
9042
|
"component": "OpenProject::DangerDialog",
|
|
@@ -9746,6 +9806,105 @@
|
|
|
9746
9806
|
}
|
|
9747
9807
|
]
|
|
9748
9808
|
},
|
|
9809
|
+
{
|
|
9810
|
+
"name": "inset_box",
|
|
9811
|
+
"component": "OpenProject::InsetBox",
|
|
9812
|
+
"status": "open_project",
|
|
9813
|
+
"lookup_path": "primer/open_project/inset_box",
|
|
9814
|
+
"examples": [
|
|
9815
|
+
{
|
|
9816
|
+
"preview_path": "primer/open_project/inset_box/playground",
|
|
9817
|
+
"name": "playground",
|
|
9818
|
+
"snapshot": "false",
|
|
9819
|
+
"skip_rules": {
|
|
9820
|
+
"wont_fix": [
|
|
9821
|
+
"region"
|
|
9822
|
+
],
|
|
9823
|
+
"will_fix": [
|
|
9824
|
+
"color-contrast"
|
|
9825
|
+
]
|
|
9826
|
+
}
|
|
9827
|
+
},
|
|
9828
|
+
{
|
|
9829
|
+
"preview_path": "primer/open_project/inset_box/default",
|
|
9830
|
+
"name": "default",
|
|
9831
|
+
"snapshot": "true",
|
|
9832
|
+
"skip_rules": {
|
|
9833
|
+
"wont_fix": [
|
|
9834
|
+
"region"
|
|
9835
|
+
],
|
|
9836
|
+
"will_fix": [
|
|
9837
|
+
"color-contrast"
|
|
9838
|
+
]
|
|
9839
|
+
}
|
|
9840
|
+
},
|
|
9841
|
+
{
|
|
9842
|
+
"preview_path": "primer/open_project/inset_box/with_scheme",
|
|
9843
|
+
"name": "with_scheme",
|
|
9844
|
+
"snapshot": "true",
|
|
9845
|
+
"skip_rules": {
|
|
9846
|
+
"wont_fix": [
|
|
9847
|
+
"region"
|
|
9848
|
+
],
|
|
9849
|
+
"will_fix": [
|
|
9850
|
+
"color-contrast"
|
|
9851
|
+
]
|
|
9852
|
+
}
|
|
9853
|
+
},
|
|
9854
|
+
{
|
|
9855
|
+
"preview_path": "primer/open_project/inset_box/with_icon",
|
|
9856
|
+
"name": "with_icon",
|
|
9857
|
+
"snapshot": "true",
|
|
9858
|
+
"skip_rules": {
|
|
9859
|
+
"wont_fix": [
|
|
9860
|
+
"region"
|
|
9861
|
+
],
|
|
9862
|
+
"will_fix": [
|
|
9863
|
+
"color-contrast"
|
|
9864
|
+
]
|
|
9865
|
+
}
|
|
9866
|
+
},
|
|
9867
|
+
{
|
|
9868
|
+
"preview_path": "primer/open_project/inset_box/with_clipboard_copy_button",
|
|
9869
|
+
"name": "with_clipboard_copy_button",
|
|
9870
|
+
"snapshot": "true",
|
|
9871
|
+
"skip_rules": {
|
|
9872
|
+
"wont_fix": [
|
|
9873
|
+
"region"
|
|
9874
|
+
],
|
|
9875
|
+
"will_fix": [
|
|
9876
|
+
"color-contrast"
|
|
9877
|
+
]
|
|
9878
|
+
}
|
|
9879
|
+
},
|
|
9880
|
+
{
|
|
9881
|
+
"preview_path": "primer/open_project/inset_box/with_actions",
|
|
9882
|
+
"name": "with_actions",
|
|
9883
|
+
"snapshot": "true",
|
|
9884
|
+
"skip_rules": {
|
|
9885
|
+
"wont_fix": [
|
|
9886
|
+
"region"
|
|
9887
|
+
],
|
|
9888
|
+
"will_fix": [
|
|
9889
|
+
"color-contrast"
|
|
9890
|
+
]
|
|
9891
|
+
}
|
|
9892
|
+
},
|
|
9893
|
+
{
|
|
9894
|
+
"preview_path": "primer/open_project/inset_box/without_border",
|
|
9895
|
+
"name": "without_border",
|
|
9896
|
+
"snapshot": "true",
|
|
9897
|
+
"skip_rules": {
|
|
9898
|
+
"wont_fix": [
|
|
9899
|
+
"region"
|
|
9900
|
+
],
|
|
9901
|
+
"will_fix": [
|
|
9902
|
+
"color-contrast"
|
|
9903
|
+
]
|
|
9904
|
+
}
|
|
9905
|
+
}
|
|
9906
|
+
]
|
|
9907
|
+
},
|
|
9749
9908
|
{
|
|
9750
9909
|
"name": "page_header",
|
|
9751
9910
|
"component": "OpenProject::PageHeader",
|
data/static/statuses.json
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
"Primer::OpenProject::BorderGrid::Cell": "open_project",
|
|
148
148
|
"Primer::OpenProject::CollapsibleSection": "open_project",
|
|
149
149
|
"Primer::OpenProject::ColorField": "open_project",
|
|
150
|
+
"Primer::OpenProject::ColorSwatch": "open_project",
|
|
150
151
|
"Primer::OpenProject::DangerDialog": "open_project",
|
|
151
152
|
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
|
|
152
153
|
"Primer::OpenProject::DangerDialog::FormWrapper": "open_project",
|
|
@@ -163,6 +164,7 @@
|
|
|
163
164
|
"Primer::OpenProject::Heading": "open_project",
|
|
164
165
|
"Primer::OpenProject::InlineMessage": "open_project",
|
|
165
166
|
"Primer::OpenProject::InputGroup": "open_project",
|
|
167
|
+
"Primer::OpenProject::InsetBox": "open_project",
|
|
166
168
|
"Primer::OpenProject::PageHeader": "open_project",
|
|
167
169
|
"Primer::OpenProject::PageHeader::Dialog": "open_project",
|
|
168
170
|
"Primer::OpenProject::PageHeader::Menu": "open_project",
|
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.
|
|
4
|
+
version: 0.95.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub Open Source
|
|
@@ -565,6 +565,11 @@ files:
|
|
|
565
565
|
- app/components/primer/open_project/color_field.css.map
|
|
566
566
|
- app/components/primer/open_project/color_field.pcss
|
|
567
567
|
- app/components/primer/open_project/color_field.rb
|
|
568
|
+
- app/components/primer/open_project/color_swatch.css
|
|
569
|
+
- app/components/primer/open_project/color_swatch.css.json
|
|
570
|
+
- app/components/primer/open_project/color_swatch.css.map
|
|
571
|
+
- app/components/primer/open_project/color_swatch.pcss
|
|
572
|
+
- app/components/primer/open_project/color_swatch.rb
|
|
568
573
|
- app/components/primer/open_project/danger_dialog.html.erb
|
|
569
574
|
- app/components/primer/open_project/danger_dialog.rb
|
|
570
575
|
- app/components/primer/open_project/danger_dialog/confirmation_check_box.rb
|
|
@@ -613,6 +618,12 @@ files:
|
|
|
613
618
|
- app/components/primer/open_project/input_group.html.erb
|
|
614
619
|
- app/components/primer/open_project/input_group.pcss
|
|
615
620
|
- app/components/primer/open_project/input_group.rb
|
|
621
|
+
- app/components/primer/open_project/inset_box.css
|
|
622
|
+
- app/components/primer/open_project/inset_box.css.json
|
|
623
|
+
- app/components/primer/open_project/inset_box.css.map
|
|
624
|
+
- app/components/primer/open_project/inset_box.html.erb
|
|
625
|
+
- app/components/primer/open_project/inset_box.pcss
|
|
626
|
+
- app/components/primer/open_project/inset_box.rb
|
|
616
627
|
- app/components/primer/open_project/page_header.css
|
|
617
628
|
- app/components/primer/open_project/page_header.css.json
|
|
618
629
|
- app/components/primer/open_project/page_header.css.map
|
|
@@ -1228,6 +1239,7 @@ files:
|
|
|
1228
1239
|
- previews/primer/open_project/collapsible_section_preview.rb
|
|
1229
1240
|
- previews/primer/open_project/collapsible_section_preview/collapsed.html.erb
|
|
1230
1241
|
- previews/primer/open_project/collapsible_section_preview/default.html.erb
|
|
1242
|
+
- previews/primer/open_project/collapsible_section_preview/non_collapsible.html.erb
|
|
1231
1243
|
- previews/primer/open_project/collapsible_section_preview/playground.html.erb
|
|
1232
1244
|
- previews/primer/open_project/collapsible_section_preview/with_additional_information.html.erb
|
|
1233
1245
|
- previews/primer/open_project/collapsible_section_preview/with_caption.html.erb
|
|
@@ -1236,6 +1248,7 @@ files:
|
|
|
1236
1248
|
- previews/primer/open_project/color_field_preview/in_form.html.erb
|
|
1237
1249
|
- previews/primer/open_project/color_field_preview/in_multi.html.erb
|
|
1238
1250
|
- previews/primer/open_project/color_field_preview/multiple.html.erb
|
|
1251
|
+
- previews/primer/open_project/color_swatch_preview.rb
|
|
1239
1252
|
- previews/primer/open_project/danger_dialog_preview.rb
|
|
1240
1253
|
- previews/primer/open_project/danger_dialog_preview/deletion_form.rb
|
|
1241
1254
|
- previews/primer/open_project/danger_dialog_preview/playground.html.erb
|
|
@@ -1272,6 +1285,7 @@ files:
|
|
|
1272
1285
|
- previews/primer/open_project/inline_message_preview.rb
|
|
1273
1286
|
- previews/primer/open_project/inline_message_preview/playground.html.erb
|
|
1274
1287
|
- previews/primer/open_project/input_group_preview.rb
|
|
1288
|
+
- previews/primer/open_project/inset_box_preview.rb
|
|
1275
1289
|
- previews/primer/open_project/page_header_preview.rb
|
|
1276
1290
|
- previews/primer/open_project/page_header_preview/actions.html.erb
|
|
1277
1291
|
- previews/primer/open_project/page_header_preview/create_action.html.erb
|