empower-container 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/README.md +378 -378
  2. package/build/asset-manifest.json +13 -0
  3. package/build/favicon.ico +0 -0
  4. package/build/index.html +1 -0
  5. package/build/logo192.png +0 -0
  6. package/build/logo512.png +0 -0
  7. package/build/manifest.json +25 -0
  8. package/build/robots.txt +3 -0
  9. package/build/static/css/main.e4990057.css +2 -0
  10. package/build/static/css/main.e4990057.css.map +1 -0
  11. package/build/static/js/main.ab1b6fc8.js +3 -0
  12. package/build/static/js/main.ab1b6fc8.js.LICENSE.txt +47 -0
  13. package/build/static/js/main.ab1b6fc8.js.map +1 -0
  14. package/dist/cjs/DatetimeFormatter.d.ts +3 -3
  15. package/dist/cjs/DatetimeFormatter.js +389 -389
  16. package/dist/cjs/Information.d.ts +10 -10
  17. package/dist/cjs/Information.js +63 -63
  18. package/dist/cjs/MenuBar.d.ts +24 -24
  19. package/dist/cjs/MenuBar.js +539 -539
  20. package/dist/cjs/Modal.d.ts +33 -33
  21. package/dist/cjs/Modal.js +44 -44
  22. package/dist/cjs/assets/Asset.d.ts +17 -17
  23. package/dist/cjs/assets/Asset.js +31 -31
  24. package/dist/cjs/constants/Constant.d.ts +15 -15
  25. package/dist/cjs/constants/Constant.js +35 -35
  26. package/dist/cjs/index.d.ts +3 -3
  27. package/dist/cjs/index.js +10 -10
  28. package/dist/cjs/inputs/Input.d.ts +25 -25
  29. package/dist/cjs/inputs/Input.js +106 -106
  30. package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
  31. package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
  32. package/dist/cjs/inputs/Select.d.ts +28 -28
  33. package/dist/cjs/inputs/Select.js +403 -403
  34. package/dist/esm/DatetimeFormatter.d.ts +3 -3
  35. package/dist/esm/DatetimeFormatter.js +385 -385
  36. package/dist/esm/Information.d.ts +10 -10
  37. package/dist/esm/Information.js +38 -38
  38. package/dist/esm/MenuBar.d.ts +24 -24
  39. package/dist/esm/MenuBar.js +534 -534
  40. package/dist/esm/Modal.d.ts +33 -33
  41. package/dist/esm/Modal.js +39 -39
  42. package/dist/esm/assets/Asset.d.ts +17 -17
  43. package/dist/esm/assets/Asset.js +28 -28
  44. package/dist/esm/constants/Constant.d.ts +15 -15
  45. package/dist/esm/constants/Constant.js +32 -32
  46. package/dist/esm/index.d.ts +3 -3
  47. package/dist/esm/index.js +3 -3
  48. package/dist/esm/inputs/Input.d.ts +25 -25
  49. package/dist/esm/inputs/Input.js +104 -104
  50. package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
  51. package/dist/esm/inputs/InputSelectionHandler.js +31 -31
  52. package/dist/esm/inputs/Select.d.ts +28 -28
  53. package/dist/esm/inputs/Select.js +399 -399
  54. package/dist/scss/components/_modal.scss +66 -66
  55. package/dist/scss/elements/_button.scss +142 -142
  56. package/dist/scss/elements/_index.scss +1 -1
  57. package/dist/scss/elements/_popover.scss +16 -16
  58. package/dist/scss/foundation/_colors.scss +59 -59
  59. package/dist/scss/foundation/_mixins.scss +40 -40
  60. package/dist/scss/foundation/_normalize.scss +203 -203
  61. package/dist/scss/foundation/_settings.scss +36 -36
  62. package/dist/scss/foundation/_typography.scss +94 -94
  63. package/dist/scss/library/_information.scss +72 -72
  64. package/dist/scss/library/_input.scss +37 -37
  65. package/dist/scss/library/_menubar.scss +241 -241
  66. package/dist/scss/library/_select.scss +399 -399
  67. package/dist/scss/style.scss +38 -38
  68. package/jest.config.ts +32 -0
  69. package/package.json +67 -64
  70. package/tscnofig.old +26 -26
