@tabler/core 1.0.0-beta22 → 1.0.0-beta23

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.
Files changed (229) hide show
  1. package/dist/css/demo.css +2 -2
  2. package/dist/css/demo.min.css +2 -2
  3. package/dist/css/demo.rtl.css +2 -2
  4. package/dist/css/demo.rtl.min.css +2 -2
  5. package/dist/css/tabler-flags.css +2 -2
  6. package/dist/css/tabler-flags.min.css +2 -2
  7. package/dist/css/tabler-flags.rtl.css +2 -2
  8. package/dist/css/tabler-flags.rtl.min.css +2 -2
  9. package/dist/css/tabler-payments.css +2 -2
  10. package/dist/css/tabler-payments.min.css +2 -2
  11. package/dist/css/tabler-payments.rtl.css +2 -2
  12. package/dist/css/tabler-payments.rtl.min.css +2 -2
  13. package/dist/css/tabler-socials.css +221 -0
  14. package/dist/css/tabler-socials.min.css +9 -0
  15. package/dist/css/tabler-socials.rtl.css +221 -0
  16. package/dist/css/tabler-socials.rtl.min.css +9 -0
  17. package/dist/css/tabler-vendors.css +4 -3
  18. package/dist/css/tabler-vendors.min.css +3 -3
  19. package/dist/css/tabler-vendors.rtl.css +4 -3
  20. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  21. package/dist/css/tabler.css +14 -6
  22. package/dist/css/tabler.min.css +4 -4
  23. package/dist/css/tabler.rtl.css +14 -6
  24. package/dist/css/tabler.rtl.min.css +4 -4
  25. package/dist/img/social/apple-gray.svg +3 -0
  26. package/dist/img/social/apple.svg +3 -0
  27. package/dist/img/social/discord-gray.svg +3 -0
  28. package/dist/img/social/discord.svg +3 -0
  29. package/dist/img/social/dribbble-gray.svg +3 -0
  30. package/dist/img/social/dribbble.svg +4 -0
  31. package/dist/img/social/facebook-gray.svg +3 -0
  32. package/dist/img/social/facebook.svg +4 -0
  33. package/dist/img/social/figma-gray.svg +3 -0
  34. package/dist/img/social/figma.svg +7 -0
  35. package/dist/img/social/github-gray.svg +10 -0
  36. package/dist/img/social/github.svg +10 -0
  37. package/dist/img/social/google-gray.svg +3 -0
  38. package/dist/img/social/google.svg +6 -0
  39. package/dist/img/social/instagram-gray.svg +5 -0
  40. package/dist/img/social/instagram.svg +18 -0
  41. package/dist/img/social/linkedin-gray.svg +3 -0
  42. package/dist/img/social/linkedin.svg +3 -0
  43. package/dist/img/social/medium-gray.svg +5 -0
  44. package/dist/img/social/medium.svg +5 -0
  45. package/dist/img/social/meta-gray.svg +5 -0
  46. package/dist/img/social/meta.svg +17 -0
  47. package/dist/img/social/metamask-gray.svg +12 -0
  48. package/dist/img/social/metamask.svg +14 -0
  49. package/dist/img/social/pinterest-gray.svg +3 -0
  50. package/dist/img/social/pinterest.svg +4 -0
  51. package/dist/img/social/reddit-gray.svg +6 -0
  52. package/dist/img/social/reddit.svg +11 -0
  53. package/dist/img/social/signal-gray.svg +10 -0
  54. package/dist/img/social/signal.svg +10 -0
  55. package/dist/img/social/skype-gray.svg +3 -0
  56. package/dist/img/social/skype.svg +3 -0
  57. package/dist/img/social/snapchat-gray.svg +10 -0
  58. package/dist/img/social/snapchat.svg +11 -0
  59. package/dist/img/social/spotify-gray.svg +3 -0
  60. package/dist/img/social/spotify.svg +3 -0
  61. package/dist/img/social/telegram-gray.svg +3 -0
  62. package/dist/img/social/telegram.svg +10 -0
  63. package/dist/img/social/tiktok-gray.svg +3 -0
  64. package/dist/img/social/tiktok.svg +5 -0
  65. package/dist/img/social/tumblr-gray.svg +3 -0
  66. package/dist/img/social/tumblr.svg +3 -0
  67. package/dist/img/social/twitch-gray.svg +5 -0
  68. package/dist/img/social/twitch.svg +6 -0
  69. package/dist/img/social/vk-gray.svg +3 -0
  70. package/dist/img/social/vk.svg +4 -0
  71. package/dist/img/social/x-gray.svg +3 -0
  72. package/dist/img/social/x.svg +3 -0
  73. package/dist/img/social/youtube-gray.svg +3 -0
  74. package/dist/img/social/youtube.svg +11 -0
  75. package/dist/js/demo-theme.js +2 -2
  76. package/dist/js/demo-theme.min.js +2 -2
  77. package/dist/js/demo.js +2 -2
  78. package/dist/js/demo.min.js +2 -2
  79. package/dist/js/tabler.esm.js +19 -4
  80. package/dist/js/tabler.esm.min.js +3 -3
  81. package/dist/js/tabler.js +19 -4
  82. package/dist/js/tabler.min.js +4 -4
  83. package/docs/icons/index.mdx +3 -93
  84. package/docs/icons/libraries/index.mdx +5 -0
  85. package/docs/icons/{preact.mdx → libraries/preact.mdx} +4 -2
  86. package/docs/icons/{react.mdx → libraries/react.mdx} +5 -3
  87. package/docs/icons/{solidjs.mdx → libraries/solidjs.mdx} +5 -2
  88. package/docs/icons/{svelte.mdx → libraries/svelte.mdx} +5 -2
  89. package/docs/icons/{vue.mdx → libraries/vue.mdx} +13 -8
  90. package/docs/icons/{webfont.mdx → libraries/webfont.mdx} +4 -1
  91. package/docs/icons/plugins/figma.mdx +15 -0
  92. package/docs/icons/plugins/index.mdx +4 -0
  93. package/docs/icons/{eps.mdx → static-files/eps.mdx} +3 -1
  94. package/docs/icons/static-files/index.mdx +5 -0
  95. package/docs/icons/{pdf.mdx → static-files/pdf.mdx} +3 -1
  96. package/docs/icons/static-files/png.mdx +31 -0
  97. package/docs/icons/{svg.mdx → static-files/svg.mdx} +18 -18
  98. package/docs/illustrations/index.mdx +8 -0
  99. package/docs/illustrations/introduction/customization.mdx +442 -0
  100. package/docs/illustrations/introduction/index.mdx +5 -0
  101. package/docs/img/browsers/brave.svg +1 -0
  102. package/docs/img/browsers/chrome.svg +1 -0
  103. package/docs/img/browsers/edge.svg +1 -0
  104. package/docs/img/browsers/electron.svg +1 -0
  105. package/docs/img/browsers/firefox.svg +1 -0
  106. package/docs/img/browsers/internet-explorer.svg +1 -0
  107. package/docs/img/browsers/opera.svg +1 -0
  108. package/docs/img/browsers/safari.svg +1 -0
  109. package/docs/img/browsers/vivaldi.svg +1 -0
  110. package/docs/img/cover-illustrations-dark.png +0 -0
  111. package/docs/img/cover-illustrations.png +0 -0
  112. package/docs/img/cover-tabler-dark.png +0 -0
  113. package/docs/img/cover-tabler.png +0 -0
  114. package/docs/img/icons/figma-plugin.png +0 -0
  115. package/docs/img/icons/package-angular-dark.png +0 -0
  116. package/docs/img/icons/package-angular.png +0 -0
  117. package/docs/img/icons/package-eps-dark.png +0 -0
  118. package/docs/img/icons/package-eps.png +0 -0
  119. package/docs/img/icons/package-js-dark.png +0 -0
  120. package/docs/img/icons/package-js.png +0 -0
  121. package/docs/img/icons/package-pdf-dark.png +0 -0
  122. package/docs/img/icons/package-pdf.png +0 -0
  123. package/docs/img/icons/package-png-dark.png +0 -0
  124. package/docs/img/icons/package-png.png +0 -0
  125. package/docs/img/icons/package-preact-dark.png +0 -0
  126. package/docs/img/icons/package-preact.png +0 -0
  127. package/docs/img/icons/package-react-dark.png +0 -0
  128. package/docs/img/icons/package-react-native-dark.png +0 -0
  129. package/docs/img/icons/package-react-native.png +0 -0
  130. package/docs/img/icons/package-react.png +0 -0
  131. package/docs/img/icons/package-solidjs-dark.png +0 -0
  132. package/docs/img/icons/package-solidjs.png +0 -0
  133. package/docs/img/icons/package-sprite-dark.png +0 -0
  134. package/docs/img/icons/package-sprite.png +0 -0
  135. package/docs/img/icons/package-svelte-dark.png +0 -0
  136. package/docs/img/icons/package-svelte.png +0 -0
  137. package/docs/img/icons/package-svg-dark.png +0 -0
  138. package/docs/img/icons/package-svg.png +0 -0
  139. package/docs/img/icons/package-vue-dark.png +0 -0
  140. package/docs/img/icons/package-vue.png +0 -0
  141. package/docs/img/icons/package-webfont-dark.png +0 -0
  142. package/docs/img/icons/package-webfont.png +0 -0
  143. package/docs/index.mdx +16 -0
  144. package/docs/ui/base/colors.mdx +63 -5
  145. package/docs/ui/base/index.mdx +6 -0
  146. package/docs/ui/base/typography.mdx +96 -101
  147. package/docs/ui/components/alerts.mdx +20 -19
  148. package/docs/ui/components/autosize.mdx +12 -3
  149. package/docs/ui/components/avatars.mdx +7 -4
  150. package/docs/ui/components/badges.mdx +25 -16
  151. package/docs/ui/components/breadcrumb.mdx +125 -59
  152. package/docs/ui/components/buttons.mdx +142 -87
  153. package/docs/ui/components/cards.mdx +48 -27
  154. package/docs/ui/components/carousel.mdx +8 -7
  155. package/docs/ui/components/charts.mdx +8 -7
  156. package/docs/ui/components/countup.mdx +13 -14
  157. package/docs/ui/components/datagrid.mdx +10 -2
  158. package/docs/ui/components/divider.mdx +6 -6
  159. package/docs/ui/components/dropdowns.mdx +24 -15
  160. package/docs/ui/components/dropzone.mdx +5 -11
  161. package/docs/ui/components/empty.mdx +7 -5
  162. package/docs/ui/components/icons.mdx +8 -7
  163. package/docs/ui/components/index.mdx +6 -0
  164. package/docs/ui/components/inline-player.mdx +4 -3
  165. package/docs/ui/components/modals.mdx +14 -9
  166. package/docs/ui/components/placeholder.mdx +12 -11
  167. package/docs/ui/components/popover.mdx +8 -9
  168. package/docs/ui/components/progress.mdx +120 -19
  169. package/docs/ui/components/range-slider.mdx +18 -3
  170. package/docs/ui/components/ribbons.mdx +13 -12
  171. package/docs/ui/components/spinners.mdx +31 -10
  172. package/docs/ui/components/statuses.mdx +38 -13
  173. package/docs/ui/components/steps.mdx +8 -7
  174. package/docs/ui/components/switch-icon.mdx +4 -3
  175. package/docs/ui/components/tables.mdx +37 -17
  176. package/docs/ui/components/tabs.mdx +17 -11
  177. package/docs/ui/components/timelines.mdx +48 -29
  178. package/docs/ui/components/tinymce.mdx +3 -2
  179. package/docs/ui/components/toasts.mdx +3 -2
  180. package/docs/ui/components/tooltips.mdx +4 -3
  181. package/docs/ui/components/tracking.mdx +39 -34
  182. package/docs/ui/forms/form-color-check.mdx +36 -11
  183. package/docs/ui/forms/form-elements.mdx +32 -16
  184. package/docs/ui/forms/form-fieldset.mdx +3 -2
  185. package/docs/ui/forms/form-helpers.mdx +71 -4
  186. package/docs/ui/forms/form-image-check.mdx +43 -29
  187. package/docs/ui/forms/form-input-mask.mdx +33 -5
  188. package/docs/ui/forms/form-selectboxes.mdx +101 -16
  189. package/docs/ui/forms/form-validation.mdx +54 -13
  190. package/docs/ui/forms/index.mdx +6 -0
  191. package/docs/ui/getting-started/browser-support.mdx +2 -0
  192. package/docs/ui/getting-started/customize.mdx +5 -4
  193. package/docs/ui/getting-started/development.mdx +32 -0
  194. package/docs/ui/getting-started/download.mdx +3 -5
  195. package/docs/ui/getting-started/faq.mdx +3 -1
  196. package/docs/ui/getting-started/index.mdx +4 -28
  197. package/docs/ui/index.mdx +8 -0
  198. package/docs/ui/layout/index.mdx +6 -0
  199. package/docs/ui/layout/page-headers.mdx +16 -9
  200. package/docs/ui/layout/page-layouts.mdx +4 -3
  201. package/docs/ui/plugins/flags.mdx +270 -6
  202. package/docs/ui/plugins/index.mdx +6 -0
  203. package/docs/ui/plugins/payments.mdx +108 -4
  204. package/docs/ui/plugins/social-icons.mdx +135 -0
  205. package/docs/ui/utilities/borders.mdx +2 -1
  206. package/docs/ui/utilities/cursors.mdx +2 -1
  207. package/docs/ui/utilities/index.mdx +5 -0
  208. package/docs/ui/utilities/interactions.mdx +10 -5
  209. package/package.json +4 -3
  210. package/src/js/src/countup.js +17 -0
  211. package/src/js/tabler.esm.js +1 -0
  212. package/src/js/tabler.js +1 -0
  213. package/src/scss/_variables.scss +2 -4
  214. package/src/scss/tabler-socials.scss +2 -0
  215. package/src/scss/ui/_buttons.scss +1 -0
  216. package/src/scss/ui/_forms.scss +4 -0
  217. package/src/scss/ui/_social.scss +52 -0
  218. package/src/scss/ui/_tables.scss +0 -1
  219. package/src/scss/ui/_type.scss +4 -0
  220. package/src/scss/vendor/_tom-select.scss +1 -0
  221. package/dist/css/tabler-social.css +0 -10
  222. package/dist/css/tabler-social.min.css +0 -8
  223. package/dist/css/tabler-social.rtl.css +0 -10
  224. package/dist/css/tabler-social.rtl.min.css +0 -8
  225. package/docs/icons/figma.mdx +0 -7
  226. package/docs/icons/png.mdx +0 -19
  227. package/docs/menu.json +0 -317
  228. package/docs/ui/components/progressbg.mdx +0 -16
  229. package/src/scss/tabler-social.scss +0 -1
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  title: Alerts
3
- description: Alert messages are used to inform users of the status of their action and help them solve any problems that might have occurred. Good design of alert modals is very important for the overall user experience of a website or app.
3
+ summary: Alert messages are used to inform users of the status of their action and help them solve any problems that might have occurred. Good design of alert modals is very important for the overall user experience of a website or app.
4
4
  bootstrapLink: components/alerts/
