@vue-interface/tooltip 2.0.1 → 2.0.3

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/LICENSE CHANGED
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Tooltip
2
+
3
+ The `tooltip` component provides flexible tooltips with customizable placement options.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm i @vue-interface/tooltip
9
+ ```
10
+
11
+ ```bash
12
+ yarn add @vue-interface/tooltip
13
+ ```
14
+
15
+ ```bash
16
+ pnpm i @vue-interface/tooltip
17
+ ```
18
+
19
+ ```bash
20
+ bun i @vue-interface/tooltip
21
+ ```
22
+
23
+ ## Basic Usage
24
+
25
+ Tooltips can be positioned at the top, bottom, left, or right of the target element using standard attributes.
26
+
27
+ ```html
28
+ <a href="#" title="Top" data-tooltip-placement="top">Top</a>
29
+ <a href="#" title="Bottom" data-tooltip-placement="bottom">Bottom</a>
30
+ <a href="#" title="Left" data-tooltip-placement="left">Left</a>
31
+ <a href="#" title="Right" data-tooltip-placement="right">Right</a>
32
+ ```
33
+
34
+ ## Via Directive
35
+
36
+ You can also use the `v-tooltip` directive for a more concise syntax.
37
+
38
+ ```html
39
+ <button
40
+ v-tooltip="{
41
+ title: 'Top',
42
+ placement: 'top'
43
+ }">
44
+ Top
45
+ </button>
46
+ ```
47
+
48
+ For more comprehensive documentation and examples, please visit the [online documentation](https://vue-interface.github.io/packages/tooltip/).
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@vue-interface/tooltip",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "A Vue tooltip component.",
5
+ "readme": "README.md",
5
6
  "type": "module",
6
7
  "main": "./dist/tooltip.umd.js",
7
8
  "module": "./dist/tooltip.js",
@@ -28,7 +29,7 @@
28
29
  "Bootstrap"
29
30
  ],
30
31
  "author": "Justin Kimbrell",
31
- "license": "ISC",
32
+ "license": "MIT",
32
33
  "bugs": {
33
34
  "url": "https://github.com/vue-interface/vue-interface.github.io"
34
35
  },
@@ -46,7 +47,8 @@
46
47
  "files": [
47
48
  "dist",
48
49
  "index.css",
49
- "index.ts"
50
+ "README.md",
51
+ "LICENSE"
50
52
  ],
51
53
  "publishConfig": {
52
54
  "access": "public"
package/index.ts DELETED
@@ -1,8 +0,0 @@
1
- import Tooltip from './src/Tooltip.vue';
2
- import { TooltipDirective, TooltipPlugin } from './src/TooltipPlugin';
3
-
4
- export {
5
- Tooltip,
6
- TooltipDirective,
7
- TooltipPlugin
8
- };