kamrify commited on
Commit
d9a0e98
·
1 Parent(s): 194c4d4

Update css file name

Browse files
docs/package.json CHANGED
@@ -16,7 +16,7 @@
16
  "@types/react": "^18.0.21",
17
  "@types/react-dom": "^18.0.6",
18
  "astro": "^2.7.0",
19
- "driver.js": "1.1.3-next.0",
20
  "react": "^18.0.0",
21
  "react-dom": "^18.0.0",
22
  "react-fast-marquee": "^1.6.0",
 
16
  "@types/react": "^18.0.21",
17
  "@types/react-dom": "^18.0.6",
18
  "astro": "^2.7.0",
19
+ "driver.js": "1.1.4-next.0",
20
  "react": "^18.0.0",
21
  "react-dom": "^18.0.0",
22
  "react-fast-marquee": "^1.6.0",
docs/pnpm-lock.yaml CHANGED
@@ -24,8 +24,8 @@ dependencies:
24
  specifier: ^2.7.0
25
  version: 2.7.0
26
  driver.js:
27
- specifier: 1.1.3-next.0
28
- version: 1.1.3-next.0
29
  react:
30
  specifier: ^18.0.0
31
  version: 18.2.0
@@ -1376,8 +1376,8 @@ packages:
1376
1377
  resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
1378
 
1379
- /[email protected].3-next.0:
1380
- resolution: {integrity: sha512-O2Lsz+f2TZ6Twp349MkFXd+2JVH8b2dQhlNUDIxkagFsJ6oxgTOnWdAqtYmv8cjSEgmu+IzWHfgkJukp7GcPUQ==}
1381
  dev: false
1382
 
1383
 
24
  specifier: ^2.7.0
25
  version: 2.7.0
26
  driver.js:
27
+ specifier: 1.1.4-next.0
28
+ version: 1.1.4-next.0
29
  react:
30
  specifier: ^18.0.0
31
  version: 18.2.0
 
1376
1377
  resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
1378
 
1379
+ /[email protected].4-next.0:
1380
+ resolution: {integrity: sha512-3pxb5HcBKbYKpJCsHxNU+dNwfds6iUTmI1H33l+r5EkMa/5Mb11B+jejvHL0gRvbzkwx/8d6VudCDIwyw4R9cg==}
1381
  dev: false
1382
 
1383
docs/src/components/examples/SimpleHighlight.tsx CHANGED
@@ -1,6 +1,6 @@
1
  import { useEffect } from "react";
2
  import { Config, driver } from "driver.js";
3
- import "driver.js/dist/driver.css";
4
 
5
  import type { DriveStep } from "driver.js";
6
 
 
1
  import { useEffect } from "react";
2
  import { Config, driver } from "driver.js";
3
+ import "driver.js/dist/driver.js.css";
4
 
5
  import type { DriveStep } from "driver.js";
6
 
docs/src/content/guides/basic-usage.mdx CHANGED
@@ -11,15 +11,15 @@ Once installed, you can import and start using the library. Given below is a sim
11
  <div id="simple-example">
12
  ```js
13
  import Driver from 'driver.js';
14
- import 'driver.js/dist/driver.min.css';
15
 
16
  const driver = new Driver();
17
  driver.highlight({
18
- element: '#some-element',
19
- popover: {
20
- title: 'Title for the Popover',
21
- description: 'Description for it',
22
- },
23
  });
24
  ```
25
  <SimpleHighlight step={{
 
11
  <div id="simple-example">
12
  ```js
13
  import Driver from 'driver.js';
14
+ import 'driver.js/dist/driver.js.css';
15
 
16
  const driver = new Driver();
17
  driver.highlight({
18
+ element: '#some-element',
19
+ popover: {
20
+ title: 'Title for the Popover',
21
+ description: 'Description for it',
22
+ },
23
  });
24
  ```
25
  <SimpleHighlight step={{
vite.config.ts CHANGED
@@ -24,7 +24,7 @@ module.exports = defineConfig({
24
  rollupOptions: {
25
  output: {
26
  assetFileNames: assetInfo => {
27
- return assetInfo.name === "style.css" ? `${packageName}.css` : assetInfo.name;
28
  },
29
  },
30
  },
 
24
  rollupOptions: {
25
  output: {
26
  assetFileNames: assetInfo => {
27
+ return assetInfo.name === "style.css" ? `driver.css` : assetInfo.name;
28
  },
29
  },
30
  },