5
+ description: Alert messages for user notifications.
5
6
  ---
6
7
 
7
8
  ## Default markup
@@ -38,7 +39,7 @@ Depending on the information you need to convey, you can use one of the followin
38
39
 
39
40
  Add a link to your alert message to redirect users to the details they need to complete or additional information they should read.
40
41
 
41
- ```html example vertical code height="7rem"
42
+ ```html example vertical height="7rem"
42
43
  <div class="alert alert-danger m-0">
43
44
  This is a danger alert — <a href="#" class="alert-link">check it out</a>!
44
45
  </div>
@@ -120,7 +121,7 @@ Add the `x` close button to make an alert modal dismissible. Thanks to that, you
120
121
  <div class="alert alert-success alert-dismissible" role="alert">
121
122
  <div class="d-flex">
122
123
  <div>
123
- <!-- SVG icon from http://tabler-icons.io/i/check -->
124
+ <!-- SVG icon from http://tabler.io/icons/icon/check -->
124
125
  <svg>...</svg>
125
126
  </div>
126
127
  <div>
@@ -204,7 +205,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
204
205
  <div class="alert alert-success" role="alert">
205
206
  <div class="d-flex">
206
207
  <div>
207
- <!-- SVG icon from http://tabler-icons.io/i/check -->
208
+ <!-- SVG icon from http://tabler.io/icons/icon/check -->
208
209
  <svg>...</svg>
