@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,12 +1,79 @@
1
1
  ---
2
2
  title: Form helpers
3
- description: A form helper can be used to provide users with additional information about the elements of a form that may be unclear.
3
+ summary: Use form helpers to provide additional information about a form element. You can use input help, required field, form hint, and additional info inside the label.
4
+ description: Provide additional guidance in forms.
4
5
  ---
5
6
 
6
7
  ## Input help
7
8
 
8
- Use an input helper to display additional information about a form element. The text label will appear once a user hovers over the helper.
9
+ Use an input helper to display additional information about a form element. The text label will appear once a user hovers over the helper. To add an input helper, use the `.form-help` class.
9
10
 
10
- ```html example code centered
11
- <span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p>ZIP Code must be US or CDN format. You can use an extended ZIP+4 code to determine address more accurately.</p><p class='mb-0'><a href=''>USP ZIP codes lookup tools</a></p>">?</span>
11
+ ```html
12
+ <span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p>...</p>">?</span>
12
13
  ```
14
+
15
+ Look at the example below to see how the input help works:
16
+
17
+ ```html example centered height="25rem" columns={1}
18
+ <div>
19
+ <label class="form-label">
20
+ ZIP Code
21
+ <span class="form-help" data-bs-toggle="popover" data-bs-placement="top" data-bs-html="true" data-bs-content="<p>ZIP Code must be US or CDN format. You can use an extended ZIP+4 code to determine address more accurately.</p><p class='mb-0'><a href=''>USP ZIP codes lookup tools</a></p>">?</span>
22
+ </label>
23
+ <input type="text" class="form-control" placeholder="Your ZIP Code">
24
+ </div>
25
+ ```
26
+
27
+ ## Required field
28
+
29
+ Use the `.required` class to indicate that a field is required. It will add a red asterisk to the label.
30
+
31
+ ```html
32
+ <label class="form-label required">Required</label>
33
+ ```
34
+
35
+ Look at the example below to see how the required field works:
36
+
37
+ ```html example centered columns={1}
38
+ <div>
39
+ <label class="form-label required">Required</label>
40
+ <input type="text" class="form-control" name="..." placeholder="Required...">
41
+ </div>
42
+ ```
43
+
44
+ ## Form hint
45
+
46
+ Use a form hint to provide users with additional information about a form element. The text will appear below the input field. To add a form hint, use the `.form-hint` class.
47
+
48
+ ```html
49
+ <div class="form-hint">We'll never share your email with anyone else.</div>
50
+ ```
51
+
52
+ Look at the example below to see how the form hint works:
53
+
54
+ ```html example centered columns={1}
55
+ <div>
56
+ <label class="form-label">Email address</label>
57
+ <input type="email" class="form-control" placeholder="Enter your email address">
58
+ <div class="form-hint">We'll never share your email with anyone else.</div>
59
+ </div>
60
+ ```
61
+
62
+ ## Additional info inside label
63
+
64
+ Use the `.form-label-description` class to add additional information to the label. The text will appear next to the label. You can use it to add for example a character counter.
65
+
66
+ ```html
67
+ <label class="form-label">Textarea <span class="form-label-description">56/100</span>
68
+ </label>
69
+ ```
70
+
71
+ This example shows how to use the additional info inside the label:
72
+
73
+ ```html example centered columns={1} height="15rem"
74
+ <div>
75
+ <label class="form-label">Textarea <span class="form-label-description">56/100</span>
76
+ </label>
77
+ <textarea class="form-control" name="" rows="3" placeholder="Content.."></textarea>
78
+ </div>
79
+ ```
@@ -1,8 +1,23 @@
1
1
  ---
2
2
  title: Image check
3
+ summary: The image check is a great way to make your form more user-friendly and engaging. You can use the image check to create a visually appealing form that will help users make decisions quickly and easily.
4
+ description: Add visual appeal to forms with images.
3
5
  ---
4
6
 
5
- Add an image check to your form and give users visually attractive options to choose from.
7
+ ## Default markup
8
+
9
+ To build an image check, you need to use the `.form-imagecheck` class and the `.form-imagecheck-input` class for the input element. You can also use the `.form-imagecheck-figure` class to style the image and the `.form-imagecheck-image` class to style the image itself.
10
+
11
+ ```html
12
+ <label class="form-imagecheck">
13
+ <input name="..." type="checkbox" value="" class="form-imagecheck-input" checked />
14
+ <span class="form-imagecheck-figure">
15
+ <img src="..." alt="" class="form-imagecheck-image" />
16
+ </span>
17
+ </label>
18
+ ```
19
+
20
+ Look at the examples below to see how the image check works:
6
21
 
7
22
  ```html example centered columns="2" height="15rem"
