@nectary/components 0.29.1 → 0.31.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 (347) hide show
  1. package/accordion-item/types.d.ts +1 -2
  2. package/accordion-item/utils.d.ts +2 -1
  3. package/alert/index.js +1 -1
  4. package/alert/types.d.ts +1 -2
  5. package/alert/utils.d.ts +2 -1
  6. package/alert-button/index.js +1 -1
  7. package/avatar/types.d.ts +2 -3
  8. package/avatar/utils.d.ts +3 -2
  9. package/avatar-status/index.js +1 -3
  10. package/avatar-status/types.d.ts +1 -2
  11. package/avatar-status/utils.d.ts +1 -1
  12. package/button/index.js +1 -1
  13. package/button/types.d.ts +14 -2
  14. package/button/utils.d.ts +2 -1
  15. package/card/index.js +1 -1
  16. package/card-container/index.js +1 -1
  17. package/chat-bubble/types.d.ts +2 -3
  18. package/chat-bubble/utils.d.ts +3 -2
  19. package/checkbox/index.js +1 -1
  20. package/colors.json +6 -1
  21. package/date-picker/index.d.ts +19 -0
  22. package/date-picker/index.js +419 -0
  23. package/date-picker/types.d.ts +26 -0
  24. package/date-picker/utils.d.ts +32 -0
  25. package/date-picker/utils.js +145 -0
  26. package/dialog/index.js +23 -5
  27. package/dropdown-checkbox-option/index.js +1 -1
  28. package/icon-button/index.js +1 -1
  29. package/icons/create-icon-class.d.ts +1 -307
  30. package/icons/keyboard-double-arrow-left/index.d.ts +11 -0
  31. package/icons/keyboard-double-arrow-left/index.js +4 -0
  32. package/icons/keyboard-double-arrow-right/index.d.ts +11 -0
  33. package/icons/keyboard-double-arrow-right/index.js +4 -0
  34. package/icons-branded/ai/index.d.ts +11 -0
  35. package/icons-branded/ai/index.js +4 -0
  36. package/icons-branded/chat/index.d.ts +11 -0
  37. package/icons-branded/chat/index.js +4 -0
  38. package/icons-branded/create-icon-class.d.ts +1 -311
  39. package/icons-branded/custom-message/index.d.ts +11 -0
  40. package/icons-branded/custom-message/index.js +4 -0
  41. package/icons-branded/integration/index.d.ts +11 -0
  42. package/icons-branded/integration/index.js +4 -0
  43. package/icons-branded/line-chart-down/index.d.ts +11 -0
  44. package/icons-branded/line-chart-down/index.js +4 -0
  45. package/icons-branded/line-chart-up/index.d.ts +11 -0
  46. package/icons-branded/line-chart-up/index.js +4 -0
  47. package/icons-branded/mms/index.d.ts +11 -0
  48. package/icons-branded/mms/index.js +4 -0
  49. package/icons-branded/push/index.d.ts +11 -0
  50. package/icons-branded/push/index.js +4 -0
  51. package/icons-branded/rcs/index.d.ts +11 -0
  52. package/icons-branded/rcs/index.js +4 -0
  53. package/icons-branded/sms/index.d.ts +11 -0
  54. package/icons-branded/sms/index.js +4 -0
  55. package/icons-branded/time/index.d.ts +11 -0
  56. package/icons-branded/time/index.js +4 -0
  57. package/icons-channel/apple-business-chat-square/index.d.ts +11 -0
  58. package/icons-channel/apple-business-chat-square/index.js +4 -0
  59. package/icons-channel/create-icon-class.d.ts +1 -310
  60. package/icons-channel/create-icon-class.js +1 -1
  61. package/icons-channel/facebook-messenger-square/index.d.ts +11 -0
  62. package/icons-channel/facebook-messenger-square/index.js +4 -0
  63. package/icons-channel/instagram-square/index.d.ts +11 -0
  64. package/icons-channel/instagram-square/index.js +4 -0
  65. package/icons-channel/line-square/index.d.ts +11 -0
  66. package/icons-channel/line-square/index.js +4 -0
  67. package/icons-channel/talk-square/index.d.ts +11 -0
  68. package/icons-channel/talk-square/index.js +4 -0
  69. package/icons-channel/telegram-square/index.d.ts +11 -0
  70. package/icons-channel/telegram-square/index.js +4 -0
  71. package/icons-channel/twitter-square/index.d.ts +11 -0
  72. package/icons-channel/twitter-square/index.js +4 -0
  73. package/icons-channel/viber-square/index.d.ts +11 -0
  74. package/icons-channel/viber-square/index.js +4 -0
  75. package/icons-channel/wechat-square/index.d.ts +11 -0
  76. package/icons-channel/wechat-square/index.js +4 -0
  77. package/icons-channel/whatsapp-square/index.d.ts +11 -0
  78. package/icons-channel/whatsapp-square/index.js +4 -0
  79. package/illustrations/5g/index.d.ts +11 -0
  80. package/illustrations/5g/index.js +4 -0
  81. package/illustrations/about-page/index.d.ts +11 -0
  82. package/illustrations/about-page/index.js +4 -0
  83. package/illustrations/bank/index.d.ts +11 -0
  84. package/illustrations/bank/index.js +4 -0
  85. package/illustrations/boost/index.d.ts +11 -0
  86. package/illustrations/boost/index.js +4 -0
  87. package/illustrations/buildvoicebot/index.d.ts +11 -0
  88. package/illustrations/buildvoicebot/index.js +4 -0
  89. package/illustrations/call-center/index.d.ts +11 -0
  90. package/illustrations/call-center/index.js +4 -0
  91. package/illustrations/cat-texting/index.d.ts +11 -0
  92. package/illustrations/cat-texting/index.js +4 -0
  93. package/illustrations/chat-bot/index.d.ts +11 -0
  94. package/illustrations/chat-bot/index.js +4 -0
  95. package/illustrations/check/index.d.ts +11 -0
  96. package/illustrations/check/index.js +4 -0
  97. package/illustrations/code/index.d.ts +11 -0
  98. package/illustrations/code/index.js +4 -0
  99. package/illustrations/contact-us/index.d.ts +11 -0
  100. package/illustrations/contact-us/index.js +4 -0
  101. package/illustrations/contactus/index.d.ts +11 -0
  102. package/illustrations/contactus/index.js +4 -0
  103. package/illustrations/conversation-api/index.d.ts +11 -0
  104. package/illustrations/conversation-api/index.js +4 -0
  105. package/illustrations/cooking/index.d.ts +11 -0
  106. package/illustrations/cooking/index.js +4 -0
  107. package/illustrations/costumer-support/index.d.ts +11 -0
  108. package/illustrations/costumer-support/index.js +4 -0
  109. package/illustrations/create-illustration-class.d.ts +1 -0
  110. package/illustrations/create-illustration-class.js +68 -0
  111. package/illustrations/credit-card/index.d.ts +11 -0
  112. package/illustrations/credit-card/index.js +4 -0
  113. package/illustrations/credit-card-30-degrees/index.d.ts +11 -0
  114. package/illustrations/credit-card-30-degrees/index.js +4 -0
  115. package/illustrations/cute-bee/index.d.ts +11 -0
  116. package/illustrations/cute-bee/index.js +4 -0
  117. package/illustrations/decorative-flamingo/index.d.ts +11 -0
  118. package/illustrations/decorative-flamingo/index.js +4 -0
  119. package/illustrations/decorative-rainbow/index.d.ts +11 -0
  120. package/illustrations/decorative-rainbow/index.js +4 -0
  121. package/illustrations/delivery-service-package/index.d.ts +11 -0
  122. package/illustrations/delivery-service-package/index.js +4 -0
  123. package/illustrations/desktop/index.d.ts +11 -0
  124. package/illustrations/desktop/index.js +4 -0
  125. package/illustrations/document/index.d.ts +11 -0
  126. package/illustrations/document/index.js +4 -0
  127. package/illustrations/flower-hand/index.d.ts +11 -0
  128. package/illustrations/flower-hand/index.js +4 -0
  129. package/illustrations/football/index.d.ts +11 -0
  130. package/illustrations/football/index.js +4 -0
  131. package/illustrations/geometric-shapes-passing/index.d.ts +11 -0
  132. package/illustrations/geometric-shapes-passing/index.js +4 -0
  133. package/illustrations/girl-on-phone/index.d.ts +11 -0
  134. package/illustrations/girl-on-phone/index.js +4 -0
  135. package/illustrations/global-reach/index.d.ts +11 -0
  136. package/illustrations/global-reach/index.js +4 -0
  137. package/illustrations/hand-ok/index.d.ts +11 -0
  138. package/illustrations/hand-ok/index.js +4 -0
  139. package/illustrations/hands-laptop/index.d.ts +11 -0
  140. package/illustrations/hands-laptop/index.js +4 -0
  141. package/illustrations/handset-omnichannel-messages/index.d.ts +11 -0
  142. package/illustrations/handset-omnichannel-messages/index.js +4 -0
  143. package/illustrations/happy-text/index.d.ts +11 -0
  144. package/illustrations/happy-text/index.js +4 -0
  145. package/illustrations/headphones/index.d.ts +11 -0
  146. package/illustrations/headphones/index.js +4 -0
  147. package/illustrations/heart/index.d.ts +11 -0
  148. package/illustrations/heart/index.js +4 -0
  149. package/illustrations/hero-messages/index.d.ts +11 -0
  150. package/illustrations/hero-messages/index.js +4 -0
  151. package/illustrations/hero-page/index.d.ts +11 -0
  152. package/illustrations/hero-page/index.js +4 -0
  153. package/illustrations/jump/index.d.ts +11 -0
  154. package/illustrations/jump/index.js +4 -0
  155. package/illustrations/laptop-holding/index.d.ts +11 -0
  156. package/illustrations/laptop-holding/index.js +4 -0
  157. package/illustrations/laptop-sitting-verified/index.d.ts +11 -0
  158. package/illustrations/laptop-sitting-verified/index.js +4 -0
  159. package/illustrations/lightning/index.d.ts +11 -0
  160. package/illustrations/lightning/index.js +4 -0
  161. package/illustrations/lock/index.d.ts +11 -0
  162. package/illustrations/lock/index.js +4 -0
  163. package/illustrations/lying-and-looking-at-the-phone/index.d.ts +11 -0
  164. package/illustrations/lying-and-looking-at-the-phone/index.js +4 -0
  165. package/illustrations/magnifying-glass/index.d.ts +11 -0
  166. package/illustrations/magnifying-glass/index.js +4 -0
  167. package/illustrations/man-on-right/index.d.ts +11 -0
  168. package/illustrations/man-on-right/index.js +4 -0
  169. package/illustrations/meeting-scrum/index.d.ts +11 -0
  170. package/illustrations/meeting-scrum/index.js +4 -0
  171. package/illustrations/meeting-scrum-2/index.d.ts +11 -0
  172. package/illustrations/meeting-scrum-2/index.js +4 -0
  173. package/illustrations/megaphone/index.d.ts +11 -0
  174. package/illustrations/megaphone/index.js +4 -0
  175. package/illustrations/menu/index.d.ts +11 -0
  176. package/illustrations/menu/index.js +4 -0
  177. package/illustrations/message-passing/index.d.ts +11 -0
  178. package/illustrations/message-passing/index.js +4 -0
  179. package/illustrations/message-recieved/index.d.ts +11 -0
  180. package/illustrations/message-recieved/index.js +4 -0
  181. package/illustrations/messages/index.d.ts +11 -0
  182. package/illustrations/messages/index.js +4 -0
  183. package/illustrations/messages-on-yellow-bg/index.d.ts +11 -0
  184. package/illustrations/messages-on-yellow-bg/index.js +4 -0
  185. package/illustrations/messages-shopping/index.d.ts +11 -0
  186. package/illustrations/messages-shopping/index.js +4 -0
  187. package/illustrations/monitor/index.d.ts +11 -0
  188. package/illustrations/monitor/index.js +4 -0
  189. package/illustrations/numbers-passing/index.d.ts +11 -0
  190. package/illustrations/numbers-passing/index.js +4 -0
  191. package/illustrations/office-worker/index.d.ts +11 -0
  192. package/illustrations/office-worker/index.js +4 -0
  193. package/illustrations/old-person-on-phone/index.d.ts +11 -0
  194. package/illustrations/old-person-on-phone/index.js +4 -0
  195. package/illustrations/omnichannel-messaging/index.d.ts +11 -0
  196. package/illustrations/omnichannel-messaging/index.js +4 -0
  197. package/illustrations/on-the-phone/index.d.ts +11 -0
  198. package/illustrations/on-the-phone/index.js +4 -0
  199. package/illustrations/parcel-delivery/index.d.ts +11 -0
  200. package/illustrations/parcel-delivery/index.js +4 -0
  201. package/illustrations/passing-heart/index.d.ts +11 -0
  202. package/illustrations/passing-heart/index.js +4 -0
  203. package/illustrations/passing-heart-cool/index.d.ts +11 -0
  204. package/illustrations/passing-heart-cool/index.js +4 -0
  205. package/illustrations/person-on-phone/index.d.ts +11 -0
  206. package/illustrations/person-on-phone/index.js +4 -0
  207. package/illustrations/person-on-walk/index.d.ts +11 -0
  208. package/illustrations/person-on-walk/index.js +4 -0
  209. package/illustrations/person-with-dog/index.d.ts +11 -0
  210. package/illustrations/person-with-dog/index.js +4 -0
  211. package/illustrations/person-with-phone/index.d.ts +11 -0
  212. package/illustrations/person-with-phone/index.js +4 -0
  213. package/illustrations/phone-and-cat/index.js +4 -0
  214. package/illustrations/pineapple/index.d.ts +11 -0
  215. package/illustrations/pineapple/index.js +4 -0
  216. package/illustrations/pizza/index.d.ts +11 -0
  217. package/illustrations/pizza/index.js +4 -0
  218. package/illustrations/plane/index.d.ts +11 -0
  219. package/illustrations/plane/index.js +4 -0
  220. package/illustrations/presenting-charts/index.d.ts +11 -0
  221. package/illustrations/presenting-charts/index.js +4 -0
  222. package/illustrations/product-page/index.d.ts +11 -0
  223. package/illustrations/product-page/index.js +4 -0
  224. package/illustrations/product-page-2/index.d.ts +11 -0
  225. package/illustrations/product-page-2/index.js +4 -0
  226. package/illustrations/scooter/index.d.ts +11 -0
  227. package/illustrations/scooter/index.js +4 -0
  228. package/illustrations/security/index.d.ts +11 -0
  229. package/illustrations/security/index.js +4 -0
  230. package/illustrations/security-camera/index.d.ts +11 -0
  231. package/illustrations/security-camera/index.js +4 -0
  232. package/illustrations/sherlockholmes/index.d.ts +11 -0
  233. package/illustrations/sherlockholmes/index.js +4 -0
  234. package/illustrations/shoe/index.d.ts +11 -0
  235. package/illustrations/shoe/index.js +4 -0
  236. package/illustrations/shopping/index.d.ts +11 -0
  237. package/illustrations/shopping/index.js +4 -0
  238. package/illustrations/shopping-cart/index.d.ts +11 -0
  239. package/illustrations/shopping-cart/index.js +4 -0
  240. package/illustrations/sick-kid/index.d.ts +11 -0
  241. package/illustrations/sick-kid/index.js +4 -0
  242. package/illustrations/sitting-messaging/index.d.ts +11 -0
  243. package/illustrations/sitting-messaging/index.js +4 -0
  244. package/illustrations/sitting-person/index.d.ts +11 -0
  245. package/illustrations/sitting-person/index.js +4 -0
  246. package/illustrations/sitting-person-2/index.d.ts +11 -0
  247. package/illustrations/sitting-person-2/index.js +4 -0
  248. package/illustrations/sofa/index.d.ts +11 -0
  249. package/illustrations/sofa/index.js +4 -0
  250. package/illustrations/stats/index.d.ts +11 -0
  251. package/illustrations/stats/index.js +4 -0
  252. package/illustrations/support-center/index.d.ts +11 -0
  253. package/illustrations/support-center/index.js +4 -0
  254. package/illustrations/supporting-device/index.d.ts +11 -0
  255. package/illustrations/supporting-device/index.js +4 -0
  256. package/illustrations/supporting-device-2/index.d.ts +11 -0
  257. package/illustrations/supporting-device-2/index.js +4 -0
  258. package/illustrations/supporting-device-3/index.d.ts +11 -0
  259. package/illustrations/supporting-device-3/index.js +4 -0
  260. package/illustrations/supporting-device-4/index.d.ts +11 -0
  261. package/illustrations/supporting-device-4/index.js +4 -0
  262. package/illustrations/surf/index.d.ts +11 -0
  263. package/illustrations/surf/index.js +4 -0
  264. package/illustrations/taxi/index.d.ts +11 -0
  265. package/illustrations/taxi/index.js +4 -0
  266. package/illustrations/taxi-2/index.d.ts +11 -0
  267. package/illustrations/taxi-2/index.js +4 -0
  268. package/illustrations/teamwork-from-phone/index.d.ts +11 -0
  269. package/illustrations/teamwork-from-phone/index.js +4 -0
  270. package/illustrations/telemast/index.d.ts +11 -0
  271. package/illustrations/telemast/index.js +4 -0
  272. package/illustrations/texting-sitting/index.d.ts +11 -0
  273. package/illustrations/texting-sitting/index.js +4 -0
  274. package/illustrations/texting-sofa/index.d.ts +11 -0
  275. package/illustrations/texting-sofa/index.js +4 -0
  276. package/illustrations/train/index.d.ts +11 -0
  277. package/illustrations/train/index.js +4 -0
  278. package/illustrations/types.d.ts +16 -0
  279. package/illustrations/types.js +1 -0
  280. package/illustrations/utils.d.ts +3 -0
  281. package/illustrations/utils.js +2 -0
  282. package/illustrations/video-voice-call/index.d.ts +11 -0
  283. package/illustrations/video-voice-call/index.js +4 -0
  284. package/illustrations/voicebot/index.d.ts +11 -0
  285. package/illustrations/voicebot/index.js +4 -0
  286. package/illustrations/walking-on-phone/index.d.ts +11 -0
  287. package/illustrations/walking-on-phone/index.js +4 -0
  288. package/illustrations/what-tools/index.d.ts +11 -0
  289. package/illustrations/what-tools/index.js +4 -0
  290. package/illustrations/win-together/index.d.ts +11 -0
  291. package/illustrations/win-together/index.js +4 -0
  292. package/illustrations/win-together-two-people/index.d.ts +11 -0
  293. package/illustrations/win-together-two-people/index.js +4 -0
  294. package/illustrations/wizard/index.d.ts +11 -0
  295. package/illustrations/wizard/index.js +4 -0
  296. package/illustrations/woman-hand-lifted/index.d.ts +11 -0
  297. package/illustrations/woman-hand-lifted/index.js +4 -0
  298. package/illustrations/woman-on-left/index.d.ts +11 -0
  299. package/illustrations/woman-on-left/index.js +4 -0
  300. package/illustrations/woman-on-right/index.d.ts +11 -0
  301. package/illustrations/woman-on-right/index.js +4 -0
  302. package/input/index.js +1 -1
  303. package/input/types.d.ts +38 -12
  304. package/input/utils.d.ts +2 -1
  305. package/link/index.js +18 -4
  306. package/link/types.d.ts +0 -2
  307. package/logo/create-logo-class.d.ts +1 -311
  308. package/package.json +1 -1
  309. package/popover/index.js +76 -47
  310. package/popover/types.d.ts +1 -2
  311. package/popover/utils.d.ts +2 -1
  312. package/search/index.js +1 -1
  313. package/segment/index.d.ts +1 -0
  314. package/segment/index.js +109 -6
  315. package/segment/types.d.ts +4 -0
  316. package/segment/utils.d.ts +5 -0
  317. package/segment/utils.js +6 -0
  318. package/select/index.js +1 -1
  319. package/spinner/types.d.ts +1 -2
  320. package/spinner/utils.d.ts +2 -1
  321. package/table-cell/types.d.ts +4 -5
  322. package/table-cell/utils.d.ts +2 -1
  323. package/table-head-cell/types.d.ts +4 -4
  324. package/tag/index.js +1 -1
  325. package/tag/types.d.ts +1 -2
  326. package/tag/utils.d.ts +2 -1
  327. package/text/index.js +0 -1
  328. package/text/types.d.ts +1 -2
  329. package/text/utils.d.ts +1 -1
  330. package/textarea/index.js +1 -1
  331. package/theme.css +17 -0
  332. package/title/index.js +0 -2
  333. package/title/types.d.ts +2 -3
  334. package/title/utils.d.ts +4 -3
  335. package/title/utils.js +21 -0
  336. package/toggle/index.js +1 -1
  337. package/tooltip/index.js +1 -1
  338. package/tooltip/types.d.ts +1 -2
  339. package/tooltip/utils.d.ts +2 -1
  340. package/utils.d.ts +4 -0
  341. package/utils.js +35 -4
  342. package/illustration/create-illustration-class.d.ts +0 -310
  343. package/illustration/create-illustration-class.js +0 -51
  344. package/illustration/phone-and-cat/index.js +0 -4
  345. package/illustration/types.d.ts +0 -8
  346. /package/{illustration → date-picker}/types.js +0 -0
  347. /package/{illustration → illustrations}/phone-and-cat/index.d.ts +0 -0