209
210
  </div>
210
211
  <div>
@@ -216,7 +217,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
216
217
  <div class="alert alert-info" role="alert">
217
218
  <div class="d-flex">
218
219
  <div>
219
- <!-- SVG icon from http://tabler-icons.io/i/info-circle -->
220
+ <!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
220
221
  <svg>...</svg>
221
222
  </div>
222
223
  <div>
@@ -228,7 +229,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
228
229
  <div class="alert alert-warning" role="alert">
229
230
  <div class="d-flex">
230
231
  <div>
231
- <!-- SVG icon from http://tabler-icons.io/i/alert-triangle -->
232
+ <!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
232
233
  <svg>...</svg>
233
234
  </div>
234
235
  <div>
@@ -240,7 +241,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
240
241
  <div class="alert alert-danger" role="alert">
241
242
  <div class="d-flex">
242
243
  <div>
243
- <!-- SVG icon from http://tabler-icons.io/i/alert-circle -->
244
+ <!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
244
245
  <svg>...</svg>
245
246
  </div>
246
247
  <div>
@@ -255,7 +256,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
255
256
 
256
257
  Add an avatar to your alert modal to make it more personalized.
257
258
 
258
- ```html code example height="420px"
259
+ ```html example height="420px"
259
260
  <div class="alert alert-success" role="alert">
