@carbon/web-components 2.0.0-beta.0 → 2.0.0-beta.1

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 (567) hide show
  1. package/custom-elements.json +5128 -3232
  2. package/es/components/breadcrumb/breadcrumb-skeleton.d.ts.map +1 -1
  3. package/es/components/breadcrumb/breadcrumb-skeleton.js.map +1 -1
  4. package/es/components/button/button-set.d.ts +2 -2
  5. package/es/components/button/button-set.d.ts.map +1 -1
  6. package/es/components/button/button-set.js +4 -4
  7. package/es/components/button/button-set.js.map +1 -1
  8. package/es/components/button/button-skeleton.d.ts +3 -3
  9. package/es/components/button/button-skeleton.d.ts.map +1 -1
  10. package/es/components/button/button-skeleton.js +6 -6
  11. package/es/components/button/button-skeleton.js.map +1 -1
  12. package/es/components/button/button.css.js +1 -1
  13. package/es/components/button/button.d.ts +5 -5
  14. package/es/components/button/button.d.ts.map +1 -1
  15. package/es/components/button/button.js +6 -6
  16. package/es/components/button/button.js.map +1 -1
  17. package/es/components/button/button.rtl.css.js +1 -1
  18. package/es/components/{tooltip/tooltip-footer.d.ts → checkbox/checkbox-skeleton.d.ts} +4 -4
  19. package/es/components/checkbox/checkbox-skeleton.d.ts.map +1 -0
  20. package/es/components/{tooltip/tooltip-footer.js → checkbox/checkbox-skeleton.js} +15 -9
  21. package/es/components/checkbox/checkbox-skeleton.js.map +1 -0
  22. package/es/components/checkbox/checkbox.css.js +1 -1
  23. package/es/components/checkbox/checkbox.d.ts +21 -8
  24. package/es/components/checkbox/checkbox.d.ts.map +1 -1
  25. package/es/components/checkbox/checkbox.js +65 -17
  26. package/es/components/checkbox/checkbox.js.map +1 -1
  27. package/es/components/checkbox/checkbox.rtl.css.js +1 -1
  28. package/es/components/checkbox/index.d.ts +2 -1
  29. package/es/components/checkbox/index.d.ts.map +1 -1
  30. package/es/components/checkbox/index.js +2 -1
  31. package/es/components/checkbox/index.js.map +1 -1
  32. package/es/components/code-snippet/code-snippet.d.ts +0 -8
  33. package/es/components/code-snippet/code-snippet.d.ts.map +1 -1
  34. package/es/components/code-snippet/code-snippet.js +20 -56
  35. package/es/components/code-snippet/code-snippet.js.map +1 -1
  36. package/es/components/combo-box/combo-box-item.d.ts +3 -3
  37. package/es/components/combo-box/combo-box-item.d.ts.map +1 -1
  38. package/es/components/combo-box/combo-box-item.js +6 -6
  39. package/es/components/combo-box/combo-box-item.js.map +1 -1
  40. package/es/components/combo-box/combo-box.css.js +1 -1
  41. package/es/components/combo-box/combo-box.d.ts +11 -11
  42. package/es/components/combo-box/combo-box.d.ts.map +1 -1
  43. package/es/components/combo-box/combo-box.js +40 -19
  44. package/es/components/combo-box/combo-box.js.map +1 -1
  45. package/es/components/combo-box/combo-box.rtl.css.js +1 -1
  46. package/es/components/content-switcher/content-switcher.css.js +1 -1
  47. package/es/components/content-switcher/content-switcher.rtl.css.js +1 -1
  48. package/es/components/copy/copy.d.ts +49 -0
  49. package/es/components/copy/copy.d.ts.map +1 -0
  50. package/es/components/copy/copy.js +183 -0
  51. package/es/components/copy/copy.js.map +1 -0
  52. package/es/components/copy-button/copy-button.css.js +1 -1
  53. package/es/components/copy-button/copy-button.d.ts +8 -53
  54. package/es/components/copy-button/copy-button.d.ts.map +1 -1
  55. package/es/components/copy-button/copy-button.js +22 -150
  56. package/es/components/copy-button/copy-button.js.map +1 -1
  57. package/es/components/copy-button/copy-button.rtl.css.js +1 -1
  58. package/es/components/data-table/data-table.css.js +1 -1
  59. package/es/components/data-table/data-table.rtl.css.js +1 -1
  60. package/es/components/data-table/table-header-cell.d.ts.map +1 -1
  61. package/es/components/data-table/table-header-cell.js +2 -2
  62. package/es/components/data-table/table-header-cell.js.map +1 -1
  63. package/es/components/data-table/table-toolbar-search.d.ts +3 -3
  64. package/es/components/data-table/table-toolbar-search.d.ts.map +1 -1
  65. package/es/components/data-table/table-toolbar-search.js +3 -3
  66. package/es/components/data-table/table-toolbar-search.js.map +1 -1
  67. package/es/components/date-picker/date-picker-input-skeleton.d.ts +2 -2
  68. package/es/components/date-picker/date-picker-input-skeleton.d.ts.map +1 -1
  69. package/es/components/date-picker/date-picker-input-skeleton.js +4 -4
  70. package/es/components/date-picker/date-picker-input-skeleton.js.map +1 -1
  71. package/es/components/date-picker/date-picker-input.d.ts +38 -352
  72. package/es/components/date-picker/date-picker-input.d.ts.map +1 -1
  73. package/es/components/date-picker/date-picker-input.js +138 -97
  74. package/es/components/date-picker/date-picker-input.js.map +1 -1
  75. package/es/components/date-picker/date-picker.css.js +1 -1
  76. package/es/components/date-picker/date-picker.d.ts +23 -3
  77. package/es/components/date-picker/date-picker.d.ts.map +1 -1
  78. package/es/components/date-picker/date-picker.js +100 -24
  79. package/es/components/date-picker/date-picker.js.map +1 -1
  80. package/es/components/date-picker/date-picker.rtl.css.js +1 -1
  81. package/es/components/date-picker/defs.d.ts +1 -14
  82. package/es/components/date-picker/defs.d.ts.map +1 -1
  83. package/es/components/date-picker/defs.js +1 -10
  84. package/es/components/date-picker/defs.js.map +1 -1
  85. package/es/components/date-picker/fix-events-plugin.d.ts +6 -6
  86. package/es/components/date-picker/fix-events-plugin.d.ts.map +1 -1
  87. package/es/components/date-picker/fix-events-plugin.js +7 -7
  88. package/es/components/date-picker/fix-events-plugin.js.map +1 -1
  89. package/es/components/date-picker/focus-plugin.d.ts +9 -9
  90. package/es/components/date-picker/focus-plugin.d.ts.map +1 -1
  91. package/es/components/date-picker/focus-plugin.js +16 -16
  92. package/es/components/date-picker/focus-plugin.js.map +1 -1
  93. package/es/components/date-picker/shadow-dom-events-plugin.d.ts +2 -2
  94. package/es/components/date-picker/shadow-dom-events-plugin.d.ts.map +1 -1
  95. package/es/components/date-picker/shadow-dom-events-plugin.js +4 -4
  96. package/es/components/date-picker/shadow-dom-events-plugin.js.map +1 -1
  97. package/es/components/date-picker/state-handshake-plugin.d.ts +2 -2
  98. package/es/components/date-picker/state-handshake-plugin.d.ts.map +1 -1
  99. package/es/components/date-picker/state-handshake-plugin.js.map +1 -1
  100. package/es/components/dropdown/defs.d.ts +16 -3
  101. package/es/components/dropdown/defs.d.ts.map +1 -1
  102. package/es/components/dropdown/defs.js +11 -2
  103. package/es/components/dropdown/defs.js.map +1 -1
  104. package/es/components/dropdown/dropdown-item.d.ts +2 -2
  105. package/es/components/dropdown/dropdown-item.d.ts.map +1 -1
  106. package/es/components/dropdown/dropdown-item.js +4 -4
  107. package/es/components/dropdown/dropdown-item.js.map +1 -1
  108. package/es/components/dropdown/dropdown-skeleton.d.ts +2 -2
  109. package/es/components/dropdown/dropdown-skeleton.d.ts.map +1 -1
  110. package/es/components/dropdown/dropdown-skeleton.js +4 -4
  111. package/es/components/dropdown/dropdown-skeleton.js.map +1 -1
  112. package/es/components/dropdown/dropdown.css.js +1 -1
  113. package/es/components/dropdown/dropdown.d.ts +45 -20
  114. package/es/components/dropdown/dropdown.d.ts.map +1 -1
  115. package/es/components/dropdown/dropdown.js +156 -65
  116. package/es/components/dropdown/dropdown.js.map +1 -1
  117. package/es/components/dropdown/dropdown.rtl.css.js +1 -1
  118. package/es/components/file-uploader/file-uploader.css.js +1 -1
  119. package/es/components/file-uploader/file-uploader.rtl.css.js +1 -1
  120. package/es/components/icon-button/defs.d.ts +64 -0
  121. package/es/components/icon-button/defs.d.ts.map +1 -0
  122. package/es/components/icon-button/defs.js +34 -0
  123. package/es/components/icon-button/defs.js.map +1 -0
  124. package/es/components/icon-button/icon-button.css.js +12 -0
  125. package/es/components/icon-button/icon-button.d.ts +50 -0
  126. package/es/components/icon-button/icon-button.d.ts.map +1 -0
  127. package/es/components/icon-button/icon-button.js +176 -0
  128. package/es/components/icon-button/icon-button.js.map +1 -0
  129. package/es/components/icon-button/icon-button.rtl.css.js +12 -0
  130. package/es/components/icon-button/index.d.ts +11 -0
  131. package/es/components/icon-button/index.d.ts.map +1 -0
  132. package/es/components/icon-button/index.js +11 -0
  133. package/es/components/icon-button/index.js.map +1 -0
  134. package/es/components/inline-loading/inline-loading.d.ts +6 -2
  135. package/es/components/inline-loading/inline-loading.d.ts.map +1 -1
  136. package/es/components/inline-loading/inline-loading.js +20 -5
  137. package/es/components/inline-loading/inline-loading.js.map +1 -1
  138. package/es/components/input/defs.d.ts +1 -1
  139. package/es/components/input/defs.d.ts.map +1 -1
  140. package/es/components/input/defs.js +1 -1
  141. package/es/components/input/defs.js.map +1 -1
  142. package/es/components/input/input.d.ts +31 -7
  143. package/es/components/input/input.d.ts.map +1 -1
  144. package/es/components/input/input.js +88 -11
  145. package/es/components/input/input.js.map +1 -1
  146. package/es/components/layer/layer.css.js +1 -1
  147. package/es/components/layer/layer.rtl.css.js +1 -1
  148. package/es/components/list/list.css.js +1 -1
  149. package/es/components/list/list.rtl.css.js +1 -1
  150. package/es/components/list/ordered-list.d.ts +3 -3
  151. package/es/components/list/ordered-list.d.ts.map +1 -1
  152. package/es/components/list/ordered-list.js +6 -6
  153. package/es/components/list/ordered-list.js.map +1 -1
  154. package/es/components/list/unordered-list.d.ts +2 -2
  155. package/es/components/list/unordered-list.d.ts.map +1 -1
  156. package/es/components/list/unordered-list.js +5 -5
  157. package/es/components/list/unordered-list.js.map +1 -1
  158. package/es/components/loading/loading.css.js +1 -1
  159. package/es/components/loading/loading.d.ts +2 -2
  160. package/es/components/loading/loading.d.ts.map +1 -1
  161. package/es/components/loading/loading.js +4 -4
  162. package/es/components/loading/loading.js.map +1 -1
  163. package/es/components/loading/loading.rtl.css.js +1 -1
  164. package/es/components/modal/modal-footer-button.d.ts +3 -3
  165. package/es/components/modal/modal-footer-button.d.ts.map +1 -1
  166. package/es/components/modal/modal-footer-button.js +6 -6
  167. package/es/components/modal/modal-footer-button.js.map +1 -1
  168. package/es/components/modal/modal-footer.d.ts.map +1 -1
  169. package/es/components/modal/modal-footer.js +1 -1
  170. package/es/components/modal/modal-footer.js.map +1 -1
  171. package/es/components/modal/modal.css.js +1 -1
  172. package/es/components/modal/modal.d.ts.map +1 -1
  173. package/es/components/modal/modal.js +2 -2
  174. package/es/components/modal/modal.js.map +1 -1
  175. package/es/components/modal/modal.rtl.css.js +1 -1
  176. package/es/components/multi-select/multi-select-item.d.ts +3 -3
  177. package/es/components/multi-select/multi-select-item.d.ts.map +1 -1
  178. package/es/components/multi-select/multi-select-item.js +6 -6
  179. package/es/components/multi-select/multi-select-item.js.map +1 -1
  180. package/es/components/multi-select/multi-select.css.js +1 -1
  181. package/es/components/multi-select/multi-select.d.ts +9 -9
  182. package/es/components/multi-select/multi-select.d.ts.map +1 -1
  183. package/es/components/multi-select/multi-select.js +17 -17
  184. package/es/components/multi-select/multi-select.js.map +1 -1
  185. package/es/components/multi-select/multi-select.rtl.css.js +1 -1
  186. package/es/components/notification/actionable-notification-button.d.ts +21 -0
  187. package/es/components/notification/actionable-notification-button.d.ts.map +1 -0
  188. package/es/components/notification/actionable-notification-button.js +56 -0
  189. package/es/components/notification/actionable-notification-button.js.map +1 -0
  190. package/es/components/notification/actionable-notification.css.js +12 -0
  191. package/es/components/notification/actionable-notification.d.ts +370 -0
  192. package/es/components/notification/actionable-notification.d.ts.map +1 -0
  193. package/es/components/notification/actionable-notification.js +281 -0
  194. package/es/components/notification/actionable-notification.js.map +1 -0
  195. package/es/components/notification/actionable-notification.rtl.css.js +12 -0
  196. package/es/components/notification/defs.d.ts +17 -1
  197. package/es/components/notification/defs.d.ts.map +1 -1
  198. package/es/components/notification/defs.js +3 -0
  199. package/es/components/notification/defs.js.map +1 -1
  200. package/es/components/notification/index.d.ts +2 -0
  201. package/es/components/notification/index.d.ts.map +1 -1
  202. package/es/components/notification/index.js +2 -0
  203. package/es/components/notification/index.js.map +1 -1
  204. package/es/components/notification/inline-notification.css.js +1 -1
  205. package/es/components/notification/inline-notification.d.ts +8 -8
  206. package/es/components/notification/inline-notification.d.ts.map +1 -1
  207. package/es/components/notification/inline-notification.js +23 -18
  208. package/es/components/notification/inline-notification.js.map +1 -1
  209. package/es/components/notification/inline-notification.rtl.css.js +1 -1
  210. package/es/components/notification/toast-notification.css.js +1 -1
  211. package/es/components/notification/toast-notification.d.ts +4 -4
  212. package/es/components/notification/toast-notification.d.ts.map +1 -1
  213. package/es/components/notification/toast-notification.js +7 -7
  214. package/es/components/notification/toast-notification.js.map +1 -1
  215. package/es/components/notification/toast-notification.rtl.css.js +1 -1
  216. package/es/components/number-input/index.d.ts +2 -1
  217. package/es/components/number-input/index.d.ts.map +1 -1
  218. package/es/components/number-input/index.js +2 -1
  219. package/es/components/number-input/index.js.map +1 -1
  220. package/es/components/number-input/number-input-skeleton.d.ts +2 -2
  221. package/es/components/number-input/number-input-skeleton.d.ts.map +1 -1
  222. package/es/components/number-input/number-input-skeleton.js +4 -4
  223. package/es/components/number-input/number-input-skeleton.js.map +1 -1
  224. package/es/components/number-input/number-input.css.js +1 -1
  225. package/es/components/number-input/number-input.d.ts +12 -25
  226. package/es/components/number-input/number-input.d.ts.map +1 -1
  227. package/es/components/number-input/number-input.js +85 -106
  228. package/es/components/number-input/number-input.js.map +1 -1
  229. package/es/components/number-input/number-input.rtl.css.js +1 -1
  230. package/es/components/pagination/pagination.css.js +1 -1
  231. package/es/components/pagination/pagination.rtl.css.js +1 -1
  232. package/es/components/popover/defs.d.ts +63 -0
  233. package/es/components/popover/defs.d.ts.map +1 -0
  234. package/es/components/popover/defs.js +28 -0
  235. package/es/components/popover/defs.js.map +1 -0
  236. package/es/components/popover/index.d.ts +12 -0
  237. package/es/components/popover/index.d.ts.map +1 -0
  238. package/es/components/popover/index.js +12 -0
  239. package/es/components/popover/index.js.map +1 -0
  240. package/es/components/popover/popover-content.d.ts +45 -0
  241. package/es/components/popover/popover-content.d.ts.map +1 -0
  242. package/es/components/popover/popover-content.js +141 -0
  243. package/es/components/popover/popover-content.js.map +1 -0
  244. package/es/components/popover/popover.css.js +12 -0
  245. package/es/components/popover/popover.d.ts +54 -0
  246. package/es/components/popover/popover.d.ts.map +1 -0
  247. package/es/components/popover/popover.js +201 -0
  248. package/es/components/popover/popover.js.map +1 -0
  249. package/es/components/popover/popover.rtl.css.js +12 -0
  250. package/es/components/progress-indicator/progress-indicator.css.js +1 -1
  251. package/es/components/progress-indicator/progress-indicator.rtl.css.js +1 -1
  252. package/es/components/radio-button/radio-button.css.js +1 -1
  253. package/es/components/radio-button/radio-button.rtl.css.js +1 -1
  254. package/es/components/search/search-skeleton.d.ts +3 -3
  255. package/es/components/search/search-skeleton.d.ts.map +1 -1
  256. package/es/components/search/search-skeleton.js +6 -6
  257. package/es/components/search/search-skeleton.js.map +1 -1
  258. package/es/components/search/search.css.js +1 -1
  259. package/es/components/search/search.d.ts +361 -19
  260. package/es/components/search/search.d.ts.map +1 -1
  261. package/es/components/search/search.js +136 -29
  262. package/es/components/search/search.js.map +1 -1
  263. package/es/components/search/search.rtl.css.js +1 -1
  264. package/es/components/select/index.d.ts +2 -1
  265. package/es/components/select/index.d.ts.map +1 -1
  266. package/es/components/select/index.js +2 -1
  267. package/es/components/select/index.js.map +1 -1
  268. package/es/components/select/select-item-group.d.ts +2 -2
  269. package/es/components/select/select-item-group.d.ts.map +1 -1
  270. package/es/components/select/select-item-group.js +4 -4
  271. package/es/components/select/select-item-group.js.map +1 -1
  272. package/es/components/select/select-item.d.ts +2 -2
  273. package/es/components/select/select-item.d.ts.map +1 -1
  274. package/es/components/select/select-item.js +4 -4
  275. package/es/components/select/select-item.js.map +1 -1
  276. package/es/components/select/select-skeleton.d.ts +23 -0
  277. package/es/components/select/select-skeleton.d.ts.map +1 -0
  278. package/es/components/select/select-skeleton.js +72 -0
  279. package/es/components/select/select-skeleton.js.map +1 -0
  280. package/es/components/select/select.css.js +1 -1
  281. package/es/components/select/select.d.ts +29 -331
  282. package/es/components/select/select.d.ts.map +1 -1
  283. package/es/components/select/select.js +151 -74
  284. package/es/components/select/select.js.map +1 -1
  285. package/es/components/select/select.rtl.css.js +1 -1
  286. package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts +2 -2
  287. package/es/components/skeleton-placeholder/skeleton-placeholder.d.ts.map +1 -1
  288. package/es/components/skeleton-placeholder/skeleton-placeholder.js +4 -4
  289. package/es/components/skeleton-placeholder/skeleton-placeholder.js.map +1 -1
  290. package/es/components/skeleton-text/defs.d.ts +2 -6
  291. package/es/components/skeleton-text/defs.d.ts.map +1 -1
  292. package/es/components/skeleton-text/defs.js +1 -2
  293. package/es/components/skeleton-text/defs.js.map +1 -1
  294. package/es/components/skeleton-text/skeleton-text.css.js +1 -1
  295. package/es/components/skeleton-text/skeleton-text.d.ts +2 -2
  296. package/es/components/skeleton-text/skeleton-text.d.ts.map +1 -1
  297. package/es/components/skeleton-text/skeleton-text.js +4 -4
  298. package/es/components/skeleton-text/skeleton-text.js.map +1 -1
  299. package/es/components/skeleton-text/skeleton-text.rtl.css.js +1 -1
  300. package/es/components/slider/slider-input.d.ts +11 -9
  301. package/es/components/slider/slider-input.d.ts.map +1 -1
  302. package/es/components/slider/slider-input.js +36 -18
  303. package/es/components/slider/slider-input.js.map +1 -1
  304. package/es/components/slider/slider-skeleton.d.ts +2 -2
  305. package/es/components/slider/slider-skeleton.d.ts.map +1 -1
  306. package/es/components/slider/slider-skeleton.js +4 -4
  307. package/es/components/slider/slider-skeleton.js.map +1 -1
  308. package/es/components/slider/slider.css.js +1 -1
  309. package/es/components/slider/slider.d.ts +38 -20
  310. package/es/components/slider/slider.d.ts.map +1 -1
  311. package/es/components/slider/slider.js +119 -54
  312. package/es/components/slider/slider.js.map +1 -1
  313. package/es/components/slider/slider.rtl.css.js +1 -1
  314. package/es/components/structured-list/structured-list.css.js +1 -1
  315. package/es/components/structured-list/structured-list.rtl.css.js +1 -1
  316. package/es/components/tabs/tabs.css.js +1 -1
  317. package/es/components/tabs/tabs.rtl.css.js +1 -1
  318. package/es/components/text-input/defs.d.ts +44 -0
  319. package/es/components/text-input/defs.d.ts.map +1 -0
  320. package/es/components/text-input/defs.js +36 -0
  321. package/es/components/text-input/defs.js.map +1 -0
  322. package/es/components/text-input/index.d.ts +12 -0
  323. package/es/components/text-input/index.d.ts.map +1 -0
  324. package/es/components/text-input/index.js +12 -0
  325. package/es/components/text-input/index.js.map +1 -0
  326. package/es/components/text-input/text-input-skeleton.d.ts +23 -0
  327. package/es/components/text-input/text-input-skeleton.d.ts.map +1 -0
  328. package/es/components/text-input/text-input-skeleton.js +72 -0
  329. package/es/components/text-input/text-input-skeleton.js.map +1 -0
  330. package/es/components/text-input/text-input.css.js +12 -0
  331. package/es/components/text-input/text-input.d.ts +786 -0
  332. package/es/components/text-input/text-input.d.ts.map +1 -0
  333. package/es/components/text-input/text-input.js +657 -0
  334. package/es/components/text-input/text-input.js.map +1 -0
  335. package/es/components/text-input/text-input.rtl.css.js +12 -0
  336. package/es/components/textarea/textarea-skeleton.d.ts +2 -2
  337. package/es/components/textarea/textarea-skeleton.d.ts.map +1 -1
  338. package/es/components/textarea/textarea-skeleton.js +4 -4
  339. package/es/components/textarea/textarea-skeleton.js.map +1 -1
  340. package/es/components/textarea/textarea.css.js +1 -1
  341. package/es/components/textarea/textarea.d.ts +6 -681
  342. package/es/components/textarea/textarea.d.ts.map +1 -1
  343. package/es/components/textarea/textarea.js +63 -197
  344. package/es/components/textarea/textarea.js.map +1 -1
  345. package/es/components/textarea/textarea.rtl.css.js +1 -1
  346. package/es/components/tile/expandable-tile.d.ts.map +1 -1
  347. package/es/components/tile/expandable-tile.js +4 -0
  348. package/es/components/tile/expandable-tile.js.map +1 -1
  349. package/es/components/tile/tile.css.js +1 -1
  350. package/es/components/tile/tile.rtl.css.js +1 -1
  351. package/es/components/toggle-tip/toggletip.d.ts +2 -2
  352. package/es/components/toggle-tip/toggletip.d.ts.map +1 -1
  353. package/es/components/toggle-tip/toggletip.js +2 -2
  354. package/es/components/toggle-tip/toggletip.js.map +1 -1
  355. package/es/components/tooltip/index.d.ts +1 -3
  356. package/es/components/tooltip/index.d.ts.map +1 -1
  357. package/es/components/tooltip/index.js +1 -3
  358. package/es/components/tooltip/index.js.map +1 -1
  359. package/es/components/tooltip/tooltip-content.d.ts +20 -0
  360. package/es/components/tooltip/tooltip-content.d.ts.map +1 -0
  361. package/es/components/tooltip/tooltip-content.js +62 -0
  362. package/es/components/tooltip/tooltip-content.js.map +1 -0
  363. package/es/components/tooltip/tooltip.css.js +1 -1
  364. package/es/components/tooltip/tooltip.d.ts +36 -25
  365. package/es/components/tooltip/tooltip.d.ts.map +1 -1
  366. package/es/components/tooltip/tooltip.js +111 -124
  367. package/es/components/tooltip/tooltip.js.map +1 -1
  368. package/es/components/tooltip/tooltip.rtl.css.js +1 -1
  369. package/es/components-react/button/button-set.js +1 -1
  370. package/es/components-react/button/button-skeleton.d.ts +2 -2
  371. package/es/components-react/button/button-skeleton.js +1 -1
  372. package/es/components-react/button/button.d.ts +2 -2
  373. package/es/components-react/button/button.js +1 -1
  374. package/es/components-react/checkbox/checkbox-skeleton.d.ts +15 -0
  375. package/es/components-react/checkbox/checkbox-skeleton.js +21 -0
  376. package/es/components-react/checkbox/checkbox.d.ts +2 -2
  377. package/es/components-react/combo-box/combo-box-item.d.ts +2 -2
  378. package/es/components-react/combo-box/combo-box.d.ts +2 -2
  379. package/es/components-react/combo-box/combo-box.js +1 -5
  380. package/es/components-react/copy/copy.d.ts +14 -0
  381. package/es/components-react/copy/copy.js +23 -0
  382. package/es/components-react/copy-button/copy-button.d.ts +2 -2
  383. package/es/components-react/date-picker/date-picker-input-skeleton.d.ts +2 -2
  384. package/es/components-react/date-picker/date-picker-input.d.ts +2 -2
  385. package/es/components-react/date-picker/date-picker-input.js +0 -1
  386. package/es/components-react/date-picker/date-picker.d.ts +2 -2
  387. package/es/components-react/dropdown/dropdown-item.d.ts +2 -2
  388. package/es/components-react/dropdown/dropdown-skeleton.d.ts +2 -2
  389. package/es/components-react/dropdown/dropdown.d.ts +2 -2
  390. package/es/components-react/dropdown/dropdown.js +1 -1
  391. package/es/components-react/icon-button/defs.js +9 -0
  392. package/es/components-react/{tooltip/tooltip-body.d.ts → icon-button/icon-button.d.ts} +3 -3
  393. package/es/components-react/icon-button/icon-button.js +24 -0
  394. package/es/components-react/{slider/defs.js → icon-button/index.js} +0 -1
  395. package/es/components-react/inline-loading/inline-loading.d.ts +2 -2
  396. package/es/components-react/input/input.d.ts +2 -2
  397. package/es/components-react/list/ordered-list.d.ts +2 -2
  398. package/es/components-react/list/unordered-list.d.ts +2 -2
  399. package/es/components-react/loading/loading.d.ts +2 -2
  400. package/es/components-react/modal/modal-footer-button.d.ts +2 -2
  401. package/es/components-react/multi-select/multi-select-item.d.ts +2 -2
  402. package/es/components-react/multi-select/multi-select.d.ts +2 -2
  403. package/es/components-react/multi-select/multi-select.js +1 -5
  404. package/es/components-react/notification/actionable-notification-button.d.ts +15 -0
  405. package/es/components-react/notification/actionable-notification-button.js +23 -0
  406. package/es/components-react/notification/actionable-notification.d.ts +14 -0
  407. package/es/components-react/notification/actionable-notification.js +23 -0
  408. package/es/components-react/notification/inline-notification.d.ts +2 -2
  409. package/es/components-react/notification/toast-notification.d.ts +2 -2
  410. package/es/components-react/number-input/number-input-skeleton.d.ts +2 -2
  411. package/es/components-react/number-input/number-input.d.ts +3 -3
  412. package/es/components-react/number-input/number-input.js +3 -6
  413. package/es/components-react/popover/defs.d.ts +14 -0
  414. package/es/components-react/{tooltip → popover}/defs.js +1 -1
  415. package/es/components-react/popover/index.d.ts +14 -0
  416. package/es/components-react/popover/index.js +8 -0
  417. package/es/components-react/popover/popover-content.d.ts +15 -0
  418. package/es/components-react/popover/popover-content.js +21 -0
  419. package/es/components-react/{tooltip/tooltip-footer.d.ts → popover/popover.d.ts} +2 -2
  420. package/es/components-react/{tooltip/tooltip-footer.js → popover/popover.js} +2 -2
  421. package/es/components-react/search/search-skeleton.d.ts +2 -2
  422. package/es/components-react/search/search.d.ts +2 -2
  423. package/es/components-react/search/search.js +0 -1
  424. package/es/components-react/select/select-item-group.d.ts +2 -2
  425. package/es/components-react/select/select-item.d.ts +2 -2
  426. package/es/components-react/select/select-skeleton.d.ts +15 -0
  427. package/es/components-react/select/select-skeleton.js +21 -0
  428. package/es/components-react/select/select.d.ts +2 -2
  429. package/es/components-react/select/select.js +0 -1
  430. package/es/components-react/skeleton-placeholder/skeleton-placeholder.d.ts +2 -2
  431. package/es/components-react/skeleton-text/skeleton-text.d.ts +2 -2
  432. package/es/components-react/slider/slider-input.d.ts +2 -2
  433. package/es/components-react/slider/slider-input.js +0 -1
  434. package/es/components-react/slider/slider-skeleton.d.ts +2 -2
  435. package/es/components-react/slider/slider.d.ts +2 -2
  436. package/es/components-react/text-input/defs.d.ts +14 -0
  437. package/es/components-react/text-input/defs.js +9 -0
  438. package/es/components-react/text-input/index.d.ts +14 -0
  439. package/es/components-react/text-input/index.js +8 -0
  440. package/es/components-react/text-input/text-input-skeleton.d.ts +15 -0
  441. package/es/components-react/text-input/text-input-skeleton.js +21 -0
  442. package/es/components-react/text-input/text-input.d.ts +15 -0
  443. package/es/components-react/text-input/text-input.js +22 -0
  444. package/es/components-react/textarea/textarea-skeleton.d.ts +2 -2
  445. package/es/components-react/textarea/textarea.d.ts +4 -5
  446. package/es/components-react/textarea/textarea.js +4 -3
  447. package/es/components-react/tooltip/tooltip-content.d.ts +14 -0
  448. package/es/components-react/tooltip/{tooltip-body.js → tooltip-content.js} +4 -4
  449. package/es/components-react/tooltip/tooltip.d.ts +4 -5
  450. package/es/components-react/tooltip/tooltip.js +4 -2
  451. package/es/globals/settings.d.ts.map +1 -1
  452. package/es/globals/settings.js +1 -1
  453. package/es/globals/settings.js.map +1 -1
  454. package/es/globals/wrappers/createReactCustomElementType.d.ts +3 -3
  455. package/es/globals/wrappers/createReactCustomElementType.d.ts.map +1 -1
  456. package/es/globals/wrappers/createReactCustomElementType.js +3 -3
  457. package/es/globals/wrappers/createReactCustomElementType.js.map +1 -1
  458. package/es/icons/add/16.js +1 -1
  459. package/es/icons/arrows/16.js +1 -1
  460. package/es/icons/arrows--vertical/16.js +1 -1
  461. package/es/icons/caret--down/16.js +1 -1
  462. package/es/icons/caret--up/16.js +1 -1
  463. package/es/icons/information/16.js +1 -1
  464. package/es/icons/information--filled/20.js +1 -1
  465. package/es/icons/information--square--filled/20.js +1 -1
  466. package/es/icons/subtract/16.js +1 -1
  467. package/es/icons/warning--alt--filled/16.js +1 -1
  468. package/es/icons/warning--alt--filled/20.js +1 -1
  469. package/es/index.d.ts +110 -108
  470. package/es/index.d.ts.map +1 -1
  471. package/es/index.js +110 -108
  472. package/es/index.js.map +1 -1
  473. package/lib/components/date-picker/defs.js +2 -11
  474. package/lib/components/date-picker/defs.js.map +1 -1
  475. package/lib/components/dropdown/defs.js +12 -3
  476. package/lib/components/dropdown/defs.js.map +1 -1
  477. package/lib/components/icon-button/defs.js +40 -0
  478. package/lib/components/icon-button/defs.js.map +1 -0
  479. package/lib/components/input/defs.js +1 -1
  480. package/lib/components/input/defs.js.map +1 -1
  481. package/lib/components/notification/defs.js +3 -0
  482. package/lib/components/notification/defs.js.map +1 -1
  483. package/lib/components/popover/defs.js +34 -0
  484. package/lib/components/popover/defs.js.map +1 -0
  485. package/lib/components/skeleton-text/defs.js +1 -2
  486. package/lib/components/skeleton-text/defs.js.map +1 -1
  487. package/lib/components/text-input/defs.js +47 -0
  488. package/lib/components/text-input/defs.js.map +1 -0
  489. package/lib/components-react-node/button/button-set.js +1 -1
  490. package/lib/components-react-node/button/button-skeleton.js +1 -1
  491. package/lib/components-react-node/button/button.js +1 -1
  492. package/lib/components-react-node/{tooltip/tooltip-body.js → checkbox/checkbox-skeleton.js} +3 -4
  493. package/lib/components-react-node/combo-box/combo-box.js +2 -8
  494. package/lib/components-react-node/copy/copy.js +37 -0
  495. package/lib/components-react-node/date-picker/date-picker-input.js +0 -6
  496. package/lib/components-react-node/dropdown/dropdown.js +2 -2
  497. package/lib/components-react-node/icon-button/defs.js +24 -0
  498. package/lib/components-react-node/icon-button/icon-button.js +50 -0
  499. package/lib/components-react-node/icon-button/index.js +9 -0
  500. package/lib/components-react-node/multi-select/multi-select.js +0 -6
  501. package/lib/components-react-node/notification/actionable-notification-button.js +37 -0
  502. package/lib/components-react-node/notification/actionable-notification.js +37 -0
  503. package/lib/components-react-node/number-input/number-input.js +3 -9
  504. package/lib/components-react-node/{slider → popover}/defs.js +1 -1
  505. package/lib/components-react-node/popover/index.js +9 -0
  506. package/lib/components-react-node/popover/popover-content.js +36 -0
  507. package/lib/components-react-node/{tooltip/tooltip-footer.js → popover/popover.js} +1 -1
  508. package/lib/components-react-node/search/search.js +0 -7
  509. package/lib/components-react-node/select/select-skeleton.js +36 -0
  510. package/lib/components-react-node/select/select.js +0 -7
  511. package/lib/components-react-node/slider/slider-input.js +0 -7
  512. package/lib/components-react-node/{tooltip → text-input}/defs.js +1 -1
  513. package/lib/components-react-node/text-input/index.js +9 -0
  514. package/lib/components-react-node/text-input/text-input-skeleton.js +36 -0
  515. package/lib/components-react-node/text-input/text-input.js +55 -0
  516. package/lib/components-react-node/textarea/textarea.js +3 -9
  517. package/lib/components-react-node/tooltip/tooltip-content.js +37 -0
  518. package/lib/components-react-node/tooltip/tooltip.js +3 -2
  519. package/lib/globals/settings.js +1 -1
  520. package/lib/globals/settings.js.map +1 -1
  521. package/lib/globals/wrappers/createReactCustomElementType.js +3 -3
  522. package/lib/globals/wrappers/createReactCustomElementType.js.map +1 -1
  523. package/package.json +5 -5
  524. package/scss/components/button/button.scss +5 -5
  525. package/scss/components/checkbox/checkbox.scss +9 -1
  526. package/scss/components/combo-box/combo-box.scss +51 -42
  527. package/scss/components/copy-button/copy-button.scss +20 -0
  528. package/scss/components/date-picker/date-picker.scss +28 -14
  529. package/scss/components/dropdown/dropdown.scss +87 -34
  530. package/scss/components/icon-button/icon-button.scss +14 -0
  531. package/scss/components/layer/layer.scss +0 -6
  532. package/scss/components/list/list.scss +0 -5
  533. package/scss/components/loading/loading.scss +1 -0
  534. package/scss/components/modal/modal.scss +2 -2
  535. package/scss/components/notification/actionable-notification.scss +170 -0
  536. package/scss/components/notification/inline-notification.scss +26 -0
  537. package/scss/components/notification/toast-notification.scss +26 -0
  538. package/scss/components/number-input/number-input.scss +13 -0
  539. package/scss/components/popover/popover.scss +122 -0
  540. package/scss/components/search/search.scss +54 -21
  541. package/scss/components/select/select.scss +20 -4
  542. package/scss/components/skeleton-text/skeleton-text.scss +4 -0
  543. package/scss/components/slider/slider.scss +9 -1
  544. package/scss/components/text-input/text-input.scss +38 -0
  545. package/scss/components/textarea/textarea.scss +7 -0
  546. package/scss/components/tile/tile.scss +4 -0
  547. package/scss/components/tooltip/tooltip.scss +5 -135
  548. package/es/components/slider/defs.d.ts +0 -11
  549. package/es/components/slider/defs.d.ts.map +0 -1
  550. package/es/components/slider/defs.js +0 -11
  551. package/es/components/slider/defs.js.map +0 -1
  552. package/es/components/tooltip/defs.d.ts +0 -84
  553. package/es/components/tooltip/defs.d.ts.map +0 -1
  554. package/es/components/tooltip/defs.js +0 -39
  555. package/es/components/tooltip/defs.js.map +0 -1
  556. package/es/components/tooltip/tooltip-body.d.ts +0 -40
  557. package/es/components/tooltip/tooltip-body.d.ts.map +0 -1
  558. package/es/components/tooltip/tooltip-body.js +0 -175
  559. package/es/components/tooltip/tooltip-body.js.map +0 -1
  560. package/es/components/tooltip/tooltip-footer.d.ts.map +0 -1
  561. package/es/components/tooltip/tooltip-footer.js.map +0 -1
  562. package/lib/components/slider/defs.js +0 -21
  563. package/lib/components/slider/defs.js.map +0 -1
  564. package/lib/components/tooltip/defs.js +0 -45
  565. package/lib/components/tooltip/defs.js.map +0 -1
  566. /package/es/components-react/{slider → icon-button}/defs.d.ts +0 -0
  567. /package/es/components-react/{tooltip/defs.d.ts → icon-button/index.d.ts} +0 -0