@@ -1,39 +1,39 @@
1
- @import url("https://fonts.googleapis.com/css?family=Quicksand:400,700|Roboto:400,400i,700&display=swap");
2
-
3
- @import 'foundation/colors';
4
- @import 'foundation/settings';
5
- @import 'foundation/mixins';
6
- @import 'foundation/typography';
7
- @import 'foundation/normalize';
8
- @import 'components/modal';
9
- @import 'elements/button';
10
- @import 'elements/popover';
11
- @import 'library/input';
12
- @import 'library/menubar';
13
- @import 'library/select';
14
- @import 'library/information';
15
-
16
- body {
17
- font-family: 'Roboto', sans-serif;
18
- }
19
-
20
- * {
21
- box-sizing: border-box;
22
- margin: 0;
23
- padding: 0;
24
- }
25
-
26
- .em-close {
27
- height: 40px;
28
- width: 40px;
29
- min-width: 40px;
30
- padding: 10px;
31
- box-shadow: none;
32
- border-radius: $border-radius-md;
33
- transition: $transition;
34
- cursor: pointer;
35
-
36
- &:hover {
37
- background-color: $blue-light;
38
- }
1
+ @import url("https://fonts.googleapis.com/css?family=Quicksand:400,700|Roboto:400,400i,700&display=swap");
2
+
3
+ @import 'foundation/colors';
4
+ @import 'foundation/settings';
5
+ @import 'foundation/mixins';
6
+ @import 'foundation/typography';
7
+ @import 'foundation/normalize';
8
+ @import 'components/modal';
9
+ @import 'elements/button';
10
+ @import 'elements/popover';
11
+ @import 'library/input';
12
+ @import 'library/menubar';
13
+ @import 'library/select';
14
+ @import 'library/information';
15
+
16
+ body {
17
+ font-family: 'Roboto', sans-serif;
18
+ }
19
+
20
+ * {
21
+ box-sizing: border-box;
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+
26
+ .em-close {
27
+ height: 40px;
28
+ width: 40px;
29
+ min-width: 40px;
30
+ padding: 10px;
31
+ box-shadow: none;
32
+ border-radius: $border-radius-md;
33
+ transition: $transition;
34
+ cursor: pointer;
35
+
36
+ &:hover {
37
+ background-color: $blue-light;
38
+ }
39
39
  }
package/jest.config.ts ADDED
@@ -0,0 +1,32 @@
1
+
2
+ // import type { Config } from '@jest/types'
3
+
4
+
5
+ // const config: Config.InitialOptions = {
6
+ // roots: [
7
+ // "src/__tests__"
8
+ // ],
9
+ // transform: {
10
+ // "^.+\\.(ts|tsx|js)$": "babel-jest",
11
+ // "^.+\\.scss$": 'jest-scss-transform',
12
+ // },
13
+ // setupFilesAfterEnv: [
14
+ // "@testing-library/react",
15
+ // "@testing-library/jest-dom",
16
+ // "@testing-library/jest-dom/extend-expect"
17
+ // ],
18
+ // moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
19
+ // verbose: true,
20
+ // testEnvironment: "jsdom",
21
+ // reporters:[
22
+ // "default",
23
+ // ["jest-html-reporters", {
24
+ // "publicPath": "./html-report",
25
+ // "filename": "unit-testing.html",
26
+ // "openReport": true
27
+ // }]
28
+ // ]
29
+ // }
30
+
31
+ // export default config
32
+
package/package.json CHANGED
@@ -1,64 +1,67 @@
1
- {
2
- "name": "empower-container",
3
- "version": "0.1.30",
4
- "private": false,
5
- "homepage": "https://bitbucket.org/empowerteams/empower-container",
6
- "main": "./dist/cjs/ndex.js",
7
- "module": "./dist/esm/index.js",
8
- "types": "./dist/esm/index.d.ts",
9
- "dependencies": {
10
- "@testing-library/jest-dom": "^5.16.2",
11
- "@testing-library/react": "^12.1.4",
12
- "@testing-library/user-event": "^13.5.0",
13
- "@types/jest": "^27.4.1",
14
- "@types/node": "^16.11.26",
15
- "@types/react": "^17.0.43",
16
- "@types/react-dom": "^17.0.13",
17
- "html-to-text": "^8.1.0",
18
- "react": "^17.0.2",
19
- "react-date-range": "^1.4.0",
20
- "react-dom": "^17.0.2",
21
- "react-native": "^0.68.0",
22
- "react-native-render-html": "^6.3.4",
23
- "react-refresh": "^0.14.0",
24
- "react-scripts": "5.0.0",
25
- "sass": "^1.49.9",
26
- "scss": "^0.2.4",
27
- "stream": "0.0.2",
28
- "typescript": "^4.6.2",
29
- "util": "^0.12.4",
30
- "web-vitals": "^2.1.4"
31
- },
32
- "scripts": {
33
- "start": "react-scripts start",
34
- "build": "react-scripts build",
35
- "test": "react-scripts test",
36
- "eject": "react-scripts eject",
37
- "dist": "npm run build:esm && npm run build:cjs && npm run copy-files",
38
- "build:esm": "tsc -b src/main/",
39
- "build:cjs": "tsc -p src/main/tsconfig.common.json",
40
- "copy-files": "cp -r ./src/scss/ ./dist/",
41
- "dev": "npx tsc -p src/sample/tsconfig.json -w"
42
- },
43
- "eslintConfig": {
44
- "extends": [
45
- "react-app",
46
- "react-app/jest"
47
- ]
48
- },
49
- "browserslist": {
50
- "production": [
51
- ">0.2%",
52
- "not dead",
53
- "not op_mini all"
54
- ],
55
- "development": [
56
- "last 1 chrome version",
57
- "last 1 firefox version",
58
- "last 1 safari version"
59
- ]
60
- },
61
- "devDependencies": {
62
- "@types/react-date-range": "^1.4.3"
63
- }
64
- }
1
+ {
2
+ "name": "empower-container",
3
+ "version": "0.1.31",
4
+ "private": false,
5
+ "homepage": "https://bitbucket.org/empowerteams/empower-container",
6
+ "main": "./dist/cjs/ndex.js",
7
+ "module": "./dist/esm/index.js",
8
+ "types": "./dist/esm/index.d.ts",
9
+ "dependencies": {
10
+ "@testing-library/jest-dom": "^5.16.2",
11
+ "@testing-library/react": "^12.1.4",
12
+ "@testing-library/user-event": "^13.5.0",
13
+ "@types/jest": "^27.4.1",
14
+ "@types/node": "^16.11.26",
15
+ "@types/react": "^17.0.43",
16
+ "@types/react-dom": "^17.0.13",
17
+ "html-to-text": "^8.1.0",
18
+ "react": "^17.0.2",
19
+ "react-date-range": "^1.4.0",
20
+ "react-dom": "^17.0.2",
21
+ "react-native": "^0.68.0",
22
+ "react-native-render-html": "^6.3.4",
23
+ "react-refresh": "^0.14.0",
24
+ "react-scripts": "5.0.0",
25
+ "sass": "^1.49.9",
26
+ "scss": "^0.2.4",
27
+ "stream": "0.0.2",
28
+ "typescript": "^4.6.2",
29
+ "util": "^0.12.4",
30
+ "web-vitals": "^2.1.4"
31
+ },
32
+ "scripts": {
33
+ "start": "react-scripts start",
34
+ "build": "react-scripts build",
35
+ "test": "jest --coverage",
36
+ "test:watch": "jest --watch --coverage",
37
+ "eject": "react-scripts eject",
38
+ "dist": "npm run build:esm && npm run build:cjs && npm run copy-files",
39
+ "build:esm": "tsc -b src/main/",
40
+ "build:cjs": "tsc -p src/main/tsconfig.common.json",
41
+ "copy-files": "cp -r ./src/scss/ ./dist/",
42
+ "dev": "npx tsc -p src/sample/tsconfig.json -w"
43
+ },
44
+ "eslintConfig": {
45
+ "extends": [
46
+ "react-app",
47
+ "react-app/jest"
48
+ ]
49
+ },
50
+ "browserslist": {
51
+ "production": [
52
+ ">0.2%",
53
+ "not dead",
54
+ "not op_mini all"
55
+ ],
56
+ "development": [
57
+ "last 1 chrome version",
58
+ "last 1 firefox version",
59
+ "last 1 safari version"
60
+ ]
61
+ },
62
+ "devDependencies": {
63
+ "@babel/cli": "^7.17.10",
64
+ "@babel/preset-react": "^7.17.12",
65
+ "@types/react-date-range": "^1.4.3"
66
+ }
67
+ }
package/tscnofig.old CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
9
- "allowJs": true,
10
- "skipLibCheck": true,
11
- "esModuleInterop": true,
12
- "allowSyntheticDefaultImports": true,
13
- "strict": true,
14
- "forceConsistentCasingInFileNames": true,
15
- "noFallthroughCasesInSwitch": true,
16
- "module": "esnext",
17
- "moduleResolution": "node",
18
- "resolveJsonModule": true,
19
- "isolatedModules": true,
20
- "noEmit": true,
21
- "jsx": "react-jsx"
22
- },
23
- "include": [
24
- "src"
25
- ]
26
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": [
5
+ "dom",
6
+ "dom.iterable",
7
+ "esnext"
8
+ ],
9
+ "allowJs": true,
10
+ "skipLibCheck": true,
11
+ "esModuleInterop": true,
12
+ "allowSyntheticDefaultImports": true,
13
+ "strict": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "noFallthroughCasesInSwitch": true,
16
+ "module": "esnext",
17
+ "moduleResolution": "node",
18
+ "resolveJsonModule": true,
19
+ "isolatedModules": true,
20
+ "noEmit": true,
21
+ "jsx": "react-jsx"
22
+ },
23
+ "include": [
24
+ "src"
25
+ ]
26
+ }
27
27