Skip to content

Commit

Permalink
🐛 fix: expose stylesheet correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
niketpathak committed May 3, 2024
1 parent 0c900ae commit 6792e9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ require('typeahead-standalone/dist/basic.css');
<script src="https://cdn.jsdelivr.net/npm/typeahead-standalone"></script>

<!-- or use unpkg.com to get a specific version -->
<link rel="stylesheet" href="https://unpkg.com/[email protected].3/dist/basic.css" />
<script src="https://unpkg.com/[email protected].3/dist/typeahead-standalone.umd.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected].4/dist/basic.css" />
<script src="https://unpkg.com/[email protected].4/dist/typeahead-standalone.umd.js"></script>
```
The library will be available as a global object at **`window.typeahead`**

Expand Down
10 changes: 5 additions & 5 deletions docs/pages/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h4><a href="#install?id=cdn" id="cdn" title="Install typeahead-standalone.js vi
<p>The above links, by default, point to the latest version of typeahead-standalone.js</p>
</div>
<div class="tab-pane fade" id="nav-unpkg" role="tabpanel" aria-labelledby="nav-unpkg-tab">
<a class="simple-link" href="https://unpkg.com/[email protected].3/dist/typeahead-standalone.umd.js">
<a class="simple-link" href="https://unpkg.com/[email protected].4/dist/typeahead-standalone.umd.js">
<img src="./assets/img/logos/unpkg_logo.png" alt="Unpkg typeahead-standalone CDN Logo" width="100px">
</a>

Expand All @@ -91,14 +91,14 @@ <h4><a href="#install?id=cdn" id="cdn" title="Install typeahead-standalone.js vi
<span class="lang">HTML</span>
<span class="copy" title="Copy to Clipboard"><i class="far fa-copy"></i></span>
<pre
class="hljs language-html language-xml">&#60;script src="https://unpkg.com/[email protected].3/dist/typeahead-standalone.umd.js"&#62;&#60;/script&#62;</pre>
class="hljs language-html language-xml">&#60;script src="https://unpkg.com/[email protected].4/dist/typeahead-standalone.umd.js"&#62;&#60;/script&#62;</pre>
</div>
<p>Include the <code>CSS</code> (Optional, we recommend to override the default styling)</p>
<div class="codeContainer">
<span class="lang">HTML</span>
<span class="copy" title="Copy to Clipboard"><i class="far fa-copy"></i></span>
<pre
class="hljs language-html language-xml">&#60;link rel="stylesheet" href="https://unpkg.com/[email protected].3/dist/basic.css" /&#62;</pre>
class="hljs language-html language-xml">&#60;link rel="stylesheet" href="https://unpkg.com/[email protected].4/dist/basic.css" /&#62;</pre>
</div>
<p>The above links can be used to link to a specific version of typeahead-standalone.js</p>
</div>
Expand All @@ -115,10 +115,10 @@ <h4><a href="#install?id=direct-download" id="direct-download" title="Install ty

<div class="codeContainer">
<span class="copy" title="Copy to Clipboard"><i class="far fa-copy"></i></span>
<pre class="hljs">https://registry.npmjs.org/typeahead-standalone/-/typeahead-standalone-4.25.3.tgz</pre>
<pre class="hljs">https://registry.npmjs.org/typeahead-standalone/-/typeahead-standalone-4.25.4.tgz</pre>
</div>

where <code>4.25.3</code> refers to the version number. To use another version, replace the version in the above url by
where <code>4.25.4</code> refers to the version number. To use another version, replace the version in the above url by
the desired version.
All available versions/releases are listed on <a href="https://github.com/digitalfortress-tech/typeahead-standalone/releases">github</a>.

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"title": "typeahead-standalone",
"description": "A fast fully-featured standalone autocomplete library",
"version": "4.25.3",
"version": "4.25.4",
"homepage": "https://typeahead.digitalfortress.tech",
"license": "MIT",
"scripts": {
Expand Down Expand Up @@ -31,11 +31,13 @@
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/typeahead-standalone.es.mjs"
"default": "./dist/typeahead-standalone.es.mjs",
"/dist/basic.css": "./dist/basic.css"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/typeahead-standalone.umd.js"
"default": "./dist/typeahead-standalone.umd.js",
"/dist/basic.css": "./dist/basic.css"
}
}
},
Expand Down

0 comments on commit 6792e9b

Please sign in to comment.