@rhc-shared-components/form-group-container 0.2.1 → 0.2.5

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/dist/index.js CHANGED
@@ -40,4 +40,3 @@ var FormGroupContainer = function FormGroupContainer(_ref) {
40
40
  };
41
41
 
42
42
  exports.FormGroupContainer = FormGroupContainer;
43
- //# sourceMappingURL=index.js.map
@@ -40,4 +40,3 @@ var FormGroupContainer = function FormGroupContainer(_ref) {
40
40
  };
41
41
 
42
42
  export { FormGroupContainer };
43
- //# sourceMappingURL=index.modern.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/form-group-container",
3
- "version": "0.2.1",
3
+ "version": "0.2.5",
4
4
  "description": "Form group container for Red Hat certified technology apps",
5
5
  "author": "gautamkrishnar",
6
6
  "license": "MIT",
@@ -12,7 +12,9 @@
12
12
  "node": ">=10"
13
13
  },
14
14
  "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
15
+ "build": "microbundle-crl --no-sourcemap --no-compress --format modern,cjs",
16
+ "clean": "rimraf dist",
17
+ "prepare": "run-s clean build",
16
18
  "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
19
  "test": "run-s test:unit test:lint test:build",
18
20
  "test:build": "run-s build",
@@ -24,7 +26,8 @@
24
26
  },
25
27
  "peerDependencies": {
26
28
  "@patternfly/react-core": ">=4.101.3",
27
- "react": ">=16.0.0"
29
+ "react": ">=16.13.1",
30
+ "react-dom": ">=16.13.1"
28
31
  },
29
32
  "devDependencies": {
30
33
  "@testing-library/jest-dom": "^4.2.4",
@@ -53,19 +56,21 @@
53
56
  "node-sass": "^6.0.1",
54
57
  "npm-run-all": "^4.1.5",
55
58
  "prettier": "^2.0.4",
56
- "react": "^16.13.1",
57
- "react-dom": "^16.13.1",
58
59
  "react-scripts": "^3.4.1",
60
+ "rimraf": "^3.0.2",
59
61
  "typescript": "^3.7.5"
60
62
  },
61
63
  "files": [
62
64
  "dist"
63
65
  ],
64
66
  "dependencies": {
65
- "@patternfly/react-core": "^4.101.3"
67
+ "@patternfly/react-core": "^4.101.3",
68
+ "formik": "^2.1.4",
69
+ "react": "^16.13.1",
70
+ "react-dom": "^16.13.1"
66
71
  },
67
72
  "publishConfig": {
68
73
  "access": "public"
69
74
  },
70
- "gitHead": "ea392e2995cce93065a627f7ecc53dba5178ad0c"
75
+ "gitHead": "15eb14f35c8f579e63e891d39e89e7b33129b1c5"
71
76
  }
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react';\nimport { FormGroup, ValidatedOptions } from '@patternfly/react-core';\n\nimport './style.scss';\n\ninterface FormGroupContainerProps {\n isValid?: boolean;\n helperTextInvalid?: string;\n fieldId: string;\n label?: string;\n labelIcon?: any;\n children: React.ReactNode;\n className?: string;\n isRequired?: boolean;\n helperText?: string;\n validated?: any;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n}\n\nconst FormGroupContainer: React.FC<FormGroupContainerProps> = ({\n children,\n helperTextInvalid,\n isValid,\n helperText,\n labelIcon,\n onClick,\n ...rest\n}) => {\n return (\n <FormGroup\n className='form-group'\n helperTextInvalid={helperTextInvalid}\n helperText={helperText}\n validated={isValid ? ValidatedOptions.default : ValidatedOptions.error}\n {...(labelIcon && { labelIcon: labelIcon })}\n {...(onClick && { onClick })}\n {...rest}\n >\n {children}\n </FormGroup>\n );\n};\n\nexport { FormGroupContainer };\n"],"names":["FormGroupContainer","children","helperTextInvalid","isValid","helperText","labelIcon","onClick","rest","React","FormGroup","className","validated","ValidatedOptions","error"],"mappings":";;;;;;;;;;;;;;;;;;;;IAmBMA,kBAAkB,GAAsC,SAAxDA,kBAAwD;MAC5DC,gBAAAA;MACAC,yBAAAA;MACAC,eAAAA;MACAC,kBAAAA;MACAC,iBAAAA;MACAC,eAAAA;MACGC;;AAEH,SACEC,mBAAA,CAACC,mBAAD;AACEC,IAAAA,SAAS,EAAC;AACVR,IAAAA,iBAAiB,EAAEA;AACnBE,IAAAA,UAAU,EAAEA;AACZO,IAAAA,SAAS,EAAER,OAAO,GAAGS,0BAAgB,WAAnB,GAA8BA,0BAAgB,CAACC;KAC5DR,SAAS,IAAI;AAAEA,IAAAA,SAAS,EAAEA;AAAb,KACbC,OAAO,IAAI;AAAEA,IAAAA,OAAO,EAAPA;AAAF,KACZC,KAPN,EASGN,QATH,CADF;AAaD;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.modern.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react';\nimport { FormGroup, ValidatedOptions } from '@patternfly/react-core';\n\nimport './style.scss';\n\ninterface FormGroupContainerProps {\n isValid?: boolean;\n helperTextInvalid?: string;\n fieldId: string;\n label?: string;\n labelIcon?: any;\n children: React.ReactNode;\n className?: string;\n isRequired?: boolean;\n helperText?: string;\n validated?: any;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n}\n\nconst FormGroupContainer: React.FC<FormGroupContainerProps> = ({\n children,\n helperTextInvalid,\n isValid,\n helperText,\n labelIcon,\n onClick,\n ...rest\n}) => {\n return (\n <FormGroup\n className='form-group'\n helperTextInvalid={helperTextInvalid}\n helperText={helperText}\n validated={isValid ? ValidatedOptions.default : ValidatedOptions.error}\n {...(labelIcon && { labelIcon: labelIcon })}\n {...(onClick && { onClick })}\n {...rest}\n >\n {children}\n </FormGroup>\n );\n};\n\nexport { FormGroupContainer };\n"],"names":["FormGroupContainer","children","helperTextInvalid","isValid","helperText","labelIcon","onClick","rest","React","FormGroup","className","validated","ValidatedOptions","error"],"mappings":";;;;;;;;;;;;;;;;;;;;IAmBMA,kBAAkB,GAAsC,SAAxDA,kBAAwD;MAC5DC,gBAAAA;MACAC,yBAAAA;MACAC,eAAAA;MACAC,kBAAAA;MACAC,iBAAAA;MACAC,eAAAA;MACGC;;AAEH,SACEC,aAAA,CAACC,SAAD;AACEC,IAAAA,SAAS,EAAC;AACVR,IAAAA,iBAAiB,EAAEA;AACnBE,IAAAA,UAAU,EAAEA;AACZO,IAAAA,SAAS,EAAER,OAAO,GAAGS,gBAAgB,WAAnB,GAA8BA,gBAAgB,CAACC;KAC5DR,SAAS,IAAI;AAAEA,IAAAA,SAAS,EAAEA;AAAb,KACbC,OAAO,IAAI;AAAEA,IAAAA,OAAO,EAAPA;AAAF,KACZC,KAPN,EASGN,QATH,CADF;AAaD;;;;"}