8
23
  <div class="mb-3">
@@ -10,7 +25,7 @@ Add an image check to your form and give users visually attractive options to ch
10
25
  <div class="row g-2">
11
26
  <div class="col-3">
12
27
  <label class="form-imagecheck">
13
- <input name="form-imagecheck" type="checkbox" value="1" class="form-imagecheck-input" />
28
+ <input name="image" type="checkbox" value="1" class="form-imagecheck-input" />
14
29
  <span class="form-imagecheck-figure">
15
30
  <img src="/samples/photos/everything-you-need-to-work-from-your-bed-2.jpg" alt="" class="form-imagecheck-image" />
16
31
  </span>
@@ -18,7 +33,7 @@ Add an image check to your form and give users visually attractive options to ch
18
33
  </div>
19
34
  <div class="col-3">
20
35
  <label class="form-imagecheck">
21
- <input name="form-imagecheck" type="checkbox" value="2" class="form-imagecheck-input" checked />
36
+ <input name="image" type="checkbox" value="2" class="form-imagecheck-input" checked />
22
37
  <span class="form-imagecheck-figure">
23
38
  <img src="/samples/photos/color-palette-guide-sample-colors-catalog-.jpg" alt="" class="form-imagecheck-image" />
24
39
  </span>
@@ -26,7 +41,7 @@ Add an image check to your form and give users visually attractive options to ch
26
41
  </div>
27
42
  <div class="col-3">
28
43
  <label class="form-imagecheck">
29
- <input name="form-imagecheck" type="checkbox" value="3" class="form-imagecheck-input" />
44
+ <input name="image" type="checkbox" value="3" class="form-imagecheck-input" />
30
45
  <span class="form-imagecheck-figure">
31
46
  <img src="/samples/photos/woman-read-book-and-drink-coffee-2.jpg" alt="" class="form-imagecheck-image" />
32
47
  </span>
@@ -34,7 +49,7 @@ Add an image check to your form and give users visually attractive options to ch
34
49
  </div>
35
50
  <div class="col-3">
36
51
  <label class="form-imagecheck">
37
- <input name="form-imagecheck" type="checkbox" value="4" class="form-imagecheck-input" checked />
52
+ <input name="image" type="checkbox" value="4" class="form-imagecheck-input" checked />
38
53
  <span class="form-imagecheck-figure">
39
54
  <img src="/samples/photos/stylish-workspace-with-macbook-pro-2.jpg" alt="" class="form-imagecheck-image" />
40
55
  </span>
@@ -44,14 +59,9 @@ Add an image check to your form and give users visually attractive options to ch
44
59
  </div>
45
60
  ```
46
61
 
47
- ```html
48
- <label class="form-imagecheck">
49
- <input name="" type="checkbox" value="" class="form-imagecheck-input" checked />
50
- <span class="form-imagecheck-figure">
51
- <img src="..." alt="" class="form-imagecheck-image" />
52
- </span>
53
- </label>
54
- ```
62
+ ## Radio buttons
63
+
64
+ If you want to use the image check as a radio button, you can change the input type to `radio`.
55
65
 
56
66
  ```html example centered columns="2" height="15rem"
57
67
  <div class="mb-3">
@@ -59,7 +69,7 @@ Add an image check to your form and give users visually attractive options to ch
59
69
  <div class="row g-2">
60
70
  <div class="col-3">
61
71
  <label class="form-imagecheck mb-2">
62
- <input name="form-imagecheck-radio" type="radio" value="1" class="form-imagecheck-input" />
72
+ <input name="image" type="radio" value="1" class="form-imagecheck-input" />
63
73
  <span class="form-imagecheck-figure">