260
261
  <div class="d-flex">
261
262
  <div>
@@ -302,7 +303,7 @@ Add an avatar to your alert modal to make it more personalized.
302
303
 
303
304
  Add primary and secondary buttons to your alert modals if you want users to take a particular action based on the information included in the modal message.
304
305
 
305
- ```html code example height="500px" scrollable
306
+ ```html example height="500px" scrollable
306
307
  <div class="alert alert-success alert-dismissible" role="alert">
307
308
  <h3 class="mb-1">Some Title</h3>
308
309
  <p>Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.</p>
@@ -349,14 +350,14 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
349
350
  <div class="alert alert-important alert-success alert-dismissible" role="alert">
350
351
  <div class="d-flex">
351
352
  <div>
352
- <svg xmlns="http://www.w3.org/2000/svg" class="icon alert-icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
353
- <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
354
- <path d="M5 12l5 5l10 -10"></path>
355
- </svg>
353
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon alert-icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
354
+ <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
355
+ <path d="M5 12l5 5l10 -10"></path>
356
+ </svg>
356
357
  </div>
357
358
  <div>
358
- <h4 class="alert-title">Wow! Everything worked!</h4>
359
- <div class="text-secondary">Your account has been saved!</div>
359
+ <h4 class="alert-title">Wow! Everything worked!</h4>
360
+ <div class="text-secondary">Your account has been saved!</div>
360
361
  </div>
361
362
  </div>
362
363
  <a class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="close"></a>
@@ -381,7 +382,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
381
382
  <div class="alert alert-important alert-success alert-dismissible" role="alert">
382
383
  <div class="d-flex">
383
384
  <div>