@@ -0,0 +1,370 @@
1
+ import { NOTIFICATION_TYPE } from './defs';
2
+ import CDSInlineNotification from './inline-notification';
3
+ declare const CDSActionableNotification_base: {
4
+ new (...args: any[]): {
5
+ _handles: Set<import("../../globals/internal/handle").default>;
6
+ connectedCallback(): void;
7
+ disconnectedCallback(): void;
8
+ accessKey: string;
9
+ readonly accessKeyLabel: string;
10
+ autocapitalize: string;
11
+ dir: string;
12
+ draggable: boolean;
13
+ hidden: boolean;
14
+ inert: boolean;
15
+ innerText: string;
16
+ lang: string;
17
+ readonly offsetHeight: number;
18
+ readonly offsetLeft: number;
19
+ readonly offsetParent: Element | null;
20
+ readonly offsetTop: number;
21
+ readonly offsetWidth: number;
22
+ outerText: string;
23
+ spellcheck: boolean;
24
+ title: string;
25
+ translate: boolean;
26
+ attachInternals(): ElementInternals;
27
+ click(): void;
28
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
29
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
30
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
31
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
32
+ readonly attributes: NamedNodeMap;
33
+ readonly classList: DOMTokenList;
34
+ className: string;
35
+ readonly clientHeight: number;
36
+ readonly clientLeft: number;
37
+ readonly clientTop: number;
38
+ readonly clientWidth: number;
39
+ id: string;
40
+ readonly localName: string;
41
+ readonly namespaceURI: string | null;
42
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
43
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
44
+ outerHTML: string;
45
+ readonly ownerDocument: Document;
46
+ readonly part: DOMTokenList;
47
+ readonly prefix: string | null;
48
+ readonly scrollHeight: number;
49
+ scrollLeft: number;
50
+ scrollTop: number;
51
+ readonly scrollWidth: number;
52
+ readonly shadowRoot: ShadowRoot | null;
53
+ slot: string;
54
+ readonly tagName: string;
55
+ attachShadow(init: ShadowRootInit): ShadowRoot;
56
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
57
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
58
+ closest<E extends Element = Element>(selectors: string): E | null;
59
+ getAttribute(qualifiedName: string): string | null;
60
+ getAttributeNS(namespace: string | null, localName: string): string | null;
61
+ getAttributeNames(): string[];
62
+ getAttributeNode(qualifiedName: string): Attr | null;
63
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
64
+ getBoundingClientRect(): DOMRect;
65
+ getClientRects(): DOMRectList;
66
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
67
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
68
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
69
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
70
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
71
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
72
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
73
+ hasAttribute(qualifiedName: string): boolean;
74
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
75
+ hasAttributes(): boolean;
76
+ hasPointerCapture(pointerId: number): boolean;
77
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
78
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
79
+ insertAdjacentText(where: InsertPosition, data: string): void;
80
+ matches(selectors: string): boolean;
81
+ releasePointerCapture(pointerId: number): void;
82
+ removeAttribute(qualifiedName: string): void;
83
+ removeAttributeNS(namespace: string | null, localName: string): void;
84
+ removeAttributeNode(attr: Attr): Attr;
85
+ requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
86
+ requestPointerLock(): void;
87
+ scroll(options?: ScrollToOptions | undefined): void;
88
+ scroll(x: number, y: number): void;
89
+ scrollBy(options?: ScrollToOptions | undefined): void;
90
+ scrollBy(x: number, y: number): void;
91
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
92
+ scrollTo(options?: ScrollToOptions | undefined): void;
93
+ scrollTo(x: number, y: number): void;
94
+ setAttribute(qualifiedName: string, value: string): void;
95
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
96
+ setAttributeNode(attr: Attr): Attr | null;
97
+ setAttributeNodeNS(attr: Attr): Attr | null;
98
+ setPointerCapture(pointerId: number): void;
99
+ toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
100
+ webkitMatchesSelector(selectors: string): boolean;
101
+ readonly baseURI: string;
102
+ readonly childNodes: NodeListOf<ChildNode>;
103
+ readonly firstChild: ChildNode | null;
104
+ readonly isConnected: boolean;
105
+ readonly lastChild: ChildNode | null;
106
+ readonly nextSibling: ChildNode | null;
107
+ readonly nodeName: string;
108
+ readonly nodeType: number;
109
+ nodeValue: string | null;
110
+ readonly parentElement: HTMLElement | null;
111
+ readonly parentNode: ParentNode | null;
112
+ readonly previousSibling: ChildNode | null;
113
+ textContent: string | null;
114
+ appendChild<T extends Node>(node: T): T;
115
+ cloneNode(deep?: boolean | undefined): Node;
116
+ compareDocumentPosition(other: Node): number;
117
+ contains(other: Node | null): boolean;
118
+ getRootNode(options?: GetRootNodeOptions | undefined): Node;
119
+ hasChildNodes(): boolean;
120
+ insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
121
+ isDefaultNamespace(namespace: string | null): boolean;
122
+ isEqualNode(otherNode: Node | null): boolean;
123
+ isSameNode(otherNode: Node | null): boolean;
124
+ lookupNamespaceURI(prefix: string | null): string | null;
125
+ lookupPrefix(namespace: string | null): string | null;
126
+ normalize(): void;
127
+ removeChild<T_2 extends Node>(child: T_2): T_2;
128
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
129
+ readonly ATTRIBUTE_NODE: number;
130
+ readonly CDATA_SECTION_NODE: number;
131
+ readonly COMMENT_NODE: number;
132
+ readonly DOCUMENT_FRAGMENT_NODE: number;
133
+ readonly DOCUMENT_NODE: number;
134
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
135
+ readonly DOCUMENT_POSITION_CONTAINS: number;
136
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
137
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
138
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
139
+ readonly DOCUMENT_POSITION_PRECEDING: number;
140
+ readonly DOCUMENT_TYPE_NODE: number;
141
+ readonly ELEMENT_NODE: number;
142
+ readonly ENTITY_NODE: number;
143
+ readonly ENTITY_REFERENCE_NODE: number;
144
+ readonly NOTATION_NODE: number;
145
+ readonly PROCESSING_INSTRUCTION_NODE: number;
146
+ readonly TEXT_NODE: number;
147
+ dispatchEvent(event: Event): boolean;
148
+ ariaAtomic: string | null;
149
+ ariaAutoComplete: string | null;
150
+ ariaBusy: string | null;
151
+ ariaChecked: string | null;
152
+ ariaColCount: string | null;
153
+ ariaColIndex: string | null;
154
+ ariaColSpan: string | null;
155
+ ariaCurrent: string | null;
156
+ ariaDisabled: string | null;
157
+ ariaExpanded: string | null;
158
+ ariaHasPopup: string | null;
159
+ ariaHidden: string | null;
160
+ ariaKeyShortcuts: string | null;
161
+ ariaLabel: string | null;
162
+ ariaLevel: string | null;
163
+ ariaLive: string | null;
164
+ ariaModal: string | null;
165
+ ariaMultiLine: string | null;
166
+ ariaMultiSelectable: string | null;
167
+ ariaOrientation: string | null;
168
+ ariaPlaceholder: string | null;
169
+ ariaPosInSet: string | null;
170
+ ariaPressed: string | null;
171
+ ariaReadOnly: string | null;
172
+ ariaRequired: string | null;
173
+ ariaRoleDescription: string | null;
174
+ ariaRowCount: string | null;
175
+ ariaRowIndex: string | null;
176
+ ariaRowSpan: string | null;
177
+ ariaSelected: string | null;
178
+ ariaSetSize: string | null;
179
+ ariaSort: string | null;
180
+ ariaValueMax: string | null;
181
+ ariaValueMin: string | null;
182
+ ariaValueNow: string | null;
183
+ ariaValueText: string | null;
184
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
185
+ getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
186
+ after(...nodes: (string | Node)[]): void;
187
+ before(...nodes: (string | Node)[]): void;
188
+ remove(): void;
189
+ replaceWith(...nodes: (string | Node)[]): void;
190
+ innerHTML: string;
191
+ readonly nextElementSibling: Element | null;
192
+ readonly previousElementSibling: Element | null;
193
+ readonly childElementCount: number;
194
+ readonly children: HTMLCollection;
195
+ readonly firstElementChild: Element | null;
196
+ readonly lastElementChild: Element | null;
197
+ append(...nodes: (string | Node)[]): void;
198
+ prepend(...nodes: (string | Node)[]): void;
199
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
200
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
201
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
202
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
203
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
204
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
205
+ replaceChildren(...nodes: (string | Node)[]): void;
206
+ readonly assignedSlot: HTMLSlotElement | null;
207
+ oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
208
+ oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
209
+ onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
210
+ readonly style: CSSStyleDeclaration;
211
+ contentEditable: string;
212
+ enterKeyHint: string;
213
+ inputMode: string;
214
+ readonly isContentEditable: boolean;
215
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
216
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
217
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
218
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
219
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
220
+ onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
221
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
222
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
223
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
224
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
225
+ onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
226
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
227
+ oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
228
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
229
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
230
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
231
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
232
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
233
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
234
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
235
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
236
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
237
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
238
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
239
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
240
+ onerror: OnErrorEventHandler;
241
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
242
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
243
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
244
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
245
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
247
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
248
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
249
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
250
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
251
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
252
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
253
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
254
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
255
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
256
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
257
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
258
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
259
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
260
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
261
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
262
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
263
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
264
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
265
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
266
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
268
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
269
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
270
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
271
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
272
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
273
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
276
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
278
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
282
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
286
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
287
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
288
+ ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
289
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
290
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
291
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
292
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
293
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
294
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
295
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
296
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
297
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
302
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
304
+ autofocus: boolean;
305
+ readonly dataset: DOMStringMap;
306
+ nonce?: string | undefined;
307
+ tabIndex: number;
308
+ blur(): void;
309
+ focus(options?: FocusOptions | undefined): void;
310
+ };
311
+ _hostListeners: {
312
+ [listenerName: string]: {
313
+ [type: string]: {
314
+ options?: boolean | AddEventListenerOptions | undefined;
315
+ };
316
+ };
317
+ };
318
+ } & typeof CDSInlineNotification;
319
+ /**
320
+ * Actionable notification.
321
+ *
322
+ * @element cds-actionable-notification
323
+ * @slot subtitle - The subtitle.
324
+ * @slot title - The title.
325
+ * @fires cds-notification-beingclosed
326
+ * The custom event fired before this notification is being closed upon a user gesture.
327
+ * Cancellation of this event stops the user-initiated action of closing this notification.
328
+ * @fires cds-notification-closed - The custom event fired after this notification is closed upon a user gesture.
329
+ */
330
+ declare class CDSActionableNotification extends CDSActionableNotification_base {
331
+ protected _type: NOTIFICATION_TYPE;
332
+ /**
333
+ * Inline notification type.
334
+ */
335
+ inline: boolean;
336
+ /**
337
+ * Pass in the action button label that will be rendered within the ActionableNotification.
338
+ */
339
+ actionButtonLabel: string;
340
+ /**
341
+ * Specify if pressing the escape key should close notifications
342
+ */
343
+ closeOnEscape: boolean;
344
+ /**
345
+ * Specify if focus should be moved to the component when the notification contains actions
346
+ */
347
+ hasFocus: boolean;
348
+ /**
349
+ * Handles `keydown` event on this event.
350
+ * Escape will close the notification if `closeOnEscape` is true
351
+ */
352
+ private _handleKeyDown;
353
+ connectedCallback(): void;
354
+ protected _renderIcon(): any;
355
+ protected _renderText(): import("lit-html").TemplateResult<1>;
356
+ /**
357
+ * The caption.
358
+ */
359
+ caption: string;
360
+ updated(changedProperties: any): void;
361
+ render(): import("lit-html").TemplateResult<1>;
362
+ /**
363
+ * A selector that will return the action button element
364
+ */
365
+ static get selectorActionButton(): string;
366
+ static styles: any;
367
+ }
368
+ export default CDSActionableNotification;
369
+
370
+ //# sourceMappingURL=actionable-notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/notification/actionable-notification.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,QAAQ,CAAC;AAC9D,OAAO,qBAAqB,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiB1D;;;;;;;;;;GAUG;AACH,cACM,yBAA0B,SAAQ,8BAEvC;IACC,SAAS,CAAC,KAAK,oBAAgC;IAE/C;;OAEG;IAEH,MAAM,UAAS;IAEf;;OAEG;IAEH,iBAAiB,SAAM;IAEvB;;OAEG;IAEH,aAAa,UAAQ;IAErB;;OAEG;IAEH,QAAQ,UAAQ;IAEhB;;;OAGG;IAGH,OAAO,CAAC,cAAc,CAKpB;IAEF,iBAAiB;IAOjB,SAAS,CAAC,WAAW;IAarB,SAAS,CAAC,WAAW;IAiBrB;;OAEG;IAEH,OAAO,SAAM;IAEb,OAAO,CAAC,iBAAiB,KAAA;IA8BzB,MAAM;IAWN;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,yBAAyB,CAAC","file":"actionable-notification.d.ts","sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2019, 2023\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport CheckmarkFilled20 from '@carbon/icons/lib/checkmark--filled/20';\nimport ErrorFilled20 from '@carbon/icons/lib/error--filled/20';\nimport InformationFilled20 from '@carbon/icons/lib/information--filled/20';\nimport InformationSquareFilled20 from '@carbon/icons/lib/information--square--filled/20';\nimport WarningFilled20 from '@carbon/icons/lib/warning--filled/20';\nimport WarningAltFilled20 from '@carbon/icons/lib/warning--alt--filled/20';\nimport { html, svg } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { prefix } from '../../globals/settings';\nimport { NOTIFICATION_TYPE, NOTIFICATION_KIND } from './defs';\nimport CDSInlineNotification from './inline-notification';\nimport styles from './actionable-notification.scss';\nimport HostListener from '../../globals/decorators/host-listener';\nimport HostListenerMixin from '../../globals/mixins/host-listener';\n\n/**\n * The default icons, keyed by notification kind.\n */\nconst iconsForKinds = {\n [NOTIFICATION_KIND.SUCCESS]: CheckmarkFilled20,\n [NOTIFICATION_KIND.INFO]: InformationFilled20,\n [NOTIFICATION_KIND.INFO_SQUARE]: InformationSquareFilled20,\n [NOTIFICATION_KIND.WARNING]: WarningFilled20,\n [NOTIFICATION_KIND.WARNING_ALT]: WarningAltFilled20,\n [NOTIFICATION_KIND.ERROR]: ErrorFilled20,\n};\n\n/**\n * Actionable notification.\n *\n * @element cds-actionable-notification\n * @slot subtitle - The subtitle.\n * @slot title - The title.\n * @fires cds-notification-beingclosed\n * The custom event fired before this notification is being closed upon a user gesture.\n * Cancellation of this event stops the user-initiated action of closing this notification.\n * @fires cds-notification-closed - The custom event fired after this notification is closed upon a user gesture.\n */\n@customElement(`${prefix}-actionable-notification`)\nclass CDSActionableNotification extends HostListenerMixin(\n CDSInlineNotification\n) {\n protected _type = NOTIFICATION_TYPE.ACTIONABLE;\n\n /**\n * Inline notification type.\n */\n @property({ type: Boolean, reflect: true })\n inline = false;\n\n /**\n * Pass in the action button label that will be rendered within the ActionableNotification.\n */\n @property({ type: String, reflect: true, attribute: 'action-button-label' })\n actionButtonLabel = '';\n\n /**\n * Specify if pressing the escape key should close notifications\n */\n @property({ type: Boolean, reflect: true, attribute: 'close-on-escape' })\n closeOnEscape = true;\n\n /**\n * Specify if focus should be moved to the component when the notification contains actions\n */\n @property({ type: Boolean, reflect: true, attribute: 'has-focus' })\n hasFocus = true;\n\n /**\n * Handles `keydown` event on this event.\n * Escape will close the notification if `closeOnEscape` is true\n */\n @HostListener('keydown')\n // @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to\n private _handleKeyDown = async (event: KeyboardEvent) => {\n const { key } = event;\n if (this.closeOnEscape && key === 'Escape') {\n this.open = false;\n }\n };\n\n connectedCallback() {\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'alertdialog');\n }\n super.connectedCallback();\n }\n\n protected _renderIcon() {\n const { statusIconDescription, kind, inline } = this;\n const { [kind]: icon } = iconsForKinds;\n return !icon\n ? undefined\n : icon({\n class: `${prefix}--${inline ? 'inline' : 'toast'}-notification__icon`,\n children: !statusIconDescription\n ? undefined\n : svg`<title>${statusIconDescription}</title>`,\n });\n }\n\n protected _renderText() {\n const { subtitle, title, _type: type } = this;\n return html`\n <div class=\"${prefix}--${type}-notification__text-wrapper\">\n <div class=\"${prefix}--${type}-notification__content\">\n <div class=\"${prefix}--${type}-notification__title\">\n ${title}<slot name=\"title\"></slot>\n </div>\n <div class=\"${prefix}--${type}-notification__subtitle\">\n ${subtitle}<slot name=\"subtitle\"></slot>\n </div>\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n /**\n * The caption.\n */\n @property()\n caption = '';\n\n updated(changedProperties) {\n super.updated(changedProperties);\n const button = this.querySelector(\n (this.constructor as typeof CDSActionableNotification)\n .selectorActionButton\n );\n if (changedProperties.has('inline')) {\n button?.setAttribute('kind', this.inline ? 'ghost' : 'tertiary');\n }\n if (changedProperties.has('lowContrast')) {\n if (this.lowContrast) {\n button?.setAttribute('low-contrast', 'true');\n } else {\n button?.removeAttribute('low-contrast');\n }\n }\n if (changedProperties.has('hideCloseButton')) {\n if (this.hideCloseButton) {\n button?.setAttribute('hide-close-button', 'true');\n } else {\n button?.removeAttribute('hide-close-button');\n }\n }\n if (changedProperties.has('hasFocus')) {\n if (this.hasFocus) {\n this.focus();\n }\n }\n }\n\n render() {\n const { _type: type } = this;\n return html`\n <div class=\"${prefix}--${type}-notification__details\">\n ${this._renderIcon()} ${this._renderText()}\n </div>\n <slot name=\"action\"></slot>\n ${this._renderButton()}\n `;\n }\n\n /**\n * A selector that will return the action button element\n */\n static get selectorActionButton() {\n return `${prefix}-actionable-notification-button`;\n }\n\n static styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader\n}\n\nexport default CDSActionableNotification;\n"]}
@@ -0,0 +1,281 @@
1
+ import _decorate from "@babel/runtime/helpers/esm/decorate";
2
+ import _get from "@babel/runtime/helpers/esm/get";
3
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
4
+ let _ = t => t,
5
+ _t,
6
+ _t2,
7
+ _t3;
8
+ /**
9
+ * @license
10
+ *
11
+ * Copyright IBM Corp. 2019, 2023
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */ /**
16
+ * @license
17
+ *
18
+ * Copyright IBM Corp. 2019, 2023
19
+ *
20
+ * This source code is licensed under the Apache-2.0 license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */
23
+ import CheckmarkFilled20 from "../../icons/checkmark--filled/20";
24
+ import ErrorFilled20 from "../../icons/error--filled/20";
25
+ import InformationFilled20 from "../../icons/information--filled/20";
26
+ import InformationSquareFilled20 from "../../icons/information--square--filled/20";
27
+ import WarningFilled20 from "../../icons/warning--filled/20";
28
+ import WarningAltFilled20 from "../../icons/warning--alt--filled/20";
29
+ import { html, svg } from 'lit';
30
+ import { property, customElement } from 'lit/decorators.js';
31
+ import { prefix } from '../../globals/settings';
32
+ import { NOTIFICATION_TYPE, NOTIFICATION_KIND } from './defs';
33
+ import CDSInlineNotification from './inline-notification';
34
+ import styles from "././actionable-notification.css.js";
35
+ import HostListener from '../../globals/decorators/host-listener';
36
+ import HostListenerMixin from '../../globals/mixins/host-listener';
37
+
38
+ /**
39
+ * The default icons, keyed by notification kind.
40
+ */
41
+ const iconsForKinds = {
42
+ [NOTIFICATION_KIND.SUCCESS]: CheckmarkFilled20,
43
+ [NOTIFICATION_KIND.INFO]: InformationFilled20,
44
+ [NOTIFICATION_KIND.INFO_SQUARE]: InformationSquareFilled20,
45
+ [NOTIFICATION_KIND.WARNING]: WarningFilled20,
46
+ [NOTIFICATION_KIND.WARNING_ALT]: WarningAltFilled20,
47
+ [NOTIFICATION_KIND.ERROR]: ErrorFilled20
48
+ };
49
+
50
+ /**
51
+ * Actionable notification.
52
+ *
53
+ * @element cds-actionable-notification
54
+ * @slot subtitle - The subtitle.
55
+ * @slot title - The title.
56
+ * @fires cds-notification-beingclosed
57
+ * The custom event fired before this notification is being closed upon a user gesture.
58
+ * Cancellation of this event stops the user-initiated action of closing this notification.
59
+ * @fires cds-notification-closed - The custom event fired after this notification is closed upon a user gesture.
60
+ */
61
+ let CDSActionableNotification = _decorate([customElement(`${prefix}-actionable-notification`)], function (_initialize, _HostListenerMixin) {
62
+ class CDSActionableNotification extends _HostListenerMixin {
63
+ constructor(...args) {
64
+ super(...args);
65
+ _initialize(this);
66
+ }
67
+ }
68
+ return {
69
+ F: CDSActionableNotification,
70
+ d: [{
71
+ kind: "field",
72
+ key: "_type",
73
+ value() {
74
+ return NOTIFICATION_TYPE.ACTIONABLE;
75
+ }
76
+ }, {
77
+ kind: "field",
78
+ decorators: [property({
79
+ type: Boolean,
80
+ reflect: true
81
+ })],
82
+ key: "inline",
83
+ value() {
84
+ return false;
85
+ }
86
+ }, {
87
+ kind: "field",
88
+ decorators: [property({
89
+ type: String,
90
+ reflect: true,
91
+ attribute: 'action-button-label'
92
+ })],
93
+ key: "actionButtonLabel",
94
+ value() {
95
+ return '';
96
+ }
97
+ }, {
98
+ kind: "field",
99
+ decorators: [property({
100
+ type: Boolean,
101
+ reflect: true,
102
+ attribute: 'close-on-escape'
103
+ })],
104
+ key: "closeOnEscape",
105
+ value() {
106
+ return true;
107
+ }
108
+ }, {
109
+ kind: "field",
110
+ decorators: [property({
111
+ type: Boolean,
112
+ reflect: true,
113
+ attribute: 'has-focus'
114
+ })],
115
+ key: "hasFocus",
116
+ value() {
117
+ return true;
118
+ }
119
+ }, {
120
+ kind: "field",
121
+ decorators: [HostListener('keydown')],
122
+ key: "_handleKeyDown",
123
+ value() {
124
+ return async event => {
125
+ const {
126
+ key
127
+ } = event;
128
+ if (this.closeOnEscape && key === 'Escape') {
129
+ this.open = false;
130
+ }
131
+ };
132
+ }
133
+ }, {
134
+ kind: "method",
135
+ key: "connectedCallback",
136
+ value:
137
+ /**
138
+ * Inline notification type.
139
+ */
140
+
141
+ /**
142
+ * Pass in the action button label that will be rendered within the ActionableNotification.
143
+ */
144
+
145
+ /**
146
+ * Specify if pressing the escape key should close notifications
147
+ */
148
+
149
+ /**
150
+ * Specify if focus should be moved to the component when the notification contains actions
151
+ */
152
+
153
+ /**
154
+ * Handles `keydown` event on this event.
155
+ * Escape will close the notification if `closeOnEscape` is true
156
+ */
157
+
158
+ function connectedCallback() {
159
+ if (!this.hasAttribute('role')) {
160
+ this.setAttribute('role', 'alertdialog');
161
+ }
162
+ _get(_getPrototypeOf(CDSActionableNotification.prototype), "connectedCallback", this).call(this);
163
+ }
164
+ }, {
165
+ kind: "method",
166
+ key: "_renderIcon",
167
+ value: function _renderIcon() {
168
+ const {
169
+ statusIconDescription,
170
+ kind,
171
+ inline
172
+ } = this;
173
+ const {
174
+ [kind]: icon
175
+ } = iconsForKinds;
176
+ return !icon ? undefined : icon({
177
+ class: `${prefix}--${inline ? 'inline' : 'toast'}-notification__icon`,
178
+ children: !statusIconDescription ? undefined : svg(_t || (_t = _`<title>${0}</title>`), statusIconDescription)
179
+ });
180
+ }
181
+ }, {
182
+ kind: "method",
183
+ key: "_renderText",
184
+ value: function _renderText() {
185
+ const {
186
+ subtitle,
187
+ title,
188
+ _type: type
189
+ } = this;
190
+ return html(_t2 || (_t2 = _`
191
+ <div class="${0}--${0}-notification__text-wrapper">
192
+ <div class="${0}--${0}-notification__content">
193
+ <div class="${0}--${0}-notification__title">
194
+ ${0}<slot name="title"></slot>
195
+ </div>
196
+ <div class="${0}--${0}-notification__subtitle">
197
+ ${0}<slot name="subtitle"></slot>
198
+ </div>
199
+ <slot></slot>
200
+ </div>
201
+ </div>
202
+ `), prefix, type, prefix, type, prefix, type, title, prefix, type, subtitle);
203
+ }
204
+
205
+ /**
206
+ * The caption.
207
+ */
208
+ }, {
209
+ kind: "field",
210
+ decorators: [property()],
211
+ key: "caption",
212
+ value() {
213
+ return '';
214
+ }
215
+ }, {
216
+ kind: "method",
217
+ key: "updated",
218
+ value: function updated(changedProperties) {
219
+ _get(_getPrototypeOf(CDSActionableNotification.prototype), "updated", this).call(this, changedProperties);
220
+ const button = this.querySelector(this.constructor.selectorActionButton);
221
+ if (changedProperties.has('inline')) {
222
+ button === null || button === void 0 ? void 0 : button.setAttribute('kind', this.inline ? 'ghost' : 'tertiary');
223
+ }
224
+ if (changedProperties.has('lowContrast')) {
225
+ if (this.lowContrast) {
226
+ button === null || button === void 0 ? void 0 : button.setAttribute('low-contrast', 'true');
227
+ } else {
228
+ button === null || button === void 0 ? void 0 : button.removeAttribute('low-contrast');
229
+ }
230
+ }
231
+ if (changedProperties.has('hideCloseButton')) {
232
+ if (this.hideCloseButton) {
233
+ button === null || button === void 0 ? void 0 : button.setAttribute('hide-close-button', 'true');
234
+ } else {
235
+ button === null || button === void 0 ? void 0 : button.removeAttribute('hide-close-button');
236
+ }
237
+ }
238
+ if (changedProperties.has('hasFocus')) {
239
+ if (this.hasFocus) {
240
+ this.focus();
241
+ }
242
+ }
243
+ }
244
+ }, {
245
+ kind: "method",
246
+ key: "render",
247
+ value: function render() {
248
+ const {
249
+ _type: type
250
+ } = this;
251
+ return html(_t3 || (_t3 = _`
252
+ <div class="${0}--${0}-notification__details">
253
+ ${0} ${0}
254
+ </div>
255
+ <slot name="action"></slot>
256
+ ${0}
257
+ `), prefix, type, this._renderIcon(), this._renderText(), this._renderButton());
258
+ }
259
+
260
+ /**
261
+ * A selector that will return the action button element
262
+ */
263
+ }, {
264
+ kind: "get",
265
+ static: true,
266
+ key: "selectorActionButton",
267
+ value: function selectorActionButton() {
268
+ return `${prefix}-actionable-notification-button`;
269
+ }
270
+ }, {
271
+ kind: "field",
272
+ static: true,
273
+ key: "styles",
274
+ value() {
275
+ return styles;
276
+ }
277
+ }]
278
+ };
279
+ }, HostListenerMixin(CDSInlineNotification));
280
+ export default CDSActionableNotification;
281
+ //# sourceMappingURL=actionable-notification.js.map