@gitlab/duo-ui 0.1.0 → 0.3.0

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 (761) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/chat/components/duo_chat_context/constants.js +11 -0
  3. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.js +118 -0
  4. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.js +265 -0
  5. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.js +68 -0
  6. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.js +87 -0
  7. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.js +137 -0
  8. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.js +53 -0
  9. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.js +121 -0
  10. package/dist/components/chat/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.js +153 -0
  11. package/dist/components/chat/components/duo_chat_context/mock_context_data.js +191 -0
  12. package/dist/components/chat/components/duo_chat_context/utils.js +106 -0
  13. package/dist/components/chat/components/duo_chat_conversation/duo_chat_conversation.js +101 -0
  14. package/dist/components/chat/components/duo_chat_loader/duo_chat_loader.js +101 -0
  15. package/dist/components/chat/components/duo_chat_message/buttons_utils.js +25 -0
  16. package/dist/components/chat/components/duo_chat_message/constants.js +5 -0
  17. package/dist/components/chat/components/duo_chat_message/copy_code_element.js +16 -0
  18. package/dist/components/chat/components/duo_chat_message/duo_chat_message.js +287 -0
  19. package/dist/components/chat/components/duo_chat_message/insert_code_snippet_element.js +56 -0
  20. package/dist/components/chat/components/duo_chat_message/utils.js +8 -0
  21. package/dist/components/chat/components/duo_chat_message_sources/duo_chat_message_sources.js +106 -0
  22. package/dist/components/chat/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.js +64 -0
  23. package/dist/components/chat/constants.js +30 -0
  24. package/dist/components/chat/duo_chat.js +524 -0
  25. package/dist/components/chat/markdown_renderer.js +18 -0
  26. package/dist/components/chat/mock_data.js +162 -0
  27. package/dist/components/user_feedback/user_feedback.js +97 -0
  28. package/dist/components/user_feedback/user_feedback_modal.js +149 -0
  29. package/dist/components/workflow/components/duo_workflow_panel/duo_workflow_panel.js +95 -0
  30. package/dist/components/workflow/components/duo_workflow_prompt/duo_workflow_prompt.js +235 -0
  31. package/dist/components.css +2 -0
  32. package/dist/components.css.map +1 -0
  33. package/dist/tailwind.css +2 -0
  34. package/dist/tailwind.css.map +1 -0
  35. package/package.json +8 -16
  36. package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_details_modal/duo_chat_context_item_details_modal.vue +1 -1
  37. package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items_loading.vue +1 -1
  38. package/src/components/chat/components/duo_chat_message/constants.js +3 -0
  39. package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/duo_chat_message.scss +31 -2
  40. package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/duo_chat_message.vue +33 -2
  41. package/src/components/chat/duo_chat.scss +393 -0
  42. package/src/components/{experimental/duo/chat → chat}/mock_data.js +2 -2
  43. package/src/config.js +3 -43
  44. package/src/index.js +3 -130
  45. package/src/scss/components.scss +6 -83
  46. package/src/tokens/build/json/tokens.json +13548 -13548
  47. package/src/vendor/bootstrap/LICENSE +22 -0
  48. package/src/vendor/bootstrap-vue/LICENSE +21 -0
  49. package/src/vendor/bootstrap-vue/nuxt/index.js +164 -0
  50. package/src/vendor/bootstrap-vue/nuxt/plugin.template.js +29 -0
  51. package/src/vendor/bootstrap-vue/package.json +201 -0
  52. package/src/vendor/bootstrap-vue/src/bv-config.d.ts +4 -0
  53. package/src/vendor/bootstrap-vue/src/components/badge/README.md +126 -0
  54. package/src/vendor/bootstrap-vue/src/components/badge/badge.spec.js +141 -0
  55. package/src/vendor/bootstrap-vue/src/components/badge/index.d.ts +7 -0
  56. package/src/vendor/bootstrap-vue/src/components/badge/package.json +29 -0
  57. package/src/vendor/bootstrap-vue/src/components/breadcrumb/README.md +93 -0
  58. package/src/vendor/bootstrap-vue/src/components/breadcrumb/breadcrumb-item.spec.js +123 -0
  59. package/src/vendor/bootstrap-vue/src/components/breadcrumb/breadcrumb-link.spec.js +117 -0
  60. package/src/vendor/bootstrap-vue/src/components/breadcrumb/breadcrumb.spec.js +183 -0
  61. package/src/vendor/bootstrap-vue/src/components/breadcrumb/index.d.ts +13 -0
  62. package/src/vendor/bootstrap-vue/src/components/breadcrumb/package.json +62 -0
  63. package/src/vendor/bootstrap-vue/src/components/button/README.md +281 -0
  64. package/src/vendor/bootstrap-vue/src/components/button/button-close.spec.js +210 -0
  65. package/src/vendor/bootstrap-vue/src/components/button/button.spec.js +385 -0
  66. package/src/vendor/bootstrap-vue/src/components/button/index.d.ts +10 -0
  67. package/src/vendor/bootstrap-vue/src/components/button/package.json +105 -0
  68. package/src/vendor/bootstrap-vue/src/components/button-group/README.md +112 -0
  69. package/src/vendor/bootstrap-vue/src/components/button-group/button-group.spec.js +98 -0
  70. package/src/vendor/bootstrap-vue/src/components/button-group/index.d.ts +7 -0
  71. package/src/vendor/bootstrap-vue/src/components/button-group/package.json +29 -0
  72. package/src/vendor/bootstrap-vue/src/components/collapse/README.md +321 -0
  73. package/src/vendor/bootstrap-vue/src/components/collapse/collapse.spec.js +558 -0
  74. package/src/vendor/bootstrap-vue/src/components/collapse/index.d.ts +9 -0
  75. package/src/vendor/bootstrap-vue/src/components/collapse/package.json +111 -0
  76. package/src/vendor/bootstrap-vue/src/components/dropdown/README.md +730 -0
  77. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-divider.spec.js +58 -0
  78. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-form.spec.js +110 -0
  79. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-group.spec.js +94 -0
  80. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-header.spec.js +73 -0
  81. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item-button.spec.js +117 -0
  82. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-item.spec.js +147 -0
  83. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown-text.spec.js +59 -0
  84. package/src/vendor/bootstrap-vue/src/components/dropdown/dropdown.spec.js +1121 -0
  85. package/src/vendor/bootstrap-vue/src/components/dropdown/index.d.ts +32 -0
  86. package/src/vendor/bootstrap-vue/src/components/dropdown/package.json +368 -0
  87. package/src/vendor/bootstrap-vue/src/components/form/README.md +370 -0
  88. package/src/vendor/bootstrap-vue/src/components/form/form-invalid-feedback.spec.js +170 -0
  89. package/src/vendor/bootstrap-vue/src/components/form/form-text.spec.js +93 -0
  90. package/src/vendor/bootstrap-vue/src/components/form/form-valid-feedback.spec.js +157 -0
  91. package/src/vendor/bootstrap-vue/src/components/form/form.spec.js +97 -0
  92. package/src/vendor/bootstrap-vue/src/components/form/index.d.ts +16 -0
  93. package/src/vendor/bootstrap-vue/src/components/form/package.json +112 -0
  94. package/src/vendor/bootstrap-vue/src/components/form-checkbox/README.md +862 -0
  95. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox-group.spec.js +642 -0
  96. package/src/vendor/bootstrap-vue/src/components/form-checkbox/form-checkbox.spec.js +1331 -0
  97. package/src/vendor/bootstrap-vue/src/components/form-checkbox/index.d.ts +10 -0
  98. package/src/vendor/bootstrap-vue/src/components/form-checkbox/package.json +172 -0
  99. package/src/vendor/bootstrap-vue/src/components/form-group/README.md +337 -0
  100. package/src/vendor/bootstrap-vue/src/components/form-group/form-group.spec.js +477 -0
  101. package/src/vendor/bootstrap-vue/src/components/form-group/index.d.ts +7 -0
  102. package/src/vendor/bootstrap-vue/src/components/form-group/package.json +183 -0
  103. package/src/vendor/bootstrap-vue/src/components/form-input/README.md +612 -0
  104. package/src/vendor/bootstrap-vue/src/components/form-input/form-input.spec.js +986 -0
  105. package/src/vendor/bootstrap-vue/src/components/form-input/index.d.ts +9 -0
  106. package/src/vendor/bootstrap-vue/src/components/form-input/package.json +135 -0
  107. package/src/vendor/bootstrap-vue/src/components/form-radio/README.md +566 -0
  108. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio-group.spec.js +469 -0
  109. package/src/vendor/bootstrap-vue/src/components/form-radio/form-radio.spec.js +952 -0
  110. package/src/vendor/bootstrap-vue/src/components/form-radio/index.d.ts +10 -0
  111. package/src/vendor/bootstrap-vue/src/components/form-radio/package.json +162 -0
  112. package/src/vendor/bootstrap-vue/src/components/form-select/README.md +504 -0
  113. package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option-group.spec.js +138 -0
  114. package/src/vendor/bootstrap-vue/src/components/form-select/form-select-option.spec.js +75 -0
  115. package/src/vendor/bootstrap-vue/src/components/form-select/form-select.spec.js +723 -0
  116. package/src/vendor/bootstrap-vue/src/components/form-select/index.d.ts +13 -0
  117. package/src/vendor/bootstrap-vue/src/components/form-select/package.json +132 -0
  118. package/src/vendor/bootstrap-vue/src/components/form-textarea/README.md +453 -0
  119. package/src/vendor/bootstrap-vue/src/components/form-textarea/form-textarea.spec.js +1000 -0
  120. package/src/vendor/bootstrap-vue/src/components/form-textarea/index.d.ts +9 -0
  121. package/src/vendor/bootstrap-vue/src/components/form-textarea/package.json +122 -0
  122. package/src/vendor/bootstrap-vue/src/components/index.d.ts +31 -0
  123. package/src/vendor/bootstrap-vue/src/components/input-group/README.md +334 -0
  124. package/src/vendor/bootstrap-vue/src/components/input-group/index.d.ts +19 -0
  125. package/src/vendor/bootstrap-vue/src/components/input-group/input-group-append.spec.js +84 -0
  126. package/src/vendor/bootstrap-vue/src/components/input-group/input-group-prepend.spec.js +84 -0
  127. package/src/vendor/bootstrap-vue/src/components/input-group/input-group-text.spec.js +45 -0
  128. package/src/vendor/bootstrap-vue/src/components/input-group/input-group.spec.js +153 -0
  129. package/src/vendor/bootstrap-vue/src/components/input-group/package.json +109 -0
  130. package/src/vendor/bootstrap-vue/src/components/layout/README.md +791 -0
  131. package/src/vendor/bootstrap-vue/src/components/layout/col.spec.js +192 -0
  132. package/src/vendor/bootstrap-vue/src/components/layout/form-row.spec.js +45 -0
  133. package/src/vendor/bootstrap-vue/src/components/layout/index.d.ts +10 -0
  134. package/src/vendor/bootstrap-vue/src/components/layout/package.json +99 -0
  135. package/src/vendor/bootstrap-vue/src/components/link/README.md +76 -0
  136. package/src/vendor/bootstrap-vue/src/components/link/index.d.ts +10 -0
  137. package/src/vendor/bootstrap-vue/src/components/link/link.spec.js +434 -0
  138. package/src/vendor/bootstrap-vue/src/components/link/package.json +57 -0
  139. package/src/vendor/bootstrap-vue/src/components/modal/MODIFICATIONS.md +27 -0
  140. package/src/vendor/bootstrap-vue/src/components/modal/README.md +1068 -0
  141. package/src/vendor/bootstrap-vue/src/components/modal/helpers/bv-modal-event.class.spec.js +82 -0
  142. package/src/vendor/bootstrap-vue/src/components/modal/index.d.ts +82 -0
  143. package/src/vendor/bootstrap-vue/src/components/modal/modal.spec.js +1418 -0
  144. package/src/vendor/bootstrap-vue/src/components/modal/package.json +548 -0
  145. package/src/vendor/bootstrap-vue/src/components/nav/README.md +480 -0
  146. package/src/vendor/bootstrap-vue/src/components/nav/index.d.ts +17 -0
  147. package/src/vendor/bootstrap-vue/src/components/nav/nav-item-dropdown.spec.js +268 -0
  148. package/src/vendor/bootstrap-vue/src/components/nav/nav-item.spec.js +127 -0
  149. package/src/vendor/bootstrap-vue/src/components/nav/nav.spec.js +244 -0
  150. package/src/vendor/bootstrap-vue/src/components/nav/package.json +190 -0
  151. package/src/vendor/bootstrap-vue/src/components/navbar/README.md +333 -0
  152. package/src/vendor/bootstrap-vue/src/components/navbar/index.d.ts +10 -0
  153. package/src/vendor/bootstrap-vue/src/components/navbar/navbar-brand.spec.js +50 -0
  154. package/src/vendor/bootstrap-vue/src/components/navbar/navbar.spec.js +130 -0
  155. package/src/vendor/bootstrap-vue/src/components/navbar/package.json +54 -0
  156. package/src/vendor/bootstrap-vue/src/components/popover/README.md +919 -0
  157. package/src/vendor/bootstrap-vue/src/components/popover/index.d.ts +7 -0
  158. package/src/vendor/bootstrap-vue/src/components/popover/package.json +261 -0
  159. package/src/vendor/bootstrap-vue/src/components/popover/popover.spec.js +199 -0
  160. package/src/vendor/bootstrap-vue/src/components/progress/MODIFICATIONS.md +23 -0
  161. package/src/vendor/bootstrap-vue/src/components/progress/README.md +363 -0
  162. package/src/vendor/bootstrap-vue/src/components/progress/index.d.ts +10 -0
  163. package/src/vendor/bootstrap-vue/src/components/progress/package.json +109 -0
  164. package/src/vendor/bootstrap-vue/src/components/progress/progress-bar.spec.js +270 -0
  165. package/src/vendor/bootstrap-vue/src/components/progress/progress.spec.js +71 -0
  166. package/src/vendor/bootstrap-vue/src/components/table/README.md +3157 -0
  167. package/src/vendor/bootstrap-vue/src/components/table/helpers/default-sort-compare.spec.js +112 -0
  168. package/src/vendor/bootstrap-vue/src/components/table/helpers/normalize-fields.spec.js +93 -0
  169. package/src/vendor/bootstrap-vue/src/components/table/index.d.ts +237 -0
  170. package/src/vendor/bootstrap-vue/src/components/table/package.json +1763 -0
  171. package/src/vendor/bootstrap-vue/src/components/table/table-busy.spec.js +150 -0
  172. package/src/vendor/bootstrap-vue/src/components/table/table-caption.spec.js +176 -0
  173. package/src/vendor/bootstrap-vue/src/components/table/table-colgroup.spec.js +81 -0
  174. package/src/vendor/bootstrap-vue/src/components/table/table-filtering.spec.js +409 -0
  175. package/src/vendor/bootstrap-vue/src/components/table/table-item-formatter.spec.js +56 -0
  176. package/src/vendor/bootstrap-vue/src/components/table/table-lite.spec.js +682 -0
  177. package/src/vendor/bootstrap-vue/src/components/table/table-pagination.spec.js +133 -0
  178. package/src/vendor/bootstrap-vue/src/components/table/table-primarykey.spec.js +83 -0
  179. package/src/vendor/bootstrap-vue/src/components/table/table-provider.spec.js +411 -0
  180. package/src/vendor/bootstrap-vue/src/components/table/table-row-details.spec.js +459 -0
  181. package/src/vendor/bootstrap-vue/src/components/table/table-selectable.spec.js +1182 -0
  182. package/src/vendor/bootstrap-vue/src/components/table/table-simple.spec.js +206 -0
  183. package/src/vendor/bootstrap-vue/src/components/table/table-sorting.spec.js +858 -0
  184. package/src/vendor/bootstrap-vue/src/components/table/table-sticky-column.spec.js +377 -0
  185. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-bottom-row.spec.js +94 -0
  186. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-row-events.spec.js +529 -0
  187. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-top-row.spec.js +88 -0
  188. package/src/vendor/bootstrap-vue/src/components/table/table-tbody-transition.spec.js +83 -0
  189. package/src/vendor/bootstrap-vue/src/components/table/table-tfoot-custom.spec.js +91 -0
  190. package/src/vendor/bootstrap-vue/src/components/table/table-tfoot-events.spec.js +137 -0
  191. package/src/vendor/bootstrap-vue/src/components/table/table-thead-events.spec.js +155 -0
  192. package/src/vendor/bootstrap-vue/src/components/table/table-thead-top.spec.js +96 -0
  193. package/src/vendor/bootstrap-vue/src/components/table/table.spec.js +692 -0
  194. package/src/vendor/bootstrap-vue/src/components/tabs/README.md +575 -0
  195. package/src/vendor/bootstrap-vue/src/components/tabs/index.d.ts +13 -0
  196. package/src/vendor/bootstrap-vue/src/components/tabs/package.json +205 -0
  197. package/src/vendor/bootstrap-vue/src/components/tabs/tab.spec.js +330 -0
  198. package/src/vendor/bootstrap-vue/src/components/tabs/tabs.spec.js +836 -0
  199. package/src/vendor/bootstrap-vue/src/components/toast/README.md +656 -0
  200. package/src/vendor/bootstrap-vue/src/components/toast/helpers/bv-toast.spec.js +131 -0
  201. package/src/vendor/bootstrap-vue/src/components/toast/index.d.ts +70 -0
  202. package/src/vendor/bootstrap-vue/src/components/toast/package.json +188 -0
  203. package/src/vendor/bootstrap-vue/src/components/toast/toast.spec.js +346 -0
  204. package/src/vendor/bootstrap-vue/src/components/toast/toaster.spec.js +77 -0
  205. package/src/vendor/bootstrap-vue/src/components/tooltip/README.md +559 -0
  206. package/src/vendor/bootstrap-vue/src/components/tooltip/index.d.ts +7 -0
  207. package/src/vendor/bootstrap-vue/src/components/tooltip/package.json +258 -0
  208. package/src/vendor/bootstrap-vue/src/components/tooltip/tooltip.spec.js +1529 -0
  209. package/src/vendor/bootstrap-vue/src/components/transition/package.json +5 -0
  210. package/src/vendor/bootstrap-vue/src/components/transporter/package.json +5 -0
  211. package/src/vendor/bootstrap-vue/src/components/transporter/transporter.spec.js +85 -0
  212. package/src/vendor/bootstrap-vue/src/directives/modal/index.d.ts +8 -0
  213. package/src/vendor/bootstrap-vue/src/directives/modal/modal.spec.js +191 -0
  214. package/src/vendor/bootstrap-vue/src/directives/toggle/README.md +146 -0
  215. package/src/vendor/bootstrap-vue/src/directives/toggle/index.d.ts +7 -0
  216. package/src/vendor/bootstrap-vue/src/directives/toggle/package.json +26 -0
  217. package/src/vendor/bootstrap-vue/src/directives/toggle/toggle.spec.js +452 -0
  218. package/src/vendor/bootstrap-vue/src/directives/tooltip/README.md +521 -0
  219. package/src/vendor/bootstrap-vue/src/directives/tooltip/index.d.ts +7 -0
  220. package/src/vendor/bootstrap-vue/src/directives/tooltip/package.json +131 -0
  221. package/src/vendor/bootstrap-vue/src/directives/tooltip/tooltip.spec.js +223 -0
  222. package/src/vendor/bootstrap-vue/src/directives/visible/README.md +244 -0
  223. package/src/vendor/bootstrap-vue/src/directives/visible/index.d.ts +7 -0
  224. package/src/vendor/bootstrap-vue/src/directives/visible/package.json +24 -0
  225. package/src/vendor/bootstrap-vue/src/index.d.ts +61 -0
  226. package/src/vendor/bootstrap-vue/src/mixins/attrs.spec.js +194 -0
  227. package/src/vendor/bootstrap-vue/src/mixins/click-out.spec.js +52 -0
  228. package/src/vendor/bootstrap-vue/src/mixins/focus-in.spec.js +53 -0
  229. package/src/vendor/bootstrap-vue/src/mixins/listen-on-document.spec.js +117 -0
  230. package/src/vendor/bootstrap-vue/src/mixins/listen-on-root.spec.js +77 -0
  231. package/src/vendor/bootstrap-vue/src/mixins/listen-on-window.spec.js +115 -0
  232. package/src/vendor/bootstrap-vue/src/mixins/listeners.spec.js +245 -0
  233. package/src/vendor/bootstrap-vue/src/utils/bv-event.class.spec.js +66 -0
  234. package/src/vendor/bootstrap-vue/src/utils/clone-deep.spec.js +70 -0
  235. package/src/vendor/bootstrap-vue/src/utils/config.spec.js +169 -0
  236. package/src/vendor/bootstrap-vue/src/utils/css-escape.spec.js +82 -0
  237. package/src/vendor/bootstrap-vue/src/utils/dom.spec.js +291 -0
  238. package/src/vendor/bootstrap-vue/src/utils/events.spec.js +41 -0
  239. package/src/vendor/bootstrap-vue/src/utils/get.spec.js +109 -0
  240. package/src/vendor/bootstrap-vue/src/utils/inspect.spec.js +251 -0
  241. package/src/vendor/bootstrap-vue/src/utils/loose-equal.spec.js +203 -0
  242. package/src/vendor/bootstrap-vue/src/utils/normalize-slot.spec.js +63 -0
  243. package/src/vendor/bootstrap-vue/src/utils/number.spec.js +72 -0
  244. package/src/vendor/bootstrap-vue/src/utils/object.spec.js +61 -0
  245. package/src/vendor/bootstrap-vue/src/utils/props.spec.js +112 -0
  246. package/src/vendor/bootstrap-vue/src/utils/router.spec.js +248 -0
  247. package/src/vendor/bootstrap-vue/src/utils/string.spec.js +65 -0
  248. package/src/vendor/bootstrap-vue/src/utils/stringify-object-values.spec.js +47 -0
  249. package/src/vendor/bootstrap-vue/src/utils/warn.spec.js +54 -0
  250. package/src/vendor/bootstrap-vue/src/vue-injections.d.ts +13 -0
  251. package/translations.js +0 -26
  252. package/dist/tokens/css/tokens.css +0 -953
  253. package/dist/tokens/css/tokens.dark.css +0 -953
  254. package/dist/tokens/js/tokens.dark.js +0 -951
  255. package/dist/tokens/js/tokens.js +0 -951
  256. package/dist/tokens/json/tokens.dark.json +0 -21803
  257. package/dist/tokens/json/tokens.json +0 -21803
  258. package/dist/tokens/scss/_tokens.dark.scss +0 -950
  259. package/dist/tokens/scss/_tokens.scss +0 -950
  260. package/dist/tokens/scss/_tokens_custom_properties.scss +0 -951
  261. package/dist/tokens/tailwind/tokens.cjs +0 -336
  262. package/src/charts.js +0 -14
  263. package/src/components/base/accordion/accordion.md +0 -3
  264. package/src/components/base/accordion/accordion.vue +0 -43
  265. package/src/components/base/accordion/accordion_item.md +0 -3
  266. package/src/components/base/accordion/accordion_item.scss +0 -16
  267. package/src/components/base/accordion/accordion_item.vue +0 -122
  268. package/src/components/base/alert/alert.md +0 -35
  269. package/src/components/base/alert/alert.scss +0 -179
  270. package/src/components/base/alert/alert.vue +0 -241
  271. package/src/components/base/animated_icon/animated_chevron_right_down_icon.vue +0 -28
  272. package/src/components/base/animated_icon/animated_duo_chat_icon.vue +0 -39
  273. package/src/components/base/animated_icon/animated_icon.md +0 -4
  274. package/src/components/base/animated_icon/animated_icon.scss +0 -456
  275. package/src/components/base/animated_icon/animated_notifications_icon.vue +0 -49
  276. package/src/components/base/animated_icon/animated_sidebar_icon.vue +0 -35
  277. package/src/components/base/animated_icon/animated_smile_icon.vue +0 -37
  278. package/src/components/base/animated_icon/animated_sort_icon.vue +0 -84
  279. package/src/components/base/animated_icon/animated_star_icon.vue +0 -27
  280. package/src/components/base/animated_icon/animated_todo_icon.vue +0 -49
  281. package/src/components/base/animated_icon/animated_upload_icon.vue +0 -41
  282. package/src/components/base/animated_icon/base_animated_icon.vue +0 -39
  283. package/src/components/base/avatar/avatar.md +0 -1
  284. package/src/components/base/avatar/avatar.scss +0 -228
  285. package/src/components/base/avatar/avatar.vue +0 -151
  286. package/src/components/base/avatar_labeled/avatar_labeled.md +0 -20
  287. package/src/components/base/avatar_labeled/avatar_labeled.scss +0 -30
  288. package/src/components/base/avatar_labeled/avatar_labeled.vue +0 -92
  289. package/src/components/base/avatar_link/avatar_link.md +0 -33
  290. package/src/components/base/avatar_link/avatar_link.scss +0 -41
  291. package/src/components/base/avatar_link/avatar_link.vue +0 -15
  292. package/src/components/base/avatars_inline/avatars_inline.md +0 -38
  293. package/src/components/base/avatars_inline/avatars_inline.scss +0 -64
  294. package/src/components/base/avatars_inline/avatars_inline.vue +0 -110
  295. package/src/components/base/badge/badge.md +0 -38
  296. package/src/components/base/badge/badge.scss +0 -251
  297. package/src/components/base/badge/badge.vue +0 -91
  298. package/src/components/base/banner/banner.md +0 -35
  299. package/src/components/base/banner/banner.scss +0 -35
  300. package/src/components/base/banner/banner.vue +0 -131
  301. package/src/components/base/breadcrumb/breadcrumb.md +0 -23
  302. package/src/components/base/breadcrumb/breadcrumb.scss +0 -62
  303. package/src/components/base/breadcrumb/breadcrumb.vue +0 -229
  304. package/src/components/base/breadcrumb/breadcrumb_item.vue +0 -44
  305. package/src/components/base/broadcast_message/broadcast_message.md +0 -25
  306. package/src/components/base/broadcast_message/broadcast_message.scss +0 -135
  307. package/src/components/base/broadcast_message/broadcast_message.vue +0 -98
  308. package/src/components/base/broadcast_message/constants.js +0 -3
  309. package/src/components/base/button/button.md +0 -61
  310. package/src/components/base/button/button.scss +0 -699
  311. package/src/components/base/button/button.vue +0 -143
  312. package/src/components/base/button_group/button_group.md +0 -28
  313. package/src/components/base/button_group/button_group.vue +0 -16
  314. package/src/components/base/card/card.md +0 -4
  315. package/src/components/base/card/card.scss +0 -46
  316. package/src/components/base/card/card.vue +0 -49
  317. package/src/components/base/collapse/collapse.md +0 -26
  318. package/src/components/base/collapse/collapse.vue +0 -29
  319. package/src/components/base/datepicker/datepicker.md +0 -8
  320. package/src/components/base/datepicker/datepicker.scss +0 -228
  321. package/src/components/base/datepicker/datepicker.vue +0 -454
  322. package/src/components/base/daterange_picker/daterange_picker.md +0 -32
  323. package/src/components/base/daterange_picker/daterange_picker.scss +0 -20
  324. package/src/components/base/daterange_picker/daterange_picker.vue +0 -345
  325. package/src/components/base/drawer/drawer.md +0 -17
  326. package/src/components/base/drawer/drawer.scss +0 -153
  327. package/src/components/base/drawer/drawer.vue +0 -136
  328. package/src/components/base/dropdown/dropdown.md +0 -72
  329. package/src/components/base/dropdown/dropdown.scss +0 -210
  330. package/src/components/base/dropdown/dropdown.vue +0 -323
  331. package/src/components/base/dropdown/dropdown_divider.scss +0 -20
  332. package/src/components/base/dropdown/dropdown_divider.vue +0 -15
  333. package/src/components/base/dropdown/dropdown_form.vue +0 -17
  334. package/src/components/base/dropdown/dropdown_item.md +0 -2
  335. package/src/components/base/dropdown/dropdown_item.scss +0 -102
  336. package/src/components/base/dropdown/dropdown_item.vue +0 -114
  337. package/src/components/base/dropdown/dropdown_section_header.md +0 -7
  338. package/src/components/base/dropdown/dropdown_section_header.scss +0 -22
  339. package/src/components/base/dropdown/dropdown_section_header.vue +0 -17
  340. package/src/components/base/dropdown/dropdown_text.md +0 -7
  341. package/src/components/base/dropdown/dropdown_text.scss +0 -6
  342. package/src/components/base/dropdown/dropdown_text.vue +0 -17
  343. package/src/components/base/filtered_search/common_story_options.js +0 -12
  344. package/src/components/base/filtered_search/filtered_search.md +0 -76
  345. package/src/components/base/filtered_search/filtered_search.scss +0 -51
  346. package/src/components/base/filtered_search/filtered_search.vue +0 -475
  347. package/src/components/base/filtered_search/filtered_search_suggestion.md +0 -15
  348. package/src/components/base/filtered_search/filtered_search_suggestion.scss +0 -11
  349. package/src/components/base/filtered_search/filtered_search_suggestion.vue +0 -64
  350. package/src/components/base/filtered_search/filtered_search_suggestion_list.md +0 -13
  351. package/src/components/base/filtered_search/filtered_search_suggestion_list.scss +0 -36
  352. package/src/components/base/filtered_search/filtered_search_suggestion_list.vue +0 -122
  353. package/src/components/base/filtered_search/filtered_search_term.md +0 -7
  354. package/src/components/base/filtered_search/filtered_search_term.scss +0 -19
  355. package/src/components/base/filtered_search/filtered_search_term.vue +0 -243
  356. package/src/components/base/filtered_search/filtered_search_token.md +0 -23
  357. package/src/components/base/filtered_search/filtered_search_token.scss +0 -63
  358. package/src/components/base/filtered_search/filtered_search_token.vue +0 -484
  359. package/src/components/base/filtered_search/filtered_search_token_segment.md +0 -14
  360. package/src/components/base/filtered_search/filtered_search_token_segment.scss +0 -25
  361. package/src/components/base/filtered_search/filtered_search_token_segment.vue +0 -468
  362. package/src/components/base/filtered_search/filtered_search_utils.js +0 -251
  363. package/src/components/base/form/form.md +0 -2
  364. package/src/components/base/form/form.vue +0 -17
  365. package/src/components/base/form/form_character_count/form_character_count.md +0 -53
  366. package/src/components/base/form/form_character_count/form_character_count.vue +0 -97
  367. package/src/components/base/form/form_checkbox/form_checkbox.md +0 -6
  368. package/src/components/base/form/form_checkbox/form_checkbox.scss +0 -221
  369. package/src/components/base/form/form_checkbox/form_checkbox.vue +0 -58
  370. package/src/components/base/form/form_checkbox/form_checkbox_group.vue +0 -44
  371. package/src/components/base/form/form_checkbox_tree/checkbox_tree_node.vue +0 -58
  372. package/src/components/base/form/form_checkbox_tree/form_checkbox_tree.md +0 -73
  373. package/src/components/base/form/form_checkbox_tree/form_checkbox_tree.vue +0 -116
  374. package/src/components/base/form/form_checkbox_tree/models/constants.js +0 -12
  375. package/src/components/base/form/form_checkbox_tree/models/node.js +0 -48
  376. package/src/components/base/form/form_checkbox_tree/models/tree.js +0 -186
  377. package/src/components/base/form/form_combobox/constants.js +0 -50
  378. package/src/components/base/form/form_combobox/form_combobox.md +0 -52
  379. package/src/components/base/form/form_combobox/form_combobox.scss +0 -5
  380. package/src/components/base/form/form_combobox/form_combobox.vue +0 -280
  381. package/src/components/base/form/form_date/form_date.md +0 -26
  382. package/src/components/base/form/form_date/form_date.scss +0 -7
  383. package/src/components/base/form/form_date/form_date.vue +0 -135
  384. package/src/components/base/form/form_fields/form_field_validator.vue +0 -59
  385. package/src/components/base/form/form_fields/form_fields.md +0 -41
  386. package/src/components/base/form/form_fields/form_fields.vue +0 -258
  387. package/src/components/base/form/form_fields/mappers.js +0 -11
  388. package/src/components/base/form/form_fields/validators.js +0 -49
  389. package/src/components/base/form/form_group/form_group.md +0 -1
  390. package/src/components/base/form/form_group/form_group.scss +0 -59
  391. package/src/components/base/form/form_group/form_group.vue +0 -76
  392. package/src/components/base/form/form_input/form_input.md +0 -1
  393. package/src/components/base/form/form_input/form_input.scss +0 -74
  394. package/src/components/base/form/form_input/form_input.vue +0 -98
  395. package/src/components/base/form/form_input_group/form_input_group.md +0 -67
  396. package/src/components/base/form/form_input_group/form_input_group.vue +0 -103
  397. package/src/components/base/form/form_input_group/form_input_group_mixin.js +0 -39
  398. package/src/components/base/form/form_radio/form_radio.md +0 -23
  399. package/src/components/base/form/form_radio/form_radio.scss +0 -1
  400. package/src/components/base/form/form_radio/form_radio.vue +0 -51
  401. package/src/components/base/form/form_radio_group/form_radio_group.md +0 -63
  402. package/src/components/base/form/form_radio_group/form_radio_group.scss +0 -4
  403. package/src/components/base/form/form_radio_group/form_radio_group.vue +0 -64
  404. package/src/components/base/form/form_select/constants.js +0 -5
  405. package/src/components/base/form/form_select/form_select.md +0 -1
  406. package/src/components/base/form/form_select/form_select.scss +0 -117
  407. package/src/components/base/form/form_select/form_select.vue +0 -61
  408. package/src/components/base/form/form_textarea/form_textarea.md +0 -3
  409. package/src/components/base/form/form_textarea/form_textarea.vue +0 -141
  410. package/src/components/base/form/input_group_text/input_group_text.md +0 -4
  411. package/src/components/base/form/input_group_text/input_group_text.vue +0 -17
  412. package/src/components/base/icon/icon.md +0 -27
  413. package/src/components/base/icon/icon.scss +0 -8
  414. package/src/components/base/icon/icon.vue +0 -98
  415. package/src/components/base/infinite_scroll/infinite_scroll.md +0 -104
  416. package/src/components/base/infinite_scroll/infinite_scroll.scss +0 -11
  417. package/src/components/base/infinite_scroll/infinite_scroll.vue +0 -169
  418. package/src/components/base/keyset_pagination/keyset_pagination.md +0 -49
  419. package/src/components/base/keyset_pagination/keyset_pagination.scss +0 -9
  420. package/src/components/base/keyset_pagination/keyset_pagination.vue +0 -152
  421. package/src/components/base/label/label.md +0 -15
  422. package/src/components/base/label/label.scss +0 -156
  423. package/src/components/base/label/label.vue +0 -160
  424. package/src/components/base/link/link.md +0 -22
  425. package/src/components/base/link/link.scss +0 -13
  426. package/src/components/base/link/link.vue +0 -25
  427. package/src/components/base/loading_icon/loading_icon.md +0 -3
  428. package/src/components/base/loading_icon/loading_icon.scss +0 -139
  429. package/src/components/base/loading_icon/loading_icon.vue +0 -96
  430. package/src/components/base/markdown/markdown.md +0 -73
  431. package/src/components/base/markdown/markdown.scss +0 -223
  432. package/src/components/base/markdown/markdown.vue +0 -18
  433. package/src/components/base/markdown/markdown_typescale_demo.html +0 -155
  434. package/src/components/base/modal/modal.md +0 -30
  435. package/src/components/base/modal/modal.scss +0 -130
  436. package/src/components/base/modal/modal.vue +0 -269
  437. package/src/components/base/nav/nav.md +0 -11
  438. package/src/components/base/nav/nav.scss +0 -7
  439. package/src/components/base/nav/nav.vue +0 -17
  440. package/src/components/base/nav/nav_item.vue +0 -17
  441. package/src/components/base/nav/nav_item_dropdown.vue +0 -40
  442. package/src/components/base/navbar/navbar.md +0 -4
  443. package/src/components/base/navbar/navbar.scss +0 -0
  444. package/src/components/base/navbar/navbar.vue +0 -17
  445. package/src/components/base/new_dropdowns/base_dropdown/base_dropdown.vue +0 -507
  446. package/src/components/base/new_dropdowns/base_dropdown/constants.js +0 -2
  447. package/src/components/base/new_dropdowns/constants.js +0 -20
  448. package/src/components/base/new_dropdowns/disclosure/constants.js +0 -6
  449. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.md +0 -168
  450. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.scss +0 -17
  451. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown.vue +0 -458
  452. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_group.vue +0 -104
  453. package/src/components/base/new_dropdowns/disclosure/disclosure_dropdown_item.vue +0 -131
  454. package/src/components/base/new_dropdowns/disclosure/mock_data.js +0 -201
  455. package/src/components/base/new_dropdowns/disclosure/utils.js +0 -70
  456. package/src/components/base/new_dropdowns/dropdown.scss +0 -243
  457. package/src/components/base/new_dropdowns/dropdown_item.scss +0 -134
  458. package/src/components/base/new_dropdowns/listbox/listbox.md +0 -159
  459. package/src/components/base/new_dropdowns/listbox/listbox.scss +0 -53
  460. package/src/components/base/new_dropdowns/listbox/listbox.vue +0 -940
  461. package/src/components/base/new_dropdowns/listbox/listbox_group.vue +0 -35
  462. package/src/components/base/new_dropdowns/listbox/listbox_item.vue +0 -77
  463. package/src/components/base/new_dropdowns/listbox/listbox_search_input.vue +0 -76
  464. package/src/components/base/new_dropdowns/listbox/mock_data.js +0 -139
  465. package/src/components/base/new_dropdowns/listbox/utils.js +0 -25
  466. package/src/components/base/paginated_list/paginated_list.md +0 -1
  467. package/src/components/base/paginated_list/paginated_list.vue +0 -179
  468. package/src/components/base/pagination/pagination.md +0 -45
  469. package/src/components/base/pagination/pagination.scss +0 -57
  470. package/src/components/base/pagination/pagination.vue +0 -498
  471. package/src/components/base/path/data.js +0 -43
  472. package/src/components/base/path/path.md +0 -41
  473. package/src/components/base/path/path.scss +0 -163
  474. package/src/components/base/path/path.vue +0 -191
  475. package/src/components/base/popover/popover.scss +0 -102
  476. package/src/components/base/popover/popover.vue +0 -111
  477. package/src/components/base/progress_bar/progress_bar.scss +0 -19
  478. package/src/components/base/progress_bar/progress_bar.vue +0 -15
  479. package/src/components/base/search_box_by_click/search_box_by_click.md +0 -1
  480. package/src/components/base/search_box_by_click/search_box_by_click.scss +0 -49
  481. package/src/components/base/search_box_by_click/search_box_by_click.vue +0 -296
  482. package/src/components/base/search_box_by_type/search_box_by_type.md +0 -1
  483. package/src/components/base/search_box_by_type/search_box_by_type.scss +0 -70
  484. package/src/components/base/search_box_by_type/search_box_by_type.vue +0 -159
  485. package/src/components/base/segmented_control/segmented_control.md +0 -1
  486. package/src/components/base/segmented_control/segmented_control.scss +0 -179
  487. package/src/components/base/segmented_control/segmented_control.vue +0 -77
  488. package/src/components/base/skeleton_loader/skeleton_loader.md +0 -46
  489. package/src/components/base/skeleton_loader/skeleton_loader.scss +0 -17
  490. package/src/components/base/skeleton_loader/skeleton_loader.vue +0 -249
  491. package/src/components/base/sorting/sorting.md +0 -80
  492. package/src/components/base/sorting/sorting.vue +0 -160
  493. package/src/components/base/table/constants.js +0 -48
  494. package/src/components/base/table/table.md +0 -72
  495. package/src/components/base/table/table.scss +0 -145
  496. package/src/components/base/table/table.vue +0 -144
  497. package/src/components/base/table_lite/table_lite.md +0 -68
  498. package/src/components/base/table_lite/table_lite.vue +0 -43
  499. package/src/components/base/tabs/constants.js +0 -1
  500. package/src/components/base/tabs/tab/tab.vue +0 -57
  501. package/src/components/base/tabs/tabs/scrollable_tabs.vue +0 -140
  502. package/src/components/base/tabs/tabs/tabs.md +0 -76
  503. package/src/components/base/tabs/tabs/tabs.scss +0 -164
  504. package/src/components/base/tabs/tabs/tabs.vue +0 -282
  505. package/src/components/base/toast/toast.js +0 -93
  506. package/src/components/base/toast/toast.md +0 -48
  507. package/src/components/base/toast/toast.scss +0 -62
  508. package/src/components/base/toggle/toggle.md +0 -4
  509. package/src/components/base/toggle/toggle.scss +0 -177
  510. package/src/components/base/toggle/toggle.vue +0 -194
  511. package/src/components/base/token/token.md +0 -12
  512. package/src/components/base/token/token.scss +0 -44
  513. package/src/components/base/token/token.vue +0 -67
  514. package/src/components/base/token_selector/helpers.js +0 -3
  515. package/src/components/base/token_selector/token_container.vue +0 -184
  516. package/src/components/base/token_selector/token_selector.md +0 -78
  517. package/src/components/base/token_selector/token_selector.scss +0 -19
  518. package/src/components/base/token_selector/token_selector.vue +0 -489
  519. package/src/components/base/token_selector/token_selector_dropdown.vue +0 -257
  520. package/src/components/base/tooltip/tooltip.md +0 -52
  521. package/src/components/base/tooltip/tooltip.scss +0 -52
  522. package/src/components/base/tooltip/tooltip.vue +0 -31
  523. package/src/components/charts/area/area.vue +0 -372
  524. package/src/components/charts/bar/bar.md +0 -3
  525. package/src/components/charts/bar/bar.vue +0 -237
  526. package/src/components/charts/chart/chart.md +0 -19
  527. package/src/components/charts/chart/chart.vue +0 -188
  528. package/src/components/charts/column/column.vue +0 -204
  529. package/src/components/charts/discrete_scatter/discrete_scatter.vue +0 -207
  530. package/src/components/charts/gauge/gauge.md +0 -8
  531. package/src/components/charts/gauge/gauge.scss +0 -0
  532. package/src/components/charts/gauge/gauge.vue +0 -178
  533. package/src/components/charts/heatmap/heatmap.md +0 -7
  534. package/src/components/charts/heatmap/heatmap.scss +0 -7
  535. package/src/components/charts/heatmap/heatmap.vue +0 -290
  536. package/src/components/charts/heatmap/index.js +0 -3
  537. package/src/components/charts/legend/legend.md +0 -16
  538. package/src/components/charts/legend/legend.scss +0 -97
  539. package/src/components/charts/legend/legend.vue +0 -284
  540. package/src/components/charts/line/line.md +0 -7
  541. package/src/components/charts/line/line.vue +0 -368
  542. package/src/components/charts/series_label/series_label.md +0 -1
  543. package/src/components/charts/series_label/series_label.scss +0 -23
  544. package/src/components/charts/series_label/series_label.vue +0 -85
  545. package/src/components/charts/single_stat/single_stat.md +0 -8
  546. package/src/components/charts/single_stat/single_stat.scss +0 -17
  547. package/src/components/charts/single_stat/single_stat.vue +0 -158
  548. package/src/components/charts/sparkline/sparkline.md +0 -8
  549. package/src/components/charts/sparkline/sparkline.vue +0 -308
  550. package/src/components/charts/stacked_column/stacked_column.md +0 -10
  551. package/src/components/charts/stacked_column/stacked_column.vue +0 -330
  552. package/src/components/charts/tooltip/tooltip.md +0 -3
  553. package/src/components/charts/tooltip/tooltip.scss +0 -9
  554. package/src/components/charts/tooltip/tooltip.vue +0 -253
  555. package/src/components/experimental/duo/chat/duo_chat.scss +0 -168
  556. package/src/components/experimental/experiment_badge/constants.js +0 -2
  557. package/src/components/experimental/experiment_badge/experiment_badge.md +0 -9
  558. package/src/components/experimental/experiment_badge/experiment_badge.vue +0 -113
  559. package/src/components/mixins/button_mixin.js +0 -9
  560. package/src/components/mixins/safe_link_mixin.js +0 -28
  561. package/src/components/mixins/tooltip_mixin.js +0 -21
  562. package/src/components/regions/dashboard_skeleton/dashboard_skeleton.md +0 -4
  563. package/src/components/regions/dashboard_skeleton/dashboard_skeleton.vue +0 -40
  564. package/src/components/regions/empty_state/empty_state.md +0 -4
  565. package/src/components/regions/empty_state/empty_state.scss +0 -3
  566. package/src/components/regions/empty_state/empty_state.vue +0 -187
  567. package/src/components/shared_components/charts/tooltip_default_format.scss +0 -18
  568. package/src/components/shared_components/charts/tooltip_default_format.vue +0 -32
  569. package/src/components/shared_components/clear_icon_button/clear_icon_button.scss +0 -10
  570. package/src/components/shared_components/clear_icon_button/clear_icon_button.vue +0 -43
  571. package/src/components/shared_components/close_button/close_button.vue +0 -29
  572. package/src/components/utilities/animated_number/animated_number.md +0 -6
  573. package/src/components/utilities/animated_number/animated_number.vue +0 -99
  574. package/src/components/utilities/friendly_wrap/friendly_wrap.md +0 -66
  575. package/src/components/utilities/friendly_wrap/friendly_wrap.vue +0 -33
  576. package/src/components/utilities/intersection_observer/intersection_observer.md +0 -16
  577. package/src/components/utilities/intersection_observer/intersection_observer.vue +0 -67
  578. package/src/components/utilities/intersperse/intersperse.md +0 -90
  579. package/src/components/utilities/intersperse/intersperse.vue +0 -60
  580. package/src/components/utilities/sprintf/sprintf.md +0 -243
  581. package/src/components/utilities/sprintf/sprintf.vue +0 -142
  582. package/src/components/utilities/truncate/constants.js +0 -5
  583. package/src/components/utilities/truncate/truncate.md +0 -14
  584. package/src/components/utilities/truncate/truncate.scss +0 -21
  585. package/src/components/utilities/truncate/truncate.vue +0 -109
  586. package/src/components/utilities/truncate_text/constants.js +0 -5
  587. package/src/components/utilities/truncate_text/truncate_text.md +0 -26
  588. package/src/components/utilities/truncate_text/truncate_text.scss +0 -14
  589. package/src/components/utilities/truncate_text/truncate_text.vue +0 -124
  590. package/src/directives/collapse_toggle.js +0 -1
  591. package/src/directives/hover_load/hover_load.js +0 -46
  592. package/src/directives/hover_load/hover_load.md +0 -22
  593. package/src/directives/modal.js +0 -1
  594. package/src/directives/outside/outside.js +0 -151
  595. package/src/directives/outside/outside.md +0 -140
  596. package/src/directives/resize_observer/resize_observer.js +0 -45
  597. package/src/directives/resize_observer/resize_observer.md +0 -54
  598. package/src/directives/safe_html/constants.js +0 -14
  599. package/src/directives/safe_html/safe_html.js +0 -35
  600. package/src/directives/safe_html/safe_html.md +0 -58
  601. package/src/directives/safe_link/mock_data.js +0 -33
  602. package/src/directives/safe_link/safe_link.js +0 -56
  603. package/src/directives/safe_link/safe_link.md +0 -37
  604. package/src/directives/tooltip.js +0 -1
  605. package/src/internal/color_contrast/color_contrast.md +0 -8
  606. package/src/internal/color_contrast/color_contrast.vue +0 -52
  607. package/src/scss/README.md +0 -1
  608. package/src/scss/body.scss +0 -4
  609. package/src/scss/bootstrap.scss +0 -34
  610. package/src/scss/bootstrap_vue.scss +0 -25
  611. package/src/scss/fonts.scss +0 -67
  612. package/src/scss/functions.scss +0 -63
  613. package/src/scss/gitlab_ui.scss +0 -19
  614. package/src/scss/mixins.scss +0 -262
  615. package/src/scss/storybook.scss +0 -43
  616. package/src/scss/storybook_dark_mode.scss +0 -21
  617. package/src/scss/tokens.scss +0 -2
  618. package/src/scss/typescale/_index.scss +0 -103
  619. package/src/scss/typescale/typeface_demo.html +0 -70
  620. package/src/scss/typescale/typescale.md +0 -82
  621. package/src/scss/typescale/typescale_demo.html +0 -78
  622. package/src/scss/typescale/typescale_demo.scss +0 -8
  623. package/src/scss/utilities.scss +0 -9196
  624. package/src/scss/utility-mixins/accessibility.scss +0 -19
  625. package/src/scss/utility-mixins/animation.scss +0 -90
  626. package/src/scss/utility-mixins/background.scss +0 -421
  627. package/src/scss/utility-mixins/border.scss +0 -498
  628. package/src/scss/utility-mixins/box-shadow.scss +0 -220
  629. package/src/scss/utility-mixins/clearfix.scss +0 -9
  630. package/src/scss/utility-mixins/color.scss +0 -228
  631. package/src/scss/utility-mixins/composite.scss +0 -24
  632. package/src/scss/utility-mixins/cursor.scss +0 -36
  633. package/src/scss/utility-mixins/deprecated.scss +0 -20
  634. package/src/scss/utility-mixins/display.scss +0 -192
  635. package/src/scss/utility-mixins/flex.scss +0 -360
  636. package/src/scss/utility-mixins/grid.scss +0 -50
  637. package/src/scss/utility-mixins/image.scss +0 -8
  638. package/src/scss/utility-mixins/index.scss +0 -47
  639. package/src/scss/utility-mixins/list-style.scss +0 -12
  640. package/src/scss/utility-mixins/opacity.scss +0 -32
  641. package/src/scss/utility-mixins/outline.scss +0 -12
  642. package/src/scss/utility-mixins/overflow.scss +0 -45
  643. package/src/scss/utility-mixins/pointer-events.scss +0 -12
  644. package/src/scss/utility-mixins/sizing.scss +0 -582
  645. package/src/scss/utility-mixins/spacing.scss +0 -1564
  646. package/src/scss/utility-mixins/svg.scss +0 -79
  647. package/src/scss/utility-mixins/text.scss +0 -183
  648. package/src/scss/utility-mixins/transform.scss +0 -58
  649. package/src/scss/utility-mixins/transition.scss +0 -44
  650. package/src/scss/utility-mixins/typography.scss +0 -381
  651. package/src/scss/utility-mixins/vertical-align.scss +0 -22
  652. package/src/scss/utility-mixins/visibility.scss +0 -12
  653. package/src/scss/utility-mixins/z-index.scss +0 -37
  654. package/src/scss/variables.scss +0 -337
  655. package/src/tokens/action.tokens.json +0 -566
  656. package/src/tokens/background.tokens.json +0 -62
  657. package/src/tokens/border.tokens.json +0 -43
  658. package/src/tokens/build/css/tokens.css +0 -953
  659. package/src/tokens/build/css/tokens.dark.css +0 -953
  660. package/src/tokens/build/js/tokens.dark.js +0 -951
  661. package/src/tokens/build/js/tokens.js +0 -951
  662. package/src/tokens/build/json/tokens.dark.json +0 -21803
  663. package/src/tokens/build/scss/_tokens.dark.scss +0 -950
  664. package/src/tokens/build/scss/_tokens.scss +0 -950
  665. package/src/tokens/build/scss/_tokens_custom_properties.scss +0 -951
  666. package/src/tokens/build/tailwind/tokens.cjs +0 -336
  667. package/src/tokens/color.alpha.tokens.json +0 -70
  668. package/src/tokens/color.constant.tokens.json +0 -660
  669. package/src/tokens/color.data_viz.tokens.json +0 -509
  670. package/src/tokens/common_story_options.js +0 -25
  671. package/src/tokens/contextual/alert.tokens.json +0 -209
  672. package/src/tokens/contextual/avatar.tokens.json +0 -112
  673. package/src/tokens/contextual/badge.tokens.json +0 -879
  674. package/src/tokens/contextual/banner.tokens.json +0 -38
  675. package/src/tokens/contextual/breadcrumb.tokens.json +0 -11
  676. package/src/tokens/contextual/broadcast.tokens.json +0 -222
  677. package/src/tokens/contextual/button.tokens.json +0 -874
  678. package/src/tokens/contextual/datepicker.tokens.json +0 -25
  679. package/src/tokens/contextual/dropdown.tokens.json +0 -148
  680. package/src/tokens/contextual/filtered-search.tokens.json +0 -72
  681. package/src/tokens/contextual/label.tokens.json +0 -118
  682. package/src/tokens/contextual/link.tokens.json +0 -46
  683. package/src/tokens/contextual/progress-bar.tokens.json +0 -38
  684. package/src/tokens/contextual/skeleton-loader.tokens.json +0 -24
  685. package/src/tokens/contextual/spinner.tokens.json +0 -38
  686. package/src/tokens/contextual/table.tokens.json +0 -24
  687. package/src/tokens/contextual/tabs.tokens.json +0 -18
  688. package/src/tokens/contextual/toggle.tokens.json +0 -59
  689. package/src/tokens/contextual/token.tokens.json +0 -21
  690. package/src/tokens/control.tokens.json +0 -177
  691. package/src/tokens/deprecated.color.theme.tokens.json +0 -736
  692. package/src/tokens/deprecated.color.tokens.json +0 -800
  693. package/src/tokens/deprecated.color.transparency.tokens.json +0 -110
  694. package/src/tokens/feedback.tokens.json +0 -200
  695. package/src/tokens/focus-ring.tokens.json +0 -21
  696. package/src/tokens/icon.tokens.json +0 -78
  697. package/src/tokens/line_height.tokens.json +0 -74
  698. package/src/tokens/shadow.tokens.json +0 -14
  699. package/src/tokens/status.tokens.json +0 -196
  700. package/src/tokens/text.tokens.json +0 -105
  701. package/src/tokens/tokens_story.vue +0 -84
  702. package/src/tokens/tokens_table.vue +0 -248
  703. package/src/utils/breakpoints.js +0 -21
  704. package/src/utils/charts/config.js +0 -514
  705. package/src/utils/charts/constants.js +0 -61
  706. package/src/utils/charts/mock_data.js +0 -259
  707. package/src/utils/charts/story_config.js +0 -21
  708. package/src/utils/charts/theme.js +0 -344
  709. package/src/utils/charts/utils.js +0 -49
  710. package/src/utils/constants.js +0 -347
  711. package/src/utils/data_utils.js +0 -28
  712. package/src/utils/datetime_utility.js +0 -63
  713. package/src/utils/i18n.js +0 -62
  714. package/src/utils/is_slot_empty.js +0 -40
  715. package/src/utils/number_utils.js +0 -120
  716. package/src/utils/play_utils.js +0 -9
  717. package/src/utils/set_utils.js +0 -24
  718. package/src/utils/stories_constants.js +0 -30
  719. package/src/utils/stories_utils.js +0 -5
  720. package/src/utils/story_decorators/container.js +0 -14
  721. package/src/utils/string_utils.js +0 -79
  722. package/src/utils/svgs/svg_paths.js +0 -10
  723. package/src/utils/use_fake_date.js +0 -27
  724. package/src/utils/use_mock_intersection_observer.js +0 -96
  725. package/src/utils/utils.js +0 -206
  726. package/src/utils.js +0 -4
  727. package/tailwind.defaults.js +0 -543
  728. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/constants.js +0 -0
  729. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu.vue +0 -0
  730. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_category_items.vue +0 -0
  731. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_item.vue +0 -0
  732. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_menu/duo_chat_context_item_menu_search_items.vue +0 -0
  733. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_popover/duo_chat_context_item_popover.vue +0 -0
  734. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/duo_chat_context_item_selections/duo_chat_context_item_selections.vue +0 -0
  735. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/mock_context_data.js +0 -0
  736. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_context/utils.js +0 -0
  737. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_conversation/duo_chat_conversation.md +0 -0
  738. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_conversation/duo_chat_conversation.vue +0 -0
  739. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_loader/duo_chat_loader.md +0 -0
  740. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_loader/duo_chat_loader.scss +0 -0
  741. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_loader/duo_chat_loader.vue +0 -0
  742. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/buttons_utils.js +0 -0
  743. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/copy_code_element.js +0 -0
  744. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/duo_chat_message.md +0 -0
  745. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/insert_code_snippet_element.js +0 -0
  746. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message/utils.js +0 -0
  747. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message_sources/duo_chat_message_sources.md +0 -0
  748. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_message_sources/duo_chat_message_sources.vue +0 -0
  749. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.md +0 -0
  750. /package/src/components/{experimental/duo/chat → chat}/components/duo_chat_predefined_prompts/duo_chat_predefined_prompts.vue +0 -0
  751. /package/src/components/{experimental/duo/chat → chat}/constants.js +0 -0
  752. /package/src/components/{experimental/duo/chat → chat}/duo_chat.md +0 -0
  753. /package/src/components/{experimental/duo/chat → chat}/duo_chat.vue +0 -0
  754. /package/src/components/{experimental/duo/chat → chat}/markdown_renderer.js +0 -0
  755. /package/src/components/{experimental/duo/user_feedback → user_feedback}/user_feedback.md +0 -0
  756. /package/src/components/{experimental/duo/user_feedback → user_feedback}/user_feedback.vue +0 -0
  757. /package/src/components/{experimental/duo/user_feedback → user_feedback}/user_feedback_modal.vue +0 -0
  758. /package/src/components/{experimental/duo/workflow → workflow}/components/duo_workflow_panel/duo_workflow_panel.md +0 -0
  759. /package/src/components/{experimental/duo/workflow → workflow}/components/duo_workflow_panel/duo_workflow_panel.vue +0 -0
  760. /package/src/components/{experimental/duo/workflow → workflow}/components/duo_workflow_prompt/duo_workflow_prompt.md +0 -0
  761. /package/src/components/{experimental/duo/workflow → workflow}/components/duo_workflow_prompt/duo_workflow_prompt.vue +0 -0