384
- <!-- SVG icon from http://tabler-icons.io/i/check -->
385
+ <!-- SVG icon from http://tabler.io/icons/icon/check -->
385
386
  <svg>...</svg>
386
387
  </div>
387
388
  <div>
@@ -393,7 +394,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
393
394
  <div class="alert alert-important alert-info alert-dismissible" role="alert">
394
395
  <div class="d-flex">
395
396
  <div>
396
- <!-- SVG icon from http://tabler-icons.io/i/info-circle -->
397
+ <!-- SVG icon from http://tabler.io/icons/icon/info-circle -->
397
398
  <svg>...</svg>
398
399
  </div>
399
400
  <div>
@@ -405,7 +406,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
405
406
  <div class="alert alert-important alert-warning alert-dismissible" role="alert">
406
407
  <div class="d-flex">
407
408
  <div>
408
- <!-- SVG icon from http://tabler-icons.io/i/alert-triangle -->
409
+ <!-- SVG icon from http://tabler.io/icons/icon/alert-triangle -->
409
410
  <svg>...</svg>
410
411
  </div>
411
412
  <div>
@@ -417,7 +418,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
417
418
  <div class="alert alert-important alert-danger alert-dismissible" role="alert">
418
419
  <div class="d-flex">
419
420
  <div>
420
- <!-- SVG icon from http://tabler-icons.io/i/alert-circle -->
421
+ <!-- SVG icon from http://tabler.io/icons/icon/alert-circle -->
421
422
  <svg>...</svg>
422
423
  </div>
423
424
  <div>
@@ -1,16 +1,25 @@
1
1
  ---
2
2
  title: Autosize
3
- description: The autosize element will automatically adjust the textarea height and make it easier for users to follow as they type.
3
+ summary: The autosize element will automatically adjust the textarea height and make it easier for users to follow as they type.
4
4
  libs: autosize
5
+ description: Auto-adjusting textarea for better usability.
5
6
  ---
6
7
 
7
8
  To be able to use the autosize in your application you will need to install the autosize dependency with `npm install autosize`.
8
9
 
9
10
  ## Default markup
10
11
 
11
- Add the autosize element to your input to make it automatically adjust to the length of a text as a user types it.
12
+ Add the autosize element to your input to make it automatically adjust to the length of a text as a user types it.
12
13
 
13
- ```html code example centered columns={1} scrollable
14
+ To create autosize textarea, add the `data-bs-toggle="autosize"` attribute to the textarea element:
15
+
16
+ ```html
17
+ <textarea class="form-control" data-bs-toggle="autosize" placeholder="Type something…"></textarea>
18
+ ```
19
+
20
+ Look at the example below to see how the autosize element works:
21
+
22
+ ```html example centered columns={1} scrollable background="bg-light" height="20rem"
14
23
  <label class="form-label">Autosize example</label>
15
24
  <textarea class="form-control" data-bs-toggle="autosize" placeholder="Type something…"></textarea>
16
25
  ```
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Avatars
3
- description: Avatars help customise various elements of a user interface and make the product experience more personalised. They are often used in communication apps, collaboration tools and social media.
3
+ summary: Avatars help customise various elements of a user interface and make the product experience more personalised. They are often used in communication apps, collaboration tools and social media.
4
+ description: Personalize UI with user avatars.
4
5
  ---
5
6
 
6
7
  ## Default markup
@@ -66,14 +67,14 @@ Apart from pictures and initials, you can also use icons to make the avatars mor
66
67
 
67
68
  ```html
68
69
  <span class="avatar">
69
- <!-- SVG icon from http://tabler-icons.io/i/user -->
70
+ <!-- SVG icon from http://tabler.io/icons/icon/user -->
70
71
  <svg>...</svg>
71
72
  </span>
72
73
  ```
73
74
 
74
75
  ## Avatar initials color
75
76
 
76
- Customize the color of the avatars' background. You can click [here](/docs/ui/colors) to see the list of available colors.
77
+ Customize the color of the avatars' background. You can click [here](/docs/ui/base/colors) to see the list of available colors.
77
78
 
78
79
  ```html example centered separated code
79
80
  <span class="avatar bg-green-lt">AB</span>
@@ -108,7 +109,9 @@ Add a status indicator to your avatar to show, for instance, if a users is onlin
108
109
  <span class="avatar" style="background-image: url(/samples/avatars/022m.jpg)">
109
110
  <span class="badge bg-success"></span>
110
111
  </span>
111
- <span class="avatar"><span class="badge bg-warning"></span>SA</span>
112
+ <span class="avatar">
113
+ <span class="badge bg-warning"></span>SA
114
+ </span>
112
115
  <span class="avatar" style="background-image: url(/samples/avatars/022m.jpg)">
113
116
  <span class="badge bg-info"></span>
114
117
  </span>
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Badges
3
- description: Badges are small count and labeling components, which are used to add extra information to an interface element. You can use them to draw users' attention to a new element, notify about unread messages or provide any kind of additional info.
3
+ summary: Badges are small count and labeling components, which are used to add extra information to an interface element. You can use them to draw users' attention to a new element, notify about unread messages or provide any kind of additional info.
4
+ description: Add extra information with badges.
4
5
  bootstrapLink: components/badge/
