@tabler/core 1.0.0-beta22 → 1.0.0-beta24

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 (265) hide show
  1. package/LICENSE +1 -1
  2. package/dist/css/demo.css +2 -2
  3. package/dist/css/demo.min.css +2 -2
  4. package/dist/css/demo.rtl.css +2 -2
  5. package/dist/css/demo.rtl.min.css +2 -2
  6. package/dist/css/tabler-flags.css +2 -2
  7. package/dist/css/tabler-flags.min.css +2 -2
  8. package/dist/css/tabler-flags.rtl.css +2 -2
  9. package/dist/css/tabler-flags.rtl.min.css +2 -2
  10. package/dist/css/tabler-marketing.css +4751 -0
  11. package/dist/css/tabler-marketing.min.css +9 -0
  12. package/dist/css/tabler-marketing.rtl.css +4751 -0
  13. package/dist/css/tabler-marketing.rtl.min.css +9 -0
  14. package/dist/css/tabler-payments.css +2 -2
  15. package/dist/css/tabler-payments.min.css +2 -2
  16. package/dist/css/tabler-payments.rtl.css +2 -2
  17. package/dist/css/tabler-payments.rtl.min.css +2 -2
  18. package/dist/css/tabler-socials.css +221 -0
  19. package/dist/css/tabler-socials.min.css +9 -0
  20. package/dist/css/tabler-socials.rtl.css +221 -0
  21. package/dist/css/tabler-socials.rtl.min.css +9 -0
  22. package/dist/css/tabler-vendors.css +25 -19
  23. package/dist/css/tabler-vendors.min.css +3 -3
  24. package/dist/css/tabler-vendors.rtl.css +25 -19
  25. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  26. package/dist/css/tabler.css +1300 -1501
  27. package/dist/css/tabler.min.css +4 -4
  28. package/dist/css/tabler.rtl.css +1300 -1501
  29. package/dist/css/tabler.rtl.min.css +4 -4
  30. package/dist/img/social/apple-gray.svg +3 -0
  31. package/dist/img/social/apple.svg +3 -0
  32. package/dist/img/social/discord-gray.svg +3 -0
  33. package/dist/img/social/discord.svg +3 -0
  34. package/dist/img/social/dribbble-gray.svg +3 -0
  35. package/dist/img/social/dribbble.svg +4 -0
  36. package/dist/img/social/facebook-gray.svg +3 -0
  37. package/dist/img/social/facebook.svg +4 -0
  38. package/dist/img/social/figma-gray.svg +3 -0
  39. package/dist/img/social/figma.svg +7 -0
  40. package/dist/img/social/github-gray.svg +10 -0
  41. package/dist/img/social/github.svg +10 -0
  42. package/dist/img/social/google-gray.svg +3 -0
  43. package/dist/img/social/google.svg +6 -0
  44. package/dist/img/social/instagram-gray.svg +5 -0
  45. package/dist/img/social/instagram.svg +18 -0
  46. package/dist/img/social/linkedin-gray.svg +3 -0
  47. package/dist/img/social/linkedin.svg +3 -0
  48. package/dist/img/social/medium-gray.svg +5 -0
  49. package/dist/img/social/medium.svg +5 -0
  50. package/dist/img/social/meta-gray.svg +5 -0
  51. package/dist/img/social/meta.svg +17 -0
  52. package/dist/img/social/metamask-gray.svg +12 -0
  53. package/dist/img/social/metamask.svg +14 -0
  54. package/dist/img/social/pinterest-gray.svg +3 -0
  55. package/dist/img/social/pinterest.svg +4 -0
  56. package/dist/img/social/reddit-gray.svg +6 -0
  57. package/dist/img/social/reddit.svg +11 -0
  58. package/dist/img/social/signal-gray.svg +10 -0
  59. package/dist/img/social/signal.svg +10 -0
  60. package/dist/img/social/skype-gray.svg +3 -0
  61. package/dist/img/social/skype.svg +3 -0
  62. package/dist/img/social/snapchat-gray.svg +10 -0
  63. package/dist/img/social/snapchat.svg +11 -0
  64. package/dist/img/social/spotify-gray.svg +3 -0
  65. package/dist/img/social/spotify.svg +3 -0
  66. package/dist/img/social/telegram-gray.svg +3 -0
  67. package/dist/img/social/telegram.svg +10 -0
  68. package/dist/img/social/tiktok-gray.svg +3 -0
  69. package/dist/img/social/tiktok.svg +5 -0
  70. package/dist/img/social/tumblr-gray.svg +3 -0
  71. package/dist/img/social/tumblr.svg +3 -0
  72. package/dist/img/social/twitch-gray.svg +5 -0
  73. package/dist/img/social/twitch.svg +6 -0
  74. package/dist/img/social/vk-gray.svg +3 -0
  75. package/dist/img/social/vk.svg +4 -0
  76. package/dist/img/social/x-gray.svg +3 -0
  77. package/dist/img/social/x.svg +3 -0
  78. package/dist/img/social/youtube-gray.svg +3 -0
  79. package/dist/img/social/youtube.svg +11 -0
  80. package/dist/js/demo-theme.js +2 -2
  81. package/dist/js/demo-theme.min.js +2 -2
  82. package/dist/js/demo.js +2 -2
  83. package/dist/js/demo.min.js +2 -2
  84. package/dist/js/tabler.esm.js +19 -4
  85. package/dist/js/tabler.esm.min.js +3 -3
  86. package/dist/js/tabler.js +19 -4
  87. package/dist/js/tabler.min.js +4 -4
  88. package/docs/icons/index.mdx +3 -93
  89. package/docs/icons/libraries/index.mdx +5 -0
  90. package/docs/icons/{preact.mdx → libraries/preact.mdx} +4 -2
  91. package/docs/icons/{react.mdx → libraries/react.mdx} +5 -3
  92. package/docs/icons/{solidjs.mdx → libraries/solidjs.mdx} +5 -2
  93. package/docs/icons/{svelte.mdx → libraries/svelte.mdx} +5 -2
  94. package/docs/icons/{vue.mdx → libraries/vue.mdx} +13 -8
  95. package/docs/icons/{webfont.mdx → libraries/webfont.mdx} +4 -1
  96. package/docs/icons/plugins/figma.mdx +15 -0
  97. package/docs/icons/plugins/index.mdx +4 -0
  98. package/docs/icons/{eps.mdx → static-files/eps.mdx} +3 -1
  99. package/docs/icons/static-files/index.mdx +5 -0
  100. package/docs/icons/{pdf.mdx → static-files/pdf.mdx} +3 -1
  101. package/docs/icons/static-files/png.mdx +31 -0
  102. package/docs/icons/{svg.mdx → static-files/svg.mdx} +18 -18
  103. package/docs/illustrations/index.mdx +8 -0
  104. package/docs/illustrations/introduction/contents.mdx +77 -0
  105. package/docs/illustrations/introduction/customization.mdx +431 -0
  106. package/docs/illustrations/introduction/index.mdx +5 -0
  107. package/docs/illustrations/introduction/license.mdx +22 -0
  108. package/docs/img/browsers/brave.svg +1 -0
  109. package/docs/img/browsers/chrome.svg +1 -0
  110. package/docs/img/browsers/edge.svg +1 -0
  111. package/docs/img/browsers/electron.svg +1 -0
  112. package/docs/img/browsers/firefox.svg +1 -0
  113. package/docs/img/browsers/internet-explorer.svg +1 -0
  114. package/docs/img/browsers/opera.svg +1 -0
  115. package/docs/img/browsers/safari.svg +1 -0
  116. package/docs/img/browsers/vivaldi.svg +1 -0
  117. package/docs/img/cover-illustrations-dark.png +0 -0
  118. package/docs/img/cover-illustrations.png +0 -0
  119. package/docs/img/cover-tabler-dark.png +0 -0
  120. package/docs/img/cover-tabler.png +0 -0
  121. package/docs/img/icons/figma-plugin.png +0 -0
  122. package/docs/img/icons/package-angular-dark.png +0 -0
  123. package/docs/img/icons/package-angular.png +0 -0
  124. package/docs/img/icons/package-eps-dark.png +0 -0
  125. package/docs/img/icons/package-eps.png +0 -0
  126. package/docs/img/icons/package-js-dark.png +0 -0
  127. package/docs/img/icons/package-js.png +0 -0
  128. package/docs/img/icons/package-pdf-dark.png +0 -0
  129. package/docs/img/icons/package-pdf.png +0 -0
  130. package/docs/img/icons/package-png-dark.png +0 -0
  131. package/docs/img/icons/package-png.png +0 -0
  132. package/docs/img/icons/package-preact-dark.png +0 -0
  133. package/docs/img/icons/package-preact.png +0 -0
  134. package/docs/img/icons/package-react-dark.png +0 -0
  135. package/docs/img/icons/package-react-native-dark.png +0 -0
  136. package/docs/img/icons/package-react-native.png +0 -0
  137. package/docs/img/icons/package-react.png +0 -0
  138. package/docs/img/icons/package-solidjs-dark.png +0 -0
  139. package/docs/img/icons/package-solidjs.png +0 -0
  140. package/docs/img/icons/package-sprite-dark.png +0 -0
  141. package/docs/img/icons/package-sprite.png +0 -0
  142. package/docs/img/icons/package-svelte-dark.png +0 -0
  143. package/docs/img/icons/package-svelte.png +0 -0
  144. package/docs/img/icons/package-svg-dark.png +0 -0
  145. package/docs/img/icons/package-svg.png +0 -0
  146. package/docs/img/icons/package-vue-dark.png +0 -0
  147. package/docs/img/icons/package-vue.png +0 -0
  148. package/docs/img/icons/package-webfont-dark.png +0 -0
  149. package/docs/img/icons/package-webfont.png +0 -0
  150. package/docs/index.mdx +16 -0
  151. package/docs/ui/base/colors.mdx +63 -5
  152. package/docs/ui/base/index.mdx +6 -0
  153. package/docs/ui/base/typography.mdx +96 -101
  154. package/docs/ui/components/alerts.mdx +45 -120
  155. package/docs/ui/components/autosize.mdx +12 -3
  156. package/docs/ui/components/avatars.mdx +7 -4
  157. package/docs/ui/components/badges.mdx +66 -75
  158. package/docs/ui/components/breadcrumb.mdx +125 -59
  159. package/docs/ui/components/buttons.mdx +142 -87
  160. package/docs/ui/components/cards.mdx +48 -27
  161. package/docs/ui/components/carousel.mdx +8 -7
  162. package/docs/ui/components/charts.mdx +15 -24
  163. package/docs/ui/components/countup.mdx +74 -45
  164. package/docs/ui/components/datagrid.mdx +10 -2
  165. package/docs/ui/components/divider.mdx +6 -6
  166. package/docs/ui/components/dropdowns.mdx +24 -15
  167. package/docs/ui/components/dropzone.mdx +39 -14
  168. package/docs/ui/components/empty.mdx +7 -5
  169. package/docs/ui/components/icons.mdx +53 -14
  170. package/docs/ui/components/index.mdx +6 -0
  171. package/docs/ui/components/inline-player.mdx +31 -4
  172. package/docs/ui/components/modals.mdx +53 -18
  173. package/docs/ui/components/offcanvas.mdx +55 -0
  174. package/docs/ui/components/placeholder.mdx +25 -25
  175. package/docs/ui/components/popover.mdx +8 -9
  176. package/docs/ui/components/progress.mdx +120 -19
  177. package/docs/ui/components/range-slider.mdx +17 -3
  178. package/docs/ui/components/ribbons.mdx +13 -12
  179. package/docs/ui/components/spinners.mdx +31 -10
  180. package/docs/ui/components/statuses.mdx +50 -13
  181. package/docs/ui/components/steps.mdx +62 -19
  182. package/docs/ui/components/switch-icon.mdx +4 -3
  183. package/docs/ui/components/tables.mdx +37 -17
  184. package/docs/ui/components/tabs.mdx +17 -11
  185. package/docs/ui/components/timelines.mdx +48 -29
  186. package/docs/ui/components/tinymce.mdx +3 -3
  187. package/docs/ui/components/toasts.mdx +3 -2
  188. package/docs/ui/components/tooltips.mdx +4 -3
  189. package/docs/ui/components/tracking.mdx +39 -34
  190. package/docs/ui/components/vector-maps.mdx +170 -0
  191. package/docs/ui/forms/form-color-check.mdx +36 -11
  192. package/docs/ui/forms/form-elements.mdx +32 -17
  193. package/docs/ui/forms/form-fieldset.mdx +3 -2
  194. package/docs/ui/forms/form-helpers.mdx +71 -4
  195. package/docs/ui/forms/form-image-check.mdx +43 -29
  196. package/docs/ui/forms/form-input-mask.mdx +33 -5
  197. package/docs/ui/forms/form-selectboxes.mdx +101 -16
  198. package/docs/ui/forms/form-validation.mdx +54 -13
  199. package/docs/ui/forms/index.mdx +6 -0
  200. package/docs/ui/getting-started/browser-support.mdx +10 -2
  201. package/docs/ui/getting-started/customize.mdx +5 -4
  202. package/docs/ui/getting-started/download.mdx +3 -5
  203. package/docs/ui/getting-started/faq.mdx +3 -1
  204. package/docs/ui/getting-started/how-to-contribute.mdx +96 -0
  205. package/docs/ui/getting-started/index.mdx +4 -28
  206. package/docs/ui/getting-started/installation.mdx +67 -0
  207. package/docs/ui/getting-started/license.mdx +30 -0
  208. package/docs/ui/index.mdx +8 -0
  209. package/docs/ui/layout/index.mdx +6 -0
  210. package/docs/ui/layout/navbars.mdx +106 -0
  211. package/docs/ui/layout/navs-tabls.mdx +187 -0
  212. package/docs/ui/layout/page-headers.mdx +16 -9
  213. package/docs/ui/layout/page-layouts.mdx +10 -6
  214. package/docs/ui/plugins/flags.mdx +270 -6
  215. package/docs/ui/plugins/index.mdx +6 -0
  216. package/docs/ui/plugins/payments.mdx +108 -4
  217. package/docs/ui/plugins/social-icons.mdx +135 -0
  218. package/docs/ui/utilities/borders.mdx +69 -49
  219. package/docs/ui/utilities/cursors.mdx +22 -51
  220. package/docs/ui/utilities/index.mdx +5 -0
  221. package/docs/ui/utilities/interactions.mdx +10 -5
  222. package/docs/ui/utilities/margins.mdx +234 -0
  223. package/docs/ui/utilities/vertical-align.mdx +66 -0
  224. package/docs/ui/utilities/visually-hidden.mdx +12 -0
  225. package/package.json +9 -6
  226. package/src/js/src/countup.js +17 -0
  227. package/src/js/tabler.esm.js +1 -0
  228. package/src/js/tabler.js +1 -0
  229. package/src/scss/_utilities-marketing.scss +209 -0
  230. package/src/scss/_utilities.scss +5 -9
  231. package/src/scss/_variables-marketing.scss +0 -0
  232. package/src/scss/_variables.scss +57 -22
  233. package/src/scss/layout/_animations.scss +2 -1
  234. package/src/scss/layout/_navbar.scss +0 -1
  235. package/src/scss/marketing/_browser.scss +67 -0
  236. package/src/scss/marketing/_core.scss +8 -0
  237. package/src/scss/marketing/_filters.scss +0 -0
  238. package/src/scss/marketing/_hero.scss +69 -0
  239. package/src/scss/marketing/_pricing.scss +111 -0
  240. package/src/scss/marketing/_sections.scss +124 -0
  241. package/src/scss/marketing/_shape.scss +31 -0
  242. package/src/scss/mixins/_mixins.scss +2 -2
  243. package/src/scss/tabler-marketing.scss +13 -0
  244. package/src/scss/tabler-socials.scss +2 -0
  245. package/src/scss/tabler-vendors.scss +1 -0
  246. package/src/scss/ui/_buttons.scss +8 -7
  247. package/src/scss/ui/_forms.scss +4 -0
  248. package/src/scss/ui/_images.scss +4 -0
  249. package/src/scss/ui/_lists.scss +11 -15
  250. package/src/scss/ui/_social.scss +52 -0
  251. package/src/scss/ui/_tables.scss +0 -1
  252. package/src/scss/ui/_type.scss +4 -0
  253. package/src/scss/utils/_colors.scss +1 -1
  254. package/src/scss/vendor/_dropzone.scss +3 -3
  255. package/src/scss/vendor/_tom-select.scss +1 -0
  256. package/src/scss/vendor/_typed.scss +4 -0
  257. package/dist/css/tabler-social.css +0 -10
  258. package/dist/css/tabler-social.min.css +0 -8
  259. package/dist/css/tabler-social.rtl.css +0 -10
  260. package/dist/css/tabler-social.rtl.min.css +0 -8
  261. package/docs/icons/figma.mdx +0 -7
  262. package/docs/icons/png.mdx +0 -19
  263. package/docs/menu.json +0 -317
  264. package/docs/ui/components/progressbg.mdx +0 -16
  265. package/src/scss/tabler-social.scss +0 -1
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  title: Placeholder
3
- description: Placeholder is used to reserve space for content that soon will appear in a layout.
3
+ summary: Placeholder is used to reserve space for content that soon will appear in a layout.
4
+ description: Reserve space for upcoming content.
4
5
  ---
