@rhc-shared-components/form-group-container 0.2.7 → 0.3.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,119 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.2.9](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.8...@rhc-shared-components/form-group-container@0.2.9) (2021-11-01)
7
+
8
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.8](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.7...@rhc-shared-components/form-group-container@0.2.8) (2021-11-01)
15
+
16
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.2.7](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.6...@rhc-shared-components/form-group-container@0.2.7) (2021-09-29)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * migrarting microbundle crl to microbundle ([bbed919](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/bbed919af62f15929a78072b0d60f75ff31c4183))
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.2.6](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.5...@rhc-shared-components/form-group-container@0.2.6) (2021-09-22)
34
+
35
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
36
+
37
+
38
+
39
+
40
+
41
+ ## [0.2.5](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.4...@rhc-shared-components/form-group-container@0.2.5) (2021-09-20)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * cleaning deps ([227dc2d](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/227dc2da7dfda53172811ef287840b97cd550681))
47
+
48
+
49
+
50
+
51
+
52
+ ## [0.2.4](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.3...@rhc-shared-components/form-group-container@0.2.4) (2021-09-17)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * added cleaning of dist on prepare ([68e3e76](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/68e3e76f8924cabd581baeace07e9afeef20d36b))
58
+
59
+
60
+
61
+
62
+
63
+ ## [0.2.3](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.2...@rhc-shared-components/form-group-container@0.2.3) (2021-09-17)
64
+
65
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
66
+
67
+
68
+
69
+
70
+
71
+ ## [0.2.2](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.1...@rhc-shared-components/form-group-container@0.2.2) (2021-09-17)
72
+
73
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
74
+
75
+
76
+
77
+
78
+
79
+ ## [0.2.1](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.0...@rhc-shared-components/form-group-container@0.2.1) (2021-09-17)
80
+
81
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
82
+
83
+
84
+
85
+
86
+
87
+ # [0.2.0](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.1.2...@rhc-shared-components/form-group-container@0.2.0) (2021-09-17)
88
+
89
+
90
+ ### Features
91
+
92
+ * added onClick handler ([fe16865](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/commit/fe16865db144788924efdf29c210e7775bce7edb))
93
+
94
+
95
+
96
+
97
+
98
+ ## [0.1.2](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.1.1...@rhc-shared-components/form-group-container@0.1.2) (2021-09-16)
99
+
100
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
101
+
102
+
103
+
104
+
105
+
106
+ ## [0.1.1](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.1.0...@rhc-shared-components/form-group-container@0.1.1) (2021-09-16)
107
+
108
+ **Note:** Version bump only for package @rhc-shared-components/form-group-container
109
+
110
+
111
+
112
+
113
+
114
+ # 0.1.0 (2021-09-16)
115
+
116
+
117
+ ### Features
118
+
119
+ * created from group container shared component ([433141e](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/commit/433141ea9925a1a2113ab1395f185bed12b409a1))
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- import './style.scss';
3
2
  interface FormGroupContainerProps {
4
3
  isValid?: boolean;
5
4
  helperTextInvalid?: string;
package/dist/index.js CHANGED
@@ -36,6 +36,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
36
36
  return target;
37
37
  }
38
38
 
39
+ var css_248z = ".form-group .max-char-length {\n float: right;\n color: #6A6E73;\n font-size: var(--pf-c-form__helper-text--FontSize);\n margin-top: var(--pf-c-form__helper-text--MarginTop); }\n\n.form-group .maxlength-error {\n color: var(--pf-c-form--m-error--Color); }\n";
40
+
39
41
  var _excluded = ["children", "helperTextInvalid", "isValid", "helperText", "labelIcon", "onClick"];
40
42
 
41
43
  var FormGroupContainer = function FormGroupContainer(_ref) {
@@ -47,6 +49,7 @@ var FormGroupContainer = function FormGroupContainer(_ref) {
47
49
  onClick = _ref.onClick,
48
50
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
49
51
 
52
+ InsertCss();
50
53
  return React__namespace.createElement(reactCore.FormGroup, Object.assign({
51
54
  className: 'form-group',
52
55
  helperTextInvalid: helperTextInvalid,
@@ -59,4 +62,16 @@ var FormGroupContainer = function FormGroupContainer(_ref) {
59
62
  }, rest), children);
60
63
  };
61
64
 
65
+ var InsertCss = function InsertCss() {
66
+ var styleId = 'form-group-component-style';
67
+
68
+ if (!document.getElementById(styleId)) {
69
+ var styleTag = document.createElement('style');
70
+ styleTag.id = styleId;
71
+ styleTag.type = 'text/css';
72
+ styleTag.innerHTML = css_248z;
73
+ document.body.appendChild(styleTag);
74
+ }
75
+ };
76
+
62
77
  exports.FormGroupContainer = FormGroupContainer;
@@ -16,6 +16,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
16
16
  return target;
17
17
  }
18
18
 
19
+ var css_248z = ".form-group .max-char-length {\n float: right;\n color: #6A6E73;\n font-size: var(--pf-c-form__helper-text--FontSize);\n margin-top: var(--pf-c-form__helper-text--MarginTop); }\n\n.form-group .maxlength-error {\n color: var(--pf-c-form--m-error--Color); }\n";
20
+
19
21
  const _excluded = ["children", "helperTextInvalid", "isValid", "helperText", "labelIcon", "onClick"];
20
22
 
21
23
  const FormGroupContainer = _ref => {
@@ -29,6 +31,7 @@ const FormGroupContainer = _ref => {
29
31
  } = _ref,
30
32
  rest = _objectWithoutPropertiesLoose(_ref, _excluded);
31
33
 
34
+ InsertCss();
32
35
  return React.createElement(FormGroup, Object.assign({
33
36
  className: 'form-group',
34
37
  helperTextInvalid: helperTextInvalid,
@@ -41,4 +44,16 @@ const FormGroupContainer = _ref => {
41
44
  }, rest), children);
42
45
  };
43
46
 
47
+ const InsertCss = () => {
48
+ const styleId = 'form-group-component-style';
49
+
50
+ if (!document.getElementById(styleId)) {
51
+ const styleTag = document.createElement('style');
52
+ styleTag.id = styleId;
53
+ styleTag.type = 'text/css';
54
+ styleTag.innerHTML = css_248z;
55
+ document.body.appendChild(styleTag);
56
+ }
57
+ };
58
+
44
59
  export { FormGroupContainer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/form-group-container",
3
- "version": "0.2.7",
3
+ "version": "0.3.0",
4
4
  "description": "Form group container for Red Hat certified technology apps",
5
5
  "author": "gautamkrishnar",
6
6
  "license": "MIT",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "40f892384dd691104d7b3066d9b0cbb77d64a7f1"
76
+ "gitHead": "9b859638f0e80c5a77f3660defbe00edcab15840"
77
77
  }