5
6
  ---
6
7
 
@@ -8,7 +9,7 @@ bootstrapLink: components/badge/
8
9
 
9
10
  The default badges are square and come in the basic set of colors.
10
11
 
11
- ```html code example vertical centered separated scrollable height="15rem"
12
+ ```html example vertical centered separated scrollable height="15rem"
12
13
  <span class="badge bg-blue">Blue</span>
13
14
  <span class="badge bg-azure">Azure</span>
14
15
  <span class="badge bg-indigo">Indigo</span>
@@ -25,18 +26,24 @@ The default badges are square and come in the basic set of colors.
25
26
 
26
27
  ## Headings
27
28
 
28
- ```html code example height="240px"
29
- <h1>Example heading <span class="badge bg-secondary">New</span></h1>
30
- <h2>Example heading <span class="badge bg-secondary">New</span></h2>
31
- <h3>Example heading <span class="badge bg-secondary">New</span></h3>
32
- <h4>Example heading <span class="badge bg-secondary">New</span></h4>
33
- <h5>Example heading <span class="badge bg-secondary">New</span></h5>
34
- <h6>Example heading <span class="badge bg-secondary">New</span></h6>
29
+ ```html example height="240px"
30
+ <h1>Example heading <span class="badge bg-secondary">New</span>
31
+ </h1>
32
+ <h2>Example heading <span class="badge bg-secondary">New</span>
33
+ </h2>
34
+ <h3>Example heading <span class="badge bg-secondary">New</span>
35
+ </h3>
36
+ <h4>Example heading <span class="badge bg-secondary">New</span>
37
+ </h4>
38
+ <h5>Example heading <span class="badge bg-secondary">New</span>
39
+ </h5>
40
+ <h6>Example heading <span class="badge bg-secondary">New</span>
41
+ </h6>
35
42
  ```
36
43
 
37
44
  ## Outline badges
38
45
 
39
- ```html code example vertical centered separated scrollable height="15rem"
46
+ ```html example vertical centered separated scrollable height="15rem"
40
47
  <span class="badge badge-outline text-blue">blue</span>
41
48
  <span class="badge badge-outline text-azure">azure</span>
42
49
  <span class="badge badge-outline text-indigo">indigo</span>
@@ -55,7 +62,7 @@ The default badges are square and come in the basic set of colors.
55
62
 
56
63
  Use the `.badge-pill` class if you want to create a badge with rounded corners. Its width will adjust to the label text.
57
64
 
58
- ```html code example centered separated height="7rem"
65
+ ```html example centered separated height="7rem"
59
66
  <span class="badge badge-pill bg-blue">1</span>
60
67
  <span class="badge badge-pill bg-azure">2</span>
61
68
  <span class="badge badge-pill bg-indigo">3</span>
@@ -72,9 +79,9 @@ Use the `.badge-pill` class if you want to create a badge with rounded corners.
72
79
 
73
80
  ## Soft color badges
74
81
 
75
- You can create a soft colour variant of a corresponding contextual badge variation, to make it look more subtle. Click [here](/docs/ui/colors) to see the list of available colors and choose ones that best suit your design.
82
+ You can create a soft colour variant of a corresponding contextual badge variation, to make it look more subtle. Click [here](/docs/ui/base/colors) to see the list of available colors and choose ones that best suit your design.
76
83
 
77
- ```html code example vertical centered separated scrollable height="15rem"
84
+ ```html example vertical centered separated scrollable height="15rem"
78
85
  <span class="badge bg-blue-lt">Blue</span>
79
86
  <span class="badge bg-azure-lt">Azure</span>
80
87
  <span class="badge bg-indigo-lt">Indigo</span>
@@ -93,7 +100,7 @@ You can create a soft colour variant of a corresponding contextual badge variati
93
100
 
94
101
  Place the badge within an `<a>` element if you want it to perform the function of a link and make it clickable.
95
102
 
96
- ```html code example vertical centered separated scrollable height="15rem"
103
+ ```html example vertical centered separated scrollable height="15rem"
97
104
  <a href="#" class="badge bg-blue">Blue</a>
98
105
  <a href="#" class="badge bg-azure">Azure</a>
99
106
  <a href="#" class="badge bg-indigo">Indigo</a>
@@ -113,8 +120,10 @@ Place the badge within an `<a>` element if you want it to perform the function o
113
120
  Badges can be used as part of links or buttons to provide a counter.
114
121
 
115
122
  ```html example centered separated height="7rem"
116
- <button type="button" class="btn">Notifications <span class="badge bg-red ms-2">4</span></button>
117
- <button type="button" class="btn">Notifications <span class="badge bg-green ms-2">4</span></button>
123
+ <button type="button" class="btn">Notifications <span class="badge bg-red ms-2">4</span>
124
+ </button>
125
+ <button type="button" class="btn">Notifications <span class="badge bg-green ms-2">4</span>
126
+ </button>
118
127
  ```
119
128
 
120
129
  ```html