5
6
 
6
7
  ## Placeholder line
7
8
 
8
9
  Placeholder lines can contain have lines of text. Their length is different and depends on the `col-` class.
9
10
 
10
- ```html code example columns={1}
11
+ ```html example columns={1}
11
12
  <div class="placeholder col-9"></div>
12
13
  <div class="placeholder col-11"></div>
13
14
  <div class="placeholder col-10"></div>
@@ -16,7 +17,7 @@ Placeholder lines can contain have lines of text. Their length is different and
16
17
 
17
18
  However, it may be useful, however, to specify the full width in order to fit the content more effectively.
18
19
 
19
- ```html code example columns={1}
20
+ ```html example columns={1}
20
21
  <div class="placeholder col-12"></div>
21
22
  <div class="placeholder col-12"></div>
22
23
  <div class="placeholder col-12"></div>
@@ -25,7 +26,7 @@ However, it may be useful, however, to specify the full width in order to fit th
25
26
 
26
27
  You can also move the lines to right or to center:
27
28
 
28
- ```html code example columns={1}
29
+ ```html example columns={1}
29
30
  <div class="text-end">
30
31
  <div class="placeholder col-11"></div>
31
32
  <div class="placeholder col-10"></div>
@@ -42,7 +43,7 @@ You can also move the lines to right or to center:
42
43
 