64
74
  <img src="/samples/photos/woman-drinking-hot-tea-in-her-home-office.jpg" alt="" class="form-imagecheck-image" />
65
75
  </span>
@@ -67,7 +77,7 @@ Add an image check to your form and give users visually attractive options to ch
67
77
  </div>
68
78
  <div class="col-3">
69
79
  <label class="form-imagecheck mb-2">
70
- <input name="form-imagecheck-radio" type="radio" value="2" class="form-imagecheck-input" checked />
80
+ <input name="image" type="radio" value="2" class="form-imagecheck-input" checked />
71
81
  <span class="form-imagecheck-figure">
72
82
  <img src="/samples/photos/young-woman-sitting-on-the-sofa-and-working-on-her-laptop-3.jpg" alt="" class="form-imagecheck-image" />
73
83
  </span>
@@ -75,7 +85,7 @@ Add an image check to your form and give users visually attractive options to ch
75
85
  </div>
76
86
  <div class="col-3">
77
87
  <label class="form-imagecheck mb-2">
78
- <input name="form-imagecheck-radio" type="radio" value="3" class="form-imagecheck-input" />
88
+ <input name="image" type="radio" value="3" class="form-imagecheck-input" />
79
89
  <span class="form-imagecheck-figure">
80
90
  <img src="/samples/photos/beautiful-blonde-woman-relaxing-with-a-can-of-coke-on-a-tree-stump-by-the-beach.jpg" alt="" class="form-imagecheck-image" />
81
91
  </span>
@@ -83,7 +93,7 @@ Add an image check to your form and give users visually attractive options to ch
83
93
  </div>
84
94
  <div class="col-3">
85
95
  <label class="form-imagecheck mb-2">
86
- <input name="form-imagecheck-radio" type="radio" value="4" class="form-imagecheck-input" checked />
96
+ <input name="image" type="radio" value="4" class="form-imagecheck-input" checked />
87
97
  <span class="form-imagecheck-figure">
88
98
  <img src="/samples/photos/book-on-the-grass.jpg" alt="" class="form-imagecheck-image" />
89
99
  </span>
@@ -95,53 +105,57 @@ Add an image check to your form and give users visually attractive options to ch
95
105
 
96
106
  ```html
97
107
  <label class="form-imagecheck">
98
- <input name="form-imagecheck-radio" type="radio" value="1" class="form-imagecheck-input" />
108
+ <input name="..." type="radio" value="1" class="form-imagecheck-input" />
99
109
  <span class="form-imagecheck-figure">
100
- <img src="/samples/photos/woman-drinking-hot-tea-in-her-home-office.jpg" alt="" class="form-imagecheck-image" />
110
+ <img src="..." alt="" class="form-imagecheck-image" />
101
111
  </span>
102
112
  </label>
103
113
  ```
104
114
 
105
- ```html example centered columns="1" height="15rem"
115
+ ## Avatars
116
+
117
+ If you want to use the image check with avatars, you can use the `.avatar` instead of the image.
118
+
119
+ ```html example centered columns={2} height="15rem"
106
120
  <div class="mb-3">
107
121
  <label class="form-label">Person Check</label>
108
122
  <div class="row g-2">
109
123
  <div class="col-auto">
110
124
  <label class="form-imagecheck mb-2">
111
- <input name="form-imagecheck" type="checkbox" value="1" class="form-imagecheck-input" />
125
+ <input name="image" type="checkbox" value="1" class="form-imagecheck-input" />
112
126
  <span class="form-imagecheck-figure">
113
127
  <span class="form-imagecheck-image">
114
- <span class="avatar avatar-md" style="background-image: url(/samples/avatars/057f.jpg)"></span>
128
+ <span class="avatar avatar-xl" style="background-image: url(/samples/avatars/057f.jpg)"></span>
115
129
  </span>
116
130
  </span>
117
131
  </label>
118
132
  </div>
119
133
  <div class="col-auto">
120
134
  <label class="form-imagecheck mb-2">
