@rescui/tooltip 0.4.3 → 0.4.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.
package/lib/index.css CHANGED
@@ -1,10 +1,10 @@
1
- ._tooltip_108a2tf_4{
1
+ ._tooltip_825sym_4{
2
2
  position:relative;
3
3
  }
4
- ._closing_108a2tf_8{
4
+ ._closing_825sym_8{
5
5
  pointer-events:none;
6
6
  }
7
- ._content_108a2tf_12{
7
+ ._content_825sym_12{
8
8
  letter-spacing:0.0045em;
9
9
  font-family:'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif;
10
10
  font-family:var(--rs-font-family-ui, var(--rs-font-family-jb-sans, 'JetBrains Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Droid Sans', 'Helvetica Neue', Arial, sans-serif));
@@ -13,10 +13,10 @@
13
13
  line-height:20px;
14
14
  line-height:var(--rs-text-3-line-height, 20px);
15
15
  }
16
- ._rs-reset-letter-spacing_108a2tf_1 ._content_108a2tf_12{
16
+ ._rs-reset-letter-spacing_825sym_1 ._content_825sym_12{
17
17
  letter-spacing:normal;
18
18
  }
19
- ._content_108a2tf_12 {
19
+ ._content_825sym_12 {
20
20
 
21
21
  max-width:283px;
22
22
 
@@ -37,52 +37,52 @@
37
37
  -webkit-transform:translate(0, 0);
38
38
  transform:translate(0, 0);
39
39
  }
40
- [data-real-placement='top-end'] ._content_108a2tf_12,
41
- [data-real-placement='bottom-end'] ._content_108a2tf_12{
40
+ [data-real-placement='top-end'] ._content_825sym_12,
41
+ [data-real-placement='bottom-end'] ._content_825sym_12{
42
42
  margin-right:0;
43
43
  }
44
- [data-real-placement='top-start'] ._content_108a2tf_12,
45
- [data-real-placement='bottom-start'] ._content_108a2tf_12{
44
+ [data-real-placement='top-start'] ._content_825sym_12,
45
+ [data-real-placement='bottom-start'] ._content_825sym_12{
46
46
  margin-left:0;
47
47
  }
48
- [data-real-placement='left-end'] ._content_108a2tf_12,
49
- [data-real-placement='right-end'] ._content_108a2tf_12{
48
+ [data-real-placement='left-end'] ._content_825sym_12,
49
+ [data-real-placement='right-end'] ._content_825sym_12{
50
50
  margin-bottom:0;
51
51
  }
52
- [data-real-placement='left-start'] ._content_108a2tf_12,
53
- [data-real-placement='right-start'] ._content_108a2tf_12{
52
+ [data-real-placement='left-start'] ._content_825sym_12,
53
+ [data-real-placement='right-start'] ._content_825sym_12{
54
54
  margin-top:0;
55
55
  }
56
- ._initial_108a2tf_47 ._content_108a2tf_12{
56
+ ._initial_825sym_47 ._content_825sym_12{
57
57
  -webkit-transition:none;
58
58
  transition:none;
59
59
  }
60
- ._closing_108a2tf_8 ._content_108a2tf_12{
60
+ ._closing_825sym_8 ._content_825sym_12{
61
61
  -webkit-transition-duration:200ms, 200ms;
62
62
  transition-duration:200ms, 200ms;
63
63
  }
64
- ._initial_108a2tf_47 ._content_108a2tf_12,
65
- ._closing_108a2tf_8 ._content_108a2tf_12{
64
+ ._initial_825sym_47 ._content_825sym_12,
65
+ ._closing_825sym_8 ._content_825sym_12{
66
66
  opacity:0;
67
67
  }
68
- ._initial_108a2tf_47[data-real-placement^='top'] ._content_108a2tf_12, ._closing_108a2tf_8[data-real-placement^='top'] ._content_108a2tf_12{
68
+ ._initial_825sym_47[data-real-placement^='top'] ._content_825sym_12, ._closing_825sym_8[data-real-placement^='top'] ._content_825sym_12{
69
69
  -webkit-transform:translate(0, 10px);
70
70
  transform:translate(0, 10px);
71
71
  }
72
- ._initial_108a2tf_47[data-real-placement^='right'] ._content_108a2tf_12, ._closing_108a2tf_8[data-real-placement^='right'] ._content_108a2tf_12{
72
+ ._initial_825sym_47[data-real-placement^='right'] ._content_825sym_12, ._closing_825sym_8[data-real-placement^='right'] ._content_825sym_12{
73
73
  -webkit-transform:translate(-10px, 0);
74
74
  transform:translate(-10px, 0);
75
75
  }
76
- ._initial_108a2tf_47[data-real-placement^='bottom'] ._content_108a2tf_12, ._closing_108a2tf_8[data-real-placement^='bottom'] ._content_108a2tf_12{
76
+ ._initial_825sym_47[data-real-placement^='bottom'] ._content_825sym_12, ._closing_825sym_8[data-real-placement^='bottom'] ._content_825sym_12{
77
77
  -webkit-transform:translate(0, -10px);
78
78
  transform:translate(0, -10px);
79
79
  }
80
- ._initial_108a2tf_47[data-real-placement^='left'] ._content_108a2tf_12, ._closing_108a2tf_8[data-real-placement^='left'] ._content_108a2tf_12{
80
+ ._initial_825sym_47[data-real-placement^='left'] ._content_825sym_12, ._closing_825sym_8[data-real-placement^='left'] ._content_825sym_12{
81
81
  -webkit-transform:translate(10px, 0);
82
82
  transform:translate(10px, 0);
83
83
  }
84
- ._trigger_108a2tf_81:focus-visible,
85
- ._trigger_108a2tf_81:focus[data-focus-method='key']{
84
+ ._trigger_825sym_81:focus-visible,
85
+ ._trigger_825sym_81:focus[data-focus-method='key']{
86
86
  outline:none;
87
87
  -webkit-box-shadow:rgba(107, 87, 255, 0.8) 0 0 0 4px;
88
88
  -webkit-box-shadow:var(--rs-color-primary-t-dim-light-theme, rgba(107, 87, 255, 0.8)) 0 0 0 4px;
@@ -1,9 +1,9 @@
1
1
  var styles = {
2
- "tooltip": "_tooltip_108a2tf_4",
3
- "closing": "_closing_108a2tf_8",
4
- "content": "_content_108a2tf_12",
5
- "rs-reset-letter-spacing": "_rs-reset-letter-spacing_108a2tf_1",
6
- "initial": "_initial_108a2tf_47",
7
- "trigger": "_trigger_108a2tf_81"
2
+ "tooltip": "_tooltip_825sym_4",
3
+ "closing": "_closing_825sym_8",
4
+ "content": "_content_825sym_12",
5
+ "rs-reset-letter-spacing": "_rs-reset-letter-spacing_825sym_1",
6
+ "initial": "_initial_825sym_47",
7
+ "trigger": "_trigger_825sym_81"
8
8
  };
9
9
  export { styles as default };
package/lib/tooltip.d.ts CHANGED
@@ -18,16 +18,16 @@ export declare type TooltipChildren = ChildrenFunc | React.ReactNode;
18
18
  export declare type TooltipPlacement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
19
19
  export interface TooltipProps {
20
20
  /**
21
- * target node or `({targetProps}) => node` function
21
+ * Target node or `({targetProps}) => node` function
22
22
  * @type (arg: { targetProps: TriggerTargetProps; }) => ReactNode | ReactNode
23
23
  */
24
24
  children: TooltipChildren;
25
25
  /**
26
- * wrapper component type if children is not a function
26
+ * Wrapper component type if children is not a function
27
27
  */
28
28
  targetComponent?: string;
29
29
  /**
30
- * tooltip content
30
+ * Tooltip content
31
31
  */
32
32
  content?: React.ReactNode;
33
33
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/tooltip",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -28,13 +28,13 @@
28
28
  "react-dom": ">=16.8.0 <18"
29
29
  },
30
30
  "devDependencies": {
31
- "@rescui/colors": "^0.1.3",
31
+ "@rescui/colors": "^0.1.4",
32
32
  "@rescui/scripts": "^0.1.7",
33
- "@rescui/typography": "^0.8.0",
33
+ "@rescui/typography": "^0.8.1",
34
34
  "@types/react-is": "^17.0.3"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "rescui-scripts build"
38
38
  },
39
- "gitHead": "8d0a38b912d49bd0eaa81ee1e9b3d68ae1614152"
39
+ "gitHead": "a5f17fe15635423a27d4f69cdacd3c24bae7e80b"
40
40
  }