@rhc-shared-components/form-group-container 0.2.9 → 0.3.2
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 +130 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15 -0
- package/dist/index.modern.js +15 -0
- package/package.json +4 -4
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
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.3.1](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/compare/@rhc-shared-components/form-group-container@0.2.9...@rhc-shared-components/form-group-container@0.3.1) (2022-06-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* adding form group styles ([8d861bb](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/8d861bb9f70da2d77345e45c647cf028b9af8add))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [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)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [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)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* migrarting microbundle crl to microbundle ([bbed919](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/bbed919af62f15929a78072b0d60f75ff31c4183))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [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)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## [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)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* cleaning deps ([227dc2d](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/227dc2da7dfda53172811ef287840b97cd550681))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [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)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Bug Fixes
|
|
67
|
+
|
|
68
|
+
* added cleaning of dist on prepare ([68e3e76](https://gitlab.cee.redhat.com/customer-platform/rhc-shared-components/commit/68e3e76f8924cabd581baeace07e9afeef20d36b))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## [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)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## [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)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [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)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
# [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)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* added onClick handler ([fe16865](https://gitlab.cee.redhat.com/dxp/customer-portal/rhc-shared-components/commit/fe16865db144788924efdf29c210e7775bce7edb))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## [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)
|
|
110
|
+
|
|
111
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
## [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)
|
|
118
|
+
|
|
119
|
+
**Note:** Version bump only for package @rhc-shared-components/form-group-container
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
# 0.1.0 (2021-09-16)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Features
|
|
129
|
+
|
|
130
|
+
* 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
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;
|
package/dist/index.modern.js
CHANGED
|
@@ -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
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Form group container for Red Hat certified technology apps",
|
|
5
5
|
"author": "gautamkrishnar",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"eslint-plugin-standard": "^4.0.1",
|
|
55
55
|
"gh-pages": "^2.2.0",
|
|
56
56
|
"microbundle": "^0.13.3",
|
|
57
|
-
"node-sass": "^4.0.0",
|
|
58
57
|
"npm-run-all": "^4.1.5",
|
|
59
58
|
"prettier": "^2.0.4",
|
|
60
59
|
"react-scripts": "^3.4.1",
|
|
61
60
|
"rimraf": "^3.0.2",
|
|
61
|
+
"sass": "^1.57.1",
|
|
62
62
|
"typescript": "^3.7.5"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@patternfly/react-core": "^4.
|
|
68
|
+
"@patternfly/react-core": "^4.276.6",
|
|
69
69
|
"formik": "^2.1.4",
|
|
70
70
|
"react": "^16.13.1",
|
|
71
71
|
"react-dom": "^16.13.1"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "9b859638f0e80c5a77f3660defbe00edcab15840"
|
|
77
77
|
}
|