@volverjs/style 0.1.2-beta-12 → 0.1.2-beta-13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volverjs/style",
3
- "version": "0.1.2-beta-12",
3
+ "version": "0.1.2-beta-13",
4
4
  "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
5
5
  "main": "dist/style.css",
6
6
  "style": "dist/style.css",
@@ -63,6 +63,8 @@
63
63
  "./scss/components/vv-text": "./src/components/vv-text.scss",
64
64
  "./components/vv-textarea": "./dist/components/vv-textarea.css",
65
65
  "./scss/components/vv-textarea": "./src/components/vv-textarea.scss",
66
+ "./components/vv-tooltip": "./dist/components/vv-tooltip.css",
67
+ "./scss/components/vv-tooltip": "./src/components/vv-tooltip.scss",
66
68
  "./export": "./dist/export.css",
67
69
  "./scss/export": "./src/export.scss",
68
70
  "./props/animation": "./dist/props/animation.css",
package/src/_config.scss CHANGED
@@ -32,4 +32,5 @@ $components-names: (
32
32
  vv-table: $components-prefix + -table,
33
33
  vv-text: $components-prefix + -text,
34
34
  vv-textarea: $components-prefix + -textarea,
35
+ vv-tooltip: $components-prefix + -tooltip,
35
36
  ) !default;
@@ -18,3 +18,4 @@
18
18
  @import 'vv-table';
19
19
  @import 'vv-text';
20
20
  @import 'vv-textarea';
21
+ @import 'vv-tooltip';
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @import '../context';
3
+
4
+ $component-name: map.get($components-names, vv-tooltip);
5
+ $component-map: $vv-tooltip;
6
+
7
+ @include spread-map-into-bem(
8
+ $map: $component-map,
9
+ $block: $component-name,
10
+ $props: $use-custom-props-for-components,
11
+ $zero-specificity: $zero-specificity-for-compoenents
12
+ );
@@ -35,3 +35,4 @@
35
35
  @import 'components/vv-table';
36
36
  @import 'components/vv-text';
37
37
  @import 'components/vv-textarea';
38
+ @import 'components/vv-tooltip';
@@ -0,0 +1,77 @@
1
+ $vv-tooltip: (
2
+ position: relative,
3
+ display: inline-flex,
4
+ align-items: center,
5
+ element: (
6
+ content: (
7
+ opacity: 0,
8
+ position: absolute,
9
+ z-index: var(--z-tooltip),
10
+ display: block,
11
+ min-width: var(--spacing-160),
12
+ border-radius: var(--rounded-md),
13
+ border-width: 2px,
14
+ border-style: solid,
15
+ border-color: var(--color-gray-darken-4),
16
+ padding: var(--spacing-4) var(--spacing-sm),
17
+ margin: 0 0 0 var(--spacing-xs),
18
+ background: var(--color-gray-darken-4),
19
+ font-size: var(--text-12),
20
+ font-weight: var(--font-normal),
21
+ color: var(--color-gray-lighten-5),
22
+ text-align: center,
23
+ inset-inline: 100% auto,
24
+ inset-block: auto,
25
+ filter: drop-shadow(0 0 0.2rem var(--color-gray-darken-4)),
26
+ ),
27
+ ),
28
+ modifier: (
29
+ top: (
30
+ element: (
31
+ content: (
32
+ margin: 0 0 var(--spacing-xs) 0,
33
+ inset-inline: auto,
34
+ inset-block: auto 100%,
35
+ ),
36
+ ),
37
+ ),
38
+ right: (
39
+ element: (
40
+ content: (
41
+ margin: 0 0 0 var(--spacing-xs),
42
+ inset-inline: 100% auto,
43
+ inset-block: auto,
44
+ ),
45
+ ),
46
+ ),
47
+ bottom: (
48
+ element: (
49
+ content: (
50
+ margin: var(--spacing-xs) 0 0 0,
51
+ inset-inline: auto,
52
+ inset-block: 100% auto,
53
+ ),
54
+ ),
55
+ ),
56
+ left: (
57
+ element: (
58
+ content: (
59
+ margin: 0 var(--spacing-xs) 0 0,
60
+ inset-inline: auto 100%,
61
+ inset-block: auto,
62
+ ),
63
+ ),
64
+ ),
65
+ ),
66
+ state: (
67
+ hover: (
68
+ element: (
69
+ content: (
70
+ opacity: 1,
71
+ will-change: opacity,
72
+ transition: opacity 0.3s ease-in-out,
73
+ ),
74
+ ),
75
+ ),
76
+ ),
77
+ ) !default;