@gpa-gemstone/react-forms 1.1.101 → 1.1.102

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.
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { Gemstone } from '@gpa-gemstone/application-typings';
2
3
  interface IOption extends Gemstone.TSX.Interfaces.ILabelValue<string | number> {
3
4
  Disabled?: boolean;
@@ -14,6 +15,10 @@ interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
14
15
  * @type {IOption[]}
15
16
  */
16
17
  Options: IOption[];
18
+ /**
19
+ * Optional Style to be applied to the form-group container div
20
+ */
21
+ Style?: React.CSSProperties;
17
22
  }
18
23
  export default function RadioButtons<T>(props: IProps<T>): JSX.Element;
19
24
  export {};
@@ -44,7 +44,7 @@ function RadioButtons(props) {
44
44
  // Variables to control the rendering of label and help icon.
45
45
  var showHelpIcon = props.Help !== undefined;
46
46
  var label = props.Label === undefined ? props.Field : props.Label;
47
- return (React.createElement("div", { className: "form-group" },
47
+ return (React.createElement("div", { className: "form-group", style: props.Style },
48
48
  React.createElement("label", { className: "form-check-label w-100 d-flex align-items-center" },
49
49
  React.createElement("span", null, label),
50
50
  showHelpIcon ?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.101",
3
+ "version": "1.1.102",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,17 +45,17 @@
45
45
  "typescript": "5.5.3"
46
46
  },
47
47
  "dependencies": {
48
- "@gpa-gemstone/application-typings": "0.0.89",
49
- "@gpa-gemstone/gpa-symbols": "0.0.56",
50
- "@gpa-gemstone/helper-functions": "0.0.47",
48
+ "@gpa-gemstone/application-typings": "0.0.90",
49
+ "@gpa-gemstone/gpa-symbols": "0.0.57",
50
+ "@gpa-gemstone/helper-functions": "0.0.48",
51
51
  "@types/react": "^17.0.14",
52
52
  "@types/styled-components": "^5.1.11",
53
53
  "lodash": "^4.17.21",
54
54
  "moment": "2.29.4",
55
- "react": "^18.2.0",
56
55
  "react-color": "^2.19.3",
57
56
  "react-portal": "4.2.2",
58
57
  "styled-components": "5.3.3"
59
58
  },
59
+ "peerDependencies": {"react": "18.2.0"},
60
60
  "publishConfig": {"access": "public"}
61
61
  }