@carbon/ibm-products-web-components 0.34.0 → 0.35.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 (469) hide show
  1. package/custom-elements.json +3162 -172
  2. package/es/components/about-modal/about-modal-helpers.js.map +1 -1
  3. package/es/components/about-modal/about-modal.js +2 -2
  4. package/es/components/about-modal/about-modal.js.map +1 -1
  5. package/es/components/about-modal/about-modal.scss.js +1 -1
  6. package/es/components/about-modal/about-modal.test.js.map +1 -1
  7. package/es/components/big-number/big-number-skeleton.js +2 -2
  8. package/es/components/big-number/big-number-skeleton.js.map +1 -1
  9. package/es/components/big-number/big-number-skeleton.scss.js +1 -1
  10. package/es/components/big-number/big-number.js +2 -2
  11. package/es/components/big-number/big-number.js.map +1 -1
  12. package/es/components/big-number/big-number.scss.js +1 -1
  13. package/es/components/big-number/big-number.test.js.map +1 -1
  14. package/es/components/big-number/constants.js.map +1 -1
  15. package/es/components/checklist/checklist-chart.js +2 -2
  16. package/es/components/checklist/checklist-chart.js.map +1 -1
  17. package/es/components/checklist/checklist-group.js +2 -2
  18. package/es/components/checklist/checklist-group.js.map +1 -1
  19. package/es/components/checklist/checklist-icon.js +2 -2
  20. package/es/components/checklist/checklist-icon.js.map +1 -1
  21. package/es/components/checklist/checklist-item.js.map +1 -1
  22. package/es/components/checklist/checklist.js.map +1 -1
  23. package/es/components/checklist/checklist.scss.js +1 -1
  24. package/es/components/checklist/checklist.test.js.map +1 -1
  25. package/es/components/checklist/checklist.types.js.map +1 -1
  26. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +2 -2
  27. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  28. package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  29. package/es/components/coachmark/coachmark-beacon/defs.js.map +1 -1
  30. package/es/components/coachmark/coachmark-body.js +2 -2
  31. package/es/components/coachmark/coachmark-body.js.map +1 -1
  32. package/es/components/coachmark/coachmark-context.js.map +1 -1
  33. package/es/components/coachmark/coachmark-header.js +2 -2
  34. package/es/components/coachmark/coachmark-header.js.map +1 -1
  35. package/es/components/coachmark/coachmark-helpers.js.map +1 -1
  36. package/es/components/coachmark/coachmark-tagline/coachmark-tagline.js +2 -2
  37. package/es/components/coachmark/coachmark-tagline/coachmark-tagline.js.map +1 -1
  38. package/es/components/coachmark/coachmark-tagline/coachmark-tagline.test.js.map +1 -1
  39. package/es/components/coachmark/coachmark.js +2 -2
  40. package/es/components/coachmark/coachmark.js.map +1 -1
  41. package/es/components/coachmark/coachmark.test.js.map +1 -1
  42. package/es/components/full-page-error/full-page-error.js +2 -2
  43. package/es/components/full-page-error/full-page-error.js.map +1 -1
  44. package/es/components/full-page-error/full-page-error.scss.js +1 -1
  45. package/es/components/full-page-error/full-page-error.test.js.map +1 -1
  46. package/es/components/full-page-error/types.js.map +1 -1
  47. package/es/components/guide-banner/guide-banner-element.js.map +1 -1
  48. package/es/components/guide-banner/guide-banner-element.scss.js +1 -1
  49. package/es/components/guide-banner/guide-banner-element.test.js.map +1 -1
  50. package/es/components/guide-banner/guide-banner.js +2 -2
  51. package/es/components/guide-banner/guide-banner.js.map +1 -1
  52. package/es/components/guide-banner/guide-banner.scss.js +1 -1
  53. package/es/components/guide-banner/guide-banner.test.js.map +1 -1
  54. package/es/components/interstitial-screen/interstitial-screen-body-item.js +2 -2
  55. package/es/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -1
  56. package/es/components/interstitial-screen/interstitial-screen-body.js +2 -2
  57. package/es/components/interstitial-screen/interstitial-screen-body.js.map +1 -1
  58. package/es/components/interstitial-screen/interstitial-screen-body.scss.js +1 -1
  59. package/es/components/interstitial-screen/interstitial-screen-context.js.map +1 -1
  60. package/es/components/interstitial-screen/interstitial-screen-footer.js.map +1 -1
  61. package/es/components/interstitial-screen/interstitial-screen-footer.scss.js +1 -1
  62. package/es/components/interstitial-screen/interstitial-screen-header.js +2 -2
  63. package/es/components/interstitial-screen/interstitial-screen-header.js.map +1 -1
  64. package/es/components/interstitial-screen/interstitial-screen-header.scss.js +1 -1
  65. package/es/components/interstitial-screen/interstitial-screen.js +2 -2
  66. package/es/components/interstitial-screen/interstitial-screen.js.map +1 -1
  67. package/es/components/interstitial-screen/interstitial-screen.scss.js +1 -1
  68. package/es/components/interstitial-screen/interstitial-screen.test.js.map +1 -1
  69. package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -1
  70. package/es/components/notification-panel/notification-footer.js +2 -2
  71. package/es/components/notification-panel/notification-footer.js.map +1 -1
  72. package/es/components/notification-panel/notification-footer.scss.js +1 -1
  73. package/es/components/notification-panel/notification-footer.test.js.map +1 -1
  74. package/es/components/notification-panel/notification-panel.d.ts +2 -0
  75. package/es/components/notification-panel/notification-panel.js +38 -15
  76. package/es/components/notification-panel/notification-panel.js.map +1 -1
  77. package/es/components/notification-panel/notification-panel.scss.js +1 -1
  78. package/es/components/notification-panel/notification-panel.test.js +22 -0
  79. package/es/components/notification-panel/notification-panel.test.js.map +1 -1
  80. package/es/components/notification-panel/notification.js +2 -2
  81. package/es/components/notification-panel/notification.js.map +1 -1
  82. package/es/components/notification-panel/notification.scss.js +1 -1
  83. package/es/components/notification-panel/notification.test.js.map +1 -1
  84. package/es/components/options-tile/options-tile.js +2 -2
  85. package/es/components/options-tile/options-tile.js.map +1 -1
  86. package/es/components/options-tile/options-tile.scss.js +1 -1
  87. package/es/components/options-tile/options-tile.test.js.map +1 -1
  88. package/es/components/page-header/_story-assets/overflowHandler.js.map +1 -1
  89. package/es/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +1 -1
  90. package/es/components/page-header/_story-assets/set-of-breadcrumbs.js +3 -3
  91. package/es/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -1
  92. package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  93. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +1 -1
  94. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js +3 -3
  95. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -1
  96. package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  97. package/es/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -1
  98. package/es/components/page-header/page-header-breadcrumb.js +2 -2
  99. package/es/components/page-header/page-header-breadcrumb.js.map +1 -1
  100. package/es/components/page-header/page-header-content-text.js +2 -2
  101. package/es/components/page-header/page-header-content-text.js.map +1 -1
  102. package/es/components/page-header/page-header-content.js.map +1 -1
  103. package/es/components/page-header/page-header-hero-image.js +2 -2
  104. package/es/components/page-header/page-header-hero-image.js.map +1 -1
  105. package/es/components/page-header/page-header-scroller.js.map +1 -1
  106. package/es/components/page-header/page-header-tabs.js +2 -2
  107. package/es/components/page-header/page-header-tabs.js.map +1 -1
  108. package/es/components/page-header/page-header-title-breadcrumb.js +2 -2
  109. package/es/components/page-header/page-header-title-breadcrumb.js.map +1 -1
  110. package/es/components/page-header/page-header.figma.js.map +1 -1
  111. package/es/components/page-header/page-header.js +2 -2
  112. package/es/components/page-header/page-header.js.map +1 -1
  113. package/es/components/page-header/page-header.test.js.map +1 -1
  114. package/es/components/page-header/utils.js.map +1 -1
  115. package/es/components/side-panel/_story-assets/index.js.map +1 -1
  116. package/es/components/side-panel/defs.js.map +1 -1
  117. package/es/components/side-panel/side-panel.js +11 -4
  118. package/es/components/side-panel/side-panel.js.map +1 -1
  119. package/es/components/side-panel/side-panel.scss.js +1 -1
  120. package/es/components/side-panel/side-panel.test.js +3 -3
  121. package/es/components/side-panel/side-panel.test.js.map +1 -1
  122. package/es/components/tearsheet/defs.js.map +1 -1
  123. package/es/components/tearsheet/tearsheet.js +2 -2
  124. package/es/components/tearsheet/tearsheet.js.map +1 -1
  125. package/es/components/tearsheet/tearsheet.scss.js +1 -1
  126. package/es/components/tearsheet/tearsheet.test.js +1 -1
  127. package/es/components/tearsheet/tearsheet.test.js.map +1 -1
  128. package/es/components/tearsheet/utils.js.map +1 -1
  129. package/es/components/tearsheet-preview/_story-assets/_storybook-styles.scss.js +13 -0
  130. package/es/components/tearsheet-preview/_story-assets/_storybook-styles.scss.js.map +1 -0
  131. package/es/components/tearsheet-preview/_story-assets/stacking-tearsheet.d.ts +30 -0
  132. package/es/components/tearsheet-preview/_story-assets/stacking-tearsheet.js +320 -0
  133. package/es/components/tearsheet-preview/_story-assets/stacking-tearsheet.js.map +1 -0
  134. package/es/components/tearsheet-preview/_story-assets/step-tearsheet-preview.d.ts +39 -0
  135. package/es/components/tearsheet-preview/_story-assets/step-tearsheet-preview.js +264 -0
  136. package/es/components/tearsheet-preview/_story-assets/step-tearsheet-preview.js.map +1 -0
  137. package/es/components/tearsheet-preview/index.d.ts +17 -0
  138. package/es/components/tearsheet-preview/index.js +17 -0
  139. package/es/components/tearsheet-preview/index.js.map +1 -0
  140. package/es/components/tearsheet-preview/stack-signal.d.ts +27 -0
  141. package/es/components/tearsheet-preview/stack-signal.js +103 -0
  142. package/es/components/tearsheet-preview/stack-signal.js.map +1 -0
  143. package/es/components/tearsheet-preview/tearsheet-body.d.ts +399 -0
  144. package/es/components/tearsheet-preview/tearsheet-body.js +131 -0
  145. package/es/components/tearsheet-preview/tearsheet-body.js.map +1 -0
  146. package/es/components/tearsheet-preview/tearsheet-footer.d.ts +385 -0
  147. package/es/components/tearsheet-preview/tearsheet-footer.js +56 -0
  148. package/es/components/tearsheet-preview/tearsheet-footer.js.map +1 -0
  149. package/es/components/tearsheet-preview/tearsheet-header-content.d.ts +407 -0
  150. package/es/components/tearsheet-preview/tearsheet-header-content.js +185 -0
  151. package/es/components/tearsheet-preview/tearsheet-header-content.js.map +1 -0
  152. package/es/components/tearsheet-preview/tearsheet-header-content.scss.js +13 -0
  153. package/es/components/tearsheet-preview/tearsheet-header-content.scss.js.map +1 -0
  154. package/es/components/tearsheet-preview/tearsheet-header.d.ts +419 -0
  155. package/es/components/tearsheet-preview/tearsheet-header.js +204 -0
  156. package/es/components/tearsheet-preview/tearsheet-header.js.map +1 -0
  157. package/es/components/tearsheet-preview/tearsheet-header.scss.js +13 -0
  158. package/es/components/tearsheet-preview/tearsheet-header.scss.js.map +1 -0
  159. package/es/components/tearsheet-preview/tearsheet-influencer.d.ts +398 -0
  160. package/es/components/tearsheet-preview/tearsheet-influencer.js +92 -0
  161. package/es/components/tearsheet-preview/tearsheet-influencer.js.map +1 -0
  162. package/es/components/tearsheet-preview/tearsheet-navigation-bar.d.ts +384 -0
  163. package/es/components/tearsheet-preview/tearsheet-navigation-bar.js +51 -0
  164. package/es/components/tearsheet-preview/tearsheet-navigation-bar.js.map +1 -0
  165. package/es/components/tearsheet-preview/tearsheet-navigation-bar.scss.js +13 -0
  166. package/es/components/tearsheet-preview/tearsheet-navigation-bar.scss.js.map +1 -0
  167. package/es/components/tearsheet-preview/tearsheet-scroller.d.ts +40 -0
  168. package/es/components/tearsheet-preview/tearsheet-scroller.js +112 -0
  169. package/es/components/tearsheet-preview/tearsheet-scroller.js.map +1 -0
  170. package/es/components/tearsheet-preview/tearsheet-signal.d.ts +24 -0
  171. package/es/components/tearsheet-preview/tearsheet-signal.js +47 -0
  172. package/es/components/tearsheet-preview/tearsheet-signal.js.map +1 -0
  173. package/es/components/tearsheet-preview/tearsheet-summary-content.d.ts +399 -0
  174. package/es/components/tearsheet-preview/tearsheet-summary-content.js +97 -0
  175. package/es/components/tearsheet-preview/tearsheet-summary-content.js.map +1 -0
  176. package/es/components/tearsheet-preview/tearsheet.d.ts +491 -0
  177. package/es/components/tearsheet-preview/tearsheet.js +414 -0
  178. package/es/components/tearsheet-preview/tearsheet.js.map +1 -0
  179. package/es/components/tearsheet-preview/tearsheet.scss.js +13 -0
  180. package/es/components/tearsheet-preview/tearsheet.scss.js.map +1 -0
  181. package/es/components/tearsheet-preview/tearsheet.test.d.ts +7 -0
  182. package/es/components/tearsheet-preview/tearsheet.test.js +566 -0
  183. package/es/components/tearsheet-preview/tearsheet.test.js.map +1 -0
  184. package/es/components/truncated-text/truncated-text.js +2 -2
  185. package/es/components/truncated-text/truncated-text.js.map +1 -1
  186. package/es/components/truncated-text/truncated-text.test.js.map +1 -1
  187. package/es/components/user-avatar/user-avatar.js +2 -2
  188. package/es/components/user-avatar/user-avatar.js.map +1 -1
  189. package/es/components/user-avatar/user-avatar.scss.js +1 -1
  190. package/es/components/user-avatar/user-avatar.test.js.map +1 -1
  191. package/es/globals/internal/pconsole.js.map +1 -1
  192. package/es/globals/internal/storybook-cdn.js.map +1 -1
  193. package/es/globals/js/utils/collapsible-controller.d.ts +25 -0
  194. package/es/globals/js/utils/collapsible-controller.js +71 -0
  195. package/es/globals/js/utils/collapsible-controller.js.map +1 -0
  196. package/es/globals/js/utils/getSupportedLocale.js.map +1 -1
  197. package/es/globals/js/utils/match-media-controller.d.ts +16 -0
  198. package/es/globals/js/utils/match-media-controller.js +29 -0
  199. package/es/globals/js/utils/match-media-controller.js.map +1 -0
  200. package/es/globals/settings.js.map +1 -1
  201. package/es/index.d.ts +9 -0
  202. package/es/index.js +9 -0
  203. package/es/index.js.map +1 -1
  204. package/es/node_modules/@carbon/layout/es/index.js +2 -0
  205. package/es/node_modules/@carbon/layout/es/index.js.map +1 -1
  206. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  207. package/es/patterns/step-flow/_story-assets/step-full-page.js.map +1 -1
  208. package/es/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -1
  209. package/es/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -1
  210. package/es/patterns/step-flow/step-flow-signal.js.map +1 -1
  211. package/es/patterns/step-flow/step-flow-signal.test.js.map +1 -1
  212. package/es/patterns/step-flow/step-group.js.map +1 -1
  213. package/es/utilities/makeDraggable/makeDraggable.js.map +1 -1
  214. package/es/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -1
  215. package/es/utilities/snapscroll/snapscroll.js.map +1 -1
  216. package/es/utilities/snapscroll/snapscroll.test.js.map +1 -1
  217. package/es-custom/components/about-modal/about-modal-helpers.js.map +1 -1
  218. package/es-custom/components/about-modal/about-modal.js +2 -2
  219. package/es-custom/components/about-modal/about-modal.js.map +1 -1
  220. package/es-custom/components/about-modal/about-modal.scss.js +1 -1
  221. package/es-custom/components/about-modal/about-modal.test.js.map +1 -1
  222. package/es-custom/components/big-number/big-number-skeleton.js +2 -2
  223. package/es-custom/components/big-number/big-number-skeleton.js.map +1 -1
  224. package/es-custom/components/big-number/big-number-skeleton.scss.js +1 -1
  225. package/es-custom/components/big-number/big-number.js +2 -2
  226. package/es-custom/components/big-number/big-number.js.map +1 -1
  227. package/es-custom/components/big-number/big-number.scss.js +1 -1
  228. package/es-custom/components/big-number/big-number.test.js.map +1 -1
  229. package/es-custom/components/big-number/constants.js.map +1 -1
  230. package/es-custom/components/checklist/checklist-chart.js +2 -2
  231. package/es-custom/components/checklist/checklist-chart.js.map +1 -1
  232. package/es-custom/components/checklist/checklist-group.js +2 -2
  233. package/es-custom/components/checklist/checklist-group.js.map +1 -1
  234. package/es-custom/components/checklist/checklist-icon.js +2 -2
  235. package/es-custom/components/checklist/checklist-icon.js.map +1 -1
  236. package/es-custom/components/checklist/checklist-item.js.map +1 -1
  237. package/es-custom/components/checklist/checklist.js.map +1 -1
  238. package/es-custom/components/checklist/checklist.scss.js +1 -1
  239. package/es-custom/components/checklist/checklist.test.js.map +1 -1
  240. package/es-custom/components/checklist/checklist.types.js.map +1 -1
  241. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +2 -2
  242. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -1
  243. package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -1
  244. package/es-custom/components/coachmark/coachmark-beacon/defs.js.map +1 -1
  245. package/es-custom/components/coachmark/coachmark-body.js +2 -2
  246. package/es-custom/components/coachmark/coachmark-body.js.map +1 -1
  247. package/es-custom/components/coachmark/coachmark-context.js.map +1 -1
  248. package/es-custom/components/coachmark/coachmark-header.js +2 -2
  249. package/es-custom/components/coachmark/coachmark-header.js.map +1 -1
  250. package/es-custom/components/coachmark/coachmark-helpers.js.map +1 -1
  251. package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.js +2 -2
  252. package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.js.map +1 -1
  253. package/es-custom/components/coachmark/coachmark-tagline/coachmark-tagline.test.js.map +1 -1
  254. package/es-custom/components/coachmark/coachmark.js +2 -2
  255. package/es-custom/components/coachmark/coachmark.js.map +1 -1
  256. package/es-custom/components/coachmark/coachmark.test.js.map +1 -1
  257. package/es-custom/components/full-page-error/full-page-error.js +2 -2
  258. package/es-custom/components/full-page-error/full-page-error.js.map +1 -1
  259. package/es-custom/components/full-page-error/full-page-error.scss.js +1 -1
  260. package/es-custom/components/full-page-error/full-page-error.test.js.map +1 -1
  261. package/es-custom/components/full-page-error/types.js.map +1 -1
  262. package/es-custom/components/guide-banner/guide-banner-element.js.map +1 -1
  263. package/es-custom/components/guide-banner/guide-banner-element.scss.js +1 -1
  264. package/es-custom/components/guide-banner/guide-banner-element.test.js.map +1 -1
  265. package/es-custom/components/guide-banner/guide-banner.js +2 -2
  266. package/es-custom/components/guide-banner/guide-banner.js.map +1 -1
  267. package/es-custom/components/guide-banner/guide-banner.scss.js +1 -1
  268. package/es-custom/components/guide-banner/guide-banner.test.js.map +1 -1
  269. package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js +2 -2
  270. package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -1
  271. package/es-custom/components/interstitial-screen/interstitial-screen-body.js +2 -2
  272. package/es-custom/components/interstitial-screen/interstitial-screen-body.js.map +1 -1
  273. package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js +1 -1
  274. package/es-custom/components/interstitial-screen/interstitial-screen-context.js.map +1 -1
  275. package/es-custom/components/interstitial-screen/interstitial-screen-footer.js.map +1 -1
  276. package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js +1 -1
  277. package/es-custom/components/interstitial-screen/interstitial-screen-header.js +2 -2
  278. package/es-custom/components/interstitial-screen/interstitial-screen-header.js.map +1 -1
  279. package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js +1 -1
  280. package/es-custom/components/interstitial-screen/interstitial-screen.js +2 -2
  281. package/es-custom/components/interstitial-screen/interstitial-screen.js.map +1 -1
  282. package/es-custom/components/interstitial-screen/interstitial-screen.scss.js +1 -1
  283. package/es-custom/components/interstitial-screen/interstitial-screen.test.js.map +1 -1
  284. package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -1
  285. package/es-custom/components/notification-panel/notification-footer.js +2 -2
  286. package/es-custom/components/notification-panel/notification-footer.js.map +1 -1
  287. package/es-custom/components/notification-panel/notification-footer.scss.js +1 -1
  288. package/es-custom/components/notification-panel/notification-footer.test.js.map +1 -1
  289. package/es-custom/components/notification-panel/notification-panel.d.ts +2 -0
  290. package/es-custom/components/notification-panel/notification-panel.js +38 -15
  291. package/es-custom/components/notification-panel/notification-panel.js.map +1 -1
  292. package/es-custom/components/notification-panel/notification-panel.scss.js +1 -1
  293. package/es-custom/components/notification-panel/notification-panel.test.js +22 -0
  294. package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -1
  295. package/es-custom/components/notification-panel/notification.js +2 -2
  296. package/es-custom/components/notification-panel/notification.js.map +1 -1
  297. package/es-custom/components/notification-panel/notification.scss.js +1 -1
  298. package/es-custom/components/notification-panel/notification.test.js.map +1 -1
  299. package/es-custom/components/options-tile/options-tile.js +2 -2
  300. package/es-custom/components/options-tile/options-tile.js.map +1 -1
  301. package/es-custom/components/options-tile/options-tile.scss.js +1 -1
  302. package/es-custom/components/options-tile/options-tile.test.js.map +1 -1
  303. package/es-custom/components/page-header/_story-assets/overflowHandler.js.map +1 -1
  304. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +1 -1
  305. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js +3 -3
  306. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -1
  307. package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
  308. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +1 -1
  309. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js +3 -3
  310. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -1
  311. package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
  312. package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -1
  313. package/es-custom/components/page-header/page-header-breadcrumb.js +2 -2
  314. package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -1
  315. package/es-custom/components/page-header/page-header-content-text.js +2 -2
  316. package/es-custom/components/page-header/page-header-content-text.js.map +1 -1
  317. package/es-custom/components/page-header/page-header-content.js.map +1 -1
  318. package/es-custom/components/page-header/page-header-hero-image.js +2 -2
  319. package/es-custom/components/page-header/page-header-hero-image.js.map +1 -1
  320. package/es-custom/components/page-header/page-header-scroller.js.map +1 -1
  321. package/es-custom/components/page-header/page-header-tabs.js +2 -2
  322. package/es-custom/components/page-header/page-header-tabs.js.map +1 -1
  323. package/es-custom/components/page-header/page-header-title-breadcrumb.js +2 -2
  324. package/es-custom/components/page-header/page-header-title-breadcrumb.js.map +1 -1
  325. package/es-custom/components/page-header/page-header.figma.js.map +1 -1
  326. package/es-custom/components/page-header/page-header.js +2 -2
  327. package/es-custom/components/page-header/page-header.js.map +1 -1
  328. package/es-custom/components/page-header/page-header.test.js.map +1 -1
  329. package/es-custom/components/page-header/utils.js.map +1 -1
  330. package/es-custom/components/side-panel/_story-assets/index.js.map +1 -1
  331. package/es-custom/components/side-panel/defs.js.map +1 -1
  332. package/es-custom/components/side-panel/side-panel.js +11 -4
  333. package/es-custom/components/side-panel/side-panel.js.map +1 -1
  334. package/es-custom/components/side-panel/side-panel.scss.js +1 -1
  335. package/es-custom/components/side-panel/side-panel.test.js +3 -3
  336. package/es-custom/components/side-panel/side-panel.test.js.map +1 -1
  337. package/es-custom/components/tearsheet/defs.js.map +1 -1
  338. package/es-custom/components/tearsheet/tearsheet.js +2 -2
  339. package/es-custom/components/tearsheet/tearsheet.js.map +1 -1
  340. package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
  341. package/es-custom/components/tearsheet/tearsheet.test.js +1 -1
  342. package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -1
  343. package/es-custom/components/tearsheet/utils.js.map +1 -1
  344. package/es-custom/components/tearsheet-preview/_story-assets/_storybook-styles.scss.js +13 -0
  345. package/es-custom/components/tearsheet-preview/_story-assets/_storybook-styles.scss.js.map +1 -0
  346. package/es-custom/components/tearsheet-preview/_story-assets/stacking-tearsheet.d.ts +30 -0
  347. package/es-custom/components/tearsheet-preview/_story-assets/stacking-tearsheet.js +320 -0
  348. package/es-custom/components/tearsheet-preview/_story-assets/stacking-tearsheet.js.map +1 -0
  349. package/es-custom/components/tearsheet-preview/_story-assets/step-tearsheet-preview.d.ts +39 -0
  350. package/es-custom/components/tearsheet-preview/_story-assets/step-tearsheet-preview.js +264 -0
  351. package/es-custom/components/tearsheet-preview/_story-assets/step-tearsheet-preview.js.map +1 -0
  352. package/es-custom/components/tearsheet-preview/index.d.ts +17 -0
  353. package/es-custom/components/tearsheet-preview/index.js +17 -0
  354. package/es-custom/components/tearsheet-preview/index.js.map +1 -0
  355. package/es-custom/components/tearsheet-preview/stack-signal.d.ts +27 -0
  356. package/es-custom/components/tearsheet-preview/stack-signal.js +103 -0
  357. package/es-custom/components/tearsheet-preview/stack-signal.js.map +1 -0
  358. package/es-custom/components/tearsheet-preview/tearsheet-body.d.ts +399 -0
  359. package/es-custom/components/tearsheet-preview/tearsheet-body.js +131 -0
  360. package/es-custom/components/tearsheet-preview/tearsheet-body.js.map +1 -0
  361. package/es-custom/components/tearsheet-preview/tearsheet-footer.d.ts +385 -0
  362. package/es-custom/components/tearsheet-preview/tearsheet-footer.js +56 -0
  363. package/es-custom/components/tearsheet-preview/tearsheet-footer.js.map +1 -0
  364. package/es-custom/components/tearsheet-preview/tearsheet-header-content.d.ts +407 -0
  365. package/es-custom/components/tearsheet-preview/tearsheet-header-content.js +185 -0
  366. package/es-custom/components/tearsheet-preview/tearsheet-header-content.js.map +1 -0
  367. package/es-custom/components/tearsheet-preview/tearsheet-header-content.scss.js +13 -0
  368. package/es-custom/components/tearsheet-preview/tearsheet-header-content.scss.js.map +1 -0
  369. package/es-custom/components/tearsheet-preview/tearsheet-header.d.ts +419 -0
  370. package/es-custom/components/tearsheet-preview/tearsheet-header.js +204 -0
  371. package/es-custom/components/tearsheet-preview/tearsheet-header.js.map +1 -0
  372. package/es-custom/components/tearsheet-preview/tearsheet-header.scss.js +13 -0
  373. package/es-custom/components/tearsheet-preview/tearsheet-header.scss.js.map +1 -0
  374. package/es-custom/components/tearsheet-preview/tearsheet-influencer.d.ts +398 -0
  375. package/es-custom/components/tearsheet-preview/tearsheet-influencer.js +92 -0
  376. package/es-custom/components/tearsheet-preview/tearsheet-influencer.js.map +1 -0
  377. package/es-custom/components/tearsheet-preview/tearsheet-navigation-bar.d.ts +384 -0
  378. package/es-custom/components/tearsheet-preview/tearsheet-navigation-bar.js +51 -0
  379. package/es-custom/components/tearsheet-preview/tearsheet-navigation-bar.js.map +1 -0
  380. package/es-custom/components/tearsheet-preview/tearsheet-navigation-bar.scss.js +13 -0
  381. package/es-custom/components/tearsheet-preview/tearsheet-navigation-bar.scss.js.map +1 -0
  382. package/es-custom/components/tearsheet-preview/tearsheet-scroller.d.ts +40 -0
  383. package/es-custom/components/tearsheet-preview/tearsheet-scroller.js +112 -0
  384. package/es-custom/components/tearsheet-preview/tearsheet-scroller.js.map +1 -0
  385. package/es-custom/components/tearsheet-preview/tearsheet-signal.d.ts +24 -0
  386. package/es-custom/components/tearsheet-preview/tearsheet-signal.js +47 -0
  387. package/es-custom/components/tearsheet-preview/tearsheet-signal.js.map +1 -0
  388. package/es-custom/components/tearsheet-preview/tearsheet-summary-content.d.ts +399 -0
  389. package/es-custom/components/tearsheet-preview/tearsheet-summary-content.js +97 -0
  390. package/es-custom/components/tearsheet-preview/tearsheet-summary-content.js.map +1 -0
  391. package/es-custom/components/tearsheet-preview/tearsheet.d.ts +491 -0
  392. package/es-custom/components/tearsheet-preview/tearsheet.js +414 -0
  393. package/es-custom/components/tearsheet-preview/tearsheet.js.map +1 -0
  394. package/es-custom/components/tearsheet-preview/tearsheet.scss.js +13 -0
  395. package/es-custom/components/tearsheet-preview/tearsheet.scss.js.map +1 -0
  396. package/es-custom/components/tearsheet-preview/tearsheet.test.d.ts +7 -0
  397. package/es-custom/components/tearsheet-preview/tearsheet.test.js +566 -0
  398. package/es-custom/components/tearsheet-preview/tearsheet.test.js.map +1 -0
  399. package/es-custom/components/truncated-text/truncated-text.js +2 -2
  400. package/es-custom/components/truncated-text/truncated-text.js.map +1 -1
  401. package/es-custom/components/truncated-text/truncated-text.test.js.map +1 -1
  402. package/es-custom/components/user-avatar/user-avatar.js +2 -2
  403. package/es-custom/components/user-avatar/user-avatar.js.map +1 -1
  404. package/es-custom/components/user-avatar/user-avatar.scss.js +1 -1
  405. package/es-custom/components/user-avatar/user-avatar.test.js.map +1 -1
  406. package/es-custom/globals/internal/pconsole.js.map +1 -1
  407. package/es-custom/globals/internal/storybook-cdn.js.map +1 -1
  408. package/es-custom/globals/js/utils/collapsible-controller.d.ts +25 -0
  409. package/es-custom/globals/js/utils/collapsible-controller.js +71 -0
  410. package/es-custom/globals/js/utils/collapsible-controller.js.map +1 -0
  411. package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -1
  412. package/es-custom/globals/js/utils/match-media-controller.d.ts +16 -0
  413. package/es-custom/globals/js/utils/match-media-controller.js +29 -0
  414. package/es-custom/globals/js/utils/match-media-controller.js.map +1 -0
  415. package/es-custom/globals/settings.js.map +1 -1
  416. package/es-custom/index.d.ts +9 -0
  417. package/es-custom/index.js +9 -0
  418. package/es-custom/index.js.map +1 -1
  419. package/es-custom/node_modules/@carbon/layout/es/index.js +2 -0
  420. package/es-custom/node_modules/@carbon/layout/es/index.js.map +1 -1
  421. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  422. package/es-custom/patterns/step-flow/_story-assets/step-full-page.js.map +1 -1
  423. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -1
  424. package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -1
  425. package/es-custom/patterns/step-flow/step-flow-signal.js.map +1 -1
  426. package/es-custom/patterns/step-flow/step-flow-signal.test.js.map +1 -1
  427. package/es-custom/patterns/step-flow/step-group.js.map +1 -1
  428. package/es-custom/utilities/makeDraggable/makeDraggable.js.map +1 -1
  429. package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -1
  430. package/es-custom/utilities/snapscroll/snapscroll.js.map +1 -1
  431. package/es-custom/utilities/snapscroll/snapscroll.test.js.map +1 -1
  432. package/lib/components/coachmark/coachmark-beacon/defs.js.map +1 -1
  433. package/lib/components/notification-panel/notification-panel.d.ts +2 -0
  434. package/lib/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +1 -1
  435. package/lib/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +1 -1
  436. package/lib/components/side-panel/defs.js.map +1 -1
  437. package/lib/components/tearsheet/defs.js.map +1 -1
  438. package/lib/components/tearsheet-preview/_story-assets/stacking-tearsheet.d.ts +30 -0
  439. package/lib/components/tearsheet-preview/_story-assets/step-tearsheet-preview.d.ts +39 -0
  440. package/lib/components/tearsheet-preview/index.d.ts +17 -0
  441. package/lib/components/tearsheet-preview/stack-signal.d.ts +27 -0
  442. package/lib/components/tearsheet-preview/tearsheet-body.d.ts +399 -0
  443. package/lib/components/tearsheet-preview/tearsheet-footer.d.ts +385 -0
  444. package/lib/components/tearsheet-preview/tearsheet-header-content.d.ts +407 -0
  445. package/lib/components/tearsheet-preview/tearsheet-header.d.ts +419 -0
  446. package/lib/components/tearsheet-preview/tearsheet-influencer.d.ts +398 -0
  447. package/lib/components/tearsheet-preview/tearsheet-navigation-bar.d.ts +384 -0
  448. package/lib/components/tearsheet-preview/tearsheet-scroller.d.ts +40 -0
  449. package/lib/components/tearsheet-preview/tearsheet-signal.d.ts +24 -0
  450. package/lib/components/tearsheet-preview/tearsheet-summary-content.d.ts +399 -0
  451. package/lib/components/tearsheet-preview/tearsheet.d.ts +491 -0
  452. package/lib/components/tearsheet-preview/tearsheet.test.d.ts +7 -0
  453. package/lib/globals/js/utils/collapsible-controller.d.ts +25 -0
  454. package/lib/globals/js/utils/collapsible-controller.js +73 -0
  455. package/lib/globals/js/utils/collapsible-controller.js.map +1 -0
  456. package/lib/globals/js/utils/getSupportedLocale.js.map +1 -1
  457. package/lib/globals/js/utils/match-media-controller.d.ts +16 -0
  458. package/lib/globals/js/utils/match-media-controller.js +31 -0
  459. package/lib/globals/js/utils/match-media-controller.js.map +1 -0
  460. package/lib/globals/settings.js.map +1 -1
  461. package/lib/index.d.ts +9 -0
  462. package/package.json +9 -8
  463. package/scss/components/notification-panel/notification.scss +14 -1
  464. package/scss/components/tearsheet-preview/_story-assets/_storybook-styles.scss +87 -0
  465. package/scss/components/tearsheet-preview/tearsheet-header-content.scss +190 -0
  466. package/scss/components/tearsheet-preview/tearsheet-header.scss +146 -0
  467. package/scss/components/tearsheet-preview/tearsheet-navigation-bar.scss +27 -0
  468. package/scss/components/tearsheet-preview/tearsheet.scss +254 -0
  469. package/telemetry.yml +33 -7
