openproject-primer_view_components 0.92.0 → 0.93.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 +8 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- 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/color_field.css +1 -0
- data/app/components/primer/open_project/color_field.css.json +18 -0
- data/app/components/primer/open_project/color_field.css.map +1 -0
- data/app/components/primer/open_project/color_field.pcss +70 -0
- data/app/components/primer/open_project/color_field.rb +40 -0
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/lib/primer/forms/color_field.html.erb +10 -0
- data/app/lib/primer/forms/color_field.rb +67 -0
- data/app/lib/primer/forms/dsl/color_field_input.rb +97 -0
- data/app/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/app/lib/primer/forms/primer_color_input.d.ts +17 -0
- data/app/lib/primer/forms/primer_color_input.js +138 -0
- data/app/lib/primer/forms/primer_color_input.ts +121 -0
- data/config/locales/en.yml +4 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/primer/yard/component_manifest.rb +2 -1
- data/lib/primer/yard/lookbook_pages_backend.rb +2 -1
- data/previews/primer/open_project/color_field_preview/in_form.html.erb +6 -0
- data/previews/primer/open_project/color_field_preview/in_multi.html.erb +8 -0
- data/previews/primer/open_project/color_field_preview/multiple.html.erb +4 -0
- data/previews/primer/open_project/color_field_preview.rb +108 -0
- data/static/arguments.json +154 -0
- data/static/audited_at.json +1 -0
- data/static/classes.json +3 -0
- data/static/classnames.cjs +4 -0
- data/static/classnames.js +4 -0
- data/static/constants.json +3 -0
- data/static/info_arch.json +295 -0
- data/static/previews.json +138 -0
- data/static/statuses.json +1 -0
- metadata +16 -1
data/static/info_arch.json
CHANGED
|
@@ -19764,6 +19764,301 @@
|
|
|
19764
19764
|
],
|
|
19765
19765
|
"subcomponents": []
|
|
19766
19766
|
},
|
|
19767
|
+
{
|
|
19768
|
+
"fully_qualified_name": "Primer::OpenProject::ColorField",
|
|
19769
|
+
"description": "Color fields are single-line text inputs for hex color codes, paired with a native color\npicker that doubles as a swatch. They render an `<input type=\"text\">`, which is submitted,\nand an unnamed `<input type=\"color\">`, which is not. The field can therefore be left blank.\n\nTyped text is previewed in the swatch as soon as it is a valid three- or six-digit hex code\nand is rewritten to uppercase `#RRGGBB` when the field loses focus. Invalid text is left\nalone; validate it on the server.\n\nSpace color fields through their container, such as a form group or a stack. As with text\nfields, system arguments are applied to the text input itself, so a margin passed to the\nfield moves the input away from its swatch.",
|
|
19770
|
+
"accessibility_docs": null,
|
|
19771
|
+
"is_form_component": true,
|
|
19772
|
+
"is_published": true,
|
|
19773
|
+
"requires_js": true,
|
|
19774
|
+
"component": "OpenProject::ColorField",
|
|
19775
|
+
"status": "open_project",
|
|
19776
|
+
"a11y_reviewed": false,
|
|
19777
|
+
"short_name": "OpenProjectColorField",
|
|
19778
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/color_field.rb",
|
|
19779
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/color_field/default/",
|
|
19780
|
+
"parameters": [
|
|
19781
|
+
{
|
|
19782
|
+
"name": "size",
|
|
19783
|
+
"type": "Symbol",
|
|
19784
|
+
"default": "N/A",
|
|
19785
|
+
"description": "The size of the field. One of `:large`, `:medium`, or `:small`."
|
|
19786
|
+
},
|
|
19787
|
+
{
|
|
19788
|
+
"name": "full_width",
|
|
19789
|
+
"type": "Boolean",
|
|
19790
|
+
"default": "N/A",
|
|
19791
|
+
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
|
19792
|
+
},
|
|
19793
|
+
{
|
|
19794
|
+
"name": "name",
|
|
19795
|
+
"type": "String",
|
|
19796
|
+
"default": "N/A",
|
|
19797
|
+
"description": "Value for the HTML name attribute."
|
|
19798
|
+
},
|
|
19799
|
+
{
|
|
19800
|
+
"name": "id",
|
|
19801
|
+
"type": "String",
|
|
19802
|
+
"default": "N/A",
|
|
19803
|
+
"description": "Value for the HTML id attribute."
|
|
19804
|
+
},
|
|
19805
|
+
{
|
|
19806
|
+
"name": "class",
|
|
19807
|
+
"type": "String",
|
|
19808
|
+
"default": "N/A",
|
|
19809
|
+
"description": "CSS classes to include in the input's HTML `class` attribute. Exists for compatibility with Rails form builders."
|
|
19810
|
+
},
|
|
19811
|
+
{
|
|
19812
|
+
"name": "classes",
|
|
19813
|
+
"type": "Array",
|
|
19814
|
+
"default": "N/A",
|
|
19815
|
+
"description": "CSS classes to include in the input's HTML `class` attribute. Combined with the `:class` argument. The list may contain strings, hashes, or `nil` values, and is automatically cleaned up by Primer's [`class_name` helper](https://github.com/primer/view_components/blob/c9cb95c98fee3e2e27f4a10683f555e22285e7f1/app/lib/primer/class_name_helper.rb) (`nils`, falsy entries, and blank strings are ignored)."
|
|
19816
|
+
},
|
|
19817
|
+
{
|
|
19818
|
+
"name": "caption",
|
|
19819
|
+
"type": "String",
|
|
19820
|
+
"default": "N/A",
|
|
19821
|
+
"description": "A string describing the field and what sorts of input it expects. Displayed below the input."
|
|
19822
|
+
},
|
|
19823
|
+
{
|
|
19824
|
+
"name": "label",
|
|
19825
|
+
"type": "String",
|
|
19826
|
+
"default": "N/A",
|
|
19827
|
+
"description": "Label text displayed above the input."
|
|
19828
|
+
},
|
|
19829
|
+
{
|
|
19830
|
+
"name": "visually_hide_label",
|
|
19831
|
+
"type": "Boolean",
|
|
19832
|
+
"default": "N/A",
|
|
19833
|
+
"description": "When set to `true`, hides the label. Although the label will be hidden visually, it will still be visible to screen readers."
|
|
19834
|
+
},
|
|
19835
|
+
{
|
|
19836
|
+
"name": "disabled",
|
|
19837
|
+
"type": "Boolean",
|
|
19838
|
+
"default": "N/A",
|
|
19839
|
+
"description": "When set to `true`, the input will not accept keyboard or mouse input."
|
|
19840
|
+
},
|
|
19841
|
+
{
|
|
19842
|
+
"name": "hidden",
|
|
19843
|
+
"type": "Boolean",
|
|
19844
|
+
"default": "N/A",
|
|
19845
|
+
"description": "When set to `true`, visually hides the field."
|
|
19846
|
+
},
|
|
19847
|
+
{
|
|
19848
|
+
"name": "invalid",
|
|
19849
|
+
"type": "Boolean",
|
|
19850
|
+
"default": "N/A",
|
|
19851
|
+
"description": "If set to `true`, the input will be rendered with a red border. Implied if `validation_message` is truthy. This option is set to `true` automatically if the model object associated with the form reports that the input is invalid via Rails validations. It is provided for cases where the form does not have an associated model. If the input is invalid as determined by Rails validations, setting `invalid` to `false` will have no effect."
|
|
19852
|
+
},
|
|
19853
|
+
{
|
|
19854
|
+
"name": "validation_message",
|
|
19855
|
+
"type": "String",
|
|
19856
|
+
"default": "N/A",
|
|
19857
|
+
"description": "A string displayed between the caption and the input indicating the input's contents are invalid. This option is, by default, set to the first Rails validation message for the input (assuming the form is associated with a model object). Use `validation_message` to override the default or to provide a validation message in case there is no associated model object."
|
|
19858
|
+
},
|
|
19859
|
+
{
|
|
19860
|
+
"name": "label_arguments",
|
|
19861
|
+
"type": "Hash",
|
|
19862
|
+
"default": "N/A",
|
|
19863
|
+
"description": "Attributes that will be passed to Rails' `builder.label` method. These can be HTML attributes or any of the other label options Rails supports. They will appear as HTML attributes on the `<label>` tag."
|
|
19864
|
+
},
|
|
19865
|
+
{
|
|
19866
|
+
"name": "scope_name_to_model",
|
|
19867
|
+
"type": "Boolean",
|
|
19868
|
+
"default": "N/A",
|
|
19869
|
+
"description": "Default `true`. When set to `false`, prevents the model name from prefixing the field name. For example, if the field name is `my_field`, Rails will normally emit an HTML name attribute of `model[my_field]`. Setting `scope_name_to_model` to `false` will cause Rails to emit `my_field` instead."
|
|
19870
|
+
},
|
|
19871
|
+
{
|
|
19872
|
+
"name": "scope_id_to_model",
|
|
19873
|
+
"type": "Boolean",
|
|
19874
|
+
"default": "N/A",
|
|
19875
|
+
"description": "Default `true`. When set to `false`, prevents the model name from prefixing the field ID. For example, if the field name is `my_field`, Rails will normally emit an HTML ID attribute of `model_my_field`. Setting `scope_id_to_model` to `false` will cause Rails to emit `my_field` instead."
|
|
19876
|
+
},
|
|
19877
|
+
{
|
|
19878
|
+
"name": "required",
|
|
19879
|
+
"type": "Boolean",
|
|
19880
|
+
"default": "N/A",
|
|
19881
|
+
"description": "Default `false`. When set to `true`, causes an asterisk (*) to appear next to the field's label indicating it is a required field. Note that this option explicitly does _not_ add a `required` HTML attribute. Doing so would enable native browser validations, which are inaccessible and inconsistent with the Primer design system."
|
|
19882
|
+
},
|
|
19883
|
+
{
|
|
19884
|
+
"name": "aria",
|
|
19885
|
+
"type": "Hash",
|
|
19886
|
+
"default": "N/A",
|
|
19887
|
+
"description": "Key/value pairs that represent Aria attributes and their values. Eg. `aria: { current: true }` becomes `aria-current=\"true\"`."
|
|
19888
|
+
},
|
|
19889
|
+
{
|
|
19890
|
+
"name": "data",
|
|
19891
|
+
"type": "Hash",
|
|
19892
|
+
"default": "N/A",
|
|
19893
|
+
"description": "Key/value pairs that represent data attributes and their values. Eg. `data: { foo: \"bar\" }` becomes `data-foo=\"bar\"`."
|
|
19894
|
+
},
|
|
19895
|
+
{
|
|
19896
|
+
"name": "system_arguments",
|
|
19897
|
+
"type": "Hash",
|
|
19898
|
+
"default": "N/A",
|
|
19899
|
+
"description": "A hash of attributes passed to the underlying Rails builder methods. These options may mean something special depending on the type of input, otherwise they are emitted as HTML attributes. See the [Rails documentation](https://guides.rubyonrails.org/form_helpers.html) for more information. In addition, the usual Primer utility arguments are accepted in system arguments. For example, passing `mt: 2` will add the `mt-2` class to the input. See the Primer system arguments docs for details."
|
|
19900
|
+
},
|
|
19901
|
+
{
|
|
19902
|
+
"name": "input_width",
|
|
19903
|
+
"type": "Symbol",
|
|
19904
|
+
"default": "N/A",
|
|
19905
|
+
"description": "The width of the field. One of `:auto`, `:large`, `:medium`, `:small`, `:xlarge`, `:xsmall`, or `:xxlarge`."
|
|
19906
|
+
},
|
|
19907
|
+
{
|
|
19908
|
+
"name": "maxlength",
|
|
19909
|
+
"type": "Integer",
|
|
19910
|
+
"default": "N/A",
|
|
19911
|
+
"description": "Maximum number of characters the text input accepts. Defaults to 7, the length of `#RRGGBB`."
|
|
19912
|
+
},
|
|
19913
|
+
{
|
|
19914
|
+
"name": "placeholder",
|
|
19915
|
+
"type": "String",
|
|
19916
|
+
"default": "N/A",
|
|
19917
|
+
"description": "Placeholder text. It is not previewed in the swatch, which stays empty while the field is blank."
|
|
19918
|
+
},
|
|
19919
|
+
{
|
|
19920
|
+
"name": "picker_label",
|
|
19921
|
+
"type": "String",
|
|
19922
|
+
"default": "N/A",
|
|
19923
|
+
"description": "Accessible name of the native color picker. Defaults to `I18n.t(\"color_field.picker_label\", label: label)`, or to `I18n.t(\"color_field.picker_label_generic\")` when there is no label."
|
|
19924
|
+
}
|
|
19925
|
+
],
|
|
19926
|
+
"slots": [],
|
|
19927
|
+
"methods": [],
|
|
19928
|
+
"previews": [
|
|
19929
|
+
{
|
|
19930
|
+
"preview_path": "primer/open_project/color_field/playground",
|
|
19931
|
+
"name": "playground",
|
|
19932
|
+
"snapshot": "false",
|
|
19933
|
+
"skip_rules": {
|
|
19934
|
+
"wont_fix": [
|
|
19935
|
+
"region"
|
|
19936
|
+
],
|
|
19937
|
+
"will_fix": [
|
|
19938
|
+
"color-contrast"
|
|
19939
|
+
]
|
|
19940
|
+
}
|
|
19941
|
+
},
|
|
19942
|
+
{
|
|
19943
|
+
"preview_path": "primer/open_project/color_field/default",
|
|
19944
|
+
"name": "default",
|
|
19945
|
+
"snapshot": "true",
|
|
19946
|
+
"skip_rules": {
|
|
19947
|
+
"wont_fix": [
|
|
19948
|
+
"region"
|
|
19949
|
+
],
|
|
19950
|
+
"will_fix": [
|
|
19951
|
+
"color-contrast"
|
|
19952
|
+
]
|
|
19953
|
+
}
|
|
19954
|
+
},
|
|
19955
|
+
{
|
|
19956
|
+
"preview_path": "primer/open_project/color_field/blank_with_placeholder",
|
|
19957
|
+
"name": "blank_with_placeholder",
|
|
19958
|
+
"snapshot": "true",
|
|
19959
|
+
"skip_rules": {
|
|
19960
|
+
"wont_fix": [
|
|
19961
|
+
"region"
|
|
19962
|
+
],
|
|
19963
|
+
"will_fix": [
|
|
19964
|
+
"color-contrast"
|
|
19965
|
+
]
|
|
19966
|
+
}
|
|
19967
|
+
},
|
|
19968
|
+
{
|
|
19969
|
+
"preview_path": "primer/open_project/color_field/blank_without_placeholder",
|
|
19970
|
+
"name": "blank_without_placeholder",
|
|
19971
|
+
"snapshot": "true",
|
|
19972
|
+
"skip_rules": {
|
|
19973
|
+
"wont_fix": [
|
|
19974
|
+
"region"
|
|
19975
|
+
],
|
|
19976
|
+
"will_fix": [
|
|
19977
|
+
"color-contrast"
|
|
19978
|
+
]
|
|
19979
|
+
}
|
|
19980
|
+
},
|
|
19981
|
+
{
|
|
19982
|
+
"preview_path": "primer/open_project/color_field/disabled",
|
|
19983
|
+
"name": "disabled",
|
|
19984
|
+
"snapshot": "true",
|
|
19985
|
+
"skip_rules": {
|
|
19986
|
+
"wont_fix": [
|
|
19987
|
+
"region"
|
|
19988
|
+
],
|
|
19989
|
+
"will_fix": [
|
|
19990
|
+
"color-contrast"
|
|
19991
|
+
]
|
|
19992
|
+
}
|
|
19993
|
+
},
|
|
19994
|
+
{
|
|
19995
|
+
"preview_path": "primer/open_project/color_field/readonly",
|
|
19996
|
+
"name": "readonly",
|
|
19997
|
+
"snapshot": "true",
|
|
19998
|
+
"skip_rules": {
|
|
19999
|
+
"wont_fix": [
|
|
20000
|
+
"region"
|
|
20001
|
+
],
|
|
20002
|
+
"will_fix": [
|
|
20003
|
+
"color-contrast"
|
|
20004
|
+
]
|
|
20005
|
+
}
|
|
20006
|
+
},
|
|
20007
|
+
{
|
|
20008
|
+
"preview_path": "primer/open_project/color_field/invalid",
|
|
20009
|
+
"name": "invalid",
|
|
20010
|
+
"snapshot": "true",
|
|
20011
|
+
"skip_rules": {
|
|
20012
|
+
"wont_fix": [
|
|
20013
|
+
"region"
|
|
20014
|
+
],
|
|
20015
|
+
"will_fix": [
|
|
20016
|
+
"color-contrast"
|
|
20017
|
+
]
|
|
20018
|
+
}
|
|
20019
|
+
},
|
|
20020
|
+
{
|
|
20021
|
+
"preview_path": "primer/open_project/color_field/in_form",
|
|
20022
|
+
"name": "in_form",
|
|
20023
|
+
"snapshot": "false",
|
|
20024
|
+
"skip_rules": {
|
|
20025
|
+
"wont_fix": [
|
|
20026
|
+
"region"
|
|
20027
|
+
],
|
|
20028
|
+
"will_fix": [
|
|
20029
|
+
"color-contrast"
|
|
20030
|
+
]
|
|
20031
|
+
}
|
|
20032
|
+
},
|
|
20033
|
+
{
|
|
20034
|
+
"preview_path": "primer/open_project/color_field/multiple",
|
|
20035
|
+
"name": "multiple",
|
|
20036
|
+
"snapshot": "false",
|
|
20037
|
+
"skip_rules": {
|
|
20038
|
+
"wont_fix": [
|
|
20039
|
+
"region"
|
|
20040
|
+
],
|
|
20041
|
+
"will_fix": [
|
|
20042
|
+
"color-contrast"
|
|
20043
|
+
]
|
|
20044
|
+
}
|
|
20045
|
+
},
|
|
20046
|
+
{
|
|
20047
|
+
"preview_path": "primer/open_project/color_field/in_multi",
|
|
20048
|
+
"name": "in_multi",
|
|
20049
|
+
"snapshot": "false",
|
|
20050
|
+
"skip_rules": {
|
|
20051
|
+
"wont_fix": [
|
|
20052
|
+
"region"
|
|
20053
|
+
],
|
|
20054
|
+
"will_fix": [
|
|
20055
|
+
"color-contrast"
|
|
20056
|
+
]
|
|
20057
|
+
}
|
|
20058
|
+
}
|
|
20059
|
+
],
|
|
20060
|
+
"subcomponents": []
|
|
20061
|
+
},
|
|
19767
20062
|
{
|
|
19768
20063
|
"fully_qualified_name": "Primer::OpenProject::DangerDialog",
|
|
19769
20064
|
"description": "A pre-configured dialog for destructive/\"potentially dangerous\" actions",
|
data/static/previews.json
CHANGED
|
@@ -8839,6 +8839,144 @@
|
|
|
8839
8839
|
}
|
|
8840
8840
|
]
|
|
8841
8841
|
},
|
|
8842
|
+
{
|
|
8843
|
+
"name": "color_field",
|
|
8844
|
+
"component": "OpenProject::ColorField",
|
|
8845
|
+
"status": "open_project",
|
|
8846
|
+
"lookup_path": "primer/open_project/color_field",
|
|
8847
|
+
"examples": [
|
|
8848
|
+
{
|
|
8849
|
+
"preview_path": "primer/open_project/color_field/playground",
|
|
8850
|
+
"name": "playground",
|
|
8851
|
+
"snapshot": "false",
|
|
8852
|
+
"skip_rules": {
|
|
8853
|
+
"wont_fix": [
|
|
8854
|
+
"region"
|
|
8855
|
+
],
|
|
8856
|
+
"will_fix": [
|
|
8857
|
+
"color-contrast"
|
|
8858
|
+
]
|
|
8859
|
+
}
|
|
8860
|
+
},
|
|
8861
|
+
{
|
|
8862
|
+
"preview_path": "primer/open_project/color_field/default",
|
|
8863
|
+
"name": "default",
|
|
8864
|
+
"snapshot": "true",
|
|
8865
|
+
"skip_rules": {
|
|
8866
|
+
"wont_fix": [
|
|
8867
|
+
"region"
|
|
8868
|
+
],
|
|
8869
|
+
"will_fix": [
|
|
8870
|
+
"color-contrast"
|
|
8871
|
+
]
|
|
8872
|
+
}
|
|
8873
|
+
},
|
|
8874
|
+
{
|
|
8875
|
+
"preview_path": "primer/open_project/color_field/blank_with_placeholder",
|
|
8876
|
+
"name": "blank_with_placeholder",
|
|
8877
|
+
"snapshot": "true",
|
|
8878
|
+
"skip_rules": {
|
|
8879
|
+
"wont_fix": [
|
|
8880
|
+
"region"
|
|
8881
|
+
],
|
|
8882
|
+
"will_fix": [
|
|
8883
|
+
"color-contrast"
|
|
8884
|
+
]
|
|
8885
|
+
}
|
|
8886
|
+
},
|
|
8887
|
+
{
|
|
8888
|
+
"preview_path": "primer/open_project/color_field/blank_without_placeholder",
|
|
8889
|
+
"name": "blank_without_placeholder",
|
|
8890
|
+
"snapshot": "true",
|
|
8891
|
+
"skip_rules": {
|
|
8892
|
+
"wont_fix": [
|
|
8893
|
+
"region"
|
|
8894
|
+
],
|
|
8895
|
+
"will_fix": [
|
|
8896
|
+
"color-contrast"
|
|
8897
|
+
]
|
|
8898
|
+
}
|
|
8899
|
+
},
|
|
8900
|
+
{
|
|
8901
|
+
"preview_path": "primer/open_project/color_field/disabled",
|
|
8902
|
+
"name": "disabled",
|
|
8903
|
+
"snapshot": "true",
|
|
8904
|
+
"skip_rules": {
|
|
8905
|
+
"wont_fix": [
|
|
8906
|
+
"region"
|
|
8907
|
+
],
|
|
8908
|
+
"will_fix": [
|
|
8909
|
+
"color-contrast"
|
|
8910
|
+
]
|
|
8911
|
+
}
|
|
8912
|
+
},
|
|
8913
|
+
{
|
|
8914
|
+
"preview_path": "primer/open_project/color_field/readonly",
|
|
8915
|
+
"name": "readonly",
|
|
8916
|
+
"snapshot": "true",
|
|
8917
|
+
"skip_rules": {
|
|
8918
|
+
"wont_fix": [
|
|
8919
|
+
"region"
|
|
8920
|
+
],
|
|
8921
|
+
"will_fix": [
|
|
8922
|
+
"color-contrast"
|
|
8923
|
+
]
|
|
8924
|
+
}
|
|
8925
|
+
},
|
|
8926
|
+
{
|
|
8927
|
+
"preview_path": "primer/open_project/color_field/invalid",
|
|
8928
|
+
"name": "invalid",
|
|
8929
|
+
"snapshot": "true",
|
|
8930
|
+
"skip_rules": {
|
|
8931
|
+
"wont_fix": [
|
|
8932
|
+
"region"
|
|
8933
|
+
],
|
|
8934
|
+
"will_fix": [
|
|
8935
|
+
"color-contrast"
|
|
8936
|
+
]
|
|
8937
|
+
}
|
|
8938
|
+
},
|
|
8939
|
+
{
|
|
8940
|
+
"preview_path": "primer/open_project/color_field/in_form",
|
|
8941
|
+
"name": "in_form",
|
|
8942
|
+
"snapshot": "false",
|
|
8943
|
+
"skip_rules": {
|
|
8944
|
+
"wont_fix": [
|
|
8945
|
+
"region"
|
|
8946
|
+
],
|
|
8947
|
+
"will_fix": [
|
|
8948
|
+
"color-contrast"
|
|
8949
|
+
]
|
|
8950
|
+
}
|
|
8951
|
+
},
|
|
8952
|
+
{
|
|
8953
|
+
"preview_path": "primer/open_project/color_field/multiple",
|
|
8954
|
+
"name": "multiple",
|
|
8955
|
+
"snapshot": "false",
|
|
8956
|
+
"skip_rules": {
|
|
8957
|
+
"wont_fix": [
|
|
8958
|
+
"region"
|
|
8959
|
+
],
|
|
8960
|
+
"will_fix": [
|
|
8961
|
+
"color-contrast"
|
|
8962
|
+
]
|
|
8963
|
+
}
|
|
8964
|
+
},
|
|
8965
|
+
{
|
|
8966
|
+
"preview_path": "primer/open_project/color_field/in_multi",
|
|
8967
|
+
"name": "in_multi",
|
|
8968
|
+
"snapshot": "false",
|
|
8969
|
+
"skip_rules": {
|
|
8970
|
+
"wont_fix": [
|
|
8971
|
+
"region"
|
|
8972
|
+
],
|
|
8973
|
+
"will_fix": [
|
|
8974
|
+
"color-contrast"
|
|
8975
|
+
]
|
|
8976
|
+
}
|
|
8977
|
+
}
|
|
8978
|
+
]
|
|
8979
|
+
},
|
|
8842
8980
|
{
|
|
8843
8981
|
"name": "danger_dialog",
|
|
8844
8982
|
"component": "OpenProject::DangerDialog",
|
data/static/statuses.json
CHANGED
|
@@ -146,6 +146,7 @@
|
|
|
146
146
|
"Primer::OpenProject::BorderGrid": "open_project",
|
|
147
147
|
"Primer::OpenProject::BorderGrid::Cell": "open_project",
|
|
148
148
|
"Primer::OpenProject::CollapsibleSection": "open_project",
|
|
149
|
+
"Primer::OpenProject::ColorField": "open_project",
|
|
149
150
|
"Primer::OpenProject::DangerDialog": "open_project",
|
|
150
151
|
"Primer::OpenProject::DangerDialog::ConfirmationCheckBox": "open_project",
|
|
151
152
|
"Primer::OpenProject::DangerDialog::FormWrapper": "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.93.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GitHub Open Source
|
|
@@ -560,6 +560,11 @@ files:
|
|
|
560
560
|
- app/components/primer/open_project/collapsible_section.pcss
|
|
561
561
|
- app/components/primer/open_project/collapsible_section.rb
|
|
562
562
|
- app/components/primer/open_project/collapsible_section.ts
|
|
563
|
+
- app/components/primer/open_project/color_field.css
|
|
564
|
+
- app/components/primer/open_project/color_field.css.json
|
|
565
|
+
- app/components/primer/open_project/color_field.css.map
|
|
566
|
+
- app/components/primer/open_project/color_field.pcss
|
|
567
|
+
- app/components/primer/open_project/color_field.rb
|
|
563
568
|
- app/components/primer/open_project/danger_dialog.html.erb
|
|
564
569
|
- app/components/primer/open_project/danger_dialog.rb
|
|
565
570
|
- app/components/primer/open_project/danger_dialog/confirmation_check_box.rb
|
|
@@ -760,11 +765,14 @@ files:
|
|
|
760
765
|
- app/lib/primer/forms/check_box.rb
|
|
761
766
|
- app/lib/primer/forms/check_box_group.html.erb
|
|
762
767
|
- app/lib/primer/forms/check_box_group.rb
|
|
768
|
+
- app/lib/primer/forms/color_field.html.erb
|
|
769
|
+
- app/lib/primer/forms/color_field.rb
|
|
763
770
|
- app/lib/primer/forms/dsl/action_menu_input.rb
|
|
764
771
|
- app/lib/primer/forms/dsl/auto_complete_input.rb
|
|
765
772
|
- app/lib/primer/forms/dsl/button_input.rb
|
|
766
773
|
- app/lib/primer/forms/dsl/check_box_group_input.rb
|
|
767
774
|
- app/lib/primer/forms/dsl/check_box_input.rb
|
|
775
|
+
- app/lib/primer/forms/dsl/color_field_input.rb
|
|
768
776
|
- app/lib/primer/forms/dsl/fieldset_group_input.rb
|
|
769
777
|
- app/lib/primer/forms/dsl/form_object.rb
|
|
770
778
|
- app/lib/primer/forms/dsl/form_reference_input.rb
|
|
@@ -796,6 +804,9 @@ files:
|
|
|
796
804
|
- app/lib/primer/forms/multi.rb
|
|
797
805
|
- app/lib/primer/forms/primer_base_component_wrapper.html.erb
|
|
798
806
|
- app/lib/primer/forms/primer_base_component_wrapper.rb
|
|
807
|
+
- app/lib/primer/forms/primer_color_input.d.ts
|
|
808
|
+
- app/lib/primer/forms/primer_color_input.js
|
|
809
|
+
- app/lib/primer/forms/primer_color_input.ts
|
|
799
810
|
- app/lib/primer/forms/primer_multi_input.d.ts
|
|
800
811
|
- app/lib/primer/forms/primer_multi_input.js
|
|
801
812
|
- app/lib/primer/forms/primer_multi_input.ts
|
|
@@ -1221,6 +1232,10 @@ files:
|
|
|
1221
1232
|
- previews/primer/open_project/collapsible_section_preview/with_additional_information.html.erb
|
|
1222
1233
|
- previews/primer/open_project/collapsible_section_preview/with_caption.html.erb
|
|
1223
1234
|
- previews/primer/open_project/collapsible_section_preview/with_link_in_title.html.erb
|
|
1235
|
+
- previews/primer/open_project/color_field_preview.rb
|
|
1236
|
+
- previews/primer/open_project/color_field_preview/in_form.html.erb
|
|
1237
|
+
- previews/primer/open_project/color_field_preview/in_multi.html.erb
|
|
1238
|
+
- previews/primer/open_project/color_field_preview/multiple.html.erb
|
|
1224
1239
|
- previews/primer/open_project/danger_dialog_preview.rb
|
|
1225
1240
|
- previews/primer/open_project/danger_dialog_preview/deletion_form.rb
|
|
1226
1241
|
- previews/primer/open_project/danger_dialog_preview/playground.html.erb
|