@mongodb-js/compass-components 0.5.0 → 0.9.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.
Files changed (47) hide show
  1. package/lib/compass-ui-colors.d.ts +3 -0
  2. package/lib/compass-ui-colors.js +7 -0
  3. package/lib/compass-ui-colors.js.map +1 -0
  4. package/lib/components/accordion.d.ts +7 -0
  5. package/lib/components/accordion.js +71 -0
  6. package/lib/components/accordion.js.map +1 -0
  7. package/lib/components/cancel-loader.d.ts +8 -0
  8. package/lib/components/cancel-loader.js +64 -0
  9. package/lib/components/cancel-loader.js.map +1 -0
  10. package/lib/components/confirmation-modal.d.ts +3 -1
  11. package/lib/components/confirmation-modal.js +5 -0
  12. package/lib/components/confirmation-modal.js.map +1 -1
  13. package/lib/components/content-with-fallback.d.ts +17 -0
  14. package/lib/components/content-with-fallback.js +119 -0
  15. package/lib/components/content-with-fallback.js.map +1 -0
  16. package/lib/components/file-input.d.ts +20 -0
  17. package/lib/components/file-input.js +121 -0
  18. package/lib/components/file-input.js.map +1 -0
  19. package/lib/components/inline-definition.d.ts +7 -0
  20. package/lib/components/inline-definition.js +31 -0
  21. package/lib/components/inline-definition.js.map +1 -0
  22. package/lib/components/placeholder.d.ts +8 -0
  23. package/lib/components/placeholder.js +68 -0
  24. package/lib/components/placeholder.js.map +1 -0
  25. package/lib/components/resize-handle.d.ts +15 -0
  26. package/lib/components/resize-handle.js +117 -0
  27. package/lib/components/resize-handle.js.map +1 -0
  28. package/lib/components/spin-loader.d.ts +12 -0
  29. package/lib/components/spin-loader.js +53 -0
  30. package/lib/components/spin-loader.js.map +1 -0
  31. package/lib/components/tooltip.d.ts +13 -0
  32. package/lib/components/tooltip.js +52 -0
  33. package/lib/components/tooltip.js.map +1 -0
  34. package/lib/hooks/use-dom-rect.d.ts +5 -0
  35. package/lib/hooks/use-dom-rect.js +28 -0
  36. package/lib/hooks/use-dom-rect.js.map +1 -0
  37. package/lib/hooks/use-focus-hover.d.ts +14 -0
  38. package/lib/hooks/use-focus-hover.js +57 -0
  39. package/lib/hooks/use-focus-hover.js.map +1 -0
  40. package/lib/index.d.ts +39 -1
  41. package/lib/index.js +132 -1
  42. package/lib/index.js.map +1 -1
  43. package/lib/utils/merge-props.d.ts +2 -0
  44. package/lib/utils/merge-props.js +24 -0
  45. package/lib/utils/merge-props.js.map +1 -0
  46. package/package.json +45 -11
  47. package/lib/.esm-wrapper.mjs +0 -4
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-components",
3
- "version": "0.5.0",
3
+ "version": "0.9.0",
4
4
  "description": "React Components used in Compass",
5
5
  "license": "SSPL",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
8
+ "types": "./lib/index.d.ts",
9
+ "webpack": "./src/index.ts",
8
10
  "require": "./lib/index.js",
9
11
  "import": "./lib/.esm-wrapper.mjs"
10
12
  },
@@ -19,7 +21,7 @@
19
21
  "prepublishOnly": "npm run compile",
20
22
  "clean": "rimraf lib",
21
23
  "precompile": "npm run clean",
22
- "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./lib/.esm-wrapper.mjs",
24
+ "compile": "tsc -p tsconfig.json",
23
25
  "eslint": "eslint",
24
26
  "prettier": "prettier",
25
27
  "lint": "npm run eslint . && npm run prettier -- --check .",
@@ -33,32 +35,64 @@
33
35
  "reformat": "npm run prettier -- --write ."
34
36
  },