@@ -1,62 +1,153 @@
1
1
  ---
2
2
  title: Breadcrumb
3
- description: Breadcrumbs are used to show the current website or app location and reduce the number of actions users have to take. Thanks to breadcrumbs, they can easily navigate within the website hierarchy and better understand its structure.
3
+ summary: Breadcrumbs are used to show the current website or app location and reduce the number of actions users have to take. Thanks to breadcrumbs, they can easily navigate within the website hierarchy and better understand its structure.
4
4
  bootstrapLink: components/breadcrumb/
5
+ description: Navigation aid for better structure.
5
6
  ---
6
7
 
7
8
  ## Default markup
8
9
 
9
- Add the `:before` pseudo-element in `li` tags to use the default separators. The `active` modifier in a `li` tag will help you indicate the current page location and facilitate navigation within your website or app.
10
+ Use the `breadcrumb` class to add a breadcrumb to your interface design for better navigation. The `active` modifier in a `li` tag will help you indicate the current page location and facilitate navigation within your website or app.
10
11
 
11
- ```html code example centered
12
- <ol class="breadcrumb" aria-label="breadcrumbs">
13
- <li class="breadcrumb-item"><a href="#">Home</a></li>
14
- <li class="breadcrumb-item"><a href="#">Library</a></li>
15
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Data</a></li>
12
+ ```html
13
+ <ol class="breadcrumb">
14
+ <li class="breadcrumb-item">
15
+ <a href="#">...</a>
16
+ </li>
17
+ <li class="breadcrumb-item active">
18
+ <a href="#">...</a>
19
+ </li>
20
+ </ol>
21
+ ```
22
+
23
+ Look at the example below to see how breadcrumbs work in practice.
24
+
25
+ ```html example centered
26
+ <ol class="breadcrumb">
27
+ <li class="breadcrumb-item">
28
+ <a href="#">Home</a>
29
+ </li>
30
+ <li class="breadcrumb-item">
31
+ <a href="#">Library</a>
32
+ </li>
33
+ <li class="breadcrumb-item active">
34
+ <a href="#">Data</a>
35
+ </li>
16
36
  </ol>
17
37
  ```
18
38
 
19
- ## Breadcrumb variations
39
+ ## Different separators
20
40
 
21
- If you wish to use different separators, modify the `$breadcrumb-variants` variable in the Tabler config. Depending on the aesthetics of your design, you can choose dots, bullets or arrows.
41
+ You can use different breadcrumb styles to match your website or app design. Choose between `breadcrumb-dots`, `breadcrumb-arrows`, and `breadcrumb-bullets` to create a unique look.
22
42
 
23
- ```html code example centered
24
- <ol class="breadcrumb breadcrumb-dots" aria-label="breadcrumbs">
25
- <li class="breadcrumb-item"><a href="#">Home</a></li>
26
- <li class="breadcrumb-item"><a href="#">Library</a></li>
27
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Data</a></li>
43
+ ```html
44
+ <ol class="breadcrumb breadcrumb-dots">
45
+ ...
28
46
  </ol>
29
47
  ```
30
48
 
31
- ```html code example centered
32
- <ol class="breadcrumb breadcrumb-arrows" aria-label="breadcrumbs">
33
- <li class="breadcrumb-item"><a href="#">Home</a></li>
34
- <li class="breadcrumb-item"><a href="#">Library</a></li>
35
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Data</a></li>
49
+ This example shows how to use different breadcrumb styles.
50
+
51
+ ```html example centered separated vertical
52
+ <ol class="breadcrumb breadcrumb-dots">
53
+ <li class="breadcrumb-item">
54
+ <a href="#">Home</a>
55
+ </li>
56
+ <li class="breadcrumb-item">
57
+ <a href="#">Library</a>
58
+ </li>
59
+ <li class="breadcrumb-item active">
60
+ <a href="#">Data</a>
61
+ </li>
62
+ </ol>
63
+ <ol class="breadcrumb breadcrumb-arrows">
64
+ <li class="breadcrumb-item">
65
+ <a href="#">Home</a>
66
+ </li>
67
+ <li class="breadcrumb-item">
68
+ <a href="#">Library</a>
69
+ </li>
70
+ <li class="breadcrumb-item active">
71
+ <a href="#">Data</a>
72
+ </li>
73
+ </ol>
74
+ <ol class="breadcrumb breadcrumb-bullets">
75
+ <li class="breadcrumb-item">
76
+ <a href="#">Home</a>
77
+ </li>
78
+ <li class="breadcrumb-item">
79
+ <a href="#">Library</a>
80
+ </li>
81
+ <li class="breadcrumb-item active">
82
+ <a href="#">Data</a>
83
+ </li>
36
84
  </ol>