121
- <input name="form-imagecheck" type="checkbox" value="2" class="form-imagecheck-input" checked />
135
+ <input name="image" type="checkbox" value="2" class="form-imagecheck-input" checked />
122
136
  <span class="form-imagecheck-figure">
123
137
  <span class="form-imagecheck-image">
124
- <span class="avatar avatar-md">HS</span>
138
+ <span class="avatar avatar-xl">HS</span>
125
139
  </span>
126
140
  </span>
127
141
  </label>
128
142
  </div>
129
143
  <div class="col-auto">
130
144
  <label class="form-imagecheck mb-2">
131
- <input name="form-imagecheck" type="checkbox" value="3" class="form-imagecheck-input" />
145
+ <input name="image" type="checkbox" value="3" class="form-imagecheck-input" />
132
146
  <span class="form-imagecheck-figure">
133
147
  <span class="form-imagecheck-image">
134
- <span class="avatar avatar-md" style="background-image: url(/samples/avatars/062m.jpg)"></span>
148
+ <span class="avatar avatar-xl" style="background-image: url(/samples/avatars/062m.jpg)"></span>
135
149
  </span>
136
150
  </span>
137
151
  </label>
138
152
  </div>
139
153
  <div class="col-auto">
140
154
  <label class="form-imagecheck mb-2">
141
- <input name="form-imagecheck" type="checkbox" value="4" class="form-imagecheck-input" checked />
155
+ <input name="image" type="checkbox" value="4" class="form-imagecheck-input" checked />
142
156
  <span class="form-imagecheck-figure">
143
157
  <span class="form-imagecheck-image">
144
- <span class="avatar avatar-md" style="background-image: url(/samples/avatars/070m.jpg)"></span>
158
+ <span class="avatar avatar-xl" style="background-image: url(/samples/avatars/070m.jpg)"></span>
145
159
  </span>
146
160
  </span>
147
161
  </label>
@@ -152,7 +166,7 @@ Add an image check to your form and give users visually attractive options to ch
152
166
 
153
167
  ```html
154
168
  <label class="form-imagecheck">
155
- <input name="" type="checkbox" value="" class="form-imagecheck-input" />
169
+ <input name="..." type="checkbox" value="..." class="form-imagecheck-input" />
156
170
  <span class="form-imagecheck-figure">
157
171
  <span class="form-imagecheck-image">
158
172
  <span class="avatar avatar-md" style="background-image: url(...)"></span>
@@ -1,18 +1,46 @@
1
1
  ---
2
2
  title: Input mask
3
- description: An input mask is a used to clarify the input format required in a given field and is helpful for users, removing confusion and reducing the number of validation errors.
3
+ summary: An input mask is a used to clarify the input format required in a given field and is helpful for users, removing confusion and reducing the number of validation errors.
4
+ description: Clarify input formats for users.
4
5
  ---
5
6
 
6
- <Callout>
7
- To be able to use the input mask in your application you will need to install the imask dependency with `npm install imask`.
8
- </Callout>
7
+ ## Installation
8
+
9
+ To be able to use the input mask in your application you will need to install the imask dependency. You can do this by running the following command:
10
+
11
+ <TabsPackage name="imask" />
12
+
13
+ And import or require:
14
+
15
+ ```javascript
16
+ import IMask from 'imask';
17
+ ```
18
+
19
+ You can also use the CDN link to include the script in your project:
20
+
21
+ ```html
22
+ <script src="https://cdn.jsdelivr.net/npm/imask"></script>
23
+ ```
24
+
25
+ If you struggle with the installation, you can find more information in the [IMask documentation](https://imask.js.org/guide.html#installation).
9
26
 
10
27
  ## Default markup
11
28
 
12
29
  Use an input mask in the fields where users have to enter their phone number, to make the formatting rules clear and help them avoid confusion.
13
30
 
14
- ```html example code centered columns={1}
31
+ To create an input mask, add the `data-mask` attribute to the input element:
32
+
33
+ ```html
34
+ <input type="text" name="input-mask" class="form-control" data-mask="(00) 0000-0000" placeholder="(00) 0000-0000" autocomplete="off" />
35
+ ```
36
+
37
+ Look at the example below to see how the input mask works:
38
+
39
+ ```html example centered columns={1}
15
40
  <label class="form-label">Telephone mask</label>
16
41
  <input type="text" name="input-mask" class="form-control" data-mask="(00) 0000-0000" data-mask-visible="true" placeholder="(00) 0000-0000" autocomplete="off" />
17
42
  ```
