@cypress-design/react-tooltip 0.4.0 → 0.4.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cypress-design/react-tooltip
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#164](https://github.com/cypress-io/cypress-design/pull/164) [`4fd951a`](https://github.com/cypress-io/cypress-design/commit/4fd951a39335900da2508beef9b3565a6f8f9518) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: update active buttons borders
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  ### Minor Changes
@@ -13,10 +13,10 @@ export default ({
13
13
  disabled?: boolean
14
14
  tabIndex?: number
15
15
  } = {}) => (
16
- <div className="center flex flex-col items-center gap-20">
16
+ <div className="flex flex-col items-center center gap-20">
17
17
  <Tooltip
18
- className="bg-red-200 p-4 w-1/2"
19
- popper={<div className="bg-jade-200 text-gray-800 p-4">PopovDyn</div>}
18
+ className="w-1/2 p-4 bg-red-200"
19
+ popper={<div className="p-4 text-gray-800 bg-jade-200">PopovDyn</div>}
20
20
  color={color}
21
21
  placement={placement}
22
22
  tabIndex={tabIndex}
@@ -25,7 +25,7 @@ export default ({
25
25
  <div>Hover Me (dynamic: {placement?.toString()})</div>
26
26
  </Tooltip>
27
27
  <Tooltip
28
- className="bg-red-200 p-4 w-1/2"
28
+ className="w-1/2 p-4 bg-red-200"
29
29
  popper={
30
30
  <div className="h-[200px] flex items-center justify-center">Popov</div>
31
31
  }
@@ -36,7 +36,7 @@ export default ({
36
36
  <div>Force Placement to the top</div>
37
37
  </Tooltip>
38
38
  <Tooltip
39
- className="bg-red-200 p-4 w-1/2"
39
+ className="w-1/2 p-4 bg-red-200"
40
40
  popper={<div>PopovInt</div>}
41
41
  color={color}
42
42
  placement={placement}
@@ -47,14 +47,14 @@ export default ({
47
47
  {(['top', 'right', 'bottom', 'left', 'top-start'] as const).map(
48
48
  (placement) => (
49
49
  <Tooltip
50
- className="bg-indigo-200 p-4 w-1/2"
50
+ className="w-1/2 p-4 bg-indigo-200"
51
51
  placement={placement}
52
52
  key={placement}
53
53
  color={color}
54
54
  tabIndex={tabIndex}
55
55
  disabled={disabled}
56
56
  popper={
57
- <div className="bg-jade-200 text-gray-800 p-4">
57
+ <div className="p-4 text-gray-800 bg-jade-200">
58
58
  Popover ({placement})
59
59
  </div>
60
60
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
- "name": "@cypress-design/react-tooltip",
3
- "version": "0.4.0",
4
- "files": [
5
- "*"
6
- ],
7
- "typings": "./dist/index.d.ts",
8
- "main": "./dist/index.umd.js",
9
- "module": "./dist/index.es.mjs",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/index.es.mjs",
13
- "require": "./dist/index.umd.js"
14
- }
15
- },
16
- "scripts": {
17
- "build": "yarn build:module && yarn build:types",
18
- "build:module": "rollup -c ./rollup.config.js",
19
- "build:types": "tsc --project ./tsconfig.build.json"
20
- },
21
- "dependencies": {
22
- "clsx": "*",
23
- "@floating-ui/react-dom-interactions": "^0.6.1"
24
- },
25
- "license": "MIT"
2
+ "name": "@cypress-design/react-tooltip",
3
+ "version": "0.4.1",
4
+ "files": [
5
+ "*"
6
+ ],
7
+ "typings": "./dist/index.d.ts",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.mjs",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.es.mjs",
13
+ "require": "./dist/index.umd.js"
14
+ }
15
+ },
16
+ "scripts": {
17
+ "build": "yarn build:module && yarn build:types",
18
+ "build:module": "rollup -c ./rollup.config.mjs",
19
+ "build:types": "tsc --project ./tsconfig.build.json"
20
+ },
21
+ "dependencies": {
22
+ "clsx": "*",
23
+ "@floating-ui/react-dom-interactions": "^0.6.1"
24
+ },
25
+ "license": "MIT"
26
26
  }
@@ -0,0 +1,3 @@
1
+ import rootRollupConfig from '../../root.rollup.config.mjs'
2
+
3
+ export default rootRollupConfig({ input: './index.ts' })
package/rollup.config.js DELETED
@@ -1,3 +0,0 @@
1
- import rootRollupConfig from '../../root.rollup.config'
2
-
3
- export default rootRollupConfig({ input: './index.ts' })