@conveyorhq/arrow-ds 1.33.0 → 1.35.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 (33) hide show
  1. package/package.json +12 -10
  2. package/public/components/Tooltip/Tooltip.js +12 -2
  3. package/public/css/styles.css +1 -1
  4. package/public/css/styles.min.css.map +1 -1
  5. package/public/hooks/index.d.ts +3 -0
  6. package/public/hooks/index.js +7 -1
  7. package/public/hooks/useMatchMedia.d.ts +1 -0
  8. package/public/hooks/useMatchMedia.js +27 -0
  9. package/public/hooks/usePrefersReducedMotion.d.ts +1 -0
  10. package/public/hooks/usePrefersReducedMotion.js +9 -0
  11. package/public/hooks/useScreenOrientation.d.ts +1 -0
  12. package/public/hooks/useScreenOrientation.js +24 -0
  13. package/src/components/Tooltip/Tooltip.story.mdx +34 -0
  14. package/src/components/Tooltip/Tooltip.tsx +12 -2
  15. package/src/docs/Colors.story.mdx +1 -1
  16. package/src/docs/Spacing.story.mdx +4 -20
  17. package/src/docs/Tokens.story.mdx +230 -0
  18. package/src/docs/Typography.story.mdx +7 -82
  19. package/src/docs/hooks/useDisclosureHook.story.mdx +58 -0
  20. package/src/docs/hooks/useKeyPressHook.story.mdx +54 -0
  21. package/src/docs/hooks/useMatchMediaHook.story.mdx +42 -0
  22. package/src/docs/hooks/useOutsideClickHook.story.mdx +56 -0
  23. package/src/docs/hooks/usePrefersReducedMotion.story.mdx +61 -0
  24. package/src/docs/hooks/useScreenOrientationHook.story.mdx +56 -0
  25. package/src/docs/hooks/useStepHook.story.mdx +102 -0
  26. package/src/hooks/index.ts +3 -0
  27. package/src/hooks/useMatchMedia.ts +40 -0
  28. package/src/hooks/usePrefersReducedMotion.ts +9 -0
  29. package/src/hooks/useScreenOrientation.ts +27 -0
  30. package/public/components/useStep/ExampleSetupWizard.d.ts +0 -4
  31. package/public/components/useStep/ExampleSetupWizard.js +0 -33
  32. package/src/components/useStep/ExampleSetupWizard.tsx +0 -63
  33. package/src/components/useStep/useStep.story.mdx +0 -76
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.33.0",
5
+ "version": "1.35.0",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -101,13 +101,15 @@
101
101
  "@babel/preset-env": "^7.9.0",
102
102
  "@babel/preset-react": "^7.7.0",
103
103
  "@babel/preset-typescript": "^7.7.2",
104
- "@commitlint/cli": "^13.0.0",
105
- "@commitlint/config-conventional": "^13.0.0",
106
- "@storybook/addon-actions": "^6.4.18",
107
- "@storybook/addon-docs": "^6.4.18",
104
+ "@commitlint/cli": "^16.2.1",
105
+ "@commitlint/config-conventional": "^16.2.1",
106
+ "@storybook/addon-actions": "^v6.5.0-alpha.44",
107
+ "@storybook/addon-docs": "^v6.5.0-alpha.44",
108
108
  "@storybook/addon-postcss": "^2.0.0",
109
- "@storybook/react": "^6.4.18",
110
- "@storybook/theming": "^6.4.18",
109
+ "@storybook/builder-webpack5": "^6.4.19",
110
+ "@storybook/manager-webpack5": "^6.4.19",
111
+ "@storybook/react": "^v6.5.0-alpha.44",
112
+ "@storybook/theming": "^v6.5.0-alpha.44",
111
113
  "@types/classnames": "^2.2.9",
112
114
  "@types/codemirror": "^0.0.91",
113
115
  "@types/d3-ease": "^1.0.9",
@@ -130,7 +132,7 @@
130
132
  "babel-plugin-inline-react-svg": "^2.0.0",
131
133
  "copyfiles": "^2.4.1",
132
134
  "csso-cli": "^3.0.0",
133
- "eslint": "^7.22.0",
135
+ "eslint": "^7.32.0",
134
136
  "eslint-config-airbnb-typescript": "^12.3.1",
135
137
  "eslint-config-prettier": "^8.1.0",
136
138
  "eslint-formatter-pretty": "^4.0.0",
@@ -145,7 +147,7 @@
145
147
  "husky": "^3.1.0",
146
148
  "lodash.camelcase": "^4.3.0",
147
149
  "plop": "^2.5.3",
148
- "postcss": "^8.4.5",
150
+ "postcss": "^8.4.7",
149
151
  "postcss-cli": "^9.0.2",
150
152
  "postcss-import": "^14.0.2",
151
153
  "prettier": "^2.2.1",
@@ -156,7 +158,7 @@
156
158
  "regenerator-runtime": "^0.13.3",
157
159
  "semantic-release": "^19.0.2",
158
160
  "style-dictionary": "^3.1.1",
159
- "tailwindcss": "^3.0.18",
161
+ "tailwindcss": "^3.0.23",
160
162
  "ts-loader": "^6.2.1",
161
163
  "typescript": "^4.2.3",
162
164
  "webpack": "^5.0.0",
@@ -94,8 +94,18 @@ const Tooltip = (props) => {
94
94
  });
95
95
  const referenceElementWithMouseHandlers = !isVisibleProp
96
96
  ? react_1.cloneElement(referenceElement, {
97
- onMouseEnter: handleMouseEnter,
98
- onMouseLeave: handleMouseLeave,
97
+ onMouseEnter: () => {
98
+ handleMouseEnter();
99
+ if (typeof referenceElement.props.onMouseEnter === "function") {
100
+ referenceElement.props.onMouseEnter();
101
+ }
102
+ },
103
+ onMouseLeave: () => {
104
+ handleMouseLeave();
105
+ if (typeof referenceElement.props.onMouseLeave === "function") {
106
+ referenceElement.props.onMouseLeave();
107
+ }
108
+ },
99
109
  onFocus: () => {
100
110
  handleMouseEnter();
101
111
  if (typeof referenceElement.props.onFocus === "function") {
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  /*
41
- ! tailwindcss v3.0.18 | MIT License | https://tailwindcss.com
41
+ ! tailwindcss v3.0.23 | MIT License | https://tailwindcss.com
42
42
  */
43
43
 
44
44
  /*