diff --git a/.changeset/silly-crabs-walk.md b/.changeset/silly-crabs-walk.md new file mode 100644 index 000000000..5d0f04d20 --- /dev/null +++ b/.changeset/silly-crabs-walk.md @@ -0,0 +1,7 @@ +--- +"@tabler/core": patch +"@tabler/preview": patch +--- + +Added Driver.js library integration and Tour demo page for interactive product tours and onboarding guides. + diff --git a/core/libs.json b/core/libs.json index 00a57a7d7..e9fe1cc5b 100644 --- a/core/libs.json +++ b/core/libs.json @@ -166,5 +166,14 @@ "dist/turbo.es2017-umd.js" ], "head": true + }, + "driver.js": { + "npm": "driver.js", + "js": [ + "dist/driver.js.iife.js" + ], + "css": [ + "dist/driver.css" + ] } } diff --git a/core/package.json b/core/package.json index 5a3162a74..c6f1cf2ec 100644 --- a/core/package.json +++ b/core/package.json @@ -178,7 +178,8 @@ "sortablejs": "^1.15.6", "star-rating.js": "^4.3.1", "tom-select": "^2.4.3", - "typed.js": "^2.1.0" + "typed.js": "^2.1.0", + "driver.js": "^1.0.0" }, "directories": { "doc": "docs" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 342f323b0..491fc0bc3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -130,6 +130,9 @@ importers: countup.js: specifier: ^2.9.0 version: 2.9.0 + driver.js: + specifier: ^1.0.0 + version: 1.4.0 dropzone: specifier: ^6.0.0-beta.2 version: 6.0.0-beta.2 @@ -1792,6 +1795,9 @@ packages: resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} engines: {node: '>=10'} + driver.js@1.4.0: + resolution: {integrity: sha512-Gm64jm6PmcU+si21sQhBrTAM1JvUrR0QhNmjkprNLxohOBzul9+pNHXgQaT9lW84gwg9GMLB3NZGuGolsz5uew==} + dropzone@6.0.0-beta.2: resolution: {integrity: sha512-k44yLuFFhRk53M8zP71FaaNzJYIzr99SKmpbO/oZKNslDjNXQsBTdfLs+iONd0U0L94zzlFzRnFdqbLcs7h9fQ==} @@ -5191,6 +5197,8 @@ snapshots: dotenv@8.6.0: {} + driver.js@1.4.0: {} + dropzone@6.0.0-beta.2: dependencies: '@swc/helpers': 0.2.14 diff --git a/preview/pages/tour.html b/preview/pages/tour.html new file mode 100644 index 000000000..6f92ec6e8 --- /dev/null +++ b/preview/pages/tour.html @@ -0,0 +1,223 @@ +--- +title: Driver Tour +page-header: Driver Tour +page-libs: [driver.js] +page-menu: plugins.tour +layout: default +permalink: tour.html +--- + +
+ Click the "Start Tour" button to begin an interactive tour of this page. + The tour will guide you through different elements and features. +
+This is the first card in our tour. It demonstrates how Driver.js highlights elements on the page.
+This card shows additional features and demonstrates the tour's ability to navigate between different + elements.
+This is a full-width card that demonstrates how the tour works with larger elements.
+| Name | +Status | +Role | ++ |
|---|---|---|---|
| John Doe | +{% include "ui/badge.html" text="Active" color="success" %} | +Developer | ++ {% include "ui/button.html" text="Edit" size="sm" href="#" %} + | +
| Jane Smith | +{% include "ui/badge.html" text="Pending" color="warning" %} | +Designer | ++ {% include "ui/button.html" text="Edit" size="sm" href="#" %} + | +
Configure your application settings here.
+Manage your team members and permissions.
+View your application statistics and reports.
+