43
44
  A placeholder can contain also a header element looks like header:
44
45
 
45
- ```html code example columns={1}
46
+ ```html example columns={1}
46
47
  <div class="placeholder col-9 mb-3"></div>
47
48
  <div class="placeholder placeholder-xs col-10"></div>
48
49
  <div class="placeholder placeholder-xs col-11"></div>
@@ -50,9 +51,15 @@ A placeholder can contain also a header element looks like header:
50
51
 
51
52
  ## Placeholder avatar
52
53
 
53
- You can make your placeholder item look like an avatar.
54
+ You can use a placeholder, which will look like an avatar. You can use the `avatar` component, and get the image in the right proportions.
54
55
 
55
- ```html code example columns={1}
56
+ ```html
57
+ <div class="avatar placeholder"></div>
58
+ ```
59
+
60
+ Look at the example below to see how the avatar placeholder looks like.
61
+
62
+ ```html example columns={1} centered
56
63
  <div class="row">
57
64
  <div class="col-auto">
58
65
  <div class="avatar placeholder"></div>
@@ -64,9 +71,9 @@ You can make your placeholder item look like an avatar.
64
71
  </div>
65
72
  ```
66
73
 
67
- The size of avatars is exactly the same as a regular avatar.
74
+ You can also use the `avatar` component with different sizes. Look at the example below to see how the avatar placeholder looks like.
68
75
 
69
- ```html code example centered separated
76
+ ```html example centered separated
70
77
  <div class="avatar avatar-xl placeholder"></div>
71
78
  <div class="avatar avatar-lg placeholder"></div>
72
79
  <div class="avatar avatar-md placeholder"></div>
@@ -81,7 +88,7 @@ You can use a placeholder, which will look like a picture. You can use the `rati
81
88
 