18
43
 
44
+ ## More examples
45
+
46
+ If you need more examples of input masks, you can find them in the [IMask documentation](https://imask.js.org/guide.html#masked-input).
@@ -1,12 +1,60 @@
1
1
  ---
2
- title: Form selectboxes
2
+ title: Form selectgroup
3
+ summary: Use selectgroup to make your form more intuitive by providing users with a set of options to choose from. You can add simple selectgroup with a label, use icons only or icons with labels. Alternatively, you can use pill selectgroup if they go well with your design.
4
+ description: Improve form UX with select groups.
3
5
  ---
4
6
 
5
- Add selectboxes to make your form more intuitive by providing users with a set of options to choose from. You can add simple selectboxes with a label, use icons only or icons with labels. Alternatively, you can use pill selectboxes if they go well with your design.
7
+ ## Simple selectgroup
6
8
 
7
- ```html example code columns={1} centered
8
- <div class="mb-3">
9
- <label class="form-label">Simple selectgroup</label>
9
+ To create a simple selectgroup, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label.
10
+
11
+ ```html
12
+ <label class="form-selectgroup-item">
13
+ <input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
14
+ <span class="form-selectgroup-label">...</span>
15
+ </label>
16
+ ```
17
+
18
+ Look at the example below to see how the simple selectgroup works:
19
+
20
+ ```html example columns={1} centered
21
+ <div>
22
+ <div class="form-selectgroup">
23
+ <label class="form-selectgroup-item">
24
+ <input type="radio" name="name" value="HTML" class="form-selectgroup-input" checked />
25
+ <span class="form-selectgroup-label">HTML</span>
26
+ </label>
27
+ <label class="form-selectgroup-item">
28
+ <input type="radio" name="name" value="CSS" class="form-selectgroup-input" />
29
+ <span class="form-selectgroup-label">CSS</span>
30
+ </label>
31
+ <label class="form-selectgroup-item">
32
+ <input type="radio" name="name" value="PHP" class="form-selectgroup-input" />
33
+ <span class="form-selectgroup-label">PHP</span>
34
+ </label>
35
+ <label class="form-selectgroup-item">
36
+ <input type="radio" name="name" value="JavaScript" class="form-selectgroup-input" />
37
+ <span class="form-selectgroup-label">JavaScript</span>
38
+ </label>
39
+ </div>
40
+ </div>
41
+ ```
42
+
43
+ ## Multiple choices
44
+
45
+ You can also create a selectgroup with multiple choices. To do this, change the `type` attribute of the input element to `checkbox`.
46
+
47
+ ```html
48
+ <label class="form-selectgroup-item">
49
+ <input type="checkbox" name="name" value="..." class="form-selectgroup-input" checked />
50
+ <span class="form-selectgroup-label">...</span>
51
+ </label>
52
+ ```
53
+
54
+ Look at the example below to see how the multiple choices selectgroup works:
55
+
56
+ ```html example columns={1} centered
57
+ <div>
10
58
  <div class="form-selectgroup">
11
59
  <label class="form-selectgroup-item">
12
60
  <input type="checkbox" name="name" value="HTML" class="form-selectgroup-input" checked />
@@ -28,7 +76,22 @@ Add selectboxes to make your form more intuitive by providing users with a set o
28
76
  </div>
29
77
  ```
30
78
 
31
- ```html example code columns={1} centered
79
+ ## Icon input
80
+
81
+ To create an icon input, use the `.form-selectgroup` class. You should add a label to the selectgroup by using the `.form-selectgroup-item` class for the input element and the `.form-selectgroup-label` class for the label. You can use the `.icon` class to style the icon.
82
+
83
+ ```html
84
+ <label class="form-selectgroup-item">
85
+ <input type="checkbox" name="name" value="sun" class="form-selectgroup-input" checked />
86
+ <span class="form-selectgroup-label">
87
+ <svg class="icon" width="24" height="24">...</svg>
88
+ </span>
89
+ </label>
90
+ ```
91
+
92
+ We recommend you use Tabler Icons for the best experience. You can find over <IconsCount rounded /> free icons in the [Tabler Icons](https://tabler-icons.io/) library. Just copy the SVG code and paste it into your project.
93
+
94
+ ```html example columns={1} centered
32
95
  <div class="mb-3">
33
96
  <label class="form-label">Icon input</label>
34
97
  <div class="form-selectgroup">
@@ -78,46 +141,68 @@ Add selectboxes to make your form more intuitive by providing users with a set o
78
141
  </div>
79
142
  ```
80
143
 
81
- ```html example code columns={1} centered
144
+ You can also add text to the element. Look at the example below to see how it works:
145
+
146
+ ```html example columns={1} centered
82
147
  <div class="mb-3">
83
148
  <label class="form-label">Selectgroup with icons and text</label>
84
149
  <div class="form-selectgroup">
85
150
  <label class="form-selectgroup-item">
86
151
  <input type="radio" name="icons" value="home" class="form-selectgroup-input" checked />
87
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
152
+ <span class="form-selectgroup-label">
153
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
88
154
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
89
155
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
90
156
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
91
157
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
92
- </svg> Home</span>
158
+ </svg> Home
159
+ </span>
93
160
  </label>
94
161
  <label class="form-selectgroup-item">
95
162
  <input type="radio" name="icons" value="user" class="form-selectgroup-input" />
96
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
163
+ <span class="form-selectgroup-label">
164
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
97
165
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
98
166
  <circle cx="12" cy="7" r="4" />
99
167
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
100
- </svg> User</span>
168
+ </svg> User
169
+ </span>
101
170
  </label>
102
171
  <label class="form-selectgroup-item">
103
172
  <input type="radio" name="icons" value="circle" class="form-selectgroup-input" />
104
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
173
+ <span class="form-selectgroup-label">
174
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
105
175
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
106
176
  <circle cx="12" cy="12" r="9" />
107
- </svg> Circle</span>
177
+ </svg> Circle
178
+ </span>
108
179
  </label>
109
180
  <label class="form-selectgroup-item">
110
181
  <input type="radio" name="icons" value="square" class="form-selectgroup-input" />
111
- <span class="form-selectgroup-label"><svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
182
+ <span class="form-selectgroup-label">
183
+ <svg xmlns="http://www.w3.org/2000/svg" class="icon me-1" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
112
184
  <path stroke="none" d="M0 0h24v24H0z" fill="none" />
113
185
  <rect x="4" y="4" width="16" height="16" rx="2" />
114
- </svg> Square</span>
186
+ </svg> Square
187
+ </span>
115
188
  </label>
116
189
  </div>
117
190
  </div>
118
191
  ```
119
192
 
120
- ```html example code columns={1} centered
193
+ ## Pill selectgroup
194
+
195
+ If you want to use pill selectgroup, use the `.form-selectgroup-pills` class. All the other classes are the same as in the simple selectgroup.
196
+
197
+ ```html
198
+ <div class="form-selectgroup form-selectgroup-pills">
199
+ ...
200
+ </div>
201
+ ```
202
+
203
+ Look at the example below to see how the pill selectgroup works:
204
+
205
+ ```html example columns={1} centered
121
206
  <div class="mb-3">
122
207
  <label class="form-label">Different style</label>
123
208
  <div class="form-selectgroup form-selectgroup-pills">
@@ -1,14 +1,50 @@
1
1
  ---
2
2
  title: Validation states
3
- description: To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
3
+ summary: To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
4
+ description: Indicate valid or invalid inputs.
4
5
  ---
5
6
 
6
- ```html example code centered columns="1" height="20rem"
7
- <div class="mb-3">
8
- <label class="form-label">Validation States </label>
9
- <input type="text" class="form-control is-valid mb-2" placeholder="Valid State..." />
10
- <input type="text" class="form-control is-invalid" placeholder="Invalid State..." />
11
- <div class="invalid-feedback">Invalid feedback</div>
7
+ ## Validation states
8
+
9
+ To inform users whether the entered value is correct or not, use either of the validation states. Thanks to that, users will immediately know which form elements they need to correct and, if the state displays as invalid, why the value is incorrect.
10
+
11
+ To apply the validation state to the form control, use the `.is-valid` and `.is-invalid` classes.
12
+
13
+ ```html example centered separated columns="1" background="bg-light" height="20rem"
14
+ <input type="text" class="form-control is-valid" placeholder="Valid State..." />
15
+ <input type="text" class="form-control is-invalid" placeholder="Invalid State..." />
16
+ ```
17
+
18
+ ## Validation feedback
19
+
20
+ To provide users with additional information about the validation state, you can use the `.valid-feedback` and `.invalid-feedback` classes.
21
+
22
+ ```html
23
+ <input type="text" class="form-control is-valid" placeholder="Valid State..." />
24
+ <div class="valid-feedback">Looks good!</div>
25
+ ```
26
+
27
+ This is how it works in the example below:
28
+
29
+ ```html example centered columns="1" background="bg-light" height="20rem"
30
+ <div>
31
+ <label class="form-label required">City</label>
32
+ <input type="text" class="form-control is-invalid" required>
33
+ <div class="invalid-feedback">
34
+ Please provide a valid city.
35
+ </div>
36
+ </div>
37
+ ```
38
+
39
+ You can also use the `.valid-feedback` to provide users with positive feedback.
40
+
41
+ ```html example centered columns="1" background="bg-light" height="20rem"
42
+ <div>
43
+ <label class="form-label required">City</label>
44
+ <input type="text" class="form-control is-valid" value="Warsaw">
45
+ <div class="valid-feedback">
46
+ Looks good!
47
+ </div>
12
48
  </div>
13
49
  ```
14
50
 
@@ -16,10 +52,15 @@ description: To inform users whether the entered value is correct or not, use ei
16
52
 
17
53
  If you prefer a more subtle manner of informing users of the input control validation state, you can use tick and cross symbols and resign from colored control frames and the validation feedback.
18
54
 
19
- ```html example code centered columns="1" height="20rem"
20
- <div class="mb-3">
21
- <label class="form-label">Validation States (lite)</label>
22
- <input type="text" class="form-control is-valid is-valid-lite mb-2" placeholder="Valid State..." />
23
- <input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
24
- </div>
55
+ To do this, use the `.is-valid-lite` and `.is-invalid-lite` classes.
56
+
57
+ ```html
58
+ <input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
59
+ ```
60
+
61
+ Look how it works in the example below:
62
+
63
+ ```html example centered separated vertical columns="1" background="bg-light" height="20rem"
64
+ <input type="text" class="form-control is-valid is-valid-lite" placeholder="Valid State..." />
65
+ <input type="text" class="form-control is-invalid is-invalid-lite" placeholder="Invalid State..." />
25
66
  ```
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Forms
3
+ order: 5
4
+ description: Build and manage web forms.
5
+ summary: The forms section provides a collection of components and tools for creating user-friendly and accessible forms, enhancing user interaction and improving data collection.
6
+ ---
@@ -1,5 +1,7 @@
1
1
  ---
2
2
  title: Browser Support
3
+ description: Check browser compatibility for Tabler.
4
+ summary: Learn about the supported browsers and compatibility guidelines for using Tabler UI components to ensure a consistent experience across different devices and platforms.
3
5
  ---
4
6
 
5
7
  As of this latest release, Tabler has launched many new features that may not be compatible with all browsers, especially older ones.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  title: Customize Tabler
3
- description: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
3
+ summary: Tabler has been designed so that it can be adjusted to your needs and requirements as much as possible. You can customize your own fonts, colors, font sizes, etc in it.
4
+ description: Adjust fonts, colors, and styles.
4
5
  ---
5
6
 
6
7
  ## Custom Google Font
@@ -17,8 +18,8 @@ Now you just need to tell Tabler to use your favorite font:
17
18
 
18
19
  ```html
19
20
  <style>
20
- :root {
21
- --tblr-font-sans-serif: 'Inter';
22
- }
21
+ :root {
22
+ --tblr-font-sans-serif: 'Inter';
23
+ }
23
24
  </style>
24
25
  ```