@symbo.ls/tooltip 1.1.1 → 1.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.
Files changed (2) hide show
  1. package/index.js +32 -5
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -1,10 +1,37 @@
1
1
  'use strict'
2
2
 
3
- import style from './style'
3
+ import { Flex } from '@symbo.ls/atoms'
4
4
 
5
5
  export const Tooltip = {
6
- style,
7
- props: { theme: 'purple2' },
8
- caption: 'And tooltip is coming',
9
- span: 'and winter too'
6
+ extend: Flex,
7
+ props: {
8
+ background: 'black',
9
+ color: 'white',
10
+ flow: 'column',
11
+ shape: 'tooltip',
12
+ shapeDirection: 'top',
13
+ padding: 'Z1 A',
14
+ round: 'Y2',
15
+ minWidth: 'D2',
16
+ gap: 'X',
17
+ textAlign: 'center',
18
+
19
+ title: {
20
+ fontWeight: 500,
21
+ color: 'gray12',
22
+ text: 'And tooltip is coming'
23
+ },
24
+ p: {
25
+ fontSize: 'Z2',
26
+ margin: '0',
27
+ color: 'gray6',
28
+ text: 'and winter too',
29
+ fontWeight: '400'
30
+ }
31
+ },
32
+
33
+ attr: { tooltip: true },
34
+
35
+ title: {},
36
+ p: {}
10
37
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@symbo.ls/tooltip",
3
- "version": "1.1.1",
3
+ "version": "1.2.5",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "12925f3ed5a651a53282e32d28f21c015d3875e0",
6
+ "gitHead": "8f97205ca57c54560c3f7489c518e2153c5c9b5e",
7
7
  "dependencies": {
8
- "@symbo.ls/shape": "latest"
8
+ "@symbo.ls/atoms": "latest"
9
9
  },
10
10
  "source": "src/index.js"
11
11
  }