82
89
  You can also use the `ratio` component, and get the image in the right proportions.
83
90
 
84
- ```html code example columns={1} height={500} scrollable
91
+ ```html example columns={1} height={500} scrollable separated vertical
85
92
  <div class="ratio ratio-1x1 placeholder">
86
93
  <div class="placeholder-image"></div>
87
94
  </div>
@@ -98,23 +105,16 @@ You can also use the `ratio` component, and get the image in the right proportio
98
105
 
99
106
  ## Placeholder color
100
107
 
101
- By default, the `placeholder` uses `currentColor`. This can be overridden with a custom color or utility class.
108
+ By default, the `placeholder` uses `currentColor`. This can be overridden with a custom color or utility class. Full color classes are available for background colors.
102
109
 
103
- ```html example columns={1} height={240}
104
- <span class="placeholder col-12"></span>
105
- <span class="placeholder col-12 bg-primary"></span>
106
- <span class="placeholder col-12 bg-secondary"></span>
107
- <span class="placeholder col-12 bg-success"></span>
108
- <span class="placeholder col-12 bg-danger"></span>
109
- <span class="placeholder col-12 bg-warning"></span>
110
- <span class="placeholder col-12 bg-info"></span>
111
- <span class="placeholder col-12 bg-light"></span>
110
+ ```html
112
111
  <span class="placeholder col-12 bg-dark"></span>