package/dialog/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import _classPrivateFieldGet from '@babel/runtime/helpers/classPrivateFieldGet';
2
2
  import _classPrivateFieldSet from '@babel/runtime/helpers/classPrivateFieldSet';
3
3
 
4
- var _$dialog, _$closeButton, _$caption, _isConnected, _onCancel, _onCloseClick, _onBackdropClick, _onCloseReactHandler, _dispatchCloseEvent, _setOpen;
4
+ var _$dialog, _$closeButton, _$caption, _isConnected, _prevOverflowValue, _onCancel, _onCloseClick, _onBackdropClick, _onCloseReactHandler, _dispatchCloseEvent, _setOpen;
5
5
 
6
6
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
7
7
 
@@ -15,10 +15,10 @@ import dialogPolyfill from 'dialog-polyfill';
15
15
  import '../icon-button';
16
16
  import '../icons/close';
17
17
  import { defineCustomElement, getAttribute, getBooleanAttribute, getRect, isAttrTrue, updateAttribute, getReactEventHandler, NectaryElement } from '../utils';
18
- const templateHTML = '<style>dialog{position:absolute;left:0;right:0;margin:auto;display:flex;flex-direction:column;padding:24px;max-width:512px;border-radius:4px;box-sizing:border-box;background-color:var(--sinch-color-snow-100);color:var(--sinch-color-text-default);font:var(--sinch-font-body);border:none;box-shadow:1px 2px 8px rgba(0,0,0,.1)}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.55}dialog::backdrop{background-color:#000;opacity:.55}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translate(0,-50%)}#header{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin-bottom:16px}#caption{font:var(--sinch-font-title-m);color:var(--sinch-color-text-default);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#content-wrapper{min-height:0;overflow:auto;max-height:var(--sinch-dialog-max-height,50vh)}#buttons{display:flex;flex-direction:row;justify-content:flex-end;gap:16px;margin-top:24px}sinch-icon-button{transform:translate(4px,-4px)}</style><dialog><div id="header"><span id="caption"></span><sinch-icon-button id="close" small tabindex="0"><sinch-icon-close slot="icon"></sinch-icon-close></sinch-icon-button></div><div id="content-wrapper"><slot name="content"></slot></div><div id="buttons"><slot name="buttons"></slot></div></dialog>';
18
+ const templateHTML = '<style>dialog{position:fixed;left:0;right:0;margin:auto;display:flex;flex-direction:column;padding:24px;max-width:var(--sinch-dialog-max-width,512px);max-height:unset;border-radius:var(--sinch-shape-radius-l);box-sizing:border-box;contain:content;background-color:var(--sinch-color-snow-100);color:var(--sinch-color-text-default);font:var(--sinch-font-body);border:none;box-shadow:var(--sinch-elevation-level-3)}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;opacity:.55}dialog::backdrop{background-color:#000;opacity:.55}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translate(0,-50%)}#header{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;margin-bottom:16px}#caption{font:var(--sinch-font-title-m);color:var(--sinch-color-text-default);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#content-wrapper{min-height:0;overflow:auto;max-height:var(--sinch-dialog-max-height,50vh)}#buttons{display:flex;flex-direction:row;justify-content:flex-end;gap:16px;margin-top:24px}sinch-icon-button{transform:translate(4px,-4px)}</style><dialog><div id="header"><span id="caption"></span><sinch-icon-button id="close" small tabindex="0"><sinch-icon-close slot="icon"></sinch-icon-close></sinch-icon-button></div><div id="content-wrapper"><slot name="content"></slot></div><div id="buttons"><slot name="buttons"></slot></div></dialog>';
19
19
  const template = document.createElement('template');
20
20
  template.innerHTML = templateHTML;
21
- defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = new WeakMap(), _$caption = new WeakMap(), _isConnected = new WeakMap(), _onCancel = new WeakMap(), _onCloseClick = new WeakMap(), _onBackdropClick = new WeakMap(), _onCloseReactHandler = new WeakMap(), _dispatchCloseEvent = new WeakSet(), _setOpen = new WeakSet(), class extends NectaryElement {
21
+ defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = new WeakMap(), _$caption = new WeakMap(), _isConnected = new WeakMap(), _prevOverflowValue = new WeakMap(), _onCancel = new WeakMap(), _onCloseClick = new WeakMap(), _onBackdropClick = new WeakMap(), _onCloseReactHandler = new WeakMap(), _dispatchCloseEvent = new WeakSet(), _setOpen = new WeakSet(), class extends NectaryElement {
22
22
  constructor() {
23
23
  super();
24
24
 
@@ -46,6 +46,11 @@ defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = n
46
46
  value: false
47
47
  });
48
48
 
49
+ _classPrivateFieldInitSpec(this, _prevOverflowValue, {
50
+ writable: true,
51
+ value: ''
52
+ });
53
+
49
54
  _classPrivateFieldInitSpec(this, _onCancel, {
50
55
  writable: true,
51
56
  value: e => {
@@ -67,10 +72,16 @@ defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = n
67
72
  _classPrivateFieldInitSpec(this, _onBackdropClick, {
68
73
  writable: true,
69
74
  value: e => {
75
+ if (e.target !== _classPrivateFieldGet(this, _$dialog)) {
76
+ return;
77
+ }
78
+
70
79
  const rect = this.dialogRect;
71
80
  const isInside = e.x >= rect.x && e.x < rect.x + rect.width && e.y >= rect.y && e.y < rect.y + rect.height;
72
81
 
73
82
  if (!isInside) {
83
+ e.stopPropagation();
84
+
74
85
  _classPrivateMethodGet(this, _dispatchCloseEvent, _dispatchCloseEvent2).call(this);
75
86
  }
76
87
  }
@@ -132,7 +143,8 @@ defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = n
132
143
  _classPrivateFieldGet(this, _$closeButton).addEventListener('click', _classPrivateFieldGet(this, _onCloseClick));
133
144
 
134
145
  this.addEventListener('close', _classPrivateFieldGet(this, _onCloseReactHandler));
135
- this.addEventListener('click', _classPrivateFieldGet(this, _onBackdropClick));
146
+
147
+ _classPrivateFieldGet(this, _$dialog).addEventListener('click', _classPrivateFieldGet(this, _onBackdropClick));
136
148
 
137
149
  _classPrivateFieldGet(this, _$dialog).addEventListener('cancel', _classPrivateFieldGet(this, _onCancel));
138
150
 
@@ -147,7 +159,8 @@ defineCustomElement('sinch-dialog', (_$dialog = new WeakMap(), _$closeButton = n
147
159
  _classPrivateFieldGet(this, _$closeButton).removeEventListener('click', _classPrivateFieldGet(this, _onCloseClick));
148
160
 
149
161
  this.removeEventListener('close', _classPrivateFieldGet(this, _onCloseReactHandler));
150
- this.removeEventListener('click', _classPrivateFieldGet(this, _onBackdropClick));
162
+
163
+ _classPrivateFieldGet(this, _$dialog).removeEventListener('click', _classPrivateFieldGet(this, _onBackdropClick));
151
164
 
152
165
  _classPrivateFieldGet(this, _$dialog).removeEventListener('cancel', _classPrivateFieldGet(this, _onCancel));
153
166
 
@@ -174,8 +187,13 @@ function _setOpen2(isOpen) {
174
187
  if (isOpen) {
175
188
  if (!getBooleanAttribute(_classPrivateFieldGet(this, _$dialog), 'open')) {
176
189
  _classPrivateFieldGet(this, _$dialog).showModal();
190
+
191
+ _classPrivateFieldSet(this, _prevOverflowValue, document.body.style.overflow);
192
+
193
+ document.body.style.overflow = 'hidden';
177
194
  }
178
195
  } else {
179
196
  _classPrivateFieldGet(this, _$dialog).close?.();
197
+ document.body.style.overflow = _classPrivateFieldGet(this, _prevOverflowValue);
180
198
  }
181
199
  }
@@ -8,7 +8,7 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
8
8
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9
9
 
10
10
  import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute, updateExplicitBooleanAttribute } from '../utils';
11
- const templateHTML = '<style>:host{display:block}#wrapper{display:flex;position:relative;box-sizing:border-box;height:40px;padding:4px 10px 4px 6px;align-items:center;gap:6px;user-select:none;cursor:pointer}#text{flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#icon-container{position:relative;width:32px;height:32px}#icon-container::before{content:"";position:absolute;top:7px;left:7px;width:18px;height:18px;border-radius:2px;pointer-events:none;background-color:var(--sinch-color-snow-100);border:2px solid var(--sinch-color-stormy-300);transition:background-color .1s linear;box-sizing:border-box}#icon-checkmark{position:absolute;left:9px;top:10px;transition:opacity .1s linear;opacity:0;pointer-events:none;fill:var(--sinch-color-snow-100)}:host([checked]:not([checked=false])) #icon-container::before{background-color:var(--sinch-color-tropical-500);border-color:var(--sinch-color-tropical-500)}:host([checked]:not([checked=false])) #icon-checkmark{opacity:1}:host(:hover)>#wrapper,:host([data-selected])>#wrapper{background-color:var(--sinch-color-snow-500)}:host([disabled]:not([disabled=false]))>#wrapper{color:var(--sinch-color-stormy-100);cursor:initial}:host([disabled]:not([disabled=false])) #icon-container::before{border-color:var(--sinch-color-stormy-100)}@media (prefers-reduced-motion){#icon-checkmark,#icon-container::before{transition:none}}</style><div id="wrapper"><div id="icon-container"><svg id="icon-checkmark" width="14" height="11" aria-hidden="true"><path d="M14 1.99999L12.59 0.579987L4.98995 8.17L1.49997 4.5L0.0799694 5.91L4.98995 11L14 1.99999Z"/></svg></div><span id="text"></span></div>';
11
+ const templateHTML = '<style>:host{display:block}#wrapper{display:flex;position:relative;box-sizing:border-box;height:40px;padding:4px 10px 4px 6px;align-items:center;gap:6px;user-select:none;cursor:pointer}#text{flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#icon-container{position:relative;width:32px;height:32px}#icon-container::before{content:"";position:absolute;top:7px;left:7px;width:18px;height:18px;border-radius:var(--sinch-shape-radius-xs);pointer-events:none;background-color:var(--sinch-color-snow-100);border:2px solid var(--sinch-color-stormy-300);transition:background-color .1s linear;box-sizing:border-box}#icon-checkmark{position:absolute;left:9px;top:10px;transition:opacity .1s linear;opacity:0;pointer-events:none;fill:var(--sinch-color-snow-100)}:host([checked]:not([checked=false])) #icon-container::before{background-color:var(--sinch-color-tropical-500);border-color:var(--sinch-color-tropical-500)}:host([checked]:not([checked=false])) #icon-checkmark{opacity:1}:host(:hover)>#wrapper,:host([data-selected])>#wrapper{background-color:var(--sinch-color-snow-500)}:host([disabled]:not([disabled=false]))>#wrapper{color:var(--sinch-color-stormy-100);cursor:initial}:host([disabled]:not([disabled=false])) #icon-container::before{border-color:var(--sinch-color-stormy-100)}@media (prefers-reduced-motion){#icon-checkmark,#icon-container::before{transition:none}}</style><div id="wrapper"><div id="icon-container"><svg id="icon-checkmark" width="14" height="11" aria-hidden="true"><path d="M14 1.99999L12.59 0.579987L4.98995 8.17L1.49997 4.5L0.0799694 5.91L4.98995 11L14 1.99999Z"/></svg></div><span id="text"></span></div>';
12
12
  const template = document.createElement('template');
13
13
  template.innerHTML = templateHTML;
14
14
  defineCustomElement('sinch-dropdown-checkbox-option', (_$text = new WeakMap(), class extends NectaryElement {
@@ -8,7 +8,7 @@ function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedec
8
8
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
9
9
 
10
10
  import { defineCustomElement, getBooleanAttribute, isAttrTrue, NectaryElement, updateBooleanAttribute } from '../utils';
11
- const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}button{all:initial;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;border-radius:4px;border:1px solid transparent;background-color:transparent;cursor:pointer;--sinch-size-icon:24px;--sinch-color-icon:var(--sinch-icon-button-color, var(--sinch-color-stormy-500))}button:focus{border-color:var(--sinch-color-stormy-500)}button:hover{background-color:var(--sinch-color-snow-500)}button:active{background-color:var(--sinch-color-snow-600)}button:disabled{background-color:transparent;cursor:initial;--sinch-color-spinner-bg:var(--sinch-color-snow-200);--sinch-color-spinner-fg:var(--sinch-color-stormy-200);--sinch-color-icon:var(--sinch-color-stormy-100)}:host([small]:not([small=false]))>button{width:32px;height:32px}button>*{pointer-events:none}</style><button><slot name="icon"></slot></button>';
11
+ const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}button{all:initial;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:48px;height:48px;border-radius:var(--sinch-shape-radius-s);border:1px solid transparent;background-color:transparent;cursor:pointer;--sinch-size-icon:24px;--sinch-color-icon:var(--sinch-icon-button-color, var(--sinch-color-stormy-500))}button:focus{border-color:var(--sinch-color-stormy-500)}button:hover{background-color:var(--sinch-color-snow-500)}button:active{background-color:var(--sinch-color-snow-600)}button:disabled{background-color:transparent;cursor:initial;--sinch-color-spinner-bg:var(--sinch-color-snow-200);--sinch-color-spinner-fg:var(--sinch-color-stormy-200);--sinch-color-icon:var(--sinch-color-stormy-100)}:host([small]:not([small=false]))>button{width:32px;height:32px}button>*{pointer-events:none}</style><button><slot name="icon"></slot></button>';
12
12
  const template = document.createElement('template');
13
13
  template.innerHTML = templateHTML;
14
14
  defineCustomElement('sinch-icon-button', (_$button = new WeakMap(), class extends NectaryElement {
@@ -1,307 +1 @@
1
- export declare const createIconClass: (templateHTML: string) => {
2
- new (): {
3
- $svg: SVGElement;
4
- connectedCallback(): void;
5
- attachShadow(options?: Partial<ShadowRootInit> | undefined): ShadowRoot;
6
- accessKey: string;
7
- readonly accessKeyLabel: string;
8
- autocapitalize: string;
9
- dir: string;
10
- draggable: boolean;
11
- hidden: boolean;
12
- innerText: string;
13
- lang: string;
14
- readonly offsetHeight: number;
15
- readonly offsetLeft: number;
16
- readonly offsetParent: Element | null;
17
- readonly offsetTop: number;
18
- readonly offsetWidth: number;
19
- outerText: string;
20
- spellcheck: boolean;
21
- title: string;
22
- translate: boolean;
23
- attachInternals(): ElementInternals;
24
- click(): void;
25
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
26
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
27
- removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
28
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
29
- readonly attributes: NamedNodeMap;
30
- readonly classList: DOMTokenList;
31
- className: string;
32
- readonly clientHeight: number;
33
- readonly clientLeft: number;
34
- readonly clientTop: number;
35
- readonly clientWidth: number;
36
- id: string;
37
- readonly localName: string;
38
- readonly namespaceURI: string | null;
39
- onfullscreenchange: ((this: Element, ev: Event) => any) | null;
40
- onfullscreenerror: ((this: Element, ev: Event) => any) | null;
41
- outerHTML: string;
42
- readonly ownerDocument: Document;
43
- readonly part: DOMTokenList;
44
- readonly prefix: string | null;
45
- readonly scrollHeight: number;
46
- scrollLeft: number;
47
- scrollTop: number;
48
- readonly scrollWidth: number;
49
- readonly shadowRoot: ShadowRoot | null;
50
- slot: string;
51
- readonly tagName: string;
52
- closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
53
- closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
54
- closest<E extends Element = Element>(selectors: string): E | null;
55
- getAttribute(qualifiedName: string): string | null;
56
- getAttributeNS(namespace: string | null, localName: string): string | null;
57
- getAttributeNames(): string[];
58
- getAttributeNode(qualifiedName: string): Attr | null;
59
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
60
- getBoundingClientRect(): DOMRect;
61
- getClientRects(): DOMRectList;
62
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
63
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
64
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
65
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
66
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
67
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
68
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
69
- hasAttribute(qualifiedName: string): boolean;
70
- hasAttributeNS(namespace: string | null, localName: string): boolean;
71
- hasAttributes(): boolean;
72
- hasPointerCapture(pointerId: number): boolean;
73
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
74
- insertAdjacentHTML(position: InsertPosition, text: string): void;
75
- insertAdjacentText(where: InsertPosition, data: string): void;
76
- matches(selectors: string): boolean;
77
- releasePointerCapture(pointerId: number): void;
78
- removeAttribute(qualifiedName: string): void;
79
- removeAttributeNS(namespace: string | null, localName: string): void;
80
- removeAttributeNode(attr: Attr): Attr;
81
- requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
82
- requestPointerLock(): void;
83
- scroll(options?: ScrollToOptions | undefined): void;
84
- scroll(x: number, y: number): void;
85
- scrollBy(options?: ScrollToOptions | undefined): void;
86
- scrollBy(x: number, y: number): void;
87
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
88
- scrollTo(options?: ScrollToOptions | undefined): void;
89
- scrollTo(x: number, y: number): void;
90
- setAttribute(qualifiedName: string, value: string): void;
91
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
92
- setAttributeNode(attr: Attr): Attr | null;
93
- setAttributeNodeNS(attr: Attr): Attr | null;
94
- setPointerCapture(pointerId: number): void;
95
- toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
96
- webkitMatchesSelector(selectors: string): boolean;
97
- readonly baseURI: string;
98
- readonly childNodes: NodeListOf<ChildNode>;
99
- readonly firstChild: ChildNode | null;
100
- readonly isConnected: boolean;
101
- readonly lastChild: ChildNode | null;
102
- readonly nextSibling: ChildNode | null;
103
- readonly nodeName: string;
104
- readonly nodeType: number;
105
- nodeValue: string | null;
106
- readonly parentElement: HTMLElement | null;
107
- readonly parentNode: ParentNode | null;
108
- readonly previousSibling: ChildNode | null;
109
- textContent: string | null;
110
- appendChild<T extends Node>(node: T): T;
111
- cloneNode(deep?: boolean | undefined): Node;
112
- compareDocumentPosition(other: Node): number;
113
- contains(other: Node | null): boolean;
114
- getRootNode(options?: GetRootNodeOptions | undefined): Node;
115
- hasChildNodes(): boolean;
116
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
117
- isDefaultNamespace(namespace: string | null): boolean;
118
- isEqualNode(otherNode: Node | null): boolean;
119
- isSameNode(otherNode: Node | null): boolean;
120
- lookupNamespaceURI(prefix: string | null): string | null;
121
- lookupPrefix(namespace: string | null): string | null;
122
- normalize(): void;
123
- removeChild<T_2 extends Node>(child: T_2): T_2;
124
- replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
125
- readonly ATTRIBUTE_NODE: number;
126
- readonly CDATA_SECTION_NODE: number;
127
- readonly COMMENT_NODE: number;
128
- readonly DOCUMENT_FRAGMENT_NODE: number;
129
- readonly DOCUMENT_NODE: number;
130
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
131
- readonly DOCUMENT_POSITION_CONTAINS: number;
132
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
133
- readonly DOCUMENT_POSITION_FOLLOWING: number;
134
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
135
- readonly DOCUMENT_POSITION_PRECEDING: number;
136
- readonly DOCUMENT_TYPE_NODE: number;
137
- readonly ELEMENT_NODE: number;
138
- readonly ENTITY_NODE: number;
139
- readonly ENTITY_REFERENCE_NODE: number;
140
- readonly NOTATION_NODE: number;
141
- readonly PROCESSING_INSTRUCTION_NODE: number;
142
- readonly TEXT_NODE: number;
143
- dispatchEvent(event: Event): boolean;
144
- ariaAtomic: string | null;
145
- ariaAutoComplete: string | null;
146
- ariaBusy: string | null;
147
- ariaChecked: string | null;
148
- ariaColCount: string | null;
149
- ariaColIndex: string | null;
150
- ariaColSpan: string | null;
151
- ariaCurrent: string | null;
152
- ariaDisabled: string | null;
153
- ariaExpanded: string | null;
154
- ariaHasPopup: string | null;
155
- ariaHidden: string | null;
156
- ariaKeyShortcuts: string | null;
157
- ariaLabel: string | null;
158
- ariaLevel: string | null;
159
- ariaLive: string | null;
160
- ariaModal: string | null;
161
- ariaMultiLine: string | null;
162
- ariaMultiSelectable: string | null;
163
- ariaOrientation: string | null;
164
- ariaPlaceholder: string | null;
165
- ariaPosInSet: string | null;
166
- ariaPressed: string | null;
167
- ariaReadOnly: string | null;
168
- ariaRequired: string | null;
169
- ariaRoleDescription: string | null;
170
- ariaRowCount: string | null;
171
- ariaRowIndex: string | null;
172
- ariaRowSpan: string | null;
173
- ariaSelected: string | null;
174
- ariaSetSize: string | null;
175
- ariaSort: string | null;
176
- ariaValueMax: string | null;
177
- ariaValueMin: string | null;
178
- ariaValueNow: string | null;
179
- ariaValueText: string | null;
180
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
181
- getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
182
- after(...nodes: (string | Node)[]): void;
183
- before(...nodes: (string | Node)[]): void;
184
- remove(): void;
185
- replaceWith(...nodes: (string | Node)[]): void;
186
- innerHTML: string;
187
- readonly nextElementSibling: Element | null;
188
- readonly previousElementSibling: Element | null;
189
- readonly childElementCount: number;
190
- readonly children: HTMLCollection;
191
- readonly firstElementChild: Element | null;
192
- readonly lastElementChild: Element | null;
193
- append(...nodes: (string | Node)[]): void;
194
- prepend(...nodes: (string | Node)[]): void;
195
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
196
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
197
- querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
198
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
199
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
200
- querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
201
- replaceChildren(...nodes: (string | Node)[]): void;
202
- readonly assignedSlot: HTMLSlotElement | null;
203
- oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
204
- oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
205
- onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
206
- readonly style: CSSStyleDeclaration;
207
- contentEditable: string;
208
- enterKeyHint: string;
209
- inputMode: string;
210
- readonly isContentEditable: boolean;
211
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
212
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
213
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
214
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
215
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
216
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
217
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
218
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
219
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
220
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
221
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
222
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
223
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
224
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
225
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
226
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
227
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
228
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
229
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
230
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
231
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
232
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
233
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
234
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
235
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
236
- onerror: OnErrorEventHandler;
237
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
238
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
239
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
240
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
241
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
242
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
243
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
244
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
245
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
246
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
247
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
248
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
249
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
250
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
251
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
252
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
253
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
254
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
255
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
256
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
257
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
258
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
259
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
260
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
261
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
262
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
263
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
264
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
265
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
266
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
267
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
268
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
269
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
272
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
274
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
280
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
282
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
284
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
285
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
286
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
287
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
288
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
289
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
290
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
291
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
292
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
293
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
296
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
297
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
300
- autofocus: boolean;
301
- readonly dataset: DOMStringMap;
302
- nonce?: string | undefined;
303
- tabIndex: number;
304
- blur(): void;
305
- focus(options?: FocusOptions | undefined): void;
306
- };
307
- };
1
+ export declare const createIconClass: (templateHTML: string) => CustomElementConstructor;
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconElement, TSinchIconReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-keyboard-double-arrow-left': TSinchIconReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-keyboard-double-arrow-left': TSinchIconElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M18.29 17.29a.996.996 0 0 0 0-1.41L14.42 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L12.3 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01z"/><path d="M11.7 17.29a.996.996 0 0 0 0-1.41L7.83 12l3.88-3.88a.996.996 0 1 0-1.41-1.41L5.71 11.3a.996.996 0 0 0 0 1.41l4.59 4.59c.38.38 1.01.38 1.4-.01z"/></svg>';
4
+ defineCustomElement('sinch-icon-keyboard-double-arrow-left', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconElement, TSinchIconReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-keyboard-double-arrow-right': TSinchIconReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-keyboard-double-arrow-right': TSinchIconElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M5.7 6.71a.996.996 0 0 0 0 1.41L9.58 12 5.7 15.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L7.12 6.71c-.39-.39-1.03-.39-1.42 0z"/><path d="M12.29 6.71a.996.996 0 0 0 0 1.41L16.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L13.7 6.7c-.38-.38-1.02-.38-1.41.01z"/></svg>';
4
+ defineCustomElement('sinch-icon-keyboard-double-arrow-right', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-branded-ai': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-branded-ai': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" aria-hidden="true"><path d="M23 26.6c-1.5-.08-2.71-1.3-2.71-2.8 0-1.5 1.2-2.72 2.71-2.8v-2c-2.61.08-4.71 2.2-4.71 4.8 0 2.6 2.1 4.72 4.71 4.8v-2Z" class="accent"/><path d="M23 36.93c-.32-.05-.63-.16-.86-.39-.29-.29-.46-.68-.46-1.09v-.14a3.1 3.1 0 0 0-.58-1.74c-.37-.51-.87-.89-1.41-1.08-.4-.17-.83-.26-1.25-.26-.19 0-.37.02-.56.05-.62.11-1.18.4-1.63.84l-.08.08a1.585 1.585 0 0 1-2.57-.5 1.518 1.518 0 0 1 .34-1.68l.09-.09c.44-.45.73-1 .84-1.62.1-.54.05-1.1-.14-1.61-.01-.1-.04-.2-.08-.29-.24-.56-.64-1.03-1.15-1.36-.5-.33-1.1-.5-1.71-.5h-.22c-.42 0-.82-.17-1.12-.46a1.536 1.536 0 0 1 .01-2.18c.29-.29.7-.46 1.12-.46h.12c.61 0 1.2-.18 1.71-.51s.91-.81 1.14-1.35c.25-.57.33-1.2.22-1.81-.11-.61-.4-1.17-.85-1.63l-.09-.07c-.15-.14-.26-.31-.34-.5-.07-.19-.11-.39-.11-.59 0-.2.04-.4.12-.59.08-.19.19-.36.34-.5a1.585 1.585 0 0 1 2.23 0l.08.08c.45.44 1.01.72 1.63.83.54.1 1.1.05 1.62-.13.1-.01.2-.04.29-.07.56-.24 1.04-.63 1.38-1.14.34-.51.52-1.09.52-1.71v-.21c0-.41.16-.8.46-1.09.25-.26.59-.38.95-.41v-2c-.87.04-1.73.36-2.37.99-.68.67-1.05 1.56-1.05 2.51v.21c0 .21-.06.42-.18.6-.1.14-.22.25-.36.34-.08.01-.17.04-.25.07-.21.09-.43.12-.66.08-.22-.05-.42-.15-.58-.3l-.07-.07a3.73 3.73 0 0 0-1.16-.77 3.585 3.585 0 0 0-3.89.77c-.34.33-.6.72-.78 1.15-.18.43-.27.89-.27 1.36 0 .47.09.93.27 1.36.18.43.44.82.78 1.15l.07.07c.16.16.26.36.3.57.04.21.01.43-.08.64-.09.2-.23.37-.41.48-.18.12-.4.18-.62.19h-.12c-.95 0-1.85.37-2.52 1.03C8.37 22.16 8 23.05 8 24s.37 1.84 1.05 2.51c.67.67 1.57 1.04 2.52 1.04h.22c.22 0 .43.06.62.18.14.09.26.21.34.35.01.08.04.17.07.25.09.2.12.42.08.63-.04.22-.14.41-.29.56l-.08.08c-.33.33-.6.72-.78 1.15-.18.43-.27.89-.27 1.36 0 .47.09.93.27 1.36.18.43.44.82.78 1.15a3.585 3.585 0 0 0 5.05 0l.07-.07c.16-.16.36-.26.59-.3.22-.04.45-.01.72.1.21.08.39.21.53.4.13.18.2.39.21.59v.11c0 .95.37 1.84 1.05 2.51.61.6 1.41.95 2.26 1.01v-2.04H23Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M25 13a4 4 0 0 1 8 0v.897c3.224-.002 5.776 2.928 5.212 6.198A4.725 4.725 0 0 1 42 24.725V25a5.002 5.002 0 0 1-3.9 4.879c.123 2.809-2.17 5.264-5.1 5.194A4 4 0 0 1 25 35V13Zm12.66 14.927c-.33-.814-.836-1.491-1.509-1.992-.888-.66-1.986-.954-3.168-.935l.034 2c.83-.014 1.473.192 1.94.54.462.344.832.884 1.021 1.689a1 1 0 0 0 .012.046c.56 2-1.038 3.95-3.11 3.79l-.536-.041A1.249 1.249 0 0 0 31 34.268V35a2 2 0 1 1-4 0V21.322c.917.588 1.993.708 3 .708v-2c-.941 0-1.557-.132-1.985-.435-.39-.275-.789-.811-1.015-2.013V13a2 2 0 1 1 4 0v1.666c0 .788.703 1.392 1.483 1.271 2.286-.351 4.216 1.695 3.731 3.957l-.128.599a1.248 1.248 0 0 0 1.211 1.51A2.723 2.723 0 0 1 40 24.725V25a3.001 3.001 0 0 1-2.34 2.927Z"/></svg>';
4
+ defineCustomElement('sinch-icon-branded-ai', createIconClass(templateHTML));
@@ -0,0 +1,11 @@
1
+ import type { TSinchIconBrandedElement, TSinchIconBrandedReact } from '../types';
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'sinch-icon-branded-chat': TSinchIconBrandedReact;
6
+ }
7
+ }
8
+ interface HTMLElementTagNameMap {
9
+ 'sinch-icon-branded-chat': TSinchIconBrandedElement;
10
+ }
11
+ }
@@ -0,0 +1,4 @@
1
+ import { defineCustomElement } from '../../utils';
2
+ import { createIconClass } from '../create-icon-class';
3
+ const templateHTML = '<svg viewBox="0 0 48 48" aria-hidden="true"><path d="M10 35c0-2.2 1.7-4 4-4 1.4 0 2.7.7 3.3 1.8l-1.1.6c-.4-.8-1.2-1.2-2.2-1.2-1.7 0-2.8 1.2-2.8 2.8 0 1.6 1.1 2.8 2.8 2.8 1 0 1.8-.5 2.2-1.2l1.1.6c-.6 1.1-1.9 1.8-3.3 1.8-2.3 0-4-1.8-4-4Zm14.5-3.8v7.7h-1.3v-3.3H20v3.3h-1.3v-7.7H20v3.2h3.3v-3.2h1.2Zm6.3 6.1h-3.3l-.5 1.6h-1.4l2.8-7.7h1.5l2.8 7.7h-1.4l-.5-1.6Zm-.4-1.2-1.2-3.5-1.2 3.5h2.4Zm7.9-3.7h-2.2v6.5h-1.3v-6.5h-2.2v-1.2h5.6v1.2h.1Z"/><path class="accent" d="M17.2 14c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9Zm2.1.9c.5 0 .9-.4.9-.9s-.4-.9-.9-.9-.9.4-.9.9.4.9.9.9Zm3.8-.9c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.6 8.1c-.5 0-.9.2-1.3.5s-.5.8-.5 1.3v7.8c0 .5.2.9.5 1.3.3.3.8.5 1.3.5h1.2v3.4l4.8-2.8 1.2-.7H25c.5 0 .9-.2 1.3-.5.3-.3.5-.8.5-1.3v-4.2h6c.2 0 .3.1.4.2.1.1.2.3.2.4v7.8c0 .2-.1.3-.2.4-.1.1-.3.2-.4.2h-2.4V25L26 22.5h-4.5c-.2 0-.3-.1-.4-.2-.1-.1-.2-.3-.2-.4v-1l-1.2.7v.3c0 .5.2.9.5 1.3.3.3.8.5 1.3.5h4.2l5.9 3.4v-3.4h1.2c.5 0 .9-.2 1.3-.5.3-.3.5-.8.5-1.3v-7.8c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5h-6V9.9c0-.5-.2-.9-.5-1.3-.3-.3-.8-.5-1.3-.5H13.6Zm12 9.6V9.9c0-.2-.1-.3-.2-.4-.1-.1-.3-.2-.4-.2H13.6c-.2 0-.3.1-.4.2-.1.1-.2.3-.2.4v7.8c0 .2.1.3.2.4.1.1.3.2.4.2H16v2.6l3.6-2.1.8-.5H25c.2 0 .3-.1.4-.2.1-.1.2-.2.2-.4Z"/></svg>';
4
+ defineCustomElement('sinch-icon-branded-chat', createIconClass(templateHTML));