37
85
  ```
38
86
 
39
- ```html code example centered
40
- <ol class="breadcrumb breadcrumb-bullets" aria-label="breadcrumbs">
41
- <li class="breadcrumb-item"><a href="#">Home</a></li>
42
- <li class="breadcrumb-item"><a href="#">Library</a></li>
43
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Data</a></li>
87
+ ## With icon
88
+
89
+ You can use icons in breadcrumbs to make them more visually appealing. The example below demonstrates how to use icons in breadcrumbs.
90
+
91
+ ```html example centered
92
+ <ol class="breadcrumb">
93
+ <li class="breadcrumb-item">
94
+ <a href="#">
95
+ <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">
96
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
97
+ <polyline points="5 12 3 12 12 3 21 12 19 12" />
98
+ <path d="M5 12v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-8" />
99
+ <rect x="10" y="12" width="4" height="4" />
100
+ </svg>
101
+ </a>
102
+ </li>
103
+ <li class="breadcrumb-item">
104
+ <a href="#">Library</a>
105
+ </li>
106
+ <li class="breadcrumb-item active">
107
+ <a href="#">Data</a>
108
+ </li>
44
109
  </ol>
45
110
  ```
46
111
 
112
+ ## Muted breadcrumbs
113
+
114
+ You can use the `breadcrumb-muted` class to create a muted breadcrumb style. This style is perfect for breadcrumbs that are not the main focus of your website or app.
115
+
116
+ ```html example centered
117
+ <nav aria-label="breadcrumb">
118
+ <ol class="breadcrumb breadcrumb-muted">
119
+ <li class="breadcrumb-item">
120
+ <a href="#">Home</a>
121
+ </li>
122
+ <li class="breadcrumb-item">
123
+ <a href="#">Library</a>
124
+ </li>
125
+ <li class="breadcrumb-item active">
126
+ <a href="#">Data</a>
127
+ </li>
128
+ </ol>
129
+ </nav>
130
+ ```
131
+
47
132
  ## Breadcrumb in headers
48
133
 
49
- If you wish to use breadcrumbs in headers, place them above the headers.
134
+ You can use breadcrumbs in headers to show the current page location and provide a better navigation experience. The example below demonstrates how to use breadcrumbs in headers.
50
135
 
51
- ```html example vertical centered columns={3}
136
+ ```html example vertical centered columns={3} background="surface"
52
137
  <div class="page-header">
53
138
  <div class="row align-items-center mw-100">
54
139
  <div class="col">
55
140
  <div class="mb-1">
56
- <ol class="breadcrumb" aria-label="breadcrumbs">
57
- <li class="breadcrumb-item"><a href="#">Home</a></li>
58
- <li class="breadcrumb-item"><a href="#">Library</a></li>
59
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Articles</a></li>
141
+ <ol class="breadcrumb">
142
+ <li class="breadcrumb-item">
143
+ <a href="#">Home</a>
144
+ </li>
145
+ <li class="breadcrumb-item">
146
+ <a href="#">Library</a>
147
+ </li>
148
+ <li class="breadcrumb-item active">
149
+ <a href="#">Articles</a>
150
+ </li>
60
151
  </ol>
61
152
  </div>
62
153
  <h2 class="page-title">
@@ -65,39 +156,13 @@ If you wish to use breadcrumbs in headers, place them above the headers.
65
156
  </div>
66
157
  <div class="col-auto">
67
158
  <div class="btn-list">
68
- <a href="#" class="btn d-none d-md-inline-flex"><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">
159
+ <a href="#" class="btn d-none d-md-inline-flex">
160
+ <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">
69
161
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
70
162
  <path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
71
163
  <path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
72
164
  <path d="M16 5l3 3" />
73
- </svg> Edit</a>
74
- <a href="#" class="btn btn-primary">Publish</a>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- ```
80
-
81
- ```html
82
- <div class="page-header">
83
- <div class="row align-items-center mw-100">
84
- <div class="col">
85
- <div class="mb-1">
86
- <ol class="breadcrumb" aria-label="breadcrumbs">
87
- <li class="breadcrumb-item"><a href="#">Home</a></li>
88
- <li class="breadcrumb-item"><a href="#">Library</a></li>
89
- <li class="breadcrumb-item active" aria-current="page"><a href="#">Articles</a></li>
90
- </ol>
91
- </div>
92
- <h2 class="page-title">
93
- <span class="text-truncate">Knights of Ni, we are but simple travelers who seek the enchanter who lives beyond these woods.</span>
94
- </h2>
95
- </div>
96
- <div class="col-auto">
97
- <div class="btn-list">
98
- <a href="#" class="btn d-none d-md-inline-flex">
99
- <!-- SVG icon from http://tabler-icons.io/i/edit -->
100
- <svg>...</svg> Edit
165
+ </svg> Edit
101
166
  </a>
102
167
  <a href="#" class="btn btn-primary">Publish</a>
103
168
  </div>
@@ -105,3 +170,4 @@ If you wish to use breadcrumbs in headers, place them above the headers.
105
170
  </div>
106
171
  </div>
107
172
  ```
173
+