@primer/view-components 0.10.0-rc.49ee71e2 → 0.10.0-rc.73f2729d

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.10.0-rc.49ee71e2",
3
+ "version": "0.10.0-rc.73f2729d",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -772,6 +772,18 @@
772
772
  "default": "N/A",
773
773
  "description": "A string describing the field and what sorts of input it expects. Displayed below the group."
774
774
  },
775
+ {
776
+ "name": "invalid",
777
+ "type": "Boolean",
778
+ "default": "N/A",
779
+ "description": "If set to `true`, the input will be marked as invalid. 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."
780
+ },
781
+ {
782
+ "name": "validation_message",
783
+ "type": "String",
784
+ "default": "N/A",
785
+ "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."
786
+ },
775
787
  {
776
788
  "name": "label_arguments",
777
789
  "type": "Hash",
@@ -1966,6 +1978,18 @@
1966
1978
  "default": "N/A",
1967
1979
  "description": "A string describing the field and what sorts of input it expects. Displayed below the group."
1968
1980
  },
1981
+ {
1982
+ "name": "invalid",
1983
+ "type": "Boolean",
1984
+ "default": "N/A",
1985
+ "description": "If set to `true`, the input will be marked as invalid. 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."
1986
+ },
1987
+ {
1988
+ "name": "validation_message",
1989
+ "type": "String",
1990
+ "default": "N/A",
1991
+ "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."
1992
+ },
1969
1993
  {
1970
1994
  "name": "label_arguments",
1971
1995
  "type": "Hash",
@@ -2686,6 +2686,18 @@
2686
2686
  "default": "N/A",
2687
2687
  "description": "A string describing the field and what sorts of input it expects. Displayed below the group."
2688
2688
  },
2689
+ {
2690
+ "name": "invalid",
2691
+ "type": "Boolean",
2692
+ "default": "N/A",
2693
+ "description": "If set to `true`, the input will be marked as invalid. 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."
2694
+ },
2695
+ {
2696
+ "name": "validation_message",
2697
+ "type": "String",
2698
+ "default": "N/A",
2699
+ "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."
2700
+ },
2689
2701
  {
2690
2702
  "name": "label_arguments",
2691
2703
  "type": "Hash",
@@ -2743,6 +2755,19 @@
2743
2755
  ]
2744
2756
  }
2745
2757
  },
2758
+ {
2759
+ "preview_path": "primer/alpha/check_box_group/invalid",
2760
+ "name": "invalid",
2761
+ "snapshot": "false",
2762
+ "skip_rules": {
2763
+ "wont_fix": [
2764
+ "region"
2765
+ ],
2766
+ "will_fix": [
2767
+ "color-contrast"
2768
+ ]
2769
+ }
2770
+ },
2746
2771
  {
2747
2772
  "preview_path": "primer/alpha/check_box_group/with_caption",
2748
2773
  "name": "with_caption",
@@ -6341,6 +6366,18 @@
6341
6366
  "default": "N/A",
6342
6367
  "description": "A string describing the field and what sorts of input it expects. Displayed below the group."
6343
6368
  },
6369
+ {
6370
+ "name": "invalid",
6371
+ "type": "Boolean",
6372
+ "default": "N/A",
6373
+ "description": "If set to `true`, the input will be marked as invalid. 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."
6374
+ },
6375
+ {
6376
+ "name": "validation_message",
6377
+ "type": "String",
6378
+ "default": "N/A",
6379
+ "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."
6380
+ },
6344
6381
  {
6345
6382
  "name": "label_arguments",
6346
6383
  "type": "Hash",
@@ -6398,6 +6435,19 @@
6398
6435
  ]
6399
6436
  }
6400
6437
  },
6438
+ {
6439
+ "preview_path": "primer/alpha/radio_button_group/invalid",
6440
+ "name": "invalid",
6441
+ "snapshot": "true",
6442
+ "skip_rules": {
6443
+ "wont_fix": [
6444
+ "region"
6445
+ ],
6446
+ "will_fix": [
6447
+ "color-contrast"
6448
+ ]
6449
+ }
6450
+ },
6401
6451
  {
6402
6452
  "preview_path": "primer/alpha/radio_button_group/with_caption",
6403
6453
  "name": "with_caption",
@@ -2403,6 +2403,19 @@
2403
2403
  ]
2404
2404
  }
2405
2405
  },
2406
+ {
2407
+ "preview_path": "primer/alpha/check_box_group/invalid",
2408
+ "name": "invalid",
2409
+ "snapshot": "false",
2410
+ "skip_rules": {
2411
+ "wont_fix": [
2412
+ "region"
2413
+ ],
2414
+ "will_fix": [
2415
+ "color-contrast"
2416
+ ]
2417
+ }
2418
+ },
2406
2419
  {
2407
2420
  "preview_path": "primer/alpha/check_box_group/with_caption",
2408
2421
  "name": "with_caption",
@@ -4735,6 +4748,19 @@
4735
4748
  ]
4736
4749
  }
4737
4750
  },
4751
+ {
4752
+ "preview_path": "primer/alpha/radio_button_group/invalid",
4753
+ "name": "invalid",
4754
+ "snapshot": "true",
4755
+ "skip_rules": {
4756
+ "wont_fix": [
4757
+ "region"
4758
+ ],
4759
+ "will_fix": [
4760
+ "color-contrast"
4761
+ ]
4762
+ }
4763
+ },
4738
4764
  {
4739
4765
  "preview_path": "primer/alpha/radio_button_group/with_caption",
4740
4766
  "name": "with_caption",