@@ -0,0 +1,656 @@
1
+ # Toast
2
+
3
+ > Push notifications to your visitors with a `<b-toast>` and `<b-toaster>`, lightweight components
4
+ > which are easily customizable for generating alert messages.
5
+
6
+ Toasts are lightweight notifications designed to mimic the push notifications that have been
7
+ popularized by mobile and desktop operating systems.
8
+
9
+ Toasts are intended to be small interruptions to your visitors or users, and therefore should
10
+ contain minimal, to-the-point, non-interactive content. Please refer to the
11
+ [Accessibility tips](#accessibility-tips) section below for **important** usage information.
12
+
13
+ ## Overview
14
+
15
+ To encourage extensible and predictable toasts, we recommend providing a header (title) and body.
16
+ Toast headers use the style `'display: flex'`, allowing easy alignment of content thanks to
17
+ Bootstrap's [margin and flexbox utility classes](/docs/reference/utility-classes).
18
+
19
+ Toasts are slightly translucent, too, so they blend over whatever they might appear over. For
20
+ browsers that support the `backdrop-filter` CSS property, they also attempt to blur the elements
21
+ under the toast.
22
+
23
+ ```html
24
+ <template>
25
+ <div class="p-3 bg-secondary progress-bar-striped" style="min-height: 170px;">
26
+ <b-button class="mb-2" variant="primary" @click="$bvToast.show('example-toast')">
27
+ Show toast
28
+ </b-button>
29
+ <b-toast id="example-toast" title="BootstrapVue" static no-auto-hide>
30
+ Hello, world! This is a toast message.
31
+ </b-toast>
32
+ </div>
33
+ </template>
34
+
35
+ <!-- toast-intro.vue -->
36
+ ```
37
+
38
+ **Note:** we are using the `static` prop in the above example to render the toast in-place in the
39
+ document, rather than transporting it to a `<b-toaster>` target container. And we have added classes
40
+ `bg-secondary` and `progress-bar-striped` to the outer `<div>` for illustrative purposes of toast
41
+ transparency only.
42
+
43
+ ### Toast features and notes
44
+
45
+ - Toasts can be generated on demand via the injection `this.$bvToast` object, or manually created
46
+ using the `<b-toast>` component.
47
+ - Titles are optional, but should be included, titles are rendered inside a `<strong>` element,
48
+ unless using the `toast-title` slot.
49
+ - The close button at the top right of the toast can be removed via the `no-close-button` prop.
50
+ - A title bar is shown, unless you give no title and set the `no-close-button` prop.
51
+ - Auto-hiding occurs after 5000 ms, which can be changed via the `auto-hide-delay` prop, or disabled
52
+ with the `no-auto-hide` prop.
53
+ - When auto-hide is enabled, while you hover over the toast, the auto-hide countdown will pause. You
54
+ can disable this feature by setting the `no-hover-pause` prop to `true`.
55
+ - If you disable the auto-hide feature, avoid hiding the close button, or if you hide the close
56
+ button be sure to allow the toast to auto-dismiss. Please refer to the
57
+ [Accessibility tips](#accessibility-tips) section below for **important** usage information.
58
+ - Toast transparency can be disabled by setting the `solid` prop to `true`.
59
+ - Toasts will show inside a named `<b-toaster>` target component. BootstrapVue comes with several
60
+ pre-defined toaster targets. Toasts will check for the named toaster in the document before they
61
+ are shown, and will dynamically create the named toaster target if one is not found.
62
+ - Toaster targets are defined completely with CSS for controlling the positioning of the contained
63
+ `<b-toast>` components.
64
+ - Toasts can can targeted to any named toaster.
65
+ - Toasts are wrapped in a `<div>` with class `b-toast` to allow for Vue list-transition support when
66
+ displayed in a toaster component.
67
+
68
+ BootstrapVue uses [PortalVue](https://portal-vue.linusb.org/) to transport toasts into the toasters.
69
+
70
+ ## Toasts on demand
71
+
72
+ Generate a dynamic toast from anywhere in your app via the `this.$bvToast` Vue component _instance_
73
+ injection, without the need to place a [`<b-toast>`](#b-toast-component) component in your app.
74
+
75
+ Use the `this.$bvToast.toast()` method to generate on demand toasts. The method accepts two
76
+ arguments:
77
+
78
+ - `message`: the content of the toast body (either a string, or an array of `VNodes`). Required.
79
+ Toasts with an empty message will not be shown. See the [Advanced usage](#advanced-usage) section
80
+ for an example of passing an array of `VNodes` as the message.
81
+ - `options`: an optional options object for providing a title and/or additional configuration
82
+ options. The `title` option can be either a string or an array of `VNodes`
83
+
84
+ The options argument accepts most of the props that the `<b-toast>` component accepts (with the
85
+ exception of `static`, and `visible`) in <samp>camelCase</samp> name format instead of
86
+ <samp>kebab-case</samp>.
87
+
88
+ ```html
89
+ <template>
90
+ <div>
91
+ <b-button @click="makeToast()">Show Toast</b-button>
92
+ <b-button @click="makeToast(true)">Show Toast (appended)</b-button>
93
+ </div>
94
+ </template>
95
+
96
+ <script>
97
+ export default {
98
+ data() {
99
+ return {
100
+ toastCount: 0
101
+ }
102
+ },
103
+ methods: {
104
+ makeToast(append = false) {
105
+ this.toastCount++
106
+ this.$bvToast.toast(`This is toast number ${this.toastCount}`, {
107
+ title: 'BootstrapVue Toast',
108
+ autoHideDelay: 5000,
109
+ appendToast: append
110
+ })
111
+ }
112
+ }
113
+ }
114
+ </script>
115
+
116
+ <!-- toasts-bv-toast-example.vue -->
117
+ ```
118
+
119
+ Once a toast which was generated using `this.$bvToast.toast()` has been hidden, it will
120
+ automatically be destroyed and removed from the document.
121
+
122
+ **Notes:**
123
+
124
+ - The `this.$bvToast` injection is only available when using the full `BootstrapVue` plugin or the
125
+ `ToastPlugin` plugin. It is not available if importing just the `b-toast` or `b-toaster`
126
+ components. To just import the `$bvToast` injection, use the `BVToastPlugin` plugin.
127
+ - A new `$bvToast` injection (mixin) is created for each Vue virtual machine instance (i.e. each
128
+ instantiated component), and is not usable via direct access to the `Vue.prototype`, as it needs
129
+ access to the instance's `this` and `$root` contexts.
130
+ - Toasts generated via `this.$bvToast.toast()` are children of the Vue instance that calls the
131
+ `this.$bvToast.toast()` method, and will be hidden and destroyed if that Vue instance (i.e. your
132
+ component or app) is also destroyed. If the vm context is inside a `<router-view>`, and the
133
+ `$route` changes, the toast will also be destroyed (as all the children of `<router-view>` are
134
+ destroyed. To make on-demand toasts persist across router `$route` changes, use
135
+ `this.$root.$bvToast.toast()` instead to make the toast's parent the root of your app.
136
+ - Toasts require a message. Toasts on demand with an empty message will silently not be shown.
137
+
138
+ ## Options
139
+
140
+ Toasts have various options that can control their style and behaviour. Options are available both
141
+ as props on the `<b-toast>` component and as properties of the options object passed to
142
+ `this.$bvToast.toast()`. When passing options to `this.$bvToast.toast()`, use the
143
+ <samp>camelCase</samp> version of the component prop name, i.e. use `noAutoHide` instead of
144
+ `no-auto-hide`.
145
+
146
+ ### Title
147
+
148
+ Add a title to your toast via the `title` option. Just like the toast `message`, the title can be a
149
+ simple string, or an array of VNodes. See the [Advanced usage](#advanced-usage) section for an
150
+ example of passing an array of `VNodes` as the message and title.
151
+
152
+ ### Transparency
153
+
154
+ Toasts have a semi-transparent background by default. To disable the default transparency, just set
155
+ the `solid` prop to `true` to remove the alpha channel from the background color.
156
+
157
+ Transparency can also be altered via the BootstrapVue custom SCSS variable
158
+ `$b-toast-background-opacity` when using the SCSS files rather than CSS files. Refer to the
159
+ [Theming](/docs/reference/theming) reference section.
160
+
161
+ ### Variants
162
+
163
+ BootstrapVue toasts provide custom CSS to define color variants. Variants follow the standard
164
+ Bootstrap v4 variant names. If you have custom SCSS defined Bootstrap color theme variants, the
165
+ toast custom SCSS will automatically create toast variants for you (refer to the
166
+ [Theming](/docs/reference/theming) reference section).
167
+
168
+ ```html
169
+ <template>
170
+ <div>
171
+ <b-button @click="makeToast()" class="mb-2">Default</b-button>
172
+ <b-button variant="primary" @click="makeToast('primary')" class="mb-2">Primary</b-button>
173
+ <b-button variant="secondary" @click="makeToast('secondary')" class="mb-2">Secondary</b-button>
174
+ <b-button variant="danger" @click="makeToast('danger')" class="mb-2">Danger</b-button>
175
+ <b-button variant="warning" @click="makeToast('warning')" class="mb-2">Warning</b-button>
176
+ <b-button variant="success" @click="makeToast('success')" class="mb-2">Success</b-button>
177
+ <b-button variant="info" @click="makeToast('info')" class="mb-2">Info</b-button>
178
+ </div>
179
+ </template>
180
+
181
+ <script>
182
+ export default {
183
+ methods: {
184
+ makeToast(variant = null) {
185
+ this.$bvToast.toast('Toast body content', {
186
+ title: `Variant ${variant || 'default'}`,
187
+ variant: variant,
188
+ solid: true
189
+ })
190
+ }
191
+ }
192
+ }
193
+ </script>
194
+
195
+ <!-- toast-variants.vue -->
196
+ ```
197
+
198
+ ### Toaster target
199
+
200
+ BootstrapVue comes with the following "built-in" toaster names (and associated styles defined in
201
+ SCSS):
202
+
203
+ - `b-toaster-top-right`
204
+ - `b-toaster-top-left`
205
+ - `b-toaster-top-center`
206
+ - `b-toaster-top-full`
207
+ - `b-toaster-bottom-right`
208
+ - `b-toaster-bottom-left`
209
+ - `b-toaster-bottom-center`
210
+ - `b-toaster-bottom-full`
211
+
212
+ ```html
213
+ <template>
214
+ <div>
215
+ <b-button @click="toast('b-toaster-top-right')" class="mb-2">b-toaster-top-right</b-button>
216
+ <b-button @click="toast('b-toaster-top-left')" class="mb-2">b-toaster-top-left</b-button>
217
+ <b-button @click="toast('b-toaster-top-center')" class="mb-2">b-toaster-top-center</b-button>
218
+ <b-button @click="toast('b-toaster-top-full')" class="mb-2">b-toaster-top-full</b-button>
219
+ <b-button @click="toast('b-toaster-bottom-right', true)" class="mb-2">b-toaster-bottom-right</b-button>
220
+ <b-button @click="toast('b-toaster-bottom-left', true)" class="mb-2">b-toaster-bottom-left</b-button>
221
+ <b-button @click="toast('b-toaster-bottom-center', true)" class="mb-2">b-toaster-bottom-center</b-button>
222
+ <b-button @click="toast('b-toaster-bottom-full', true)" class="mb-2">b-toaster-bottom-full</b-button>
223
+ </div>
224
+ </template>
225
+
226
+ <script>
227
+ export default {
228
+ data() {
229
+ return {
230
+ counter: 0
231
+ }
232
+ },
233
+ methods: {
234
+ toast(toaster, append = false) {
235
+ this.counter++
236
+ this.$bvToast.toast(`Toast ${this.counter} body content`, {
237
+ title: `Toaster ${toaster}`,
238
+ toaster: toaster,
239
+ solid: true,
240
+ appendToast: append
241
+ })
242
+ }
243
+ }
244
+ }
245
+ </script>
246
+
247
+ <!-- toast-targets.vue -->
248
+ ```
249
+
250
+ **Notes:**
251
+
252
+ - Toaster target names that have not been defined in CSS will render at the bottom of the document,
253
+ stacked and not positioned (appended to `<body>` inside a `<b-toaster>` with class name and ID set
254
+ to the toaster target name). The only default styling the toaster will have is a `z-index` of
255
+ `1100`.
256
+ - Avoid using `b-toaster-top-*` toasters together, or `b-toaster-bottom-*` toasters together, at the
257
+ same time in your app as notifications could be obscured/overlap on small screens (i.e. `xs`).
258
+
259
+ ### Prepend and append
260
+
261
+ Toasts default to prepending themselves to the top of the toasts shown in the specified toaster in
262
+ the order they were created. To append new toasts to the bottom, set the `append-toast` prop to
263
+ `true`.
264
+
265
+ ### Auto-hide
266
+
267
+ Change to auto hide delay time via the `auto-hide-delay` prop (value is in milliseconds), which
268
+ defaults to `5000` (minimum value `1000`). Or, disable the auto-hide feature completely by setting
269
+ the `no-auto-hide` prop to `true`.
270
+
271
+ When auto-hide is enabled, hovering over the toast will pause the auto-hide timer. When you un-hover
272
+ the toast, the auto-hide timer will be resumed. You can disable this feature by setting the
273
+ `no-hover-pause` prop to `true`.
274
+
275
+ ### Close button
276
+
277
+ Toasts have a close button to hide them on use click by default. Setting the `no-close-button` prop
278
+ to `true` will prevent this and creates a toast without the default close button.
279
+
280
+ It is still possible to create a custom close button for the toast by providing a unique ID and use
281
+ the `this.$bvToast.hide(id)` method to hide the specific toast:
282
+
283
+ ```html
284
+ <template>
285
+ <div>
286
+ <b-button @click="showToast">Show Toast</b-button>
287
+ </div>
288
+ </template>
289
+
290
+ <script>
291
+ export default {
292
+ data() {
293
+ return {
294
+ count: 0
295
+ }
296
+ },
297
+ methods: {
298
+ showToast() {
299
+ // Use a shorter name for `this.$createElement`
300
+ const h = this.$createElement
301
+ // Create a ID with a incremented count
302
+ const id = `my-toast-${this.count++}`
303
+
304
+ // Create the custom close button
305
+ const $closeButton = h(
306
+ 'b-button',
307
+ {
308
+ on: { click: () => this.$bvToast.hide(id) }
309
+ },
310
+ 'Close'
311
+ )
312
+
313
+ // Create the toast
314
+ this.$bvToast.toast([$closeButton], {
315
+ id: id,
316
+ title: `Toast ${this.count}`,
317
+ noCloseButton: true
318
+ })
319
+ }
320
+ }
321
+ }
322
+ </script>
323
+
324
+ <!-- toasts-advanced.vue -->
325
+ ```
326
+
327
+ ### Toast roles
328
+
329
+ Toasts are rendered with a default `role` attribute of `'alert'` and `aria-live` attribute of
330
+ `'assertive'`. For toasts that are meant for a casual notification, set the `is-status` prop to
331
+ `true`, which will change the `role` and `aria-live` attributes to `'status'` and `'polite'`
332
+ respectively.
333
+
334
+ For more information, please the the [Accessibility](#accessibility) section below.
335
+
336
+ ### Links
337
+
338
+ Optionally convert the toast body to a link (`<a>`) or `<router-link>` (or `<nuxt-link>`) via the
339
+ `href` and `to` props respectively. When set, the entire toast body becomes a link.
340
+
341
+ ```html
342
+ <template>
343
+ <div>
344
+ <b-button @click="toast()">Toast with link</b-button>
345
+ </div>
346
+ </template>
347
+
348
+ <script>
349
+ export default {
350
+ methods: {
351
+ toast() {
352
+ this.$bvToast.toast(`Toast with action link`, {
353
+ href: '#foo',
354
+ title: 'Example'
355
+ })
356
+ }
357
+ }
358
+ }
359
+ </script>
360
+
361
+ <!-- toast-link.vue -->
362
+ ```
363
+
364
+ ## `<b-toast>` component
365
+
366
+ When you have a custom component that would like to display just a single toast at a time, use the
367
+ `<b-toast>` component. The `<b-toast>` component can be placed anywhere in your custom component or
368
+ app, and does not render an element (they render a comment placeholder node which will not affect
369
+ layout).
370
+
371
+ The toast can be made visible via a `v-model` (which is tied to the `visible` prop), or shown using
372
+ the component's `show()` and `hide()` instance methods, or via the `this.$bvToast.show(id)` and
373
+ `this.$bvToast.hide(id)` methods (requires that a unique ID be set on the `<b-toast>` component).
374
+
375
+ Toasts, by default will be paced into the `b-toaster-top-right` `<b-toaster>` component. The toaster
376
+ specified by the `toaster` prop will be created on demand if it doesn't already exist in document.
377
+
378
+ You can force a `<b-toast>` to appear in-place in the document by setting the `static` prop to
379
+ `true`. you still need to show and hide the toast, but it will not be transported into a toaster
380
+ component.
381
+
382
+ ```html
383
+ <template>
384
+ <div>
385
+ <b-button @click="$bvToast.show('my-toast')">Show toast</b-button>
386
+
387
+ <b-toast id="my-toast" variant="warning" solid>
388
+ <template #toast-title>
389
+ <div class="d-flex flex-grow-1 align-items-baseline">
390
+ <b-img blank blank-color="#ff5555" class="mr-2" width="12" height="12"></b-img>
391
+ <strong class="mr-auto">Notice!</strong>
392
+ <small class="text-muted mr-2">42 seconds ago</small>
393
+ </div>
394
+ </template>
395
+ This is the content of the toast.
396
+ It is short and to the point.
397
+ </b-toast>
398
+ </div>
399
+ </template>
400
+
401
+ <!-- toast-component.vue -->
402
+ ```
403
+
404
+ ### Slots
405
+
406
+ - `toast-title`: Content to replace the default title element.
407
+ - `default`: Content of the toast body
408
+
409
+ Both slots are optionally scoped with the following scope:
410
+
411
+ | Method or property | Description |
412
+ | ------------------ | ------------------------------------------------------------------------------- |
413
+ | `hide()` | Hides the toast when called. Useful if you are providing your own close button. |
414
+
415
+ Slots are only available when using the `<b-toast>` component.
416
+
417
+ ## `<b-toaster>` target component
418
+
419
+ The `<b-toaster>` component provides a container where toasts will appear (the _Toaster_). Toasters
420
+ require a unique name, and toasts can be targeted to appear in a specific named toaster.
421
+
422
+ In most cases you will not need to directly use this component, as `<b-toast>` will automatically
423
+ insert a `<b-toaster>` component (appended to `<body>`) with the requested toaster name if one is
424
+ not found in the document. But sometimes you may want to explicitly place a toaster in your app.
425
+
426
+ The toaster `name` becomes the ID of the inserted container, and will also be used a class name on
427
+ the rendered toaster container.
428
+
429
+ Toaster positioning and the positioning of toasts inside the toaster is driven completely by CSS
430
+ classes (based on the name of the toaster)
431
+
432
+ The following "built-in" toaster names (and associated styles) are defined in BootstrapVue's custom
433
+ SCSS:
434
+
435
+ - `b-toaster-top-right`
436
+ - `b-toaster-top-left`
437
+ - `b-toaster-top-center`
438
+ - `b-toaster-top-full`
439
+ - `b-toaster-bottom-right`
440
+ - `b-toaster-bottom-left`
441
+ - `b-toaster-bottom-center`
442
+ - `b-toaster-bottom-full`
443
+
444
+ The above toasters place the toasts in a stacked (columnar format), fixed within the viewport
445
+ (meaning they will always be in view regardless of viewport scroll position). If there are more
446
+ toasts than can fit on the viewport screen, some will be visually hidden offscreen until other
447
+ toasts are closed/hidden.
448
+
449
+ `<b-toast>` uses the `b-toaster-top-right` toaster by default.
450
+
451
+ **Notes:**
452
+
453
+ - If a `<b-toaster>` with the same name already exists in document (either auto-created by
454
+ `<b-toast>`, `this.$bvToast.toast()`, or manually placed), then `<b-toaster>` will just render an
455
+ empty `<div>` element and issue a console warning.
456
+ - If manually placing a `<b-toaster>` component, make sure it is placed as the last element in
457
+ bottom of your app root element, so that it will be available to all pages in your app.
458
+ - Toasters that get destroyed will be auto re-created if a new toast targeted for the toaster name
459
+ is shown.
460
+ - In the majority of use cases, you should not need to manually place/create a `<b-toaster>`
461
+ component in your app, as they will be auto generated on demand if needed. But if you need to
462
+ override any of the toaster default settings, ensure that you place the toaster in your app in a
463
+ location that will not be destroyed due to changes in the route.
464
+
465
+ ## Advanced usage
466
+
467
+ When using the `this.$bvToast.toast(...)` method for generating toasts, you may want the toast
468
+ content to be more than just a string message. As mentioned in the
469
+ [Toasts on demand](#toasts-on-demand) section above, you can pass arrays of `VNodes` as the message
470
+ and title for more complex content.
471
+
472
+ Remember to keep toast content simple and to the point. Avoid placing interactive components or
473
+ elements inside toasts, as this can cause issues for users of assistive technologies. Refer to the
474
+ [Accessibility](#accessibility) section below.
475
+
476
+ Below is an example of using Vue's
477
+ [`this.$createElement()`](https://vuejs.org/v2/guide/render-function.html#The-Virtual-DOM) method
478
+ for generating more complex toast content:
479
+
480
+ ```html
481
+ <template>
482
+ <div>
483
+ <b-button @click="showToast">Show Toast with custom content</b-button>
484
+ </div>
485
+ </template>
486
+
487
+ <script>
488
+ export default {
489
+ data() {
490
+ return {
491
+ count: 0
492
+ }
493
+ },
494
+ methods: {
495
+ showToast() {
496
+ // Use a shorter name for this.$createElement
497
+ const h = this.$createElement
498
+ // Increment the toast count
499
+ this.count++
500
+ // Create the message
501
+ const vNodesMsg = h(
502
+ 'p',
503
+ { class: ['text-center', 'mb-0'] },
504
+ [
505
+ ' Flashy ',
506
+ h('strong', 'toast'),
507
+ ` message #${this.count} `
508
+ ]
509
+ )
510
+ // Create the title
511
+ const vNodesTitle = h(
512
+ 'div',
513
+ { class: ['d-flex', 'flex-grow-1', 'align-items-baseline', 'mr-2'] },
514
+ [
515
+ h('strong', { class: 'mr-2' }, 'The Title'),
516
+ h('small', { class: 'ml-auto text-italics' }, '5 minutes ago')
517
+ ]
518
+ )
519
+ // Pass the VNodes as an array for message and title
520
+ this.$bvToast.toast([vNodesMsg], {
521
+ title: [vNodesTitle],
522
+ solid: true,
523
+ variant: 'info'
524
+ })
525
+ }
526
+ }
527
+ }
528
+ </script>
529
+
530
+ <!-- toasts-advanced.vue -->
531
+ ```
532
+
533
+ ## Alerts versus toasts
534
+
535
+ In some cases you may need just a simple alert style message (i.e. cookie usage notifications,
536
+ etc.). In these cases it is usually better to use an fixed position alert instead of a toast, by
537
+ applying a few Bootstrap [utility classes](/docs/reference/utility-classes) and a small bit of
538
+ custom styling on a [`<b-alert>`](/docs/components/alert) component:
539
+
540
+ ```html
541
+ <template>
542
+ <div>
543
+ <b-button size="sm" @click="showBottom = !showBottom">
544
+ {{ showBottom ? 'Hide' : 'Show' }} Fixed bottom Alert
545
+ </b-button>
546
+ <b-alert
547
+ v-model="showBottom"
548
+ class="position-fixed fixed-bottom m-0 rounded-0"
549
+ style="z-index: 2000;"
550
+ variant="warning"
551
+ dismissible
552
+ >
553
+ Fixed position (bottom) alert!
554
+ </b-alert>
555
+
556
+ <b-button size="sm" @click="showTop = !showTop">
557
+ {{ showTop ? 'Hide' : 'Show' }} Fixed top Alert
558
+ </b-button>
559
+ <b-alert
560
+ v-model="showTop"
561
+ class="position-fixed fixed-top m-0 rounded-0"
562
+ style="z-index: 2000;"
563
+ variant="success"
564
+ dismissible
565
+ >
566
+ Fixed position (top) alert!
567
+ </b-alert>
568
+ </div>
569
+ </template>
570
+
571
+ <script>
572
+ export default {
573
+ data() {
574
+ return {
575
+ showBottom: false,
576
+ showTop: false
577
+ }
578
+ }
579
+ }
580
+ </script>
581
+
582
+ <!-- fixed-position-alerts.vue -->
583
+ ```
584
+
585
+ We use class `position-fixed` to set the positioning to fixed within the user's viewport, and either
586
+ class `fixed-bottom` or `fixed-top` to position the alert on the bottom or top of the viewport.
587
+ Class `m-0` removes the default margins around the alert and `rounded-0` removes the default rounded
588
+ corners. We also set the `z-index` to a large value to ensure the alert appears over any other
589
+ content on the page (the default for `fixed-top` and `fixed-bottom` is `1030`). You may need to
590
+ adjust the `z-index` for your specific layout.
591
+
592
+ Since the alert markup remains in the DOM where you placed the `<b-alert>` component, its tab
593
+ sequence (for accessing the dismiss button) is easily accessible to screen reader and keyboard-only
594
+ users.
595
+
596
+ ## Accessibility
597
+
598
+ Toasts are intended to be **small interruptions** to your visitors or users, so to help those with
599
+ screen readers and similar assistive technologies, toasts are wrapped in an aria-live region.
600
+ Changes to live regions (such as injecting/updating a toast component) are automatically announced
601
+ by screen readers without needing to move the user's focus or otherwise interrupt the user.
602
+ Additionally, `aria-atomic="true"` is automatically set to ensure that the entire toast is always
603
+ announced as a single (atomic) unit, rather than announcing what was changed (which could lead to
604
+ problems if you only update part of the toast's content, or if displaying the same toast content at
605
+ a later point in time).
606
+
607
+ If you just need a single simple message to appear along the bottom or top of the user's window, use
608
+ a [fixed position `<b-alert>`](#alerts-versus-toasts) instead.
609
+
610
+ ### Accessibility tips
611
+
612
+ Typically, toast messages should display one or two-line non-critical messages that **do not**
613
+ require user interaction. Without taking extra steps, toasts can have numerous accessibility issues
614
+ that can impact both people with and without disabilities. The following list, while not complete,
615
+ provides general guidelines when using toasts.
616
+
617
+ - If the information needed is important for the process, e.g. for a list of errors in a form, then
618
+ use the [`<b-alert>`](/docs/components/alert) component instead of `<b-toast>`.
619
+ - `<b-toast>`, by default, sets the attributes `role` to `'alert'` and `aria-live` to `'assertive'`.
620
+ If it's an important message like an error, this default setting is appropriate, otherwise set the
621
+ prop `is-status` to `true` which will change the attributes `role` to `'status'` and `aria-live`
622
+ to `'polite'`.
623
+ - Avoid popping up a toast message on page load. Performing unexpected actions on page load is very
624
+ confusing to screen reader users. If a toast is needed on page load or route change, delay showing
625
+ the toast by several seconds so that the screen reader will finishing announcing information about
626
+ the current page without interruption by a the toast.
627
+ - When setting prop `no-auto-hide` to `true`, you must have a close button to allow users to dismiss
628
+ the toast. If you have also set prop `no-close-button` to `true`, you must provide your own close
629
+ button or dismiss the toast by some other means. Toasts have a tab index of `0` so that they can
630
+ be reached by keyboard-only users.
631
+ - Avoid initiating many toasts in quick succession, as screen readers may interrupt reading the
632
+ current toast and announce the new toast, causing the context of the previous toast to be missed.
633
+ - For toasts with long textual content, adjust the `auto-hide-delay` to a larger timeout, to allow
634
+ users time to read the content of the toast. The average person reads about 200 words per minute,
635
+ so a good length of time to keep messages up is 5 seconds, plus 300 extra milliseconds per word.
636
+ The shortest default that should be used as a best practice is 5 seconds (5000ms). In addition to
637
+ a reasonable default timeout, you could also allow the user to choose how long they want toasts to
638
+ stay up for. Most people inherently understand whether they are fast or slow readers. Having a
639
+ profile setting that is part of the user login will allow slow readers to pick a longer time if
640
+ the messages are going away too fast, and fast readers to pick a short time if the messages are
641
+ staying up too long.
642
+ - To account for memory loss and distraction as well as disability-related issues such as ADHD, a
643
+ best practice would be to implement a location where users can refer to a list of past toast
644
+ messages which have been shown. Preferably this list should be sortable, with the default being
645
+ chronological.
646
+
647
+ ### Internet Explorer screen reader support
648
+
649
+ Unfortunately, IE 11 when used with [NVDA](https://github.com/nvaccess/nvda) or
650
+ [JAWS](https://www.freedomscientific.com/products/software/jaws/) screen readers, will not properly
651
+ announce/voice toasts when they appear. If you have a large non-sighted user-base using IE 11, you
652
+ may want to create an additional off-screen `aria-live` region for IE 11 browsers only (created on
653
+ page load) where copies of toast message text are placed dynamically, in addition to displaying
654
+ toasts.
655
+
656
+ <!-- Component reference added automatically from component package.json -->