35
37
  "dependencies": {
36
- "@leafygreen-ui/confirmation-modal": "^2.2.1"
38
+ "@leafygreen-ui/badge": "^4.0.4",
39
+ "@leafygreen-ui/banner": "^3.0.8",
40
+ "@leafygreen-ui/button": "^12.0.5",
41
+ "@leafygreen-ui/card": "^5.1.3",
42
+ "@leafygreen-ui/checkbox": "^6.0.5",
43
+ "@leafygreen-ui/confirmation-modal": "^2.2.1",
44
+ "@leafygreen-ui/emotion": "^4.0.0",
45
+ "@leafygreen-ui/icon": "^11.4.0",
46
+ "@leafygreen-ui/icon-button": "^9.1.6",
47
+ "@leafygreen-ui/leafygreen-provider": "^2.1.2",
48
+ "@leafygreen-ui/logo": "^6.1.0",
49
+ "@leafygreen-ui/menu": "^11.0.1",
50
+ "@leafygreen-ui/modal": "^7.0.0",
51
+ "@leafygreen-ui/palette": "^3.2.2",
52
+ "@leafygreen-ui/portal": "^3.1.3",
53
+ "@leafygreen-ui/radio-box-group": "^6.1.4",
54
+ "@leafygreen-ui/segmented-control": "^0.9.1",
55
+ "@leafygreen-ui/select": "^3.0.8",
56
+ "@leafygreen-ui/tabs": "^5.1.3",
57
+ "@leafygreen-ui/text-area": "^4.0.3",
58
+ "@leafygreen-ui/text-input": "^6.0.3",
59
+ "@leafygreen-ui/toast": "^0.4.10",
60
+ "@leafygreen-ui/toggle": "^7.0.4",
61
+ "@leafygreen-ui/tokens": "^0.5.3",
62
+ "@leafygreen-ui/tooltip": "^6.2.2",
63
+ "@leafygreen-ui/typography": "^8.0.2",
64
+ "@mongodb-js/compass-logging": "^0.6.0",
65
+ "@react-aria/interactions": "^3.6.0",
66
+ "@react-aria/tooltip": "^3.1.3",
67
+ "@react-aria/utils": "^3.9.0",
68
+ "@react-stately/tooltip": "^3.0.5"
37
69
  },
38
70
  "peerDependencies": {
39
- "@leafygreen-ui/confirmation-modal": "^2.2.1",
71
+ "@emotion/css": "^11.5.0",
40
72
  "react": "^16.14.0"
41
73
  },
42
74
  "devDependencies": {
43
- "@mongodb-js/eslint-config-compass": "^0.3.0",
44
- "@mongodb-js/mocha-config-compass": "^0.3.0",
45
- "@mongodb-js/prettier-config-compass": "^0.2.0",
46
- "@mongodb-js/tsconfig-compass": "^0.2.0",
75
+ "@emotion/css": "^11.5.0",
76
+ "@mongodb-js/eslint-config-compass": "^0.5.0",
77
+ "@mongodb-js/mocha-config-compass": "^0.7.0",
78
+ "@mongodb-js/prettier-config-compass": "^0.4.0",
79
+ "@mongodb-js/tsconfig-compass": "^0.4.0",
80
+ "@testing-library/dom": "^8.11.1",
47
81
  "@testing-library/react": "^12.0.0",
82
+ "@testing-library/user-event": "^13.5.0",
48
83
  "@types/chai": "^4.2.21",
49
84
  "@types/chai-dom": "^0.0.10",
50
85
  "@types/mocha": "^9.0.0",
51
86
  "@types/react": "^17.0.5",
52
87
  "chai": "^4.3.4",
53
88
  "eslint": "^7.25.0",
54
- "jsdom-global": "^3.0.2",
55
89
  "mocha": "^8.4.0",
56
90
  "nyc": "^15.0.0",
57
91
  "prettier": "2.3.2",
58
92
  "react": "^16.14.0",
59
93
  "react-dom": "^16.14.0",
60
94
  "rimraf": "^3.0.2",
61
- "ts-node": "^10.1.0",
95
+ "sinon": "^9.0.0",
62
96
  "typescript": "^4.3.5"
63
97
  },
64
98
  "repository": {
@@ -69,5 +103,5 @@
69
103
  "publishConfig": {
70
104
  "access": "public"
71
105
  },
72
- "gitHead": "455c6523f99a08c6796480d59727b53bdfa441f0"
106
+ "gitHead": "542e3fa07d48435b1a7acc21c96de20562b843b3"
73
107
  }
@@ -1,4 +0,0 @@
1
- import mod from "./index.js";
2
-
3
- export default mod;
4
- export const ConfirmationModal = mod.ConfirmationModal;