@@ -0,0 +1,414 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { __decorate } from 'tslib';
9
+ import { LitElement, html } from 'lit';
10
+ import { property, state, query } from 'lit/decorators.js';
11
+ import { prefix } from '../../globals/settings.js';
12
+ import styles from './tearsheet.scss.js';
13
+ import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
14
+ import { classMap } from 'lit-html/directives/class-map.js';
15
+ import { MatchMediaController } from '../../globals/js/utils/match-media-controller.js';
16
+ import { breakpoints } from '../../node_modules/@carbon/layout/es/index.js';
17
+ import { updateTearsheetSignals, blockClass } from './tearsheet-signal.js';
18
+ import { SignalWatcher } from '@lit-labs/signals';
19
+ import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener';
20
+ import { ifDefined } from 'lit/directives/if-defined.js';
21
+ import { stackManager } from './stack-signal.js';
22
+
23
+ /**
24
+ * @license
25
+ *
26
+ * Copyright IBM Corp. 2026
27
+ *
28
+ * This source code is licensed under the Apache-2.0 license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */
31
+ /**
32
+ * Tearsheet component - A slide-out panel for displaying detailed content.
33
+ *
34
+ * @element c4p-preview-tearsheet
35
+ * @slot header - The header content of the tearsheet
36
+ * @slot influencer - Optional left sidebar content (wide variant only)
37
+ * @slot body - Main body content
38
+ * @slot footer - Footer content with actions
39
+ * @fires c4p-preview-tearsheet-beingclosed - Fired when the tearsheet is about to close
40
+ * @fires c4p-preview-tearsheet-closed - Fired after the tearsheet has closed
41
+ */
42
+ let CDSTearsheet = class CDSTearsheet extends SignalWatcher(HostListenerMixin(LitElement)) {
43
+ constructor() {
44
+ super(...arguments);
45
+ /**
46
+ * Specifies whether the tearsheet is currently open.
47
+ */
48
+ this.open = false;
49
+ /**
50
+ * User can pass any class names that will be added to the modal container
51
+ */
52
+ this.containerClassName = '';
53
+ /**
54
+ * Default influencer takes 256px, this allows override eg: 300px, 20rem
55
+ */
56
+ this.influencerWidth = '';
57
+ /**
58
+ * Default summary content takes 256px, this allows override eg: 300px, 20rem
59
+ */
60
+ this.summaryContentWidth = '';
61
+ /**
62
+ * Defines the gap from top of the viewport. Defaulted to 3rem
63
+ */
64
+ this.verticalGap = '';
65
+ /**
66
+ * Default to wide variant. Pass in narrow for narrow tearsheet
67
+ */
68
+ this.variant = 'wide';
69
+ /**
70
+ * Specify the CSS selectors that match the floating menus (comma-separated)
71
+ */
72
+ this.selectorsFloatingMenus = '';
73
+ /**
74
+ * Specify a CSS selector that matches the DOM element that should be focused when the Modal opens
75
+ */
76
+ this.selectorPrimaryFocus = '';
77
+ /**
78
+ * Prevents the modal from closing when clicking outside
79
+ */
80
+ this.preventCloseOnClickOutside = false;
81
+ /**
82
+ * Unique ID for this tearsheet instance
83
+ */
84
+ this.uniqueId = `tearsheet-${Math.random().toString(36).substr(2, 9)}`;
85
+ /**
86
+ * Internal state for tracking if the tearsheet is in small screen mode
87
+ */
88
+ this.isSm = false;
89
+ this.smMediaQuery = `(max-width: ${breakpoints.md.width})`;
90
+ this.isSmallDevice = new MatchMediaController(this, this.smMediaQuery, false);
91
+ /**
92
+ * Handle influencer slot change
93
+ */
94
+ this.handleInfluencerSlotChange = (e) => {
95
+ const slot = e.target;
96
+ this.updateInfluencerVisibility(slot);
97
+ };
98
+ /**
99
+ * Handle close button click from the header
100
+ * This is an internal event that triggers the tearsheet to close
101
+ */
102
+ this.handleHeaderCloseButtonClick = (event) => {
103
+ // Stop the internal event from propagating
104
+ event.stopPropagation();
105
+ this.closeTearsheet();
106
+ };
107
+ /**
108
+ * Handle close event from the modal (ESC key, click outside, etc.)
109
+ */
110
+ this.handleClose = (event) => {
111
+ this.closeTearsheet(event, true);
112
+ };
113
+ }
114
+ /**
115
+ * Checks if the tearsheet has a decorator (AI label or other)
116
+ */
117
+ get hasDecorator() {
118
+ const headerElement = this.querySelector(`${prefix}-tearsheet-header`);
119
+ if (!headerElement) {
120
+ return false;
121
+ }
122
+ const decorator = headerElement.querySelector('[slot="decorator"]');
123
+ return !!decorator;
124
+ }
125
+ /**
126
+ * Checks if the tearsheet has an AI label decorator
127
+ */
128
+ get hasAILabel() {
129
+ const headerElement = this.querySelector(`${prefix}-tearsheet-header`);
130
+ if (!headerElement) {
131
+ return false;
132
+ }
133
+ const decorator = headerElement.querySelector('[slot="decorator"]');
134
+ if (!decorator) {
135
+ return false;
136
+ }
137
+ const tagName = decorator.tagName.toLowerCase();
138
+ return tagName === 'cds-custom-ai-label' || tagName === `${prefix}-ai-label`;
139
+ }
140
+ connectedCallback() {
141
+ super.connectedCallback();
142
+ // Set visibility class
143
+ if (this.open) {
144
+ this.classList.add('is-visible');
145
+ }
146
+ else {
147
+ this.classList.remove('is-visible');
148
+ }
149
+ // Listen for close button click from header
150
+ this.addEventListener(`${prefix}-tearsheet-header-close-button-clicked`, this.handleHeaderCloseButtonClick);
151
+ }
152
+ firstUpdated(_changedProperties) {
153
+ var _a;
154
+ this.updateCSSCustomProperties();
155
+ this.isSm = ((_a = this.isSmallDevice) === null || _a === void 0 ? void 0 : _a.matches) || this.variant === 'narrow';
156
+ // Initialize all signals on first update
157
+ updateTearsheetSignals({
158
+ variant: this.variant,
159
+ isSm: this.isSm,
160
+ open: this.open,
161
+ hasAILabel: this.hasAILabel,
162
+ });
163
+ }
164
+ updated(_changedProperties) {
165
+ this.updateIsSmState(_changedProperties);
166
+ this.handleOpenPropertyChange(_changedProperties);
167
+ this.updateCSSPropertiesIfNeeded(_changedProperties);
168
+ if (_changedProperties.has('variant')) {
169
+ updateTearsheetSignals({ variant: this.variant });
170
+ }
171
+ if (_changedProperties.has('isSm')) {
172
+ this.updateInfluencerVisibility();
173
+ }
174
+ this.updateStackPropertiesIfNeeded();
175
+ }
176
+ updateIsSmState(_changedProperties) {
177
+ var _a;
178
+ const previousIsSm = this.isSm;
179
+ this.isSm = ((_a = this.isSmallDevice) === null || _a === void 0 ? void 0 : _a.matches) || this.variant === 'narrow';
180
+ if (this.isSm !== previousIsSm) {
181
+ updateTearsheetSignals({ isSm: this.isSm });
182
+ }
183
+ }
184
+ handleOpenPropertyChange(_changedProperties) {
185
+ if (!_changedProperties.has('open')) {
186
+ return;
187
+ }
188
+ updateTearsheetSignals({ open: this.open });
189
+ if (this.modalBodyElement) {
190
+ stackManager.notifyStack(this.uniqueId, this.open, this.modalBodyElement);
191
+ }
192
+ this.classList.toggle('is-visible', this.open);
193
+ this.updateStackProperties();
194
+ }
195
+ updateCSSPropertiesIfNeeded(_changedProperties) {
196
+ const hasRelevantChanges = _changedProperties.has('influencerWidth') ||
197
+ _changedProperties.has('summaryContentWidth') ||
198
+ _changedProperties.has('verticalGap');
199
+ if (hasRelevantChanges) {
200
+ this.updateCSSCustomProperties();
201
+ }
202
+ }
203
+ updateStackPropertiesIfNeeded() {
204
+ const stackState = stackManager.state;
205
+ if (stackState.stack.length > 0) {
206
+ this.updateStackProperties();
207
+ }
208
+ }
209
+ /**
210
+ * Update CSS custom properties for stacking
211
+ */
212
+ updateStackProperties() {
213
+ const stackState = stackManager.state;
214
+ const depth = stackManager.getDepth(this.uniqueId);
215
+ const scaleFactor = stackManager.getScaleFactor(this.uniqueId);
216
+ const blockSizeChange = stackManager.getBlockSizeChange(this.uniqueId);
217
+ // Manage --stack-activated class on host element
218
+ if (stackState.stack.length > 1) {
219
+ this.classList.add(`${blockClass}--stack-activated`);
220
+ }
221
+ else {
222
+ this.classList.remove(`${blockClass}--stack-activated`);
223
+ }
224
+ if (depth !== -1) {
225
+ this.style.setProperty('--stack-depth', depth.toString());
226
+ this.style.setProperty('--scale-factor', scaleFactor.toString());
227
+ this.style.setProperty('--block-size-change', blockSizeChange);
228
+ }
229
+ }
230
+ disconnectedCallback() {
231
+ super.disconnectedCallback();
232
+ // Remove event listener
233
+ this.removeEventListener(`${prefix}-tearsheet-header-close-button-clicked`, this.handleHeaderCloseButtonClick);
234
+ // Notify stack manager that this tearsheet is closing
235
+ stackManager.notifyStack(this.uniqueId, false, null);
236
+ // Clean up CSS custom properties
237
+ if (this.influencerWidth) {
238
+ document.documentElement.style.removeProperty('--tearsheet-influencer-width');
239
+ }
240
+ if (this.summaryContentWidth) {
241
+ document.documentElement.style.removeProperty('--tearsheet-summary-content-width');
242
+ }
243
+ if (this.verticalGap) {
244
+ document.documentElement.style.removeProperty('--tearsheet-vertical-gap');
245
+ }
246
+ }
247
+ /**
248
+ * Update CSS custom properties for dynamic styling
249
+ */
250
+ updateCSSCustomProperties() {
251
+ if (this.influencerWidth) {
252
+ document.documentElement.style.setProperty('--tearsheet-influencer-width', this.influencerWidth);
253
+ }
254
+ if (this.summaryContentWidth) {
255
+ document.documentElement.style.setProperty('--tearsheet-summary-content-width', this.summaryContentWidth);
256
+ }
257
+ if (this.verticalGap) {
258
+ document.documentElement.style.setProperty('--tearsheet-vertical-gap', this.verticalGap);
259
+ }
260
+ }
261
+ /**
262
+ * Update influencer visibility based on slot content and screen size
263
+ * Handles both slot changes and screen size changes
264
+ */
265
+ updateInfluencerVisibility(slot) {
266
+ var _a;
267
+ const influencerSlot = slot ||
268
+ ((_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="influencer"]'));
269
+ if (!influencerSlot) {
270
+ return;
271
+ }
272
+ const hasContent = influencerSlot.assignedNodes({ flatten: true }).length > 0;
273
+ const shouldShow = hasContent && !this.isSm;
274
+ // Update CSS class on modal body
275
+ if (this.modalBodyElement) {
276
+ if (shouldShow) {
277
+ this.modalBodyElement.classList.add(`${blockClass}__body-layout--has-influencer`);
278
+ }
279
+ else {
280
+ this.modalBodyElement.classList.remove(`${blockClass}__body-layout--has-influencer`);
281
+ }
282
+ }
283
+ }
284
+ /**
285
+ * Common method to handle tearsheet close with proper event dispatching
286
+ * @param originalEvent - The original event that triggered the close (optional)
287
+ * @param useAsync - Whether to dispatch closed event asynchronously
288
+ */
289
+ closeTearsheet(originalEvent, useAsync = false) {
290
+ // Dispatch the beingclosed event (cancelable)
291
+ const beforeCloseEvent = new CustomEvent(`${prefix}-preview-tearsheet-beingclosed`, {
292
+ bubbles: true,
293
+ cancelable: true,
294
+ composed: true,
295
+ detail: {},
296
+ });
297
+ if (!this.dispatchEvent(beforeCloseEvent)) {
298
+ // If event was cancelled, prevent closing
299
+ if (originalEvent) {
300
+ originalEvent.preventDefault();
301
+ }
302
+ return;
303
+ }
304
+ // Close the tearsheet
305
+ this.open = false;
306
+ // Dispatch closed event
307
+ const dispatchClosedEvent = () => {
308
+ this.dispatchEvent(new CustomEvent(`${prefix}-preview-tearsheet-closed`, {
309
+ bubbles: true,
310
+ composed: true,
311
+ detail: {},
312
+ }));
313
+ };
314
+ if (useAsync) {
315
+ // Use microtask for async scenarios (e.g., click outside)
316
+ Promise.resolve().then(dispatchClosedEvent);
317
+ }
318
+ else {
319
+ dispatchClosedEvent();
320
+ }
321
+ }
322
+ /**
323
+ * Parse floating menu selectors from comma-separated string
324
+ */
325
+ getFloatingMenuSelectors() {
326
+ const defaultSelectors = [
327
+ `.${prefix}--overflow-menu-options`,
328
+ `.${prefix}--tooltip`,
329
+ '.flatpickr-calendar',
330
+ `.${blockClass}__container`,
331
+ `.${prefix}--menu`,
332
+ ];
333
+ const customSelectors = this.selectorsFloatingMenus
334
+ ? this.selectorsFloatingMenus.split(',').map((s) => s.trim())
335
+ : [];
336
+ return [...defaultSelectors, ...customSelectors].join(',');
337
+ }
338
+ render() {
339
+ const classes = classMap({
340
+ [blockClass]: true,
341
+ [`${blockClass}--wide`]: this.variant === 'wide',
342
+ [`${blockClass}--narrow`]: this.variant === 'narrow',
343
+ [`${blockClass}--has-ai-label`]: this.hasAILabel,
344
+ [`${blockClass}--has-decorator`]: this.hasDecorator && !this.hasAILabel,
345
+ });
346
+ const containerClasses = `${blockClass}__container ${this.containerClassName}`;
347
+ return html `<cds-custom-modal
348
+ class=${classes}
349
+ size=${this.variant === 'narrow' ? 'sm' : 'lg'}
350
+ ?open="${this.open}"
351
+ container-class="${containerClasses}"
352
+ ?prevent-close-on-click-outside="${this.preventCloseOnClickOutside}"
353
+ aria-label="${ifDefined(this.ariaLabel || undefined)}"
354
+ selector-primary-focus="${ifDefined(this.selectorPrimaryFocus || undefined)}"
355
+ selectors-floating-menus="${this.getFloatingMenuSelectors()}"
356
+ @cds-custom-modal-beingclosed="${this.handleClose}"
357
+ @cds-custom-modal-closed="${this.handleClose}"
358
+ ?full-width="${true}"
359
+ ai-label="${ifDefined(this.hasAILabel || undefined)}"
360
+ >
361
+ <slot name="decorator"></slot>
362
+ <slot name="header"></slot>
363
+ <cds-custom-modal-body class="${blockClass}__body-layout">
364
+ <slot
365
+ name="influencer"
366
+ @slotchange=${this.handleInfluencerSlotChange}
367
+ ></slot>
368
+ <slot name="body"></slot>
369
+ <slot name="footer"></slot>
370
+ </cds-custom-modal-body>
371
+ </cds-custom-modal>`;
372
+ }
373
+ };
374
+ CDSTearsheet.styles = styles;
375
+ __decorate([
376
+ property({ type: Boolean, reflect: true })
377
+ ], CDSTearsheet.prototype, "open", void 0);
378
+ __decorate([
379
+ property({ attribute: 'container-class-name' })
380
+ ], CDSTearsheet.prototype, "containerClassName", void 0);
381
+ __decorate([
382
+ property({ attribute: 'influencer-width' })
383
+ ], CDSTearsheet.prototype, "influencerWidth", void 0);
384
+ __decorate([
385
+ property({ attribute: 'summary-content-width' })
386
+ ], CDSTearsheet.prototype, "summaryContentWidth", void 0);
387
+ __decorate([
388
+ property({ attribute: 'vertical-gap' })
389
+ ], CDSTearsheet.prototype, "verticalGap", void 0);
390
+ __decorate([
391
+ property({ reflect: true })
392
+ ], CDSTearsheet.prototype, "variant", void 0);
393
+ __decorate([
394
+ property({ attribute: 'selectors-floating-menus' })
395
+ ], CDSTearsheet.prototype, "selectorsFloatingMenus", void 0);
396
+ __decorate([
397
+ property({ attribute: 'selector-primary-focus' })
398
+ ], CDSTearsheet.prototype, "selectorPrimaryFocus", void 0);
399
+ __decorate([
400
+ property({ type: Boolean, attribute: 'prevent-close-on-click-outside' })
401
+ ], CDSTearsheet.prototype, "preventCloseOnClickOutside", void 0);
402
+ __decorate([
403
+ state()
404
+ ], CDSTearsheet.prototype, "isSm", void 0);
405
+ __decorate([
406
+ query('cds-custom-modal-body')
407
+ ], CDSTearsheet.prototype, "modalBodyElement", void 0);
408
+ CDSTearsheet = __decorate([
409
+ carbonElement(`${prefix}-preview-tearsheet`)
410
+ ], CDSTearsheet);
411
+ var CDSTearsheet_default = CDSTearsheet;
412
+
413
+ export { CDSTearsheet_default as default };
414
+ //# sourceMappingURL=tearsheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tearsheet.js","sources":["../../../src/components/tearsheet-preview/tearsheet.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAgBH;;;;;;;;;;AAUG;AAEH,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,aAAa,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAA;AAAvE,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAY,KAAK;AAErB;;AAEG;QAEH,IAAA,CAAA,kBAAkB,GAAW,EAAE;AAE/B;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAW,EAAE;AAE5B;;AAEG;QAEH,IAAA,CAAA,mBAAmB,GAAW,EAAE;AAEhC;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAW,EAAE;AAExB;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAsB,MAAM;AAEnC;;AAEG;QAEH,IAAA,CAAA,sBAAsB,GAAW,EAAE;AAEnC;;AAEG;QAEH,IAAA,CAAA,oBAAoB,GAAW,EAAE;AAEjC;;AAEG;QAEH,IAAA,CAAA,0BAA0B,GAAY,KAAK;AAE3C;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAW,CAAA,UAAA,EAAa,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE;AAEjF;;AAEG;QAEK,IAAA,CAAA,IAAI,GAAY,KAAK;QAQrB,IAAA,CAAA,YAAY,GAAG,eAAe,WAAW,CAAC,EAAE,CAAC,KAAK,GAAG;AACrD,QAAA,IAAA,CAAA,aAAa,GAAG,IAAI,oBAAoB,CAC9C,IAAI,EACJ,IAAI,CAAC,YAAY,EACjB,KAAK,CACN;AAkOD;;AAEG;AACK,QAAA,IAAA,CAAA,0BAA0B,GAAG,CAAC,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AACd,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAMzB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;AACS,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAMpC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE;AACf,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,wBAAA,EAAA,MAAA,CAAA;AAMpC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE;AACf,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,sBAAA,EAAA,MAAA,CAAA;AAMlC,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gCAAgC,EAAE;AAC5B,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,4BAAA,EAAA,MAAA,CAAA;AAWpC,UAAA,CAAA;AADP,IAAA,KAAK;AACwB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAMtB,UAAA,CAAA;IADP,KAAK,CAAC,gBAAgB;AACgB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAtEnC,YAAY,GAAA,UAAA,CAAA;AADjB,IAAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,kBAAA,CAAoB;AACtC,CAAA,EAAA,YAAY,CAmbjB;AAED,2BAAe,YAAY;;;;"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { css } from 'lit';
9
+
10
+ var styles = css(["@keyframes cds-custom--hide-feedback{0%{opacity:1;visibility:inherit}to{opacity:0;visibility:hidden}}@keyframes cds-custom--show-feedback{0%{opacity:0;visibility:hidden}to{opacity:1;visibility:inherit}}@keyframes cds-custom--skeleton{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}to{opacity:.3;transform:scaleX(0);transform-origin:left}}.cds-custom--layout--size-xs{--cds-layout-size-height-context:var(--cds-layout-size-height-xs,1.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-xs{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xs,1.5rem))}.cds-custom--layout-constraint--size__min-xs{--cds-layout-size-height-min:var(--cds-layout-size-height-xs,1.5rem)}.cds-custom--layout-constraint--size__max-xs{--cds-layout-size-height-max:var(--cds-layout-size-height-xs,1.5rem)}.cds-custom--layout--size-sm{--cds-layout-size-height-context:var(--cds-layout-size-height-sm,2rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-sm{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-sm,2rem))}.cds-custom--layout-constraint--size__min-sm{--cds-layout-size-height-min:var(--cds-layout-size-height-sm,2rem)}.cds-custom--layout-constraint--size__max-sm{--cds-layout-size-height-max:var(--cds-layout-size-height-sm,2rem)}.cds-custom--layout--size-md{--cds-layout-size-height-context:var(--cds-layout-size-height-md,2.5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-md{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-md,2.5rem))}.cds-custom--layout-constraint--size__min-md{--cds-layout-size-height-min:var(--cds-layout-size-height-md,2.5rem)}.cds-custom--layout-constraint--size__max-md{--cds-layout-size-height-max:var(--cds-layout-size-height-md,2.5rem)}.cds-custom--layout--size-lg{--cds-layout-size-height-context:var(--cds-layout-size-height-lg,3rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-lg{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-lg,3rem))}.cds-custom--layout-constraint--size__min-lg{--cds-layout-size-height-min:var(--cds-layout-size-height-lg,3rem)}.cds-custom--layout-constraint--size__max-lg{--cds-layout-size-height-max:var(--cds-layout-size-height-lg,3rem)}.cds-custom--layout--size-xl{--cds-layout-size-height-context:var(--cds-layout-size-height-xl,4rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-xl,4rem))}.cds-custom--layout-constraint--size__min-xl{--cds-layout-size-height-min:var(--cds-layout-size-height-xl,4rem)}.cds-custom--layout-constraint--size__max-xl{--cds-layout-size-height-max:var(--cds-layout-size-height-xl,4rem)}.cds-custom--layout--size-2xl{--cds-layout-size-height-context:var(--cds-layout-size-height-2xl,5rem);--cds-layout-size-height:var(--cds-layout-size-height-context)}.cds-custom--layout-constraint--size__default-2xl{--cds-layout-size-height:var(--cds-layout-size-height-context,var(--cds-layout-size-height-2xl,5rem))}.cds-custom--layout-constraint--size__min-2xl{--cds-layout-size-height-min:var(--cds-layout-size-height-2xl,5rem)}.cds-custom--layout-constraint--size__max-2xl{--cds-layout-size-height-max:var(--cds-layout-size-height-2xl,5rem)}.cds-custom--layout--density-condensed{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-condensed,0.5rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds-custom--layout-constraint--density__default-condensed{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-condensed,0.5rem))}.cds-custom--layout-constraint--density__min-condensed{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds-custom--layout-constraint--density__max-condensed{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-condensed,0.5rem)}.cds-custom--layout--density-normal{--cds-layout-density-padding-inline-context:var(--cds-layout-density-padding-inline-normal,1rem);--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context)}.cds-custom--layout-constraint--density__default-normal{--cds-layout-density-padding-inline:var(--cds-layout-density-padding-inline-context,var(--cds-layout-density-padding-inline-normal,1rem))}.cds-custom--layout-constraint--density__min-normal{--cds-layout-density-padding-inline-min:var(--cds-layout-density-padding-inline-normal,1rem)}.cds-custom--layout-constraint--density__max-normal{--cds-layout-density-padding-inline-max:var(--cds-layout-density-padding-inline-normal,1rem)}:root{--cds-layout-size-height-xs:1.5rem;--cds-layout-size-height-sm:2rem;--cds-layout-size-height-md:2.5rem;--cds-layout-size-height-lg:3rem;--cds-layout-size-height-xl:4rem;--cds-layout-size-height-2xl:5rem;--cds-layout-size-height-min:0px;--cds-layout-size-height-max:999999999px;--cds-layout-density-padding-inline-condensed:0.5rem;--cds-layout-density-padding-inline-normal:1rem;--cds-layout-density-padding-inline-min:0px;--cds-layout-density-padding-inline-max:999999999px}.cds-custom--assistive-text,.cds-custom--visually-hidden{block-size:1px;border:0;margin:-1px;overflow:hidden;padding:0;position:absolute;clip:rect(0,0,0,0);inline-size:1px;visibility:inherit;white-space:nowrap}.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted){animation:c4p--tearsheet__next--presence-tearsheet__enter .24s cubic-bezier(0,0,.3,1);opacity:1}.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{animation:c4p--tearsheet__next--presence-tearsheet--container__enter .24s cubic-bezier(0,0,.3,1);transform:translateZ(0)}@media screen and (prefers-reduced-motion:reduce){.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{animation:none}}.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted).c4p--tearsheet__next--stacked.is-visible .c4p--tearsheet__next__container{transform:scaleX(var(--scale-factor))}.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted)[data-tearsheet-exiting]{animation:c4p--tearsheet__next--presence-tearsheet__exit .24s cubic-bezier(.4,.14,1,1) forwards}.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted)[data-tearsheet-exiting].c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{animation:c4p--tearsheet__next--presence-tearsheet--container__exit .24s cubic-bezier(0,0,.3,1) forwards}@media screen and (prefers-reduced-motion:reduce){.c4p--tearsheet__next.c4p--tearsheet__next:not(.c4p--tearsheet__next--keep-mounted)[data-tearsheet-exiting].c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{animation:none}}.c4p--tearsheet__next.c4p--tearsheet__next--keep-mounted:not(.is-visible).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{transform:translate3d(0,min(95vh,500px),0)}@keyframes c4p--tearsheet__next--presence-tearsheet__enter{0%{opacity:0;transition:none}}@keyframes c4p--tearsheet__next--presence-tearsheet__exit{to{opacity:0}}@keyframes c4p--tearsheet__next--presence-tearsheet--container__enter{0%{transform:translate3d(0,min(95vh,500px),0);transition:none}}@keyframes c4p--tearsheet__next--presence-tearsheet--container__exit{to{transform:translate3d(0,min(95vh,500px),0)}}.c4p--tearsheet__next .c4p--tearsheet__next__container{align-self:flex-end;block-size:100%;border:1px solid var(--cds-border-subtle-01,#c6c6c6);inset-block-start:auto;max-block-size:calc(100% - var(--tearsheet-vertical-gap, 3rem));max-inline-size:var(--tearsheet-max-inline-size,1312px)}@media (max-width:41.98rem){.c4p--tearsheet__next:not(.c4p--tearsheet__next--stack-activated.is-visible) .c4p--tearsheet__next__container{max-block-size:none}}.c4p--tearsheet__next:not(.is-visible).c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{transform:translate3d(0,min(95vh,500px),0)}.c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__container{background:linear-gradient(to top,var(--cds-layer),var(--cds-layer)) padding-box,linear-gradient(to bottom,var(--cds-ai-border-start,#78a9ff),var(--cds-ai-border-end,#d0e2ff)) border-box,linear-gradient(to top,var(--cds-layer),var(--cds-layer)) border-box;border:1px solid transparent;border-block-end:0;box-shadow:0 4px 10px 2px var(--cds-ai-drop-shadow,rgba(15,98,254,.1))}.c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next--has-ai-label .c4p--tearsheet__next__main-content{background:linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)) 0,var(--cds-ai-aura-start,rgba(69,137,255,.1)) 0,15%,var(--cds-ai-aura-end,hsla(0,0%,100%,0)) 50%) padding-box,linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)),var(--cds-background,var(--cds-ai-popover-background,#fff))) padding-box,linear-gradient(to bottom,var(--cds-ai-border-start,rgba(166,200,255,.64)),var(--cds-ai-border-end,#78a9ff)) border-box,linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)),var(--cds-background,var(--cds-ai-popover-background,#fff))) border-box;box-shadow:inset 0 -80px 70px -65px var(--cds-ai-inner-shadow,rgba(69,137,255,.1));position:relative}.c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{transition:transform .24s cubic-bezier(0,0,.3,1),max-block-size .24s cubic-bezier(0,0,.3,1)}@media screen and (prefers-reduced-motion:reduce){.c4p--tearsheet__next.c4p--tearsheet__next.c4p--tearsheet__next .c4p--tearsheet__next__container{transition:none}}.c4p--tearsheet__next .c4p--tearsheet__next__header{align-content:space-between;border-block-end:1px solid var(--cds-border-subtle-01,#c6c6c6);display:flex;flex-wrap:wrap;margin-block:0;max-block-size:50vh;padding-block-end:0;padding-block-start:1.5rem;padding-inline:2rem}.c4p--tearsheet__next .c4p--tearsheet__next__header>*{flex-basis:100%}.c4p--tearsheet__next .c4p--tearsheet__next__header>:not(.c4p--tearsheet__next__navigation-bar,.c4p--tearsheet__next__header-content-wrapper,.cds-custom--modal-close-button){margin-block-end:1.5rem}@media (max-width:41.98rem){.c4p--tearsheet__next .c4p--tearsheet__next__header{padding-inline:1rem}}.c4p--tearsheet__next .cds-custom--modal-container--sm .cds-custom--modal-header{padding-inline-end:2rem}.c4p--tearsheet__next .c4p--tearsheet__next__header-content-wrapper{display:grid;flex-basis:unset;gap:1rem;grid-template-columns:minmax(auto,40rem) minmax(var(--tearsheet-header-title-grid-width,0),1fr);inline-size:calc(100% - var(--tearsheet-header-action-offset))}@media (max-width:41.98rem){.c4p--tearsheet__next .c4p--tearsheet__next__header-content-wrapper{display:flex;flex-direction:column}}.c4p--tearsheet__next .c4p--tearsheet__next__header>:not(.c4p--tearsheet__next__navigation-bar,.c4p--tearsheet__next__header-content-wrapper,.cds-custom--modal-close-button,.excludeFromCollapse){max-block-size:50vh;opacity:1;overflow:hidden;transition:max-block-size .24s cubic-bezier(0,0,.3,1),opacity .24s cubic-bezier(0,0,.3,1),margin .24s cubic-bezier(0,0,.3,1),padding .24s cubic-bezier(0,0,.3,1)}.c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-actions,.c4p--tearsheet__next .c4p--tearsheet__next__header .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content :not(.c4p--tearsheet__next__content__title-wrapper,.c4p--tearsheet__next__header-label){opacity:1;transition:all .24s cubic-bezier(0,0,.3,1),opacity .24s cubic-bezier(0,0,.3,1)}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed{padding-block-start:.75rem;transition:padding .24s cubic-bezier(0,0,.3,1)}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions>:not(.c4p--tearsheet__next__content__header-actions),.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper .c4p--tearsheet__next__header-content>:not(.c4p--tearsheet__next__content__title-wrapper) *,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content>:not(.c4p--tearsheet__next__content__title-wrapper),.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed>:not(.c4p--tearsheet__next__navigation-bar,.c4p--tearsheet__next__header-content-wrapper,.cds-custom--modal-close-button,.excludeFromCollapse),.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed>:not(.c4p--tearsheet__next__navigation-bar,.c4p--tearsheet__next__header-content-wrapper,.cds-custom--modal-close-button,.excludeFromCollapse) *{margin:0;max-block-size:0;opacity:0;overflow:hidden;padding:0;pointer-events:none;transition:all .24s cubic-bezier(0,0,.3,1)}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title{align-items:center;font-size:var(--cds-label-02-font-size,.875rem);font-weight:var(--cds-label-02-font-weight,400);letter-spacing:var(--cds-label-02-letter-spacing,.16px);line-height:var(--cds-label-02-line-height,1.28572);margin-block-start:.25rem;transition:all .24s cubic-bezier(0,0,.3,1)}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title>span{align-items:center;block-size:1.5rem;display:flex}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-end svg,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-start svg{inline-size:1rem}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content{align-self:center;margin-block-end:0}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__header-actions{margin-block-start:-.125rem}@media (max-width:41.98rem){.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions{display:none}}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__content__title-wrapper,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper,.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-title{margin-block:0;transition:margin-block .24s ease}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-content-wrapper{min-block-size:2.5rem;padding-block-end:.75rem}.c4p--tearsheet__next .c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__navigation-bar:before{background:rgba(0,0,0,.12);block-size:1px;content:\"\";inline-size:100vw;inset-block-start:-.25rem;inset-inline-start:50%;pointer-events:none;position:absolute;transform:translateX(-50%);z-index:1}.c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible{--overlay-color:var(--cds-overlay,rgba(0,0,0,.6));--overlay-alpha:0.5;background-color:initial;z-index:calc(9000 - var(--stack-depth, 0))}.c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible:before{background:var(--overlay-color);content:\"\";display:block;inset:0;opacity:calc(var(--overlay-alpha) - var(--stack-depth)*.1);position:absolute;transition:background-color .24s cubic-bezier(.4,.14,1,1),opacity .24s cubic-bezier(.4,.14,1,1)}@media (prefers-reduced-motion:reduce){.c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible:before{transition:none}}.c4p--tearsheet__next.c4p--tearsheet__next--stack-activated.is-visible.is-visible .c4p--tearsheet__next__container{max-block-size:calc(100% - var(--tearsheet-vertical-gap, 3rem) + var(--block-size-change));transform:scaleX(var(--scale-factor))}.c4p--tearsheet__next__header-label{color:var(--cds-text-secondary,#525252);font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333);margin-block-end:.25rem}.c4p--tearsheet__next__header-title{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}@media (max-width:41.98rem){.c4p--tearsheet__next__header-title{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}}.c4p--tearsheet__next__header-title{align-items:flex-start;display:flex;gap:1rem;margin-block-end:.5rem}.c4p--tearsheet__next__header-title svg{flex-shrink:0}.c4p--tearsheet__next__header-title .c4p--tearsheet__next__title-end{margin-inline-start:1rem}.c4p--tearsheet__next__header-description{font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572)}.c4p--tearsheet__next__header--no-close-icon{display:none}.c4p--tearsheet__next__navigation-bar{align-items:center;display:flex;gap:.125rem;justify-content:space-between;max-inline-size:calc(100% - .75rem);min-block-size:2.5rem;position:relative}.c4p--tearsheet__next__navigation-bar .cds-custom--tabs{margin-inline-start:-1rem}.c4p--tearsheet__next__scroller-container{inset-block-end:.125rem;inset-inline-end:-2.5rem;position:absolute}@media (max-width:41.98rem){.c4p--tearsheet__next__scroller-container{inset-inline-end:-1.5rem}}.c4p--tearsheet__next__scroller-container .c4p--tearsheet__next__scroller-button-icon-collapsed{transform:rotate(-180deg)}.c4p--tearsheet__next__header-actions{display:flex;justify-content:flex-end}.c4p--tearsheet__next__content__header-actions{align-items:center;block-size:2rem;display:flex;flex:0 0 auto;inline-size:100%;justify-content:flex-end;margin-block-start:-14px;overflow:hidden}.c4p--tearsheet__next__content__header-actions>.c4p--tearsheet__next__header-action-item:not([data-hidden=true]){margin-inline-end:.5rem}.c4p--tearsheet__next__content__header-actions>.c4p--tearsheet__next__header-action-item:not([data-hidden=true]):nth-last-child(2){margin-inline-end:0}.c4p--tearsheet__next__content__header-actions>*{flex-shrink:0}@media (max-width:41.98rem){.c4p--tearsheet__next__content__header-actions{justify-content:flex-start;margin-inline-end:0}}.c4p--tearsheet__next__header-actions,.c4p--tearsheet__next__header-content{margin-block-end:1.5rem}@media (min-width:42rem){.c4p--tearsheet__next--wide .c4p--tearsheet__next__container{inline-size:calc(100% - 8rem)}}.c4p--tearsheet__next__body-layout{display:grid;grid-template-areas:\"influencer body\" \"influencer footer\";grid-template-columns:var(--tearsheet-influencer-width,16rem) 1fr;grid-template-rows:1fr auto;padding-block:0;padding-inline-end:0}.c4p--tearsheet__next__body-layout:not(.c4p--tearsheet__next__body-layout--has-influencer){grid-template-areas:\"body\" \"footer\";grid-template-columns:1fr}.c4p--tearsheet__next__influencer,:host(c4p-preview-tearsheet) ::slotted([slot=influencer]){border-inline-end:1px solid var(--cds-border-subtle-01,#c6c6c6);grid-area:influencer}.c4p--tearsheet__next__body,:host(c4p-preview-tearsheet) ::slotted([slot=body]){display:grid;grid-area:body;grid-template-columns:1fr var(--tearsheet-summary-content-width,16rem);overflow:hidden;position:relative}@media (max-width:41.98rem){.c4p--tearsheet__next__body,:host(c4p-preview-tearsheet) ::slotted([slot=body]){grid-template-columns:1fr 0}}.c4p--tearsheet__next__body>:only-child,:host(c4p-preview-tearsheet) ::slotted([slot=body])>:only-child{grid-column:1/-1}.c4p--tearsheet__next__footer,:host(c4p-preview-tearsheet) ::slotted([slot=footer]){block-size:5rem;border-block-start:1px solid var(--cds-border-subtle-01,#c6c6c6);grid-area:footer;overflow:hidden}@media (max-width:41.98rem){.c4p--tearsheet__next__footer,:host(c4p-preview-tearsheet) ::slotted([slot=footer]){block-size:4rem}}@media (max-width:19.98rem){.c4p--tearsheet__next__footer.c4p--tearsheet__next__footer--three-actions,:host(c4p-preview-tearsheet) .c4p--tearsheet__next__footer--three-actions::slotted([slot=footer]){overflow-x:auto;overflow-y:hidden}.c4p--tearsheet__next__footer.c4p--tearsheet__next__footer--three-actions .c4p--action-set,:host(c4p-preview-tearsheet) .c4p--tearsheet__next__footer--three-actions::slotted([slot=footer]) .c4p--action-set{display:inline-flex;flex-shrink:0;min-inline-size:-moz-max-content;min-inline-size:max-content}}@media (max-width:41.98rem){.c4p--tearsheet__next__footer.c4p--tearsheet__next__footer--many-actions,:host(c4p-preview-tearsheet) .c4p--tearsheet__next__footer--many-actions::slotted([slot=footer]){overflow-x:auto;overflow-y:hidden}.c4p--tearsheet__next__footer.c4p--tearsheet__next__footer--many-actions .c4p--action-set,:host(c4p-preview-tearsheet) .c4p--tearsheet__next__footer--many-actions::slotted([slot=footer]) .c4p--action-set{display:inline-flex;flex-shrink:0;min-inline-size:-moz-max-content;min-inline-size:max-content}}.c4p--tearsheet__next__influencer,.c4p--tearsheet__next__main-content,.c4p--tearsheet__next__summary-content,:host ::slotted([slot=summary-content]),:host(c4p-preview-tearsheet) ::slotted([slot=influencer]){overflow:auto}.c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush),:host :not(.c4p--tearsheet__next__flush)::slotted([slot=summary-content]),:host(c4p-preview-tearsheet) :not(.c4p--tearsheet__next__flush)::slotted([slot=influencer]){padding-inline:2rem}@media (max-width:41.98rem){.c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush),:host :not(.c4p--tearsheet__next__flush)::slotted([slot=summary-content]),:host(c4p-preview-tearsheet) :not(.c4p--tearsheet__next__flush)::slotted([slot=influencer]){padding-inline:1rem}}.c4p--tearsheet__next__side-panel,:host c4p-side-panel::part(dialog){block-size:100%;inline-size:100%!important;inset-block-start:0;max-inline-size:none;position:absolute;z-index:9999}.c4p--tearsheet__next__side-panel .c4p--side-panel__header,:host c4p-side-panel::part(dialog) .c4p--side-panel__header{min-block-size:0}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header{padding-inline:1rem}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header.c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions{display:none}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-content-wrapper{display:flex;flex-direction:column}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__header-title{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__content__header-actions{justify-content:flex-start;margin-inline-end:0}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__body,:host(c4p-preview-tearsheet) .c4p--tearsheet__next--narrow ::slotted([slot=body]){grid-template-columns:1fr 0}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__influencer:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next--narrow .c4p--tearsheet__next__main-content:not(.c4p--tearsheet__next__flush),.c4p--tearsheet__next--narrow .c4p--tearsheet__next__summary-content:not(.c4p--tearsheet__next__flush),:host .c4p--tearsheet__next--narrow :not(.c4p--tearsheet__next__flush)::slotted([slot=summary-content]),:host(c4p-preview-tearsheet) .c4p--tearsheet__next--narrow :not(.c4p--tearsheet__next__flush)::slotted([slot=influencer]){padding-inline:1rem}.c4p--tearsheet__next--narrow .c4p--tearsheet__next__footer,:host(c4p-preview-tearsheet) .c4p--tearsheet__next--narrow ::slotted([slot=footer]){block-size:4rem}.c4p--tearsheet__next--has-ai-label::part(dialog){background:linear-gradient(to top,var(--cds-layer),var(--cds-layer)) padding-box,linear-gradient(to bottom,var(--cds-ai-border-start,#78a9ff),var(--cds-ai-border-end,#d0e2ff)) border-box,linear-gradient(to top,var(--cds-layer),var(--cds-layer)) border-box;border:1px solid transparent!important;border-block-end:0;box-shadow:0 4px 10px 2px var(--cds-ai-drop-shadow,rgba(15,98,254,.1))}.c4p--tearsheet__next__main-content{position:relative}.c4p--tearsheet__next__main-content.c4p--tearsheet__next__flush{padding-inline:0}.c4p--tearsheet__next__main-content.c4p--tearsheet__next__main-content--no-summary{grid-column:1/-1}.c4p--tearsheet__next__main-content.c4p--tearsheet__next__main-content--has-ai-label{background:linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)) 0,var(--cds-ai-aura-start,rgba(69,137,255,.1)) 0,15%,var(--cds-ai-aura-end,hsla(0,0%,100%,0)) 50%) padding-box,linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)),var(--cds-background,var(--cds-ai-popover-background,#fff))) padding-box,linear-gradient(to bottom,var(--cds-ai-border-start,rgba(166,200,255,.64)),var(--cds-ai-border-end,#78a9ff)) border-box,linear-gradient(to top,var(--cds-background,var(--cds-ai-popover-background,#fff)),var(--cds-background,var(--cds-ai-popover-background,#fff))) border-box;box-shadow:inset 0 -80px 70px -65px var(--cds-ai-inner-shadow,rgba(69,137,255,.1))}:host ::slotted([slot=summary-content][is-flush]){padding-inline:0}@media screen and (prefers-reduced-motion:reduce){:host(c4p-preview-tearsheet) ::part(dialog){align-self:flex-end;block-size:100%;border:1px solid var(--cds-border-subtle-01,#c6c6c6);inset-block-start:auto;max-block-size:calc(100% - var(--tearsheet-vertical-gap, 3rem));transform:translate3d(0,min(95vh,500px),0);transition:none}}:host(c4p-preview-tearsheet) ::part(dialog){align-self:flex-end;block-size:100%;border:1px solid var(--cds-border-subtle-01,#c6c6c6);inset-block-start:auto;max-block-size:calc(100% - var(--tearsheet-vertical-gap, 3rem));transform:translate3d(0,min(95vh,500px),0);transition:transform .24s cubic-bezier(0,0,.3,1),max-block-size .24s cubic-bezier(0,0,.3,1)}:host(c4p-preview-tearsheet) ::slotted([slot=influencer][is-flush]){padding-inline:0}:host(c4p-preview-tearsheet[open]) ::part(dialog){transform:translateZ(0);transition:transform .24s cubic-bezier(0,0,.3,1)}@media (prefers-reduced-motion:reduce){:host(c4p-preview-tearsheet[open]) ::part(dialog){transition:none}}@media (max-width:41.98rem){:host(:not(.c4p--tearsheet__next--stack-activated.is-visible)) ::part(dialog){max-block-size:none}}:host(c4p-preview-tearsheet.c4p--tearsheet__next--stack-activated.is-visible){--overlay-color:var(--cds-overlay,rgba(0,0,0,.6));--overlay-alpha:0.5;z-index:calc(9000 - var(--stack-depth, 0))}:host(c4p-preview-tearsheet.c4p--tearsheet__next--stack-activated.is-visible):before{background:var(--overlay-color);content:\"\";display:block;inset:0;opacity:calc(var(--overlay-alpha) - var(--stack-depth)*.1);pointer-events:none;position:fixed;transition:background-color .24s cubic-bezier(.4,.14,1,1),opacity .24s cubic-bezier(.4,.14,1,1);z-index:-1}@media (prefers-reduced-motion:reduce){:host(c4p-preview-tearsheet.c4p--tearsheet__next--stack-activated.is-visible):before{transition:none}}:host(c4p-preview-tearsheet.c4p--tearsheet__next--stack-activated.is-visible) cds-custom-modal{background-color:transparent}:host(c4p-preview-tearsheet.c4p--tearsheet__next--stack-activated.is-visible) ::part(dialog){max-block-size:calc(100% - var(--tearsheet-vertical-gap, 3rem) + var(--block-size-change));transform:scaleX(var(--scale-factor))}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__header{padding-inline:1rem}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__header.c4p--tearsheet__next__header-collapsed .c4p--tearsheet__next__header-actions{display:none}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__header-content-wrapper{display:flex;flex-direction:column}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__header-title{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__content__header-actions{justify-content:flex-start;margin-inline-end:0}:host(c4p-preview-tearsheet[variant=narrow]) .c4p--tearsheet__next__body,:host(c4p-preview-tearsheet[variant=narrow]):host(c4p-preview-tearsheet) ::slotted([slot=body]){grid-template-columns:1fr 0}:host(c4p-preview-tearsheet[variant=narrow]) ::slotted([slot=influencer]),:host(c4p-preview-tearsheet[variant=narrow]) ::slotted([slot=summary-content]){padding:0!important}@media (max-width:41.98rem){:host(c4p-preview-tearsheet) ::slotted([slot=influencer]),:host(c4p-preview-tearsheet) ::slotted([slot=summary-content]){padding:0!important}}:host-context(c4p-preview-tearsheet[variant=narrow]) ::slotted([slot=summary-content]){padding:0}:host ::slotted([slot=footer]){padding-block:0}"]);
11
+
12
+ export { styles as default };
13
+ //# sourceMappingURL=tearsheet.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tearsheet.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 2026
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import '.';