113
112
  ```
114
113
 
115
- ```html
116
- <span class="placeholder col-12"></span>
114
+ Look at the example below to see how the color affects the placeholder.
117
115
 
116
+ ```html example columns={1} height={240}
117
+ <span class="placeholder col-12"></span>
118
118
  <span class="placeholder col-12 bg-primary"></span>
119
119
  <span class="placeholder col-12 bg-secondary"></span>
120
120
  <span class="placeholder col-12 bg-success"></span>
@@ -129,7 +129,7 @@ By default, the `placeholder` uses `currentColor`. This can be overridden with a
129
129
 
130
130
  The size of `.placeholders` are based on the typographic style of the parent element. Customize them with sizing modifiers: `.placeholder-lg`, `.placeholder-sm`, or `.placeholder-xs`.
131
131
 
132
- ```html code example columns={1}
132
+ ```html example columns={1}
133
133
  <span class="placeholder col-12 placeholder-lg"></span>
134
134
  <span class="placeholder col-12"></span>
135
135
  <span class="placeholder col-12 placeholder-sm"></span>
@@ -140,7 +140,7 @@ The size of `.placeholders` are based on the typographic style of the parent ele
140
140
 
141
141
  Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better convey the perception of something being actively loaded.
142
142
 
143
- ```html code example columns={1}
143
+ ```html example columns={1}
144
144
  <p class="placeholder-glow">
145
145
  <span class="placeholder col-12"></span>
146
146
  </p>
@@ -153,7 +153,7 @@ Animate placeholders with `.placeholder-glow` or `.placeholder-wave` to better c
153
153
 
154
154
  See in the following examples how else you can use the placeholder component
155
155
 
156
- ```html code example columns={1} height={1000} separated vertical scrollable
156
+ ```html example columns={1} height={1000} separated vertical scrollable background="surface"
157
157
  <div class="card placeholder-glow">
158
158
  <div class="ratio ratio-21x9 card-img-top placeholder"></div>
159
159
  <div class="card-body">
@@ -1,14 +1,15 @@
1
1
  ---
2
2
  title: Popovers
3
- description: Popovers are used to provide additional information on elements where a simple tooltip is not sufficient.
3
+ summary: Popovers are used to provide additional information on elements where a simple tooltip is not sufficient.
4
4
  bootstrapLink: components/popovers
5
+ description: Provide extra information with popovers.
5
6
  ---
6
7
 
7
8
  ## Default markup
8
9
 
9
10
  To create a default popover use:
10
11
 
11
- ```html code example centered
12
+ ```html example centered
12
13
  <button type="button" class="btn" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">Click to toggle popover</button>
13
14
  ```
14
15
 
@@ -25,16 +26,16 @@ Four options are available: `top`, `right`, `bottom`, and `left` aligned. Direct
25
26
 
26
27
  ```html
27
28
  <button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content="Top popover">
28
- Popover on top
29
+ Popover on top
29
30
  </button>
30
31
  <button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="right" data-bs-content="Right popover">
31
- Popover on right
32
+ Popover on right
32
33
  </button>
33
34
  <button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Bottom popover">
34
- Popover on bottom
35
+ Popover on bottom
35
36
  </button>
36
37
  <button type="button" class="btn" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="left" data-bs-content="Left popover">
37
- Popover on left
38
+ Popover on left
38
39
  </button>
39
40
  ```
40
41
 
@@ -47,9 +48,7 @@ Popover can be triggered `manual`, with a `click` and on `focus` and on `hover`.
47
48
  ```
48
49
 
49
50
  ```html
50
- <button type="button" class="btn btn-primary" data-bs-trigger="hover" data-bs-toggle="popover"
51
- title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?"
52
- >
51
+ <button type="button" class="btn btn-primary" data-bs-trigger="hover" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's very engaging. Right?">
53
52
  Hover to toggle popover
54
53
  </button>
55
54
  ```
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  title: Progress bars
3
- description: Progress bars are used to provide feedback on an action status and inform users of the current progress. Although seemingly small interface elements, they are extremely hepful in managing users' expectations and preventing them from abandoning a process they have initiated.
3
+ summary: Progress bars are used to provide feedback on an action status and inform users of the current progress. Although seemingly small interface elements, they are extremely hepful in managing users' expectations and preventing them from abandoning a process they have initiated.
4
4
  bootstrapLink: components/progress
5
+ description: Track and display progress visually.
5
6
  ---
6
7
 
7
8
  ## Default markup
@@ -26,22 +27,16 @@ To create a default progress bar, add a `.progress` class to a `<div>` element.
26
27
 
27
28
  Using Bootstrap’s typical naming structure, you can create a standard progress bar or scale it up or down to different sizes based on what’s needed.
28
29
 
29
- ```html code example columns={1} centered
30
- <div class="progress progress-sm">
31
- <div class="progress-bar" style="width: 57%" role="progressbar" aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" aria-label="57% Complete">
32
- <span class="visually-hidden">57% Complete</span>
33
- </div>
34
- </div>
30
+ ```html
31
+ <div class="progress progress-sm">...</div>
35
32
  ```
36
33
 
37
- ## Progress without value
34
+ Look at the example below to see how it works:
38
35
 
