stentor-models 1.60.20 → 1.60.23

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.
@@ -49,10 +49,34 @@ export interface FormInput {
49
49
  * Type of the input
50
50
  */
51
51
  type: "TEXT" | "DROPDOWN" | "CHECK" | "CHIPS" | "DATE" | "DATERANGE" | "CARD";
52
+ /**
53
+ * Optional, used to shape the input. Not applicable to all inputs.
54
+ */
52
55
  shape?: "ROUND" | "SQUARE";
56
+ /**
57
+ * A condition that must be met for the field to be shown.
58
+ *
59
+ * For example: "issue === 'service_repair'" - issue is a field name in this example
60
+ *
61
+ */
53
62
  condition?: string;
63
+ /**
64
+ * Is the field required.
65
+ */
54
66
  mandatory?: boolean;
67
+ /**
68
+ * Error message to show when the field is required but not filled out.
69
+ */
55
70
  mandatoryError?: string;
71
+ /**
72
+ * Group fields together where one of the fields in the group is required.
73
+ */
74
+ mandatoryGroup?: string;
75
+ /**
76
+ * React.CSSProperties style object to apply to the field.
77
+ *
78
+ * For example: {{ width: '300px', height: '150px' }}
79
+ */
56
80
  style?: object;
57
81
  }
58
82
  export interface FormFieldTextAddressInput extends FormTextInput {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.60.20",
7
+ "version": "1.60.23",
8
8
  "description": "Models for 📣 stentor",
9
9
  "types": "lib/index",
10
10
  "typings": "lib/index",
@@ -33,5 +33,5 @@
33
33
  "dependencies": {
34
34
  "@xapp/patterns": "2.0.2"
35
35
  },
36
- "gitHead": "f3fbdd8e92eb16176ca3e5c23622b747816d9747"
36
+ "gitHead": "39b3836c2a20ba49c46ac30cb00c770c857fea5a"
37
37
  }