Explorar el Código

Merge branch 'dev' of https://github.com/tabler/tabler into dev-css-props

codecalm hace 7 meses
padre
commit
b578ead846

+ 1 - 1
.changeset/short-rocks-battle.md

@@ -1,5 +1,5 @@
 ---
-"@tabler/core": patch
+"@tabler/core": minor
 ---
 
 Refactored the project into a monorepo, removed Gulp, and introduced a new, more efficient build process.

+ 5 - 0
.changeset/short-wombats-rhyme.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Use the full license agreement for illustrations in docs

+ 5 - 0
.changeset/silly-lobsters-move.md

@@ -0,0 +1,5 @@
+---
+
+---
+
+Improve documentation for buttons

+ 5 - 0
.changeset/thin-clouds-glow.md

@@ -0,0 +1,5 @@
+---
+"preview": patch
+---
+
+Update `robots.txt` handling and improve sitemap URL generation

+ 1 - 1
.github/workflows/release.yml

@@ -3,7 +3,7 @@ name: Release
 on:
   push:
     branches:
-      - main
+      - dev
 
 permissions:
   contents: read

+ 5 - 3
.gitignore

@@ -19,9 +19,11 @@ node_modules/
 /svg-tmp/
 /components/
 /percy.sh
-/src/pages/playground.html
-/src/pages/playground-*.html
-/src/pages/features.html
+/preview/pages/playground.html
+/preview/pages/playground-*.html
+/preview/pages/screenshot.html
+/preview/pages/screenshot-*.html
+/preview/pages/features.html
 
 .pnp.loader.mjs
 .pnp.cjs

+ 1 - 1
core/js/src/autosize.js

@@ -5,6 +5,6 @@ import autosize from 'autosize';
 const elements = document.querySelectorAll('[data-bs-toggle="autosize"]');
 if (elements.length) {
 	elements.forEach(function (element) {
-		autosize(element);
+		autosize && autosize(element);
 	});
 }

+ 1 - 1
core/js/src/input-mask.js

@@ -4,7 +4,7 @@ import IMask from 'imask';
 
 var maskElementList = [].slice.call(document.querySelectorAll('[data-mask]'));
 maskElementList.map(function (maskEl) {
-	return new IMask(maskEl, {
+	IMask && new IMask(maskEl, {
 		mask: maskEl.dataset.mask,
 		lazy: maskEl.dataset['mask-visible'] === 'true'
 	})

+ 74 - 6
docs/illustrations/introduction/license.mdx

@@ -2,21 +2,89 @@
 title: Tabler Illustrations License
 ---
 
-Codecalm.net grants you an on-going, non-exclusive license to use the Tabler Illustrations.
+### Personal License
+
+By purchasing Tabler Illustrations, you are granted an ongoing, non-exclusive license by codecalm.net to use Tabler Illustrations.
 
 The license grants permission to one individual (the Licensee) to access and use the Tabler Illustrations.
 
-## What You Can Do with Tabler Illustrations
+You **can**:
+
+* Use the Tabler Illustrations to create unlimited End Products.
+* Modify the Tabler Illustrations to create derivative Tabler Illustrations. Those Tabler Illustrations are subject to this license.
+* Use the Tabler Illustrations to create unlimited End Products for unlimited Clients.
+* Use the Tabler Illustrations to create End Products where the End Product is sold to End Users.
+
+You **cannot**:
+
+* Use the Tabler Illustrations to create End Products that are designed to allow an End User to build their own End Products using the Tabler Illustrations or derivatives of the Tabler Illustrations.
+* Re-distribute the Tabler Illustrations or derivatives of the Tabler Illustrations separately from an End Product, neither in code nor as design assets.
+* Share your access to the Tabler Illustrations with any other individuals. You need a Team License for that to be allowed.
+* Use the Tabler Illustrations to create End Products that are open source and freely available to End Users.
+* Use the Tabler Illustrations to produce anything that may be deemed by codecalm.net, in their sole and absolute discretion, to be competitive or in conflict with the business of codecalm.net
+
+
+#### Example usage
+
+Examples of usage **allowed** by the license:* Creating a personal website by yourself.
+* Creating a website or web application for a client that will be owned by that client.
+* Creating a commercial SaaS application (like an invoicing app for example) where end users have to pay a fee to use the application.
+* Creating a commercial self-hosted web application that is sold to end users for a one-time fee.
+
+Examples of usage **not allowed** by the license:
+
+* Creating a repository of your favorite Tabler Illustrations (or derivatives based on Tabler Illustrations) and publishing it publicly.
+* Creating a UI library using Tabler Illustrations and making it available either for sale or for free.
+* Converting a Tabler Illustrations to another framework and making it available either for sale or for free.
+* Creating a Figma or Sketch file based on the Tabler Illustrations.
+* Creating a "website builder" project where end users can build their own websites using illustrations included with or derived from Tabler Illustrations.
+* Creating a theme, template, or project starter kit using the illustrations and making it available either for sale or for free.
+* Creating a web application where the primary purpose is clearly not to simply re-distribute the illustrations (like a conference organization app that uses the illustrations for its UI for example) that is free and open source, where the source code is publicly available.
+
+In simple terms, use Tabler Illustrations for anything you like as long as it doesn't compete with Tabler Illustrations.
+
+### Team License
+
+By purchasing Tabler Illustrations, you are granted an ongoing, non-exclusive license by codecalm.net to use Tabler Illustrations.
+
+The license grants permission for up to 10 Employees and Contractors of the Licensee to access and use the Tabler Illustrations.
+
+You **can**:
 
 * Use the Tabler Illustrations to create unlimited End Products.
 * Modify the Tabler Illustrations to create derivative Tabler Illustrations. Those Tabler Illustrations are subject to this license.
 * Use the Tabler Illustrations to create unlimited End Products for unlimited Clients.
 * Use the Tabler Illustrations to create End Products where the End Product is sold to End Users.
 
-## What You Cannot Do with Tabler Illustrations
+You **cannot**:
 
 * Use the Tabler Illustrations to create End Products that are designed to allow an End User to build their own End Products using the Tabler Illustrations or derivatives of the Tabler Illustrations.
-* Re-distribute the Tabler Illustrations or derivatives of the Tabler Illustrations separately from an End Product, neither in code or as design assets.
-* Share your access to the Tabler Illustrations with any other individuals.
+* Re-distribute the Tabler Illustrations or derivatives of the Tabler Illustrations separately from an End Product.
+* Use the Tabler Illustrations to create End Products that are the property of any individual or entity other than the Licensee or Clients of the Licensee.
+* Grant access to the Tabler Illustrations to individuals who are not an Employee or Contractor of the Licensee.
 * Use the Tabler Illustrations to create End Products that are open source and freely available to End Users.
-* Use the Tabler Illustrations to produce anything that may be deemed by Codecalm.net, in their sole and absolute discretion, to be competitive or in conflict with the business of Codecalm.net
+* Use the Tabler Illustrations to produce anything that may be deemed by codecalm.net, in their sole and absolute discretion, to be competitive or in conflict with the business of codecalm.net
+
+#### Example usage
+
+Examples of usage **allowed** by the license:
+
+* Creating a website for your company.
+* Creating a website or web application for a client that will be owned by that client.
+* Creating a commercial SaaS application (like an invoicing app for example) where end users have to pay a fee to use the application.
+* Creating a commercial self-hosted web application that is sold to end users for a one-time fee.
+
+Examples of use **not allowed** by the license:
+
+* Creating a repository of your favorite Tabler Illustrations (or derivatives based on Tabler Illustrations) and publishing it publicly.
+* Creating a UI library using Tabler Illustrations and making it available either for sale or for free.
+* Converting a Tabler Illustrations to another framework and making it available either for sale or for free.
+* Creating a "website builder" project where end users can build their own websites using illustrations included with or derived from Tabler Illustrations.
+* Creating a theme or template using the illustrations and making it available either for sale or for free.
+* Creating any End Product that is not the sole property of either your company or a client of your company. For example your employees/contractors can't use your company Tabler Illustrations license to build their own websites or side projects.
+* Giving someone access to Tabler Illustrations when they purchase a product from you. For example, you can't use a Team License as a way to give someone access to Tabler Illustrations when they purchase an online course from you.
+* Selling access to your team account to people who don't work for you company.
+
+---
+
+In case of differences between above license agreements and the license agreements provided with the product, the license agreement provided with the product shall prevail.

+ 64 - 303
docs/ui/components/buttons.mdx

@@ -91,17 +91,6 @@ Use the `.btn-ghost-*` class to make your button look simple yet aesthetically a
 </div>
 ```
 
-```html
-<a href="#" class="btn btn-ghost-primary">Primary</a>
-<a href="#" class="btn btn-ghost-secondary">Secondary</a>
-<a href="#" class="btn btn-ghost-success">Success</a>
-<a href="#" class="btn btn-ghost-warning">Warning</a>
-<a href="#" class="btn btn-ghost-danger">Danger</a>
-<a href="#" class="btn btn-ghost-info">Info</a>
-<a href="#" class="btn btn-ghost-dark">Dark</a>
-<a href="#" class="btn btn-ghost-light">Light</a>
-```
-
 ## Square buttons
 
 Use the `.btn-square` class to remove the border radius, if you want the corners of your button to be square rather than rounded.
@@ -110,12 +99,6 @@ Use the `.btn-square` class to remove the border radius, if you want the corners
 <a href="#" class="btn btn-square">Square button</a>
 ```
 
-```html
-<a href="#" class="btn btn-square">
-  Square button
-</a>
-```
-
 ## Pill buttons
 
 Add the `.btn-pill` class to your button to make it rounded and give it a modern and attractive look.
@@ -124,12 +107,6 @@ Add the `.btn-pill` class to your button to make it rounded and give it a modern
 <a href="#" class="btn btn-pill">Pill button</a>
 ```
 
-```html
-<a href="#" class="btn btn-pill">
-  Pill button
-</a>
-```
-
 ## Outline buttons
 
 Replace the default modifier class with the `.btn-outline-*` class, if you want to remove the color and the background of your button and give it a more subtle look. Outline buttons are perfect to use as secondary buttons, as they don't distract users from the main action.
@@ -145,33 +122,6 @@ Replace the default modifier class with the `.btn-outline-*` class, if you want
 <a href="#" class="btn btn-outline-light">Light</a>
 ```
 
-```html
-<a href="#" class="btn btn-outline-primary">
-  Primary
-</a>
-<a href="#" class="btn btn-outline-secondary">
-  Secondary
-</a>
-<a href="#" class="btn btn-outline-success">
-  Success
-</a>
-<a href="#" class="btn btn-outline-warning">
-  Warning
-</a>
-<a href="#" class="btn btn-outline-danger">
-  Danger
-</a>
-<a href="#" class="btn btn-outline-info">
-  Info
-</a>
-<a href="#" class="btn btn-outline-dark">
-  Dark
-</a>
-<a href="#" class="btn btn-outline-light">
-  Light
-</a>
-```
-
 ## Button size
 
 Add `.btn-lg` or `.btn-sm` to change the size of your button and differentiate those which should have primary focus from those of secondary importance. Adapt the button size to your design and encourage users to take actions.
@@ -194,6 +144,7 @@ Icons can be found [**here**](/docs/components/icons)
 
 ```html example centered separated height="7rem"
 <button type="button" class="btn">
+  <!-- SVG icon from http://tabler.io/icons/icon/upload -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" />
@@ -202,18 +153,21 @@ Icons can be found [**here**](/docs/components/icons)
   </svg> Upload
 </button>
 <button type="button" class="btn btn-warning">
+  <!-- SVG icon from http://tabler.io/icons/icon/heart -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M19.5 12.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
   </svg> I like
 </button>
 <button type="button" class="btn btn-success">
+  <!-- SVG icon from http://tabler.io/icons/icon/check -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M5 12l5 5l10 -10" />
   </svg> I agree
 </button>
 <button type="button" class="btn btn-primary">
+  <!-- SVG icon from http://tabler.io/icons/icon/plus -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <line x1="12" y1="5" x2="12" y2="19" />
@@ -221,80 +175,53 @@ Icons can be found [**here**](/docs/components/icons)
   </svg> More
 </button>
 <button type="button" class="btn btn-danger">
-  <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
-    <path stroke="none" d="M0 0h24v24H0z" fill="none" />
-    <path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" />
-    <path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" />
+  <!-- SVG icon from http://tabler.io/icons/icon/link -->
+  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-link">
+    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+    <path d="M9 15l6 -6" />
+    <path d="M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464" />
+    <path d="M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463" />
   </svg> Link
 </button>
 <button type="button" class="btn btn-info">
-  <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
-    <path stroke="none" d="M0 0h24v24H0z" fill="none" />
-    <path d="M3 20l1.3 -3.9a9 8 0 1 1 3.4 2.9l-4.7 1" />
-    <line x1="12" y1="12" x2="12" y2="12.01" />
-    <line x1="8" y1="12" x2="8" y2="12.01" />
-    <line x1="16" y1="12" x2="16" y2="12.01" />
+  <!-- SVG icon from http://tabler.io/icons/icon/message -->
+  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-message">
+    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+    <path d="M8 9h8" />
+    <path d="M8 13h6" />
+    <path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z" />
   </svg> Comment
 </button>
 ```
 
-```html
-<button type="button" class="btn">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Upload
-</button>
-<button type="button" class="btn btn-warning">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  I like
-</button>
-<button type="button" class="btn btn-success">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  I agree
-</button>
-<button type="button" class="btn btn-primary">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  More
-</button>
-<button type="button" class="btn btn-danger">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Link
-</button>
-<button type="button" class="btn btn-info">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Comment
-</button>
-```
-
 ## Social buttons
 
 You can use the icons of popular social networking sites, which users are familiar with. Thanks to buttons with social media icons users can share content or follow a website with just one click, without leaving the website.
 
 ```html example vertical centered separated scrollable height="15rem"
 <a href="#" class="btn btn-facebook">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" />
   </svg> Facebook
 </a>
 <a href="#" class="btn btn-twitter">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-twitter -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z" />
   </svg> Twitter
 </a>
 <a href="#" class="btn btn-google">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-google -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M17.788 5.108a9 9 0 1 0 3.212 6.892h-8" />
   </svg> Google
 </a>
 <a href="#" class="btn btn-youtube">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-youtube -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <rect x="3" y="5" width="18" height="14" rx="4" />
@@ -302,12 +229,14 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Youtube
 </a>
 <a href="#" class="btn btn-vimeo">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-vimeo -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M3 8.5l1 1s1.5 -1.102 2 -.5c.509 .609 1.863 7.65 2.5 9c.556 1.184 1.978 2.89 4 1.5c2 -1.5 7.5 -5.5 8.5 -11.5c.444 -2.661 -1 -4 -2.5 -4c-2 0 -4.047 1.202 -4.5 4c2.05 -1.254 2.551 1.003 1.5 3c-1.052 2.005 -2 3 -2.5 3c-.49 0 -.924 -1.165 -1.5 -3.5c-.59 -2.42 -.5 -6.5 -3 -6.5s-5.5 4.5 -5.5 4.5z" />
   </svg> Vimeo
 </a>
 <a href="#" class="btn btn-dribbble">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-dribbble -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="12" cy="12" r="9" />
@@ -317,12 +246,14 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Dribbble
 </a>
 <a href="#" class="btn btn-github">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
   </svg> Github
 </a>
 <a href="#" class="btn btn-instagram">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-instagram -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <rect x="4" y="4" width="16" height="16" rx="4" />
@@ -331,6 +262,7 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Instagram
 </a>
 <a href="#" class="btn btn-pinterest">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-pinterest -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <line x1="8" y1="20" x2="12" y2="11" />
@@ -339,12 +271,14 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Pinterest
 </a>
 <a href="#" class="btn btn-vk">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-vk -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M14 19h-4a8 8 0 0 1 -8 -8v-5h4v5a4 4 0 0 0 4 4h0v-9h4v4.5l.03 -.004a4.531 4.531 0 0 0 3.97 -4.496h4l-.342 1.711a6.858 6.858 0 0 1 -3.658 4.789h0a5.34 5.34 0 0 1 3.566 4.111l.434 2.389h0h-4a4.531 4.531 0 0 0 -3.97 -4.496v4.5z" />
   </svg> VK
 </a>
 <a href="#" class="btn btn-rss">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-rss -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="5" cy="19" r="1" />
@@ -353,6 +287,7 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> RSS
 </a>
 <a href="#" class="btn btn-flickr">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-flickr -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="7" cy="12" r="3" />
@@ -360,6 +295,7 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Flickr
 </a>
 <a href="#" class="btn btn-bitbucket">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-bitbucket -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M3.648 4a0.64 .64 0 0 0 -.64 .744l3.14 14.528c.07 .417 .43 .724 .852 .728h10a0.644 .644 0 0 0 .642 -.539l3.35 -14.71a0.641 .641 0 0 0 -.64 -.744l-16.704 -.007z" />
@@ -367,6 +303,7 @@ You can use the icons of popular social networking sites, which users are famili
   </svg> Bitbucket
 </a>
 <a href="#" class="btn btn-tabler">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-tabler -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M8 9l3 3l-3 3" />
@@ -378,99 +315,38 @@ You can use the icons of popular social networking sites, which users are famili
 
 ```html
 <a href="#" class="btn btn-facebook">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
   <svg>...</svg>
   Facebook
 </a>
-<a href="#" class="btn btn-twitter">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-twitter -->
-  <svg>...</svg>
-  Twitter
-</a>
-<a href="#" class="btn btn-google">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Google
-</a>
-<a href="#" class="btn btn-youtube">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Youtube
-</a>
-<a href="#" class="btn btn-vimeo">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Vimeo
-</a>
-<a href="#" class="btn btn-dribbble">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Dribbble
-</a>
-<a href="#" class="btn btn-github">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Github
-</a>
-<a href="#" class="btn btn-instagram">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Instagram
-</a>
-<a href="#" class="btn btn-pinterest">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Pinterest
-</a>
-<a href="#" class="btn btn-vk">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  VK
-</a>
-<a href="#" class="btn btn-rss">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  RSS
-</a>
-<a href="#" class="btn btn-flickr">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Flickr
-</a>
-<a href="#" class="btn btn-bitbucket">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Bitbucket
-</a>
-<a href="#" class="btn btn-tabler">
-  <!-- SVG icon from http://tabler-icons.io -->
-  <svg>...</svg>
-  Tabler
-</a>
 ```
 
 You can also add an icon without the name of a social networking site, if you want to display more buttons on a small space.
 
 ```html example separated scrollable height="7rem"
 <a href="#" class="btn btn-facebook btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" />
   </svg>
 </a>
-<a href="#" class="btn btn-twitter btn-icon" aria-label="Button">
-  <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
-    <path stroke="none" d="M0 0h24v24H0z" fill="none" />
-    <path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z" />
+<a href="#" class="btn btn-x btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-x -->
+  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-brand-x">
+    <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
+    <path d="M4 4l11.733 16h4.267l-11.733 -16z" />
+    <path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
   </svg>
 </a>
 <a href="#" class="btn btn-google btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-google -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M17.788 5.108a9 9 0 1 0 3.212 6.892h-8" />
   </svg>
 </a>
 <a href="#" class="btn btn-youtube btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-youtube -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <rect x="3" y="5" width="18" height="14" rx="4" />
@@ -478,12 +354,14 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-vimeo btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-vimeo -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M3 8.5l1 1s1.5 -1.102 2 -.5c.509 .609 1.863 7.65 2.5 9c.556 1.184 1.978 2.89 4 1.5c2 -1.5 7.5 -5.5 8.5 -11.5c.444 -2.661 -1 -4 -2.5 -4c-2 0 -4.047 1.202 -4.5 4c2.05 -1.254 2.551 1.003 1.5 3c-1.052 2.005 -2 3 -2.5 3c-.49 0 -.924 -1.165 -1.5 -3.5c-.59 -2.42 -.5 -6.5 -3 -6.5s-5.5 4.5 -5.5 4.5z" />
   </svg>
 </a>
 <a href="#" class="btn btn-dribbble btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-dribbble -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="12" cy="12" r="9" />
@@ -493,12 +371,14 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-github btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
   </svg>
 </a>
 <a href="#" class="btn btn-instagram btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-instagram -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <rect x="4" y="4" width="16" height="16" rx="4" />
@@ -507,6 +387,7 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-pinterest btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-pinterest -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <line x1="8" y1="20" x2="12" y2="11" />
@@ -515,12 +396,14 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-vk btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-vk -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M14 19h-4a8 8 0 0 1 -8 -8v-5h4v5a4 4 0 0 0 4 4h0v-9h4v4.5l.03 -.004a4.531 4.531 0 0 0 3.97 -4.496h4l-.342 1.711a6.858 6.858 0 0 1 -3.658 4.789h0a5.34 5.34 0 0 1 3.566 4.111l.434 2.389h0h-4a4.531 4.531 0 0 0 -3.97 -4.496v4.5z" />
   </svg>
 </a>
 <a href="#" class="btn btn-rss btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/rss -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="5" cy="19" r="1" />
@@ -529,6 +412,7 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-flickr btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-flickr -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="7" cy="12" r="3" />
@@ -536,6 +420,7 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-bitbucket btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-bitbucket -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M3.648 4a0.64 .64 0 0 0 -.64 .744l3.14 14.528c.07 .417 .43 .724 .852 .728h10a0.644 .644 0 0 0 .642 -.539l3.35 -14.71a0.641 .641 0 0 0 -.64 -.744l-16.704 -.007z" />
@@ -543,6 +428,7 @@ You can also add an icon without the name of a social networking site, if you wa
   </svg>
 </a>
 <a href="#" class="btn btn-tabler btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-tabler -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M8 9l3 3l-3 3" />
@@ -554,59 +440,6 @@ You can also add an icon without the name of a social networking site, if you wa
 
 ```html
 <a href="#" class="btn btn-facebook btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-facebook -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-twitter btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-twitter -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-google btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-google -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-youtube btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-youtube -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-vimeo btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-vimeo -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-dribbble btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-dribbble -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-github btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-instagram btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-instagram -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-pinterest btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-pinterest -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-vk btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-vk -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-rss btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/rss -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-flickr btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-flickr -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-bitbucket btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-bitbucket -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-tabler btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-tabler -->
   <svg>...</svg>
 </a>
 ```
@@ -617,18 +450,21 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
 
 ```html example centered separated height="7rem"
 <a href="#" class="btn btn-primary btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/activity -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M3 12h4l3 8l4 -16l3 8h4" />
   </svg>
 </a>
 <a href="#" class="btn btn-github btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
   </svg>
 </a>
 <a href="#" class="btn btn-success btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/bell -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6" />
@@ -636,12 +472,14 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
   </svg>
 </a>
 <a href="#" class="btn btn-warning btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/star -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <path d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z" />
   </svg>
 </a>
 <a href="#" class="btn btn-danger btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/trash -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <line x1="4" y1="7" x2="20" y2="7" />
@@ -652,6 +490,7 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
   </svg>
 </a>
 <a href="#" class="btn btn-purple btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/chart-bar -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <rect x="3" y="12" width="6" height="8" rx="1" />
@@ -661,6 +500,7 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
   </svg>
 </a>
 <a href="#" class="btn btn-icon" aria-label="Button">
+  <!-- SVG icon from http://tabler.io/icons/icon/git-merge -->
   <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
     <path stroke="none" d="M0 0h24v24H0z" fill="none" />
     <circle cx="7" cy="18" r="2" />
@@ -674,31 +514,6 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
 
 ```html
 <a href="#" class="btn btn-primary btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/activity -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-github btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/brand-github -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-success btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/bell -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-warning btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/star -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-danger btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/trash -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-purple btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/chart-bar -->
-  <svg>...</svg>
-</a>
-<a href="#" class="btn btn-icon" aria-label="Button">
-  <!-- SVG icon from http://tabler.io/icons/icon/git-merge -->
   <svg>...</svg>
 </a>
 ```
@@ -707,9 +522,10 @@ Add the `.btn-icon` class to remove unnecessary padding from your button and use
 
 Create a dropdown button that will encourage users to click for more options. You can add a label with an icon or remove the label and add an icon on its own if you want to save space. Choose the option that will best suit your design and improve the user experience.
 
-```html example centered separated height="7rem"
+```html example separated height="10rem"
 <div class="dropdown">
   <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
+    <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
     <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
       <path stroke="none" d="M0 0h24v24H0z" fill="none" />
       <rect x="4" y="5" width="16" height="16" rx="2" />
@@ -727,6 +543,7 @@ Create a dropdown button that will encourage users to click for more options. Yo
 </div>
 <div class="dropdown">
   <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
+    <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
     <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
       <path stroke="none" d="M0 0h24v24H0z" fill="none" />
       <rect x="4" y="5" width="16" height="16" rx="2" />
@@ -754,44 +571,11 @@ Create a dropdown button that will encourage users to click for more options. Yo
 ```html
 <div class="dropdown">
   <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
-    <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
     <svg>...</svg>
   </button>
   <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">
-      Action
-    </a>
-    <a class="dropdown-item" href="#">
-      Another action
-    </a>
-  </div>
-</div>
-<div class="dropdown">
-  <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
-    <!-- SVG icon from http://tabler.io/icons/icon/calendar -->
-    <svg>...</svg>
-    Show calendar
-  </button>
-  <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">
-      Action
-    </a>
-    <a class="dropdown-item" href="#">
-      Another action
-    </a>
-  </div>
-</div>
-<div class="dropdown">
-  <button type="button" class="btn dropdown-toggle" data-bs-toggle="dropdown">
-    Show calendar
-  </button>
-  <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">
-      Action
-    </a>
-    <a class="dropdown-item" href="#">
-      Another action
-    </a>
+    <a class="dropdown-item" href="#">Action</a>
+    <a class="dropdown-item" href="#">Another action</a>
   </div>
 </div>
 ```
@@ -801,11 +585,6 @@ Create a dropdown button that will encourage users to click for more options. Yo
 Add the `.btn-loading` class to show a button's loading state, which can be useful in the case of operations that take longer to process. Thanks to that, users will be aware of the current state of their action and won't give it up before it's finished.
 
 ```html example centered separated height="7rem"
-<a href="#" class="btn btn-primary btn-loading">Button</a>
-<a href="#" class="btn btn-primary btn-loading">Loading button with loooong content</a>
-```
-
-```html
 <a href="#" class="btn btn-primary btn-loading">
   Button
 </a>
@@ -815,12 +594,6 @@ Add the `.btn-loading` class to show a button's loading state, which can be usef
 ```
 
 ```html example centered height="7rem"
-<a href="#" class="btn btn-primary">
-  <span class="spinner-border spinner-border-sm me-2" role="status"></span> Button
-</a>
-```
-
-```html
 <a href="#" class="btn btn-primary">
   <span class="spinner-border spinner-border-sm me-2" role="status"></span>
   Button
@@ -895,24 +668,12 @@ Use buttons with avatars to simplify the process of interaction and make your de
 
 ```html example centered separated height="7rem"
 <a href="#" class="btn">
-  <span class="avatar" style={{ backgroundImage: 'url(https://images.unsplash.com/photo-1542534759-05f6c34a9e63?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)'}}></span> Avatar
-</a>
-<a href="#" class="btn">
-  <span class="avatar" style={{ backgroundImage: 'url(https://images.unsplash.com/photo-1546539782-6fc531453083?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)'}}></span> Avatar
-</a>
-<a href="#" class="btn">
-  <span class="avatar" style={{ backgroundImage: 'url(https://images.unsplash.com/photo-1541585452861-0375331f10bf?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)'}}></span> Avatar
-</a>
-```
-
-```html
-<a href="#" class="btn">
-  <span class="avatar" style="background-image: url(...)"></span> Avatar
+  <span class="avatar" style="background-image: url(https://images.unsplash.com/photo-1542534759-05f6c34a9e63?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)"></span> Avatar
 </a>
 <a href="#" class="btn">
-  <span class="avatar" style="background-image: url(...)"></span> Avatar
+  <span class="avatar" style="background-image: url(https://images.unsplash.com/photo-1546539782-6fc531453083?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)"></span> Avatar
 </a>
 <a href="#" class="btn">
-  <span class="avatar" style="background-image: url(...)"></span> Avatar
+  <span class="avatar" style="background-image: url(https://images.unsplash.com/photo-1541585452861-0375331f10bf?q=80&fm=jpg&crop=faces&fit=crop&h=100&w=100)"></span> Avatar
 </a>
 ```

+ 15 - 3
preview/eleventy.config.mjs

@@ -1,6 +1,7 @@
 import { readFileSync } from 'node:fs';
 import { EleventyRenderPlugin } from "@11ty/eleventy";
 import { join, dirname } from 'node:path';
+import { sync } from 'glob';
 
 /*
  * Copy list
@@ -41,7 +42,7 @@ const getCopyList = () => {
 
 /** @type {import('@11ty/eleventy').LocalConfig} */
 export default function (eleventyConfig) {
-	const env = process.env.NODE_ENV || "development";
+	const environment = process.env.NODE_ENV || "production";
 
 	eleventyConfig.setInputDirectory("pages");
 	eleventyConfig.setOutputDirectory("dist");
@@ -53,6 +54,7 @@ export default function (eleventyConfig) {
 	eleventyConfig.setWatchThrottleWaitTime(100);
 
 	eleventyConfig.addPassthroughCopy(getCopyList());
+	eleventyConfig.setServerPassthroughCopyBehavior("passthrough");
 
 	eleventyConfig.addPlugin(EleventyRenderPlugin, {
 		accessGlobalData: true,
@@ -68,13 +70,23 @@ export default function (eleventyConfig) {
 	/**
 	 * Data
 	 */
-	eleventyConfig.addGlobalData("environment", env);
+	eleventyConfig.addGlobalData("environment", environment);
 
 	eleventyConfig.addGlobalData("package", JSON.parse(readFileSync(join("..", "core", "package.json"), "utf-8")));
 	eleventyConfig.addGlobalData("readme", readFileSync(join("..", "README.md"), "utf-8"));
 	eleventyConfig.addGlobalData("license", readFileSync(join("..", "LICENSE"), "utf-8"));
 	eleventyConfig.addGlobalData("changelog", readFileSync(join("..", "CHANGELOG.md"), "utf-8"));
 
+	eleventyConfig.addGlobalData("pages", () => {
+		return sync('pages/**/*.html').filter((file) => {
+			return !file.includes('pages/_') && !file.includes('pages/docs/index.html');
+		}).map((file) => {
+			return {
+				url: file.replace(/^pages\//, '/')
+			}
+});
+	});
+
 	eleventyConfig.addGlobalData("site", {
 		title: "Tabler",
 		description: "Premium and Open Source dashboard template with responsive and high quality UI.",
@@ -86,7 +98,7 @@ export default function (eleventyConfig) {
 		githubSponsorsUrl: "https://github.com/sponsors/codecalm",
 		changelogUrl: "https://github.com/tabler/tabler/releases",
 		sponsorUrl: "https://github.com/sponsors/codecalm",
-		previewUrl: "https://tabler.io/demo",
+		previewUrl: "https://preview.tabler.io",
 		docsUrl: "https://tabler.io/docs",
 
 		mapboxKey: "pk.eyJ1IjoidGFibGVyIiwiYSI6ImNscHh3dnhndjB2M3QycW85bGd0NXRmZ3YifQ.9LfHPsNoEXQH-xzz-81Ffw",

+ 1 - 1
preview/package.json

@@ -5,7 +5,7 @@
     "build": "pnpm run clean && pnpm run css && pnpm run js && pnpm run html",
     "dev": "pnpm run clean && pnpm run watch",
     "watch": "pnpm run watch-html & pnpm run watch-css & pnpm run watch-js",
-    "watch-html": "eleventy --serve --port=3000",
+    "watch-html": "NODE_ENV=development eleventy --serve --port=3000 --incremental",
     "watch-js": "nodemon --watch js/ --ext js --exec 'pnpm run js'",
     "watch-css": "nodemon --watch scss/ --ext scss --exec 'pnpm run css'",
     "css": "pnpm run css-compile && pnpm run css-prefix && pnpm run css-minify",

+ 3 - 1
preview/pages/_data/libs.json

@@ -31,7 +31,9 @@
     "dropzone": "dropzone/dist/dropzone.css",
     "plyr": "plyr/dist/plyr.css",
     "star-rating.js": "star-rating.js/dist/star-rating.min.css",
-    "coloris.js": "@melloware/coloris/dist/coloris.min.css"
+    "coloris.js": "@melloware/coloris/dist/coloris.min.css",
+    "tom-select": "tom-select/dist/css/tom-select.bootstrap5.min.css",
+    "nouislider": "nouislider/dist/nouislider.min.css"
   },
   "js-copy": {
     "tinymce" :"tinymce/*"

+ 26 - 54
preview/pages/_data/menu.json

@@ -64,8 +64,7 @@
       },
       "badges": {
         "url": "badges.html",
-        "title": "Badges",
-        "badge": "New"
+        "title": "Badges"
       },
       "blank": {
         "title": "Blank page",
@@ -77,7 +76,6 @@
       },
       "cards": {
         "title": "Cards",
-        "badge": "New",
         "children": {
           "base": {
             "url": "cards.html",
@@ -96,8 +94,7 @@
       },
       "carousel": {
         "title": "Carousel",
-        "url": "carousel.html",
-        "badge": "New"
+        "url": "carousel.html"
       },
       "charts": {
         "url": "charts.html",
@@ -105,8 +102,7 @@
       },
       "colorpicker": {
         "url": "colorpicker.html",
-        "title": "Color picker",
-        "badge": "New"
+        "title": "Color picker"
       },
       "colors": {
         "url": "colors.html",
@@ -114,13 +110,11 @@
       },
       "datagrid": {
         "url": "datagrid.html",
-        "title": "Data grid",
-        "badge": "New"
+        "title": "Data grid"
       },
       "datatables": {
         "url": "datatables.html",
-        "title": "Datatables",
-        "badge": "New"
+        "title": "Datatables"
       },
       "dropdowns": {
         "url": "dropdowns.html",
@@ -128,8 +122,7 @@
       },
       "dropzone": {
         "title": "Dropzone",
-        "url": "dropzone.html",
-        "badge": "New"
+        "url": "dropzone.html"
       },
       "error": {
         "title": "Error pages",
@@ -150,18 +143,15 @@
       },
       "flags": {
         "title": "Flags",
-        "url": "flags.html",
-        "badge": "New"
+        "url": "flags.html"
       },
       "plyr": {
         "title": "Inline player",
-        "badge": "New",
         "url": "inline-player.html"
       },
       "lightbox": {
         "title": "Lightbox",
-        "url": "lightbox.html",
-        "badge": "New"
+        "url": "lightbox.html"
       },
       "lists": {
         "title": "Lists",
@@ -181,8 +171,7 @@
       },
       "maps-vector": {
         "url": "maps-vector.html",
-        "title": "Map vector",
-        "badge": "New"
+        "title": "Map vector"
       },
       "markdown": {
         "title": "Markdown",
@@ -206,18 +195,15 @@
       },
       "social": {
         "title": "Social icons",
-        "url": "social-icons.html",
-        "badge": "New"
+        "url": "social-icons.html"
       },
       "stars-rating": {
         "title": "Stars rating",
-        "url": "stars-rating.html",
-        "badge": "New"
+        "url": "stars-rating.html"
       },
       "steps": {
         "url": "steps.html",
-        "title": "Steps",
-        "badge": "New"
+        "title": "Steps"
       },
       "tables": {
         "url": "tables.html",
@@ -233,8 +219,7 @@
       },
       "tinymce": {
         "title": "TinyMCE",
-        "url": "tinymce.html",
-        "badge": "New"
+        "url": "tinymce.html"
       },
       "toasts": {
         "title": "Toasts",
@@ -263,13 +248,11 @@
       },
       "chat": {
         "title": "Chat",
-        "url": "chat.html",
-        "badge": "New"
+        "url": "chat.html"
       },
       "cookie-banner": {
         "title": "Cookie banner",
-        "url": "cookie-banner.html",
-        "badge": "New"
+        "url": "cookie-banner.html"
       },
       "empty": {
         "title": "Empty page",
@@ -277,8 +260,7 @@
       },
       "faq": {
         "url": "faq.html",
-        "title": "FAQ",
-        "badge": "New"
+        "title": "FAQ"
       },
       "gallery": {
         "title": "Gallery",
@@ -290,8 +272,7 @@
       },
       "job-listing": {
         "title": "Job listing",
-        "url": "job-listing.html",
-        "badge": "New"
+        "url": "job-listing.html"
       },
       "license": {
         "title": "License",
@@ -299,13 +280,11 @@
       },
       "logs": {
         "title": "Logs",
-        "url": "logs.html",
-        "badge": "New"
+        "url": "logs.html"
       },
       "marketing": {
         "title": "Marketing",
-        "url": "marketing/index.html",
-        "badge": "New"
+        "url": "marketing/index.html"
       },
       "music": {
         "title": "Music",
@@ -313,18 +292,15 @@
       },
       "page-loader": {
         "title": "Page loader",
-        "url": "page-loader.html",
-        "badge": "New"
+        "url": "page-loader.html"
       },
       "payment-providers": {
         "title": "Payment providers",
-        "url": "payment-providers.html",
-        "badge": "New"
+        "url": "payment-providers.html"
       },
       "photogrid": {
         "title": "Photogrid",
-        "url": "photogrid.html",
-        "badge": "New"
+        "url": "photogrid.html"
       },
       "pricing": {
         "url": "pricing.html",
@@ -340,18 +316,15 @@
       },
       "settings": {
         "title": "Settings",
-        "url": "settings.html",
-        "badge": "New"
+        "url": "settings.html"
       },
       "tasks": {
         "title": "Tasks",
-        "url": "tasks.html",
-        "badge": "New"
+        "url": "tasks.html"
       },
       "trial-ended": {
         "title": "Trial ended",
-        "url": "trial-ended.html",
-        "badge": "New"
+        "url": "trial-ended.html"
       },
       "uptime": {
         "title": "Uptime monitor",
@@ -378,8 +351,7 @@
     "children": {
       "boxed": {
         "url": "layout-boxed.html",
-        "title": "Boxed",
-        "badge": "New"
+        "title": "Boxed"
       },
       "combo": {
         "url": "layout-combo.html",

+ 0 - 0
preview/pages/_data/pages.json → preview/pages/_data/urls.json


+ 6 - 6
preview/pages/_includes/cards/most-visited-pages.html

@@ -14,17 +14,17 @@
 			</tr>
 			</thead>
 
-			{% for page in pages limit: 6 %}
-			{% assign data = page.data | join: ',' %}
+			{% for url in urls limit: 6 %}
+			{% assign data = url.data | join: ',' %}
 			{% assign id = "bounce-rate-" | append: forloop.index %}
 			<tr>
 				<td>
-					{{ page.uri }}
+					{{ url.uri }}
 					<a href="#" class="ms-1" aria-label="Open website">{% include "ui/icon.html" icon="link" %}</a>
 				</td>
-				<td class="text-secondary">{{ page.visitors | format_number }}</td>
-				<td class="text-secondary">{{ page.unique | format_number }}</td>
-				<td class="text-secondary">{{ page.bounce }}</td>
+				<td class="text-secondary">{{ url.visitors | format_number }}</td>
+				<td class="text-secondary">{{ url.unique | format_number }}</td>
+				<td class="text-secondary">{{ url.bounce }}</td>
 				<td class="text-end w-1">
 					{% include "ui/chart-sparkline.html" type="line" data=data id=id small=true color="primary" %}
 				</td>

+ 3 - 3
preview/pages/_includes/layout/header-actions/breadcrumb.html

@@ -1,6 +1,6 @@
-{% assign pages = "Tabler,Pages," %}
-{% assign pages = pages | append: page.page-header %}
+{% assign breadcrumb-pages = "Tabler,Pages," %}
+{% assign breadcrumb-pages = breadcrumb-pages | append: page.page-header %}
 
 <div class="d-flex">
-	{% include "ui/breadcrumb.html" pages=pages class="breadcrumb-arrows" %}
+	{% include "ui/breadcrumb.html" pages=breadcrumb-pages class="breadcrumb-arrows" %}
 </div>

+ 2 - 2
preview/pages/_includes/ui/breadcrumb.html

@@ -1,6 +1,6 @@
-{% assign pages = include.pages | default: "Home,Library,Data" | split: "," %}
+{% assign breadcrumb-pages = include.pages | default: "Home,Library,Data" | split: "," %}
 <ol class="breadcrumb{% if include.class %} {{ include.class }}{% endif %}" aria-label="breadcrumbs">
-   {% for page in pages %}
+   {% for page in breadcrumb-pages %}
    {% if forloop.last %}
    <li class="breadcrumb-item active" aria-current="page"><a href="#">{{ page }}</a></li>
    {% else %}

+ 13 - 0
preview/pages/robots.liquid

@@ -0,0 +1,13 @@
+---
+layout: null
+permalink: robots.txt
+---
+Sitemap: {% if environment != 'development' %}{{ site.previewUrl }}{% endif %}/sitemap.xml
+
+{% if environment == 'preview' %}
+User-agent: *
+Disallow:
+{% else %}
+User-agent: *
+Disallow: /
+{% endif %}

+ 0 - 4
preview/pages/robots.txt

@@ -1,4 +0,0 @@
----
-layout: none
----
-Sitemap: {% if environment != 'development' %}{{ site.previewUrl }}{% endif %}{{ "sitemap.xml" | absolute_url }}

+ 14 - 0
preview/pages/sitemap.liquid

@@ -0,0 +1,14 @@
+---
+layout: null
+permalink: sitemap.xml
+---
+<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+
+{% for page in pages %}
+<url>
+	<loc>{% if environment != 'development' %}{{ site.previewUrl }}{% endif %}{{ page.url | replace: 'index.html', '' | xml_escape }}</loc>
+	<lastmod>{{ page.last_modified_at | default: 'now' | date_to_xmlschema }}</lastmod>
+</url>
+{% endfor %}
+</urlset>

+ 0 - 34
preview/pages/sitemap.xml

@@ -1,34 +0,0 @@
----
-layout: none
----
-<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
-{% assign collections = site.collections | where_exp:'collection','collection.output != false' %}
-{% for collection in collections %}
-{% assign docs = collection.docs | where_exp:'doc','doc.sitemap != false' %}
-{% for doc in docs %}
-<url>
-	<loc>{% if environment != 'development' %}{{ site.previewUrl }}{% endif %}{{ doc.url | replace: '/index.html', '/' | absolute_url | xml_escape }}</loc>
-	{% if doc.last_modified_at or doc.date %}
-	<lastmod>{{ doc.last_modified_at | default: doc.date | date_to_xmlschema }}</lastmod>
-	{% endif %}
-</url>
-{% endfor %}
-{% endfor %}
-
-{% assign pages = site.html_pages | where_exp:'doc','doc.sitemap != false' | where_exp:'doc','doc.url != "/404.html"' %}
-{% for page in pages %}
-<url>
-	<loc>{% if environment != 'development' %}{{ site.previewUrl }}{% endif %}{{ page.url | replace: '/index.html', '/' | absolute_url | xml_escape }}</loc>
-	<lastmod>{{ page.last_modified_at | default: 'now' | date_to_xmlschema }}</lastmod>
-</url>
-{% endfor %}
-
-{% assign static_files = page.static_files | where_exp:'page','page.sitemap != false' | where_exp:'page','page.name != "404.html"' %}
-{% for file in static_files %}
-<url>
-	<loc>{% if environment != 'development' %}{{ site.previewUrl }}{% endif %}{{ file.path | replace:'/index.html','/' | absolute_url | xml_escape }}</loc>
-	<lastmod>{{ file.modified_time | date_to_xmlschema }}</lastmod>
-</url>
-{% endfor %}
-</urlset>