39
- Remove the displayed value by adding the `.visually-hidden` class.
40
-
41
- ```html code example columns={1} centered
42
- <div class="progress">
43
- <div class="progress-bar" style="width: 75%" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" aria-label="75% Complete">
44
- <span class="visually-hidden">75% Complete</span>
36
+ ```html example columns={1} centered
37
+ <div class="progress progress-sm">
38
+ <div class="progress-bar" style="width: 57%" role="progressbar" aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" aria-label="57% Complete">
39
+ <span class="visually-hidden">57% Complete</span>
45
40
  </div>
46
41
  </div>
47
42
  ```
@@ -50,7 +45,7 @@ Remove the displayed value by adding the `.visually-hidden` class.
50
45
 
51
46
  You can create a progress bar which shows indeterminate progress by adding `.progress-bar-indeterminate` to the `.progress-bar` element.
52
47
 
53
- ```html code example columns={1} centered
48
+ ```html example columns={1} centered
54
49
  <div class="progress progress-sm">
55
50
  <div class="progress-bar progress-bar-indeterminate"></div>
56
51
  </div>
@@ -58,17 +53,25 @@ You can create a progress bar which shows indeterminate progress by adding `.pro
58
53
 
59
54
  ## Native progress element
60
55
 
61
- You can also use native HTML5 `<progress>` element.
56
+ You can also use native HTML5 `<progress>` element. It is a great way to create a progress bar without the need for additional HTML elements.
57
+
58
+ ```html
59
+ <progress class="progress progress-sm" value="15" max="100" />
60
+ ```
61
+
62
+ This is how it looks like:
62
63
 
63
- ```html code example columns={1} centered
64
+ ```html example columns={1} centered
64
65
  <progress class="progress progress-sm" value="15" max="100" />
65
66
  ```
66
67
 
67
68
  ## Progress color
68
69
 
69
- Customize the color of the progress bar to suit your design. Click [here](/docs/ui/colors) to see the list of available colors.
70
+ You can change the color of the progress bar by adding a color class to the `.progress-bar` element. You can use the color classes like `.bg-primary`, `.bg-success`, etc. to change the color of the progress bar.
71
+
72
+ Full list of available colors can be found [here](/docs/ui/base/colors).
70
73
 
71
- ```html code example columns={1} centered separated
74
+ ```html example columns={1} centered separated
72
75
  <div class="progress">
73
76
  <div class="progress-bar bg-red" style="width: 24%" role="progressbar" aria-valuenow="24" aria-valuemin="0" aria-valuemax="100" aria-label="24% Complete">
74
77
  <span class="visually-hidden">24% Complete</span>
@@ -90,3 +93,101 @@ Customize the color of the progress bar to suit your design. Click [here](/docs/
90
93
  </div>
91
94
  </div>
92
95
  ```
96
+
97
+ ## Multiple progress bars
98
+
99
+ You can stack multiple progress bars on top of each other to create a visually appealing design. This can be done by adding multiple `.progress` elements inside a `.progress-stacked` container.
100
+
101
+ ```html
102
+ <div class="progress-stacked">
103
+ <div class="progress">...</div>
104
+ </div>
105
+ ```
106
+
107
+ This is how it looks like:
108
+
109
+ ```html example columns={2} centered
110
+ <div class="progress-stacked">
111
+ <div class="progress" style="width: 15%">
112
+ <div class="progress-bar"></div>
113
+ </div>
114
+ <div class="progress" style="width: 30%">
115
+ <div class="progress-bar bg-success"></div>
116
+ </div>
117
+ <div class="progress" style="width: 20%">
118
+ <div class="progress-bar bg-info"></div>
119
+ </div>
120
+ </div>
121
+ ```
122
+
123
+ ## Striped progress
124
+
125
+ You can create a striped progress bar by adding the `.progress-bar-striped` class to the `.progress-bar` element.
126
+
127
+ ```html
128
+ <div class="progress">
129
+ <div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 60%"></div>
130
+ </div>
131
+ ```
132
+
133
+ This is how it looks like:
134
+
135
+ ```html example columns={1} centered separated
136
+ <div class="progress">
137
+ <div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 60%"></div>
138
+ </div>
139
+ ```
140
+
141
+ ## Progress background
142
+
143
+ By using a progress bar component as a background element, designers can create a dynamic and engaging visual experience for users. For example, the progress bar could be used to represent the completion of a long-term goal or project, such as a fundraising campaign or construction project. As users interact with the page, the progress bar could gradually fill up, creating a sense of momentum and progress.
144
+
145
+ ```html
146
+ <div class="progressbg">
147
+ <div class="progress progressbg-progress">
148
+ <div class="progress-bar bg-primary-lt" style="width: 65%"></div>
149
+ </div>
150
+ <div class="progressbg-text">Poland</div>
151
+ <div class="progressbg-value">65%</div>
152
+ </div>
153
+ ```
154
+
155
+ Thanks to this you can create a nice looking statistics section:
156
+
157
+ ```html example vertical separated centered columns={1} plugins="flags" height="20rem"
158
+ <div class="progressbg">
159
+ <div class="progress progressbg-progress">
160
+ <div class="progress-bar bg-primary-lt" style="width: 65%"></div>
161
+ </div>
162
+ <div class="progressbg-text">Poland</div>
163
+ <div class="progressbg-value">65%</div>
164
+ </div>
165
+ <div class="progressbg">
166
+ <div class="progress progressbg-progress">
167
+ <div class="progress-bar bg-primary-lt" style="width: 35%"></div>
168
+ </div>
169
+ <div class="progressbg-text">Germany</div>
170
+ <div class="progressbg-value">35%</div>
171
+ </div>
172
+ <div class="progressbg">
173
+ <div class="progress progressbg-progress">
174
+ <div class="progress-bar bg-primary-lt" style="width: 28%"></div>
175
+ </div>
176
+ <div class="progressbg-text">United Stated</div>
177
+ <div class="progressbg-value">28%</div>
178
+ </div>
179
+ <div class="progressbg">
180
+ <div class="progress progressbg-progress">
181
+ <div class="progress-bar bg-primary-lt" style="width: 20%"></div>
182
+ </div>
183
+ <div class="progressbg-text">United Kingdom</div>
184
+ <div class="progressbg-value">20%</div>
185
+ </div>
186
+ <div class="progressbg">
187
+ <div class="progress progressbg-progress">
188
+ <div class="progress-bar bg-primary-lt" style="width: 15%"></div>
189
+ </div>
190
+ <div class="progressbg-text">France</div>
191
+ <div class="progressbg-value">15%</div>
192
+ </div>
193
+ ```
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  title: Range slider
3
3
  libs: nouislider
4
+ description: Adjust values with range sliders.
5
+ summary: Range sliders allow users to select a range of values by adjusting two handles along a track, providing an intuitive and space-efficient input method.
4
6
  ---
5
7
 
6
8
  To be able to use the range slider in your application you will need to install the nouislider dependency with `npm install nouislider`.
@@ -9,9 +11,21 @@ All options and features can be found [**here**](https://refreshless.com/nouisli
9
11
 
10
12
  ## Basic range slider
11
13
 
12
- ```html code example centered
13
- <div data-slider='{"js-name": "slider0","start": 50,"range": {"min": 0,"max": 100}}'></div>
14
- <p demo-slider="slider0"></p>
14
+ ```html example centered vendors libs="nouislider" columns={1}
15
+ <div id="range-simple"></div>
16
+ <script>
17
+ document.addEventListener("DOMContentLoaded", function() {
18
+ window.noUiSlider && (noUiSlider.create(document.getElementById('range-simple'), {
19
+ start: 20,
20
+ connect: [true, false],
21
+ step: 10,
22
+ range: {
23
+ min: 0,
24
+ max: 100
25
+ }
26
+ }));
27
+ });
28
+ </script>
15
29
  ```
16
30
 
17
31
  That's only the basic features and options of range slider. More possibilities can be found [**here**](https://refreshless.com/nouislider/).
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  title: Ribbons
3
- description: Ribbons are graphical elements which attract users' attention to a given element of an interface and make it stand out.
3
+ summary: Ribbons are graphical elements which attract users' attention to a given element of an interface and make it stand out.
4
+ description: Highlight elements with graphical ribbons.
4
5
  ---
5
6
 
6
7
  ## Default markup
7
8
 
8
9
  Use the `ribbon` class to add the default ribbon to any section of your interface.
9
10
 
10
- ```html example columns={1} centered
11
+ ```html example columns={1} centered background="base"
11
12
  <div class="card">
12
13
  <div class="card-body" style="height: 5rem">
13
14
  </div>
@@ -25,7 +26,7 @@ Use the `ribbon` class to add the default ribbon to any section of your interfac
25
26
  <div class="card-body">
26
27
  </div>
27
28
  <div class="ribbon">
28
- <!-- SVG icon from http://tabler-icons.io/i/star -->
29
+ <!-- SVG icon from http://tabler.io/icons/icon/star -->
29
30
  <svg>...</svg>
30
31
  </div>
31
32
  </div>
@@ -42,7 +43,7 @@ You can change the position of a ribbon by adding one of the following classes t
42
43
 
43
44
  Using multiple classes at once will give you more position options. For example, the following class: `.ribbon.ribbon-top.ribbon-left` will move the ribbon to the top left corner.
44
45
 
45
- ```html example columns={1} centered
46
+ ```html example columns={1} centered background="base"
46
47
  <div class="card">
47
48
  <div class="card-body" style="height: 5rem">
48
49
  </div>
@@ -60,7 +61,7 @@ Using multiple classes at once will give you more position options. For example,
60
61
  <div class="card-body">
61
62
  </div>
62
63
  <div class="ribbon ribbon-top ribbon-start">
63
- <!-- SVG icon from http://tabler-icons.io/i/star -->
64
+ <!-- SVG icon from http://tabler.io/icons/icon/star -->
64
65
  <svg>...</svg>
65
66
  </div>
66
67
  </div>
@@ -68,9 +69,9 @@ Using multiple classes at once will give you more position options. For example,
68
69
 
69
70
  ## Ribbon color
70
71
 
71
- Customize the ribbon's background color. You can click [here](/docs/ui/colors) to see the list of available colors.
72
+ Customize the ribbon's background color. You can click [here](/docs/ui/base/colors) to see the list of available colors.
72
73
 
73
- ```html example columns={1} centered
74
+ ```html example columns={1} centered background="base"
74
75
  <div class="card">
75
76
  <div class="card-body" style="height: 5rem">
76
77
  </div>
@@ -88,7 +89,7 @@ Customize the ribbon's background color. You can click [here](/docs/ui/colors) t
88
89
  <div class="card-body">
89
90
  </div>
90
91
  <div class="ribbon bg-red">
91
- <!-- SVG icon from http://tabler-icons.io/i/star -->
92
+ <!-- SVG icon from http://tabler.io/icons/icon/star -->
92
93
  <svg>...</svg>
93
94
  </div>
94
95
  </div>
@@ -98,7 +99,7 @@ Customize the ribbon's background color. You can click [here](/docs/ui/colors) t
98
99
 
99
100
  Add your own text to a ribbon to display any additional information and make it easy to spot for users.
100
101
 
101
- ```html example columns={1} centered
102
+ ```html example columns={1} centered background="base"
102
103
  <div class="card">
103
104
  <div class="card-body" style="height: 5rem">
104
105
  </div>
@@ -116,7 +117,7 @@ Add your own text to a ribbon to display any additional information and make it
116
117
  <div class="card-body">
117
118
  </div>
118
119
  <div class="ribbon bg-green">
119
- <!-- SVG icon from http://tabler-icons.io/i/star -->
120
+ <!-- SVG icon from http://tabler.io/icons/icon/star -->
120
121
  <svg>...</svg>
121
122
  </div>
122
123
  </div>
@@ -126,7 +127,7 @@ Add your own text to a ribbon to display any additional information and make it
126
127
 
127
128
  Change the style of a ribbon to make it go well with your interface design.
128
129
 
129
- ```html example columns={1} centered
130
+ ```html example columns={1} centered background="base"
130
131
  <div class="card w-100">
131
132
  <div class="card-body" style="height: 5rem">
132
133
  </div>
@@ -144,7 +145,7 @@ Change the style of a ribbon to make it go well with your interface design.
144
145
  <div class="card-body">
145
146
  </div>
146
147
  <div class="ribbon ribbon-bookmark bg-orange">
147
- <!-- SVG icon from http://tabler-icons.io/i/star -->
148
+ <!-- SVG icon from http://tabler.io/icons/icon/star -->
148
149
  <svg>...</svg>
149
150
  </div>
150
151
  </div>
@@ -1,20 +1,27 @@
1
1
  ---
2
2
  title: Spinners
3
- description: Spinners are used to show the loading state of a component or page. They provide feedback for an action a user has taken, when it takes a bit longer to complete.
3
+ summary: Spinners are used to show the loading state of a component or page. They provide feedback for an action a user has taken, when it takes a bit longer to complete.
4
4
  bootstrapLink: components/spinners/
5
+ description: Indicate loading state with spinners.
5
6
  ---
6
7
 
7
8
  ## Default markup
8
9
 
9
10
  Use the default spinner to notify users that an action they have taken is in progress, helping them avoid confusion.
10
11
 
11
- ```html example code centered
12
+ ```html
13
+ <div class="spinner-border"></div>
14
+ ```
15
+
16
+ Look at the example below to see how the spinner works:
17
+
18
+ ```html example centered
12
19
  <div class="spinner-border"></div>
13
20
  ```
14
21
 
15
22
  ## Colors
16
23
 
17
- Choose one of the available colors to customize the spinner and make it suit your design.
24
+ Choose one of the available colors to customize the spinner and make it suit your design. Full list of available colors can be found in the [Colors](/docs/ui/base/colors) section.
18
25
 
19
26
  ```html example centered separated
20
27
  <div class="spinner-border text-blue" role="status"></div>
@@ -40,7 +47,7 @@ Choose one of the available colors to customize the spinner and make it suit you
40
47
 
41
48
  Choose the size of your spinner. You can use the default size or use the `spinner-border-sm` class to display a smaller spinner.
42
49
 
43
- ```html example code centered separated
50
+ ```html example centered separated
44
51
  <div class="spinner-border" role="status"></div>
45
52
  <div class="spinner-border spinner-border-sm" role="status"></div>
46
53
  ```
@@ -49,7 +56,7 @@ Choose the size of your spinner. You can use the default size or use the `spinne
49
56
 
50
57
  Use the growing spinner, if you are looking for a more original design than a border spinner. The spinner grows to show the loading state.
51
58
 
52
- ```html example code centered
59
+ ```html example centered
53
60
  <div class="spinner-grow" role="status"></div>
54
61
  ```
55
62
 
@@ -75,11 +82,20 @@ Growing spinners also come in a variety of colors to choose from.
75
82
  <div class="spinner-grow text-azure" role="status"></div>
76
83
  ```
77
84
 
78
- ### Button with spinner
85
+ ## Button with spinner
79
86
 
80
87
  Use buttons with spinners to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.
81
88
 
82
- ```html example centered separated code
89
+ ```html
90
+ <a href="#" class="btn btn-primary">
91
+ <span class="spinner-border spinner-border-sm me-2" role="status"></span>
92
+ Button
93
+ </a>
94
+ ```
95
+
96
+ Look at the example below to see how the button with a spinner works:
97
+
98
+ ```html example centered separated code background="bg-light"
83
99
  <a href="#" class="btn btn-primary">
84
100
  <span class="spinner-border spinner-border-sm me-2" role="status"></span>
85
101
  Button
@@ -104,11 +120,16 @@ Use buttons with spinners to notify users that an action they have taken by clic
104
120
 
105
121
  ## Animated dots
106
122
 
107
- ```html example centered code
108
- <h1>Loading<span class="animated-dots"></span></h1>
123
+ Use animated dots to show the loading state of a component. They provide feedback for an action a user has taken, when it takes a bit longer to complete. To do it you need to use the `.animated-dots` class on `span` element.
124
+
125
+ ```html example centered code background="bg-light"
126
+ <h1>Loading<span class="animated-dots"></span>
127
+ </h1>
109
128
  ```
110
129
 
111
- ```html example centered code separated
130
+ Use buttons with animated dots to notify users that an action they have taken by clicking the button is in progress and prevent them from clicking multiple times or giving up.
131
+
132
+ ```html example centered separated background="bg-light"
112
133
  <a href="#" class="btn btn-primary">
113
134
  Loading<span class="animated-dots"></span>
114
135
  </a>