@nectary/components 2.12.1 → 2.12.2

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 (910) hide show
  1. package/lib/cjs/accordion/index.js +88 -0
  2. package/lib/cjs/accordion/types.js +1 -0
  3. package/lib/cjs/accordion-item/index.js +97 -0
  4. package/lib/cjs/accordion-item/types.js +1 -0
  5. package/lib/cjs/accordion-item/utils.js +7 -0
  6. package/lib/cjs/action-menu/index.js +197 -0
  7. package/lib/cjs/action-menu/types.js +1 -0
  8. package/lib/cjs/action-menu-option/index.js +84 -0
  9. package/lib/cjs/action-menu-option/types.js +1 -0
  10. package/lib/cjs/action-menu-option/utils.js +10 -0
  11. package/lib/cjs/alert/index.js +50 -0
  12. package/lib/cjs/alert/types.js +1 -0
  13. package/lib/cjs/alert/utils.js +7 -0
  14. package/lib/cjs/avatar/index.js +96 -0
  15. package/lib/cjs/avatar/types.js +1 -0
  16. package/lib/cjs/avatar/utils.js +15 -0
  17. package/lib/cjs/badge/index.js +116 -0
  18. package/lib/cjs/badge/types.js +1 -0
  19. package/lib/cjs/badge/utils.js +7 -0
  20. package/lib/cjs/button/index.js +184 -0
  21. package/lib/cjs/button/types.js +1 -0
  22. package/lib/cjs/button/utils.js +7 -0
  23. package/lib/cjs/card/index.js +135 -0
  24. package/lib/cjs/card/types.js +1 -0
  25. package/lib/cjs/card-container/index.js +13 -0
  26. package/lib/cjs/card-container/types.js +1 -0
  27. package/lib/cjs/chat/index.js +13 -0
  28. package/lib/cjs/chat/types.js +1 -0
  29. package/lib/cjs/chat-block/index.js +88 -0
  30. package/lib/cjs/chat-block/types.js +1 -0
  31. package/lib/cjs/chat-bubble/index.js +43 -0
  32. package/lib/cjs/chat-bubble/types.js +1 -0
  33. package/lib/cjs/chat-bubble/utils.js +8 -0
  34. package/lib/cjs/checkbox/index.js +128 -0
  35. package/lib/cjs/checkbox/types.js +1 -0
  36. package/lib/cjs/chip/index.js +146 -0
  37. package/lib/cjs/chip/types.js +1 -0
  38. package/lib/cjs/chip/utils.js +14 -0
  39. package/lib/cjs/code-tag/index.js +33 -0
  40. package/lib/cjs/code-tag/types.js +1 -0
  41. package/lib/cjs/color-menu/index.js +310 -0
  42. package/lib/cjs/color-menu/types.js +1 -0
  43. package/lib/cjs/color-menu/utils.js +18 -0
  44. package/lib/cjs/color-menu-option/index.js +50 -0
  45. package/lib/cjs/color-menu-option/types.js +1 -0
  46. package/lib/cjs/color-menu-option/utils.js +18 -0
  47. package/lib/cjs/color-swatch/index.js +56 -0
  48. package/lib/cjs/color-swatch/types.js +1 -0
  49. package/lib/cjs/color-swatch/utils.js +14 -0
  50. package/lib/cjs/date-picker/index.js +383 -0
  51. package/lib/cjs/date-picker/types.js +1 -0
  52. package/lib/cjs/date-picker/utils.js +171 -0
  53. package/lib/cjs/dialog/index.js +146 -0
  54. package/lib/cjs/dialog/types.js +1 -0
  55. package/lib/cjs/dialog/utils.js +26 -0
  56. package/lib/cjs/emoji/index.js +48 -0
  57. package/lib/cjs/emoji/types.js +1 -0
  58. package/lib/cjs/emoji/utils.js +56 -0
  59. package/lib/cjs/emoji-picker/index.js +311 -0
  60. package/lib/cjs/emoji-picker/types.js +1 -0
  61. package/lib/cjs/field/index.js +122 -0
  62. package/lib/cjs/field/types.js +1 -0
  63. package/lib/cjs/file-drop/index.js +207 -0
  64. package/lib/cjs/file-drop/types.js +1 -0
  65. package/lib/cjs/file-drop/utils.js +39 -0
  66. package/lib/cjs/file-picker/index.js +105 -0
  67. package/lib/cjs/file-picker/types.js +1 -0
  68. package/lib/cjs/file-picker/utils.js +15 -0
  69. package/lib/cjs/file-status/index.js +63 -0
  70. package/lib/cjs/file-status/types.js +1 -0
  71. package/lib/cjs/file-status/utils.js +7 -0
  72. package/lib/cjs/flag/index.js +48 -0
  73. package/lib/cjs/flag/types.js +1 -0
  74. package/lib/cjs/flag/utils.js +24 -0
  75. package/lib/cjs/grid/index.js +13 -0
  76. package/lib/cjs/grid/types.js +1 -0
  77. package/lib/cjs/grid-item/index.js +37 -0
  78. package/lib/cjs/grid-item/types.js +1 -0
  79. package/lib/cjs/help-tooltip/index.js +76 -0
  80. package/lib/cjs/help-tooltip/types.js +1 -0
  81. package/lib/cjs/horizontal-stepper/index.js +63 -0
  82. package/lib/cjs/horizontal-stepper/types.js +1 -0
  83. package/lib/cjs/horizontal-stepper-item/index.js +63 -0
  84. package/lib/cjs/horizontal-stepper-item/types.js +1 -0
  85. package/lib/cjs/horizontal-stepper-item/utils.js +7 -0
  86. package/lib/cjs/icon/index.js +34 -0
  87. package/lib/cjs/icon/types.js +1 -0
  88. package/lib/cjs/icon-button/index.js +177 -0
  89. package/lib/cjs/icon-button/types.js +1 -0
  90. package/lib/cjs/icon-button/utils.js +7 -0
  91. package/lib/cjs/imports.d.js +1 -0
  92. package/lib/cjs/imports.d.ts +9 -0
  93. package/lib/cjs/inline-alert/index.js +85 -0
  94. package/lib/cjs/inline-alert/types.js +1 -0
  95. package/lib/cjs/inline-alert/utils.js +7 -0
  96. package/lib/cjs/input/index.js +644 -0
  97. package/lib/cjs/input/types.js +1 -0
  98. package/lib/cjs/input/utils.js +317 -0
  99. package/lib/cjs/link/index.js +152 -0
  100. package/lib/cjs/link/types.js +1 -0
  101. package/lib/cjs/list/index.js +16 -0
  102. package/lib/cjs/list/types.js +1 -0
  103. package/lib/cjs/list-item/index.js +16 -0
  104. package/lib/cjs/list-item/types.js +1 -0
  105. package/lib/cjs/pagination/index.js +149 -0
  106. package/lib/cjs/pagination/types.js +1 -0
  107. package/lib/cjs/pop/index.js +427 -0
  108. package/lib/cjs/pop/types.js +1 -0
  109. package/lib/cjs/pop/utils.js +24 -0
  110. package/lib/cjs/popover/index.js +148 -0
  111. package/lib/cjs/popover/types.js +1 -0
  112. package/lib/cjs/popover/utils.js +17 -0
  113. package/lib/cjs/progress/index.js +60 -0
  114. package/lib/cjs/progress/types.js +1 -0
  115. package/lib/cjs/progress-stepper/index.js +208 -0
  116. package/lib/cjs/progress-stepper/types.js +1 -0
  117. package/lib/cjs/progress-stepper-item/index.js +84 -0
  118. package/lib/cjs/progress-stepper-item/types.js +1 -0
  119. package/lib/cjs/progress-stepper-item/utils.js +25 -0
  120. package/lib/cjs/radio/index.js +156 -0
  121. package/lib/cjs/radio/types.js +1 -0
  122. package/lib/cjs/radio-option/index.js +81 -0
  123. package/lib/cjs/radio-option/types.js +1 -0
  124. package/lib/cjs/rich-text/index.js +77 -0
  125. package/lib/cjs/rich-text/types.js +1 -0
  126. package/lib/cjs/rich-text/utils.js +117 -0
  127. package/lib/cjs/rich-textarea/index.js +466 -0
  128. package/lib/cjs/rich-textarea/types.js +1 -0
  129. package/lib/cjs/rich-textarea/utils.js +1754 -0
  130. package/lib/cjs/segment/index.js +111 -0
  131. package/lib/cjs/segment/types.js +1 -0
  132. package/lib/cjs/segment/utils.js +23 -0
  133. package/lib/cjs/segment-collapse/index.js +62 -0
  134. package/lib/cjs/segment-collapse/types.js +1 -0
  135. package/lib/cjs/segmented-control/index.js +87 -0
  136. package/lib/cjs/segmented-control/types.js +1 -0
  137. package/lib/cjs/segmented-control-option/index.js +97 -0
  138. package/lib/cjs/segmented-control-option/types.js +1 -0
  139. package/lib/cjs/segmented-icon-control/index.js +103 -0
  140. package/lib/cjs/segmented-icon-control/types.js +1 -0
  141. package/lib/cjs/segmented-icon-control-option/index.js +84 -0
  142. package/lib/cjs/segmented-icon-control-option/types.js +1 -0
  143. package/lib/cjs/select-button/index.js +204 -0
  144. package/lib/cjs/select-button/types.js +1 -0
  145. package/lib/cjs/select-menu/index.js +341 -0
  146. package/lib/cjs/select-menu/types.js +1 -0
  147. package/lib/cjs/select-menu-option/index.js +72 -0
  148. package/lib/cjs/select-menu-option/types.js +1 -0
  149. package/lib/cjs/skeleton/index.js +110 -0
  150. package/lib/cjs/skeleton/types.js +1 -0
  151. package/lib/cjs/skeleton-item/index.js +13 -0
  152. package/lib/cjs/skeleton-item/types.js +1 -0
  153. package/lib/cjs/spinner/index.js +60 -0
  154. package/lib/cjs/spinner/types.js +1 -0
  155. package/lib/cjs/standalone.js +89 -0
  156. package/lib/cjs/stop-events/index.js +29 -0
  157. package/lib/cjs/table/index.js +16 -0
  158. package/lib/cjs/table/types.js +1 -0
  159. package/lib/cjs/table-body/index.js +16 -0
  160. package/lib/cjs/table-body/types.js +1 -0
  161. package/lib/cjs/table-cell/index.js +23 -0
  162. package/lib/cjs/table-cell/types.js +1 -0
  163. package/lib/cjs/table-cell/utils.js +7 -0
  164. package/lib/cjs/table-head/index.js +16 -0
  165. package/lib/cjs/table-head/types.js +1 -0
  166. package/lib/cjs/table-head-cell/index.js +59 -0
  167. package/lib/cjs/table-head-cell/types.js +1 -0
  168. package/lib/cjs/table-row/index.js +44 -0
  169. package/lib/cjs/table-row/types.js +1 -0
  170. package/lib/cjs/tabs/index.js +82 -0
  171. package/lib/cjs/tabs/types.js +1 -0
  172. package/lib/cjs/tabs-icon-option/index.js +81 -0
  173. package/lib/cjs/tabs-icon-option/types.js +1 -0
  174. package/lib/cjs/tabs-option/index.js +88 -0
  175. package/lib/cjs/tabs-option/types.js +1 -0
  176. package/lib/cjs/tag/index.js +86 -0
  177. package/lib/cjs/tag/types.js +1 -0
  178. package/lib/cjs/tag/utils.js +14 -0
  179. package/lib/cjs/text/index.js +66 -0
  180. package/lib/cjs/text/types.js +1 -0
  181. package/lib/cjs/text/utils.js +7 -0
  182. package/lib/cjs/textarea/index.js +324 -0
  183. package/lib/cjs/textarea/types.js +1 -0
  184. package/lib/cjs/tile-control/index.js +112 -0
  185. package/lib/cjs/tile-control/types.js +1 -0
  186. package/lib/cjs/tile-control-option/index.js +100 -0
  187. package/lib/cjs/tile-control-option/types.js +1 -0
  188. package/lib/cjs/time-picker/index.js +339 -0
  189. package/lib/cjs/time-picker/types.js +1 -0
  190. package/lib/cjs/time-picker/utils.js +89 -0
  191. package/lib/cjs/title/index.js +62 -0
  192. package/lib/cjs/title/types.js +1 -0
  193. package/lib/cjs/title/utils.js +24 -0
  194. package/lib/cjs/toast/index.js +88 -0
  195. package/lib/cjs/toast/types.js +1 -0
  196. package/lib/cjs/toast/utils.js +7 -0
  197. package/lib/cjs/toast-manager/index.js +172 -0
  198. package/lib/cjs/toast-manager/types.js +1 -0
  199. package/lib/cjs/toast-manager/utils.js +7 -0
  200. package/lib/cjs/toggle/index.js +143 -0
  201. package/lib/cjs/toggle/types.js +1 -0
  202. package/lib/cjs/tooltip/index.js +277 -0
  203. package/lib/cjs/tooltip/tooltip-state.js +133 -0
  204. package/lib/cjs/tooltip/types.js +1 -0
  205. package/lib/cjs/tooltip/utils.js +25 -0
  206. package/lib/cjs/types.d.js +1 -0
  207. package/lib/cjs/utils/context.js +92 -0
  208. package/lib/cjs/utils/countries.js +9 -0
  209. package/lib/cjs/utils/csv.js +32 -0
  210. package/lib/cjs/utils/debounce.js +29 -0
  211. package/lib/cjs/utils/dom.js +183 -0
  212. package/lib/cjs/utils/element.js +58 -0
  213. package/lib/cjs/utils/event-target.js +36 -0
  214. package/lib/cjs/utils/get-react-event-handler.js +15 -0
  215. package/lib/cjs/utils/index.js +137 -0
  216. package/lib/cjs/utils/markdown.js +151 -0
  217. package/lib/cjs/utils/rect.js +37 -0
  218. package/lib/cjs/utils/size.js +9 -0
  219. package/lib/cjs/utils/slot.js +47 -0
  220. package/lib/cjs/utils/throttle.js +26 -0
  221. package/lib/cjs/utils/uid.js +20 -0
  222. package/lib/cjs/vertical-stepper/index.js +59 -0
  223. package/lib/cjs/vertical-stepper/types.js +1 -0
  224. package/lib/cjs/vertical-stepper-item/index.js +63 -0
  225. package/lib/cjs/vertical-stepper-item/types.js +1 -0
  226. package/lib/cjs/vertical-stepper-item/utils.js +7 -0
  227. package/lib/esm/accordion/index.d.ts +11 -0
  228. package/lib/esm/accordion/types.d.ts +21 -0
  229. package/lib/esm/accordion-item/index.d.ts +14 -0
  230. package/lib/esm/accordion-item/types.d.ts +36 -0
  231. package/lib/esm/accordion-item/utils.d.ts +2 -0
  232. package/lib/esm/action-menu/index.d.ts +11 -0
  233. package/lib/esm/action-menu/types.d.ts +13 -0
  234. package/lib/esm/action-menu-option/index.d.ts +12 -0
  235. package/lib/esm/action-menu-option/types.d.ts +23 -0
  236. package/lib/esm/action-menu-option/utils.d.ts +2 -0
  237. package/lib/esm/alert/index.d.ts +14 -0
  238. package/lib/esm/alert/types.d.ts +18 -0
  239. package/lib/esm/alert/utils.d.ts +2 -0
  240. package/lib/esm/avatar/index.d.ts +11 -0
  241. package/lib/esm/avatar/types.d.ts +37 -0
  242. package/lib/esm/avatar/utils.d.ts +4 -0
  243. package/lib/esm/badge/index.d.ts +11 -0
  244. package/lib/esm/badge/types.d.ts +34 -0
  245. package/lib/esm/badge/utils.d.ts +2 -0
  246. package/lib/esm/button/index.d.ts +11 -0
  247. package/lib/esm/button/types.d.ts +53 -0
  248. package/lib/esm/button/utils.d.ts +2 -0
  249. package/lib/esm/card/index.d.ts +13 -0
  250. package/lib/esm/card/types.d.ts +28 -0
  251. package/lib/esm/card-container/index.d.ts +11 -0
  252. package/lib/esm/card-container/types.d.ts +3 -0
  253. package/lib/esm/chat/index.d.ts +11 -0
  254. package/lib/esm/chat/types.d.ts +3 -0
  255. package/lib/esm/chat-block/index.d.ts +11 -0
  256. package/lib/esm/chat-block/types.d.ts +30 -0
  257. package/lib/esm/chat-bubble/index.d.ts +11 -0
  258. package/lib/esm/chat-bubble/types.d.ts +20 -0
  259. package/lib/esm/chat-bubble/utils.d.ts +3 -0
  260. package/lib/esm/checkbox/index.d.ts +11 -0
  261. package/lib/esm/checkbox/types.d.ts +49 -0
  262. package/lib/esm/chip/index.d.ts +13 -0
  263. package/lib/esm/chip/types.d.ts +37 -0
  264. package/lib/esm/chip/utils.d.ts +2 -0
  265. package/lib/esm/code-tag/index.d.ts +11 -0
  266. package/lib/esm/code-tag/types.d.ts +11 -0
  267. package/lib/esm/color-menu/index.d.ts +11 -0
  268. package/lib/esm/color-menu/types.d.ts +32 -0
  269. package/lib/esm/color-menu/utils.d.ts +1 -0
  270. package/lib/esm/color-menu-option/index.d.ts +13 -0
  271. package/lib/esm/color-menu-option/types.d.ts +11 -0
  272. package/lib/esm/color-menu-option/utils.d.ts +1 -0
  273. package/lib/esm/color-swatch/index.d.ts +12 -0
  274. package/lib/esm/color-swatch/types.d.ts +11 -0
  275. package/lib/esm/color-swatch/utils.d.ts +2 -0
  276. package/lib/esm/colors.json +88 -0
  277. package/lib/esm/date-picker/index.d.ts +14 -0
  278. package/lib/esm/date-picker/types.d.ts +70 -0
  279. package/lib/esm/date-picker/utils.d.ts +28 -0
  280. package/lib/esm/dialog/index.d.ts +15 -0
  281. package/lib/esm/dialog/types.d.ts +28 -0
  282. package/lib/esm/dialog/utils.d.ts +2 -0
  283. package/lib/esm/emoji/index.d.ts +11 -0
  284. package/lib/esm/emoji/types.d.ts +11 -0
  285. package/lib/esm/emoji/utils.d.ts +3 -0
  286. package/lib/esm/emoji-picker/data.json +1 -0
  287. package/lib/esm/emoji-picker/index.d.ts +22 -0
  288. package/lib/esm/emoji-picker/types.d.ts +26 -0
  289. package/lib/esm/field/index.d.ts +11 -0
  290. package/lib/esm/field/types.d.ts +35 -0
  291. package/lib/esm/file-drop/index.d.ts +13 -0
  292. package/lib/esm/file-drop/types.d.ts +50 -0
  293. package/lib/esm/file-drop/utils.d.ts +2 -0
  294. package/lib/esm/file-picker/index.d.ts +11 -0
  295. package/lib/esm/file-picker/types.d.ts +32 -0
  296. package/lib/esm/file-picker/utils.d.ts +1 -0
  297. package/lib/esm/file-status/index.d.ts +14 -0
  298. package/lib/esm/file-status/types.d.ts +18 -0
  299. package/lib/esm/file-status/utils.d.ts +2 -0
  300. package/lib/esm/flag/index.d.ts +11 -0
  301. package/lib/esm/flag/types.d.ts +11 -0
  302. package/lib/esm/flag/utils.d.ts +1 -0
  303. package/lib/esm/grid/index.d.ts +11 -0
  304. package/lib/esm/grid/types.d.ts +3 -0
  305. package/lib/esm/grid-item/index.d.ts +11 -0
  306. package/lib/esm/grid-item/types.d.ts +17 -0
  307. package/lib/esm/help-tooltip/index.d.ts +13 -0
  308. package/lib/esm/help-tooltip/types.d.ts +3 -0
  309. package/lib/esm/horizontal-stepper/index.d.ts +11 -0
  310. package/lib/esm/horizontal-stepper/types.d.ts +13 -0
  311. package/lib/esm/horizontal-stepper-item/index.d.ts +14 -0
  312. package/lib/esm/horizontal-stepper-item/types.d.ts +24 -0
  313. package/lib/esm/horizontal-stepper-item/utils.d.ts +2 -0
  314. package/lib/esm/icon/index.d.ts +11 -0
  315. package/lib/esm/icon/types.d.ts +11 -0
  316. package/lib/esm/icon-button/index.d.ts +12 -0
  317. package/lib/esm/icon-button/types.d.ts +44 -0
  318. package/lib/esm/icon-button/utils.d.ts +2 -0
  319. package/lib/esm/imports.d.js +0 -0
  320. package/lib/esm/imports.d.ts +9 -0
  321. package/lib/esm/inline-alert/index.d.ts +15 -0
  322. package/lib/esm/inline-alert/types.d.ts +15 -0
  323. package/lib/esm/inline-alert/utils.d.ts +2 -0
  324. package/lib/esm/input/index.d.ts +11 -0
  325. package/lib/esm/input/types.d.ts +86 -0
  326. package/lib/esm/input/utils.d.ts +26 -0
  327. package/lib/esm/link/index.d.ts +12 -0
  328. package/lib/esm/link/types.d.ts +59 -0
  329. package/lib/esm/list/index.d.ts +11 -0
  330. package/lib/esm/list/types.d.ts +3 -0
  331. package/lib/esm/list-item/index.d.ts +11 -0
  332. package/lib/esm/list-item/types.d.ts +3 -0
  333. package/lib/esm/pagination/index.d.ts +12 -0
  334. package/lib/esm/pagination/types.d.ts +16 -0
  335. package/lib/esm/pop/index.d.ts +11 -0
  336. package/lib/esm/pop/types.d.ts +35 -0
  337. package/lib/esm/pop/utils.d.ts +4 -0
  338. package/lib/esm/popover/index.d.ts +12 -0
  339. package/lib/esm/popover/types.d.ts +38 -0
  340. package/lib/esm/popover/utils.d.ts +4 -0
  341. package/lib/esm/progress/index.d.ts +12 -0
  342. package/lib/esm/progress/types.d.ts +12 -0
  343. package/lib/esm/progress-stepper/index.d.ts +11 -0
  344. package/lib/esm/progress-stepper/types.d.ts +22 -0
  345. package/lib/esm/progress-stepper-item/index.d.ts +12 -0
  346. package/lib/esm/progress-stepper-item/types.d.ts +23 -0
  347. package/lib/esm/progress-stepper-item/utils.d.ts +11 -0
  348. package/lib/esm/radio/index.d.ts +11 -0
  349. package/lib/esm/radio/types.d.ts +14 -0
  350. package/lib/esm/radio-option/index.d.ts +11 -0
  351. package/lib/esm/radio-option/types.d.ts +18 -0
  352. package/lib/esm/rich-text/index.d.ts +14 -0
  353. package/lib/esm/rich-text/types.d.ts +12 -0
  354. package/lib/esm/rich-text/utils.d.ts +7 -0
  355. package/lib/esm/rich-textarea/index.d.ts +11 -0
  356. package/lib/esm/rich-textarea/types.d.ts +48 -0
  357. package/lib/esm/rich-textarea/utils.d.ts +39 -0
  358. package/lib/esm/segment/index.d.ts +12 -0
  359. package/lib/esm/segment/types.d.ts +16 -0
  360. package/lib/esm/segment/utils.d.ts +3 -0
  361. package/lib/esm/segment-collapse/index.d.ts +13 -0
  362. package/lib/esm/segment-collapse/types.d.ts +11 -0
  363. package/lib/esm/segmented-control/index.d.ts +11 -0
  364. package/lib/esm/segmented-control/types.d.ts +11 -0
  365. package/lib/esm/segmented-control-option/index.d.ts +11 -0
  366. package/lib/esm/segmented-control-option/types.d.ts +19 -0
  367. package/lib/esm/segmented-icon-control/index.d.ts +11 -0
  368. package/lib/esm/segmented-icon-control/types.d.ts +14 -0
  369. package/lib/esm/segmented-icon-control-option/index.d.ts +11 -0
  370. package/lib/esm/segmented-icon-control-option/types.d.ts +16 -0
  371. package/lib/esm/select-button/index.d.ts +13 -0
  372. package/lib/esm/select-button/types.d.ts +50 -0
  373. package/lib/esm/select-menu/index.d.ts +15 -0
  374. package/lib/esm/select-menu/types.d.ts +41 -0
  375. package/lib/esm/select-menu-option/index.d.ts +28 -0
  376. package/lib/esm/select-menu-option/types.d.ts +26 -0
  377. package/lib/esm/skeleton/index.d.ts +11 -0
  378. package/lib/esm/skeleton/types.d.ts +9 -0
  379. package/lib/esm/skeleton-item/index.d.ts +11 -0
  380. package/lib/esm/skeleton-item/types.d.ts +13 -0
  381. package/lib/esm/spinner/index.d.ts +11 -0
  382. package/lib/esm/spinner/types.d.ts +12 -0
  383. package/lib/esm/standalone.d.ts +85 -0
  384. package/lib/esm/stop-events/index.d.ts +1 -0
  385. package/lib/esm/table/index.d.ts +11 -0
  386. package/lib/esm/table/types.d.ts +3 -0
  387. package/lib/esm/table-body/index.d.ts +11 -0
  388. package/lib/esm/table-body/types.d.ts +3 -0
  389. package/lib/esm/table-cell/index.d.ts +11 -0
  390. package/lib/esm/table-cell/types.d.ts +9 -0
  391. package/lib/esm/table-cell/utils.d.ts +2 -0
  392. package/lib/esm/table-head/index.d.ts +11 -0
  393. package/lib/esm/table-head/types.d.ts +3 -0
  394. package/lib/esm/table-head-cell/index.d.ts +12 -0
  395. package/lib/esm/table-head-cell/types.d.ts +15 -0
  396. package/lib/esm/table-row/index.d.ts +11 -0
  397. package/lib/esm/table-row/types.d.ts +11 -0
  398. package/lib/esm/tabs/index.d.ts +11 -0
  399. package/lib/esm/tabs/types.d.ts +18 -0
  400. package/lib/esm/tabs-icon-option/index.d.ts +11 -0
  401. package/lib/esm/tabs-icon-option/types.d.ts +19 -0
  402. package/lib/esm/tabs-option/index.d.ts +12 -0
  403. package/lib/esm/tabs-option/types.d.ts +25 -0
  404. package/lib/esm/tag/index.d.ts +12 -0
  405. package/lib/esm/tag/types.d.ts +23 -0
  406. package/lib/esm/tag/utils.d.ts +2 -0
  407. package/lib/esm/text/index.d.ts +11 -0
  408. package/lib/esm/text/types.d.ts +30 -0
  409. package/lib/esm/text/utils.d.ts +2 -0
  410. package/lib/esm/textarea/index.d.ts +11 -0
  411. package/lib/esm/textarea/types.d.ts +60 -0
  412. package/lib/esm/tile-control/index.d.ts +11 -0
  413. package/lib/esm/tile-control/types.d.ts +37 -0
  414. package/lib/esm/tile-control-option/index.d.ts +11 -0
  415. package/lib/esm/tile-control-option/types.d.ts +37 -0
  416. package/lib/esm/time-picker/index.d.ts +15 -0
  417. package/lib/esm/time-picker/types.d.ts +34 -0
  418. package/lib/esm/time-picker/utils.d.ts +11 -0
  419. package/lib/esm/title/index.d.ts +11 -0
  420. package/lib/esm/title/types.d.ts +31 -0
  421. package/lib/esm/title/utils.d.ts +3 -0
  422. package/lib/esm/toast/index.d.ts +13 -0
  423. package/lib/esm/toast/types.d.ts +28 -0
  424. package/lib/esm/toast/utils.d.ts +2 -0
  425. package/lib/esm/toast-manager/index.d.ts +13 -0
  426. package/lib/esm/toast-manager/types.d.ts +13 -0
  427. package/lib/esm/toast-manager/utils.d.ts +2 -0
  428. package/lib/esm/toggle/index.d.ts +11 -0
  429. package/lib/esm/toggle/types.d.ts +23 -0
  430. package/lib/esm/tooltip/index.d.ts +13 -0
  431. package/lib/esm/tooltip/tooltip-state.d.ts +19 -0
  432. package/lib/esm/tooltip/types.d.ts +42 -0
  433. package/lib/esm/tooltip/utils.d.ts +6 -0
  434. package/lib/esm/types.d.ts +14 -0
  435. package/lib/esm/utils/context.d.ts +20 -0
  436. package/lib/esm/utils/countries.d.ts +6 -0
  437. package/lib/esm/utils/countries.json +1217 -0
  438. package/lib/esm/utils/csv.d.ts +5 -0
  439. package/lib/esm/utils/debounce.d.ts +8 -0
  440. package/lib/esm/utils/dom.d.ts +34 -0
  441. package/lib/esm/utils/element.d.ts +16 -0
  442. package/lib/esm/utils/element.js +48 -0
  443. package/lib/esm/utils/event-target.d.ts +4 -0
  444. package/lib/esm/utils/get-react-event-handler.d.ts +1 -0
  445. package/lib/esm/utils/index.d.ts +12 -0
  446. package/lib/esm/utils/markdown.d.ts +19 -0
  447. package/lib/esm/utils/rect.d.ts +4 -0
  448. package/lib/esm/utils/size.d.ts +5 -0
  449. package/lib/esm/utils/slot.d.ts +4 -0
  450. package/lib/esm/utils/throttle.d.ts +4 -0
  451. package/lib/esm/utils/uid.d.ts +1 -0
  452. package/lib/esm/vertical-stepper/index.d.ts +11 -0
  453. package/lib/esm/vertical-stepper/types.d.ts +13 -0
  454. package/lib/esm/vertical-stepper/types.js +1 -0
  455. package/lib/esm/vertical-stepper-item/index.d.ts +14 -0
  456. package/lib/esm/vertical-stepper-item/types.d.ts +24 -0
  457. package/lib/esm/vertical-stepper-item/utils.d.ts +2 -0
  458. package/lib/package.json +1 -0
  459. package/package.json +33 -11
  460. package/standalone.ts +0 -93
  461. package/utils/element.js +0 -48
  462. /package/{accordion → lib/cjs/accordion}/index.d.ts +0 -0
  463. /package/{accordion → lib/cjs/accordion}/types.d.ts +0 -0
  464. /package/{accordion-item → lib/cjs/accordion-item}/index.d.ts +0 -0
  465. /package/{accordion-item → lib/cjs/accordion-item}/types.d.ts +0 -0
  466. /package/{accordion-item → lib/cjs/accordion-item}/utils.d.ts +0 -0
  467. /package/{action-menu → lib/cjs/action-menu}/index.d.ts +0 -0
  468. /package/{action-menu → lib/cjs/action-menu}/types.d.ts +0 -0
  469. /package/{action-menu-option → lib/cjs/action-menu-option}/index.d.ts +0 -0
  470. /package/{action-menu-option → lib/cjs/action-menu-option}/types.d.ts +0 -0
  471. /package/{action-menu-option → lib/cjs/action-menu-option}/utils.d.ts +0 -0
  472. /package/{alert → lib/cjs/alert}/index.d.ts +0 -0
  473. /package/{alert → lib/cjs/alert}/types.d.ts +0 -0
  474. /package/{alert → lib/cjs/alert}/utils.d.ts +0 -0
  475. /package/{avatar → lib/cjs/avatar}/index.d.ts +0 -0
  476. /package/{avatar → lib/cjs/avatar}/types.d.ts +0 -0
  477. /package/{avatar → lib/cjs/avatar}/utils.d.ts +0 -0
  478. /package/{badge → lib/cjs/badge}/index.d.ts +0 -0
  479. /package/{badge → lib/cjs/badge}/types.d.ts +0 -0
  480. /package/{badge → lib/cjs/badge}/utils.d.ts +0 -0
  481. /package/{button → lib/cjs/button}/index.d.ts +0 -0
  482. /package/{button → lib/cjs/button}/types.d.ts +0 -0
  483. /package/{button → lib/cjs/button}/utils.d.ts +0 -0
  484. /package/{card → lib/cjs/card}/index.d.ts +0 -0
  485. /package/{card → lib/cjs/card}/types.d.ts +0 -0
  486. /package/{card-container → lib/cjs/card-container}/index.d.ts +0 -0
  487. /package/{card-container → lib/cjs/card-container}/types.d.ts +0 -0
  488. /package/{chat → lib/cjs/chat}/index.d.ts +0 -0
  489. /package/{chat → lib/cjs/chat}/types.d.ts +0 -0
  490. /package/{chat-block → lib/cjs/chat-block}/index.d.ts +0 -0
  491. /package/{chat-block → lib/cjs/chat-block}/types.d.ts +0 -0
  492. /package/{chat-bubble → lib/cjs/chat-bubble}/index.d.ts +0 -0
  493. /package/{chat-bubble → lib/cjs/chat-bubble}/types.d.ts +0 -0
  494. /package/{chat-bubble → lib/cjs/chat-bubble}/utils.d.ts +0 -0
  495. /package/{checkbox → lib/cjs/checkbox}/index.d.ts +0 -0
  496. /package/{checkbox → lib/cjs/checkbox}/types.d.ts +0 -0
  497. /package/{chip → lib/cjs/chip}/index.d.ts +0 -0
  498. /package/{chip → lib/cjs/chip}/types.d.ts +0 -0
  499. /package/{chip → lib/cjs/chip}/utils.d.ts +0 -0
  500. /package/{code-tag → lib/cjs/code-tag}/index.d.ts +0 -0
  501. /package/{code-tag → lib/cjs/code-tag}/types.d.ts +0 -0
  502. /package/{color-menu → lib/cjs/color-menu}/index.d.ts +0 -0
  503. /package/{color-menu → lib/cjs/color-menu}/types.d.ts +0 -0
  504. /package/{color-menu → lib/cjs/color-menu}/utils.d.ts +0 -0
  505. /package/{color-menu-option → lib/cjs/color-menu-option}/index.d.ts +0 -0
  506. /package/{color-menu-option → lib/cjs/color-menu-option}/types.d.ts +0 -0
  507. /package/{color-menu-option → lib/cjs/color-menu-option}/utils.d.ts +0 -0
  508. /package/{color-swatch → lib/cjs/color-swatch}/index.d.ts +0 -0
  509. /package/{color-swatch → lib/cjs/color-swatch}/types.d.ts +0 -0
  510. /package/{color-swatch → lib/cjs/color-swatch}/utils.d.ts +0 -0
  511. /package/{colors.json → lib/cjs/colors.json} +0 -0
  512. /package/{date-picker → lib/cjs/date-picker}/index.d.ts +0 -0
  513. /package/{date-picker → lib/cjs/date-picker}/types.d.ts +0 -0
  514. /package/{date-picker → lib/cjs/date-picker}/utils.d.ts +0 -0
  515. /package/{dialog → lib/cjs/dialog}/index.d.ts +0 -0
  516. /package/{dialog → lib/cjs/dialog}/types.d.ts +0 -0
  517. /package/{dialog → lib/cjs/dialog}/utils.d.ts +0 -0
  518. /package/{emoji → lib/cjs/emoji}/index.d.ts +0 -0
  519. /package/{emoji → lib/cjs/emoji}/types.d.ts +0 -0
  520. /package/{emoji → lib/cjs/emoji}/utils.d.ts +0 -0
  521. /package/{emoji-picker → lib/cjs/emoji-picker}/data.json +0 -0
  522. /package/{emoji-picker → lib/cjs/emoji-picker}/index.d.ts +0 -0
  523. /package/{emoji-picker → lib/cjs/emoji-picker}/types.d.ts +0 -0
  524. /package/{field → lib/cjs/field}/index.d.ts +0 -0
  525. /package/{field → lib/cjs/field}/types.d.ts +0 -0
  526. /package/{file-drop → lib/cjs/file-drop}/index.d.ts +0 -0
  527. /package/{file-drop → lib/cjs/file-drop}/types.d.ts +0 -0
  528. /package/{file-drop → lib/cjs/file-drop}/utils.d.ts +0 -0
  529. /package/{file-picker → lib/cjs/file-picker}/index.d.ts +0 -0
  530. /package/{file-picker → lib/cjs/file-picker}/types.d.ts +0 -0
  531. /package/{file-picker → lib/cjs/file-picker}/utils.d.ts +0 -0
  532. /package/{file-status → lib/cjs/file-status}/index.d.ts +0 -0
  533. /package/{file-status → lib/cjs/file-status}/types.d.ts +0 -0
  534. /package/{file-status → lib/cjs/file-status}/utils.d.ts +0 -0
  535. /package/{flag → lib/cjs/flag}/index.d.ts +0 -0
  536. /package/{flag → lib/cjs/flag}/types.d.ts +0 -0
  537. /package/{flag → lib/cjs/flag}/utils.d.ts +0 -0
  538. /package/{grid → lib/cjs/grid}/index.d.ts +0 -0
  539. /package/{grid → lib/cjs/grid}/types.d.ts +0 -0
  540. /package/{grid-item → lib/cjs/grid-item}/index.d.ts +0 -0
  541. /package/{grid-item → lib/cjs/grid-item}/types.d.ts +0 -0
  542. /package/{help-tooltip → lib/cjs/help-tooltip}/index.d.ts +0 -0
  543. /package/{help-tooltip → lib/cjs/help-tooltip}/types.d.ts +0 -0
  544. /package/{horizontal-stepper → lib/cjs/horizontal-stepper}/index.d.ts +0 -0
  545. /package/{horizontal-stepper → lib/cjs/horizontal-stepper}/types.d.ts +0 -0
  546. /package/{horizontal-stepper-item → lib/cjs/horizontal-stepper-item}/index.d.ts +0 -0
  547. /package/{horizontal-stepper-item → lib/cjs/horizontal-stepper-item}/types.d.ts +0 -0
  548. /package/{horizontal-stepper-item → lib/cjs/horizontal-stepper-item}/utils.d.ts +0 -0
  549. /package/{icon → lib/cjs/icon}/index.d.ts +0 -0
  550. /package/{icon → lib/cjs/icon}/types.d.ts +0 -0
  551. /package/{icon-button → lib/cjs/icon-button}/index.d.ts +0 -0
  552. /package/{icon-button → lib/cjs/icon-button}/types.d.ts +0 -0
  553. /package/{icon-button → lib/cjs/icon-button}/utils.d.ts +0 -0
  554. /package/{inline-alert → lib/cjs/inline-alert}/index.d.ts +0 -0
  555. /package/{inline-alert → lib/cjs/inline-alert}/types.d.ts +0 -0
  556. /package/{inline-alert → lib/cjs/inline-alert}/utils.d.ts +0 -0
  557. /package/{input → lib/cjs/input}/index.d.ts +0 -0
  558. /package/{input → lib/cjs/input}/types.d.ts +0 -0
  559. /package/{input → lib/cjs/input}/utils.d.ts +0 -0
  560. /package/{link → lib/cjs/link}/index.d.ts +0 -0
  561. /package/{link → lib/cjs/link}/types.d.ts +0 -0
  562. /package/{list → lib/cjs/list}/index.d.ts +0 -0
  563. /package/{list → lib/cjs/list}/types.d.ts +0 -0
  564. /package/{list-item → lib/cjs/list-item}/index.d.ts +0 -0
  565. /package/{list-item → lib/cjs/list-item}/types.d.ts +0 -0
  566. /package/{pagination → lib/cjs/pagination}/index.d.ts +0 -0
  567. /package/{pagination → lib/cjs/pagination}/types.d.ts +0 -0
  568. /package/{pop → lib/cjs/pop}/index.d.ts +0 -0
  569. /package/{pop → lib/cjs/pop}/types.d.ts +0 -0
  570. /package/{pop → lib/cjs/pop}/utils.d.ts +0 -0
  571. /package/{popover → lib/cjs/popover}/index.d.ts +0 -0
  572. /package/{popover → lib/cjs/popover}/types.d.ts +0 -0
  573. /package/{popover → lib/cjs/popover}/utils.d.ts +0 -0
  574. /package/{progress → lib/cjs/progress}/index.d.ts +0 -0
  575. /package/{progress → lib/cjs/progress}/types.d.ts +0 -0
  576. /package/{progress-stepper → lib/cjs/progress-stepper}/index.d.ts +0 -0
  577. /package/{progress-stepper → lib/cjs/progress-stepper}/types.d.ts +0 -0
  578. /package/{progress-stepper-item → lib/cjs/progress-stepper-item}/index.d.ts +0 -0
  579. /package/{progress-stepper-item → lib/cjs/progress-stepper-item}/types.d.ts +0 -0
  580. /package/{progress-stepper-item → lib/cjs/progress-stepper-item}/utils.d.ts +0 -0
  581. /package/{radio → lib/cjs/radio}/index.d.ts +0 -0
  582. /package/{radio → lib/cjs/radio}/types.d.ts +0 -0
  583. /package/{radio-option → lib/cjs/radio-option}/index.d.ts +0 -0
  584. /package/{radio-option → lib/cjs/radio-option}/types.d.ts +0 -0
  585. /package/{rich-text → lib/cjs/rich-text}/index.d.ts +0 -0
  586. /package/{rich-text → lib/cjs/rich-text}/types.d.ts +0 -0
  587. /package/{rich-text → lib/cjs/rich-text}/utils.d.ts +0 -0
  588. /package/{rich-textarea → lib/cjs/rich-textarea}/index.d.ts +0 -0
  589. /package/{rich-textarea → lib/cjs/rich-textarea}/types.d.ts +0 -0
  590. /package/{rich-textarea → lib/cjs/rich-textarea}/utils.d.ts +0 -0
  591. /package/{segment → lib/cjs/segment}/index.d.ts +0 -0
  592. /package/{segment → lib/cjs/segment}/types.d.ts +0 -0
  593. /package/{segment → lib/cjs/segment}/utils.d.ts +0 -0
  594. /package/{segment-collapse → lib/cjs/segment-collapse}/index.d.ts +0 -0
  595. /package/{segment-collapse → lib/cjs/segment-collapse}/types.d.ts +0 -0
  596. /package/{segmented-control → lib/cjs/segmented-control}/index.d.ts +0 -0
  597. /package/{segmented-control → lib/cjs/segmented-control}/types.d.ts +0 -0
  598. /package/{segmented-control-option → lib/cjs/segmented-control-option}/index.d.ts +0 -0
  599. /package/{segmented-control-option → lib/cjs/segmented-control-option}/types.d.ts +0 -0
  600. /package/{segmented-icon-control → lib/cjs/segmented-icon-control}/index.d.ts +0 -0
  601. /package/{segmented-icon-control → lib/cjs/segmented-icon-control}/types.d.ts +0 -0
  602. /package/{segmented-icon-control-option → lib/cjs/segmented-icon-control-option}/index.d.ts +0 -0
  603. /package/{segmented-icon-control-option → lib/cjs/segmented-icon-control-option}/types.d.ts +0 -0
  604. /package/{select-button → lib/cjs/select-button}/index.d.ts +0 -0
  605. /package/{select-button → lib/cjs/select-button}/types.d.ts +0 -0
  606. /package/{select-menu → lib/cjs/select-menu}/index.d.ts +0 -0
  607. /package/{select-menu → lib/cjs/select-menu}/types.d.ts +0 -0
  608. /package/{select-menu-option → lib/cjs/select-menu-option}/index.d.ts +0 -0
  609. /package/{select-menu-option → lib/cjs/select-menu-option}/types.d.ts +0 -0
  610. /package/{skeleton → lib/cjs/skeleton}/index.d.ts +0 -0
  611. /package/{skeleton → lib/cjs/skeleton}/types.d.ts +0 -0
  612. /package/{skeleton-item → lib/cjs/skeleton-item}/index.d.ts +0 -0
  613. /package/{skeleton-item → lib/cjs/skeleton-item}/types.d.ts +0 -0
  614. /package/{spinner → lib/cjs/spinner}/index.d.ts +0 -0
  615. /package/{spinner → lib/cjs/spinner}/types.d.ts +0 -0
  616. /package/{standalone.d.ts → lib/cjs/standalone.d.ts} +0 -0
  617. /package/{stop-events → lib/cjs/stop-events}/index.d.ts +0 -0
  618. /package/{table → lib/cjs/table}/index.d.ts +0 -0
  619. /package/{table → lib/cjs/table}/types.d.ts +0 -0
  620. /package/{table-body → lib/cjs/table-body}/index.d.ts +0 -0
  621. /package/{table-body → lib/cjs/table-body}/types.d.ts +0 -0
  622. /package/{table-cell → lib/cjs/table-cell}/index.d.ts +0 -0
  623. /package/{table-cell → lib/cjs/table-cell}/types.d.ts +0 -0
  624. /package/{table-cell → lib/cjs/table-cell}/utils.d.ts +0 -0
  625. /package/{table-head → lib/cjs/table-head}/index.d.ts +0 -0
  626. /package/{table-head → lib/cjs/table-head}/types.d.ts +0 -0
  627. /package/{table-head-cell → lib/cjs/table-head-cell}/index.d.ts +0 -0
  628. /package/{table-head-cell → lib/cjs/table-head-cell}/types.d.ts +0 -0
  629. /package/{table-row → lib/cjs/table-row}/index.d.ts +0 -0
  630. /package/{table-row → lib/cjs/table-row}/types.d.ts +0 -0
  631. /package/{tabs → lib/cjs/tabs}/index.d.ts +0 -0
  632. /package/{tabs → lib/cjs/tabs}/types.d.ts +0 -0
  633. /package/{tabs-icon-option → lib/cjs/tabs-icon-option}/index.d.ts +0 -0
  634. /package/{tabs-icon-option → lib/cjs/tabs-icon-option}/types.d.ts +0 -0
  635. /package/{tabs-option → lib/cjs/tabs-option}/index.d.ts +0 -0
  636. /package/{tabs-option → lib/cjs/tabs-option}/types.d.ts +0 -0
  637. /package/{tag → lib/cjs/tag}/index.d.ts +0 -0
  638. /package/{tag → lib/cjs/tag}/types.d.ts +0 -0
  639. /package/{tag → lib/cjs/tag}/utils.d.ts +0 -0
  640. /package/{text → lib/cjs/text}/index.d.ts +0 -0
  641. /package/{text → lib/cjs/text}/types.d.ts +0 -0
  642. /package/{text → lib/cjs/text}/utils.d.ts +0 -0
  643. /package/{textarea → lib/cjs/textarea}/index.d.ts +0 -0
  644. /package/{textarea → lib/cjs/textarea}/types.d.ts +0 -0
  645. /package/{tile-control → lib/cjs/tile-control}/index.d.ts +0 -0
  646. /package/{tile-control → lib/cjs/tile-control}/types.d.ts +0 -0
  647. /package/{tile-control-option → lib/cjs/tile-control-option}/index.d.ts +0 -0
  648. /package/{tile-control-option → lib/cjs/tile-control-option}/types.d.ts +0 -0
  649. /package/{time-picker → lib/cjs/time-picker}/index.d.ts +0 -0
  650. /package/{time-picker → lib/cjs/time-picker}/types.d.ts +0 -0
  651. /package/{time-picker → lib/cjs/time-picker}/utils.d.ts +0 -0
  652. /package/{title → lib/cjs/title}/index.d.ts +0 -0
  653. /package/{title → lib/cjs/title}/types.d.ts +0 -0
  654. /package/{title → lib/cjs/title}/utils.d.ts +0 -0
  655. /package/{toast → lib/cjs/toast}/index.d.ts +0 -0
  656. /package/{toast → lib/cjs/toast}/types.d.ts +0 -0
  657. /package/{toast → lib/cjs/toast}/utils.d.ts +0 -0
  658. /package/{toast-manager → lib/cjs/toast-manager}/index.d.ts +0 -0
  659. /package/{toast-manager → lib/cjs/toast-manager}/types.d.ts +0 -0
  660. /package/{toast-manager → lib/cjs/toast-manager}/utils.d.ts +0 -0
  661. /package/{toggle → lib/cjs/toggle}/index.d.ts +0 -0
  662. /package/{toggle → lib/cjs/toggle}/types.d.ts +0 -0
  663. /package/{tooltip → lib/cjs/tooltip}/index.d.ts +0 -0
  664. /package/{tooltip → lib/cjs/tooltip}/tooltip-state.d.ts +0 -0
  665. /package/{tooltip → lib/cjs/tooltip}/types.d.ts +0 -0
  666. /package/{tooltip → lib/cjs/tooltip}/utils.d.ts +0 -0
  667. /package/{types.d.ts → lib/cjs/types.d.ts} +0 -0
  668. /package/{utils → lib/cjs/utils}/context.d.ts +0 -0
  669. /package/{utils → lib/cjs/utils}/countries.d.ts +0 -0
  670. /package/{utils → lib/cjs/utils}/countries.json +0 -0
  671. /package/{utils → lib/cjs/utils}/csv.d.ts +0 -0
  672. /package/{utils → lib/cjs/utils}/debounce.d.ts +0 -0
  673. /package/{utils → lib/cjs/utils}/dom.d.ts +0 -0
  674. /package/{utils → lib/cjs/utils}/element.d.ts +0 -0
  675. /package/{utils → lib/cjs/utils}/event-target.d.ts +0 -0
  676. /package/{utils → lib/cjs/utils}/get-react-event-handler.d.ts +0 -0
  677. /package/{utils → lib/cjs/utils}/index.d.ts +0 -0
  678. /package/{utils → lib/cjs/utils}/markdown.d.ts +0 -0
  679. /package/{utils → lib/cjs/utils}/rect.d.ts +0 -0
  680. /package/{utils → lib/cjs/utils}/size.d.ts +0 -0
  681. /package/{utils → lib/cjs/utils}/slot.d.ts +0 -0
  682. /package/{utils → lib/cjs/utils}/throttle.d.ts +0 -0
  683. /package/{utils → lib/cjs/utils}/uid.d.ts +0 -0
  684. /package/{vertical-stepper → lib/cjs/vertical-stepper}/index.d.ts +0 -0
  685. /package/{vertical-stepper → lib/cjs/vertical-stepper}/types.d.ts +0 -0
  686. /package/{vertical-stepper-item → lib/cjs/vertical-stepper-item}/index.d.ts +0 -0
  687. /package/{vertical-stepper-item → lib/cjs/vertical-stepper-item}/types.d.ts +0 -0
  688. /package/{vertical-stepper-item → lib/cjs/vertical-stepper-item}/utils.d.ts +0 -0
  689. /package/{accordion → lib/esm/accordion}/index.js +0 -0
  690. /package/{accordion → lib/esm/accordion}/types.js +0 -0
  691. /package/{accordion-item → lib/esm/accordion-item}/index.js +0 -0
  692. /package/{accordion-item → lib/esm/accordion-item}/types.js +0 -0
  693. /package/{accordion-item → lib/esm/accordion-item}/utils.js +0 -0
  694. /package/{action-menu → lib/esm/action-menu}/index.js +0 -0
  695. /package/{action-menu → lib/esm/action-menu}/types.js +0 -0
  696. /package/{action-menu-option → lib/esm/action-menu-option}/index.js +0 -0
  697. /package/{action-menu-option → lib/esm/action-menu-option}/types.js +0 -0
  698. /package/{action-menu-option → lib/esm/action-menu-option}/utils.js +0 -0
  699. /package/{alert → lib/esm/alert}/index.js +0 -0
  700. /package/{alert → lib/esm/alert}/types.js +0 -0
  701. /package/{alert → lib/esm/alert}/utils.js +0 -0
  702. /package/{avatar → lib/esm/avatar}/index.js +0 -0
  703. /package/{avatar → lib/esm/avatar}/types.js +0 -0
  704. /package/{avatar → lib/esm/avatar}/utils.js +0 -0
  705. /package/{badge → lib/esm/badge}/index.js +0 -0
  706. /package/{badge → lib/esm/badge}/types.js +0 -0
  707. /package/{badge → lib/esm/badge}/utils.js +0 -0
  708. /package/{button → lib/esm/button}/index.js +0 -0
  709. /package/{button → lib/esm/button}/types.js +0 -0
  710. /package/{button → lib/esm/button}/utils.js +0 -0
  711. /package/{card → lib/esm/card}/index.js +0 -0
  712. /package/{card → lib/esm/card}/types.js +0 -0
  713. /package/{card-container → lib/esm/card-container}/index.js +0 -0
  714. /package/{card-container → lib/esm/card-container}/types.js +0 -0
  715. /package/{chat → lib/esm/chat}/index.js +0 -0
  716. /package/{chat → lib/esm/chat}/types.js +0 -0
  717. /package/{chat-block → lib/esm/chat-block}/index.js +0 -0
  718. /package/{chat-block → lib/esm/chat-block}/types.js +0 -0
  719. /package/{chat-bubble → lib/esm/chat-bubble}/index.js +0 -0
  720. /package/{chat-bubble → lib/esm/chat-bubble}/types.js +0 -0
  721. /package/{chat-bubble → lib/esm/chat-bubble}/utils.js +0 -0
  722. /package/{checkbox → lib/esm/checkbox}/index.js +0 -0
  723. /package/{checkbox → lib/esm/checkbox}/types.js +0 -0
  724. /package/{chip → lib/esm/chip}/index.js +0 -0
  725. /package/{chip → lib/esm/chip}/types.js +0 -0
  726. /package/{chip → lib/esm/chip}/utils.js +0 -0
  727. /package/{code-tag → lib/esm/code-tag}/index.js +0 -0
  728. /package/{code-tag → lib/esm/code-tag}/types.js +0 -0
  729. /package/{color-menu → lib/esm/color-menu}/index.js +0 -0
  730. /package/{color-menu → lib/esm/color-menu}/types.js +0 -0
  731. /package/{color-menu → lib/esm/color-menu}/utils.js +0 -0
  732. /package/{color-menu-option → lib/esm/color-menu-option}/index.js +0 -0
  733. /package/{color-menu-option → lib/esm/color-menu-option}/types.js +0 -0
  734. /package/{color-menu-option → lib/esm/color-menu-option}/utils.js +0 -0
  735. /package/{color-swatch → lib/esm/color-swatch}/index.js +0 -0
  736. /package/{color-swatch → lib/esm/color-swatch}/types.js +0 -0
  737. /package/{color-swatch → lib/esm/color-swatch}/utils.js +0 -0
  738. /package/{date-picker → lib/esm/date-picker}/index.js +0 -0
  739. /package/{date-picker → lib/esm/date-picker}/types.js +0 -0
  740. /package/{date-picker → lib/esm/date-picker}/utils.js +0 -0
  741. /package/{dialog → lib/esm/dialog}/index.js +0 -0
  742. /package/{dialog → lib/esm/dialog}/types.js +0 -0
  743. /package/{dialog → lib/esm/dialog}/utils.js +0 -0
  744. /package/{emoji → lib/esm/emoji}/index.js +0 -0
  745. /package/{emoji → lib/esm/emoji}/types.js +0 -0
  746. /package/{emoji → lib/esm/emoji}/utils.js +0 -0
  747. /package/{emoji-picker → lib/esm/emoji-picker}/index.js +0 -0
  748. /package/{emoji-picker → lib/esm/emoji-picker}/types.js +0 -0
  749. /package/{field → lib/esm/field}/index.js +0 -0
  750. /package/{field → lib/esm/field}/types.js +0 -0
  751. /package/{file-drop → lib/esm/file-drop}/index.js +0 -0
  752. /package/{file-drop → lib/esm/file-drop}/types.js +0 -0
  753. /package/{file-drop → lib/esm/file-drop}/utils.js +0 -0
  754. /package/{file-picker → lib/esm/file-picker}/index.js +0 -0
  755. /package/{file-picker → lib/esm/file-picker}/types.js +0 -0
  756. /package/{file-picker → lib/esm/file-picker}/utils.js +0 -0
  757. /package/{file-status → lib/esm/file-status}/index.js +0 -0
  758. /package/{file-status → lib/esm/file-status}/types.js +0 -0
  759. /package/{file-status → lib/esm/file-status}/utils.js +0 -0
  760. /package/{flag → lib/esm/flag}/index.js +0 -0
  761. /package/{flag → lib/esm/flag}/types.js +0 -0
  762. /package/{flag → lib/esm/flag}/utils.js +0 -0
  763. /package/{grid → lib/esm/grid}/index.js +0 -0
  764. /package/{grid → lib/esm/grid}/types.js +0 -0
  765. /package/{grid-item → lib/esm/grid-item}/index.js +0 -0
  766. /package/{grid-item → lib/esm/grid-item}/types.js +0 -0
  767. /package/{help-tooltip → lib/esm/help-tooltip}/index.js +0 -0
  768. /package/{help-tooltip → lib/esm/help-tooltip}/types.js +0 -0
  769. /package/{horizontal-stepper → lib/esm/horizontal-stepper}/index.js +0 -0
  770. /package/{horizontal-stepper → lib/esm/horizontal-stepper}/types.js +0 -0
  771. /package/{horizontal-stepper-item → lib/esm/horizontal-stepper-item}/index.js +0 -0
  772. /package/{horizontal-stepper-item → lib/esm/horizontal-stepper-item}/types.js +0 -0
  773. /package/{horizontal-stepper-item → lib/esm/horizontal-stepper-item}/utils.js +0 -0
  774. /package/{icon → lib/esm/icon}/index.js +0 -0
  775. /package/{icon → lib/esm/icon}/types.js +0 -0
  776. /package/{icon-button → lib/esm/icon-button}/index.js +0 -0
  777. /package/{icon-button → lib/esm/icon-button}/types.js +0 -0
  778. /package/{icon-button → lib/esm/icon-button}/utils.js +0 -0
  779. /package/{inline-alert → lib/esm/inline-alert}/index.js +0 -0
  780. /package/{inline-alert → lib/esm/inline-alert}/types.js +0 -0
  781. /package/{inline-alert → lib/esm/inline-alert}/utils.js +0 -0
  782. /package/{input → lib/esm/input}/index.js +0 -0
  783. /package/{input → lib/esm/input}/types.js +0 -0
  784. /package/{input → lib/esm/input}/utils.js +0 -0
  785. /package/{link → lib/esm/link}/index.js +0 -0
  786. /package/{link → lib/esm/link}/types.js +0 -0
  787. /package/{list → lib/esm/list}/index.js +0 -0
  788. /package/{list → lib/esm/list}/types.js +0 -0
  789. /package/{list-item → lib/esm/list-item}/index.js +0 -0
  790. /package/{list-item → lib/esm/list-item}/types.js +0 -0
  791. /package/{pagination → lib/esm/pagination}/index.js +0 -0
  792. /package/{pagination → lib/esm/pagination}/types.js +0 -0
  793. /package/{pop → lib/esm/pop}/index.js +0 -0
  794. /package/{pop → lib/esm/pop}/types.js +0 -0
  795. /package/{pop → lib/esm/pop}/utils.js +0 -0
  796. /package/{popover → lib/esm/popover}/index.js +0 -0
  797. /package/{popover → lib/esm/popover}/types.js +0 -0
  798. /package/{popover → lib/esm/popover}/utils.js +0 -0
  799. /package/{progress → lib/esm/progress}/index.js +0 -0
  800. /package/{progress → lib/esm/progress}/types.js +0 -0
  801. /package/{progress-stepper → lib/esm/progress-stepper}/index.js +0 -0
  802. /package/{progress-stepper → lib/esm/progress-stepper}/types.js +0 -0
  803. /package/{progress-stepper-item → lib/esm/progress-stepper-item}/index.js +0 -0
  804. /package/{progress-stepper-item → lib/esm/progress-stepper-item}/types.js +0 -0
  805. /package/{progress-stepper-item → lib/esm/progress-stepper-item}/utils.js +0 -0
  806. /package/{radio → lib/esm/radio}/index.js +0 -0
  807. /package/{radio → lib/esm/radio}/types.js +0 -0
  808. /package/{radio-option → lib/esm/radio-option}/index.js +0 -0
  809. /package/{radio-option → lib/esm/radio-option}/types.js +0 -0
  810. /package/{rich-text → lib/esm/rich-text}/index.js +0 -0
  811. /package/{rich-text → lib/esm/rich-text}/types.js +0 -0
  812. /package/{rich-text → lib/esm/rich-text}/utils.js +0 -0
  813. /package/{rich-textarea → lib/esm/rich-textarea}/index.js +0 -0
  814. /package/{rich-textarea → lib/esm/rich-textarea}/types.js +0 -0
  815. /package/{rich-textarea → lib/esm/rich-textarea}/utils.js +0 -0
  816. /package/{segment → lib/esm/segment}/index.js +0 -0
  817. /package/{segment → lib/esm/segment}/types.js +0 -0
  818. /package/{segment → lib/esm/segment}/utils.js +0 -0
  819. /package/{segment-collapse → lib/esm/segment-collapse}/index.js +0 -0
  820. /package/{segment-collapse → lib/esm/segment-collapse}/types.js +0 -0
  821. /package/{segmented-control → lib/esm/segmented-control}/index.js +0 -0
  822. /package/{segmented-control → lib/esm/segmented-control}/types.js +0 -0
  823. /package/{segmented-control-option → lib/esm/segmented-control-option}/index.js +0 -0
  824. /package/{segmented-control-option → lib/esm/segmented-control-option}/types.js +0 -0
  825. /package/{segmented-icon-control → lib/esm/segmented-icon-control}/index.js +0 -0
  826. /package/{segmented-icon-control → lib/esm/segmented-icon-control}/types.js +0 -0
  827. /package/{segmented-icon-control-option → lib/esm/segmented-icon-control-option}/index.js +0 -0
  828. /package/{segmented-icon-control-option → lib/esm/segmented-icon-control-option}/types.js +0 -0
  829. /package/{select-button → lib/esm/select-button}/index.js +0 -0
  830. /package/{select-button → lib/esm/select-button}/types.js +0 -0
  831. /package/{select-menu → lib/esm/select-menu}/index.js +0 -0
  832. /package/{select-menu → lib/esm/select-menu}/types.js +0 -0
  833. /package/{select-menu-option → lib/esm/select-menu-option}/index.js +0 -0
  834. /package/{select-menu-option → lib/esm/select-menu-option}/types.js +0 -0
  835. /package/{skeleton → lib/esm/skeleton}/index.js +0 -0
  836. /package/{skeleton → lib/esm/skeleton}/types.js +0 -0
  837. /package/{skeleton-item → lib/esm/skeleton-item}/index.js +0 -0
  838. /package/{skeleton-item → lib/esm/skeleton-item}/types.js +0 -0
  839. /package/{spinner → lib/esm/spinner}/index.js +0 -0
  840. /package/{spinner → lib/esm/spinner}/types.js +0 -0
  841. /package/{standalone.js → lib/esm/standalone.js} +0 -0
  842. /package/{stop-events → lib/esm/stop-events}/index.js +0 -0
  843. /package/{table → lib/esm/table}/index.js +0 -0
  844. /package/{table → lib/esm/table}/types.js +0 -0
  845. /package/{table-body → lib/esm/table-body}/index.js +0 -0
  846. /package/{table-body → lib/esm/table-body}/types.js +0 -0
  847. /package/{table-cell → lib/esm/table-cell}/index.js +0 -0
  848. /package/{table-cell → lib/esm/table-cell}/types.js +0 -0
  849. /package/{table-cell → lib/esm/table-cell}/utils.js +0 -0
  850. /package/{table-head → lib/esm/table-head}/index.js +0 -0
  851. /package/{table-head → lib/esm/table-head}/types.js +0 -0
  852. /package/{table-head-cell → lib/esm/table-head-cell}/index.js +0 -0
  853. /package/{table-head-cell → lib/esm/table-head-cell}/types.js +0 -0
  854. /package/{table-row → lib/esm/table-row}/index.js +0 -0
  855. /package/{table-row → lib/esm/table-row}/types.js +0 -0
  856. /package/{tabs → lib/esm/tabs}/index.js +0 -0
  857. /package/{tabs → lib/esm/tabs}/types.js +0 -0
  858. /package/{tabs-icon-option → lib/esm/tabs-icon-option}/index.js +0 -0
  859. /package/{tabs-icon-option → lib/esm/tabs-icon-option}/types.js +0 -0
  860. /package/{tabs-option → lib/esm/tabs-option}/index.js +0 -0
  861. /package/{tabs-option → lib/esm/tabs-option}/types.js +0 -0
  862. /package/{tag → lib/esm/tag}/index.js +0 -0
  863. /package/{tag → lib/esm/tag}/types.js +0 -0
  864. /package/{tag → lib/esm/tag}/utils.js +0 -0
  865. /package/{text → lib/esm/text}/index.js +0 -0
  866. /package/{text → lib/esm/text}/types.js +0 -0
  867. /package/{text → lib/esm/text}/utils.js +0 -0
  868. /package/{textarea → lib/esm/textarea}/index.js +0 -0
  869. /package/{textarea → lib/esm/textarea}/types.js +0 -0
  870. /package/{tile-control → lib/esm/tile-control}/index.js +0 -0
  871. /package/{tile-control → lib/esm/tile-control}/types.js +0 -0
  872. /package/{tile-control-option → lib/esm/tile-control-option}/index.js +0 -0
  873. /package/{tile-control-option → lib/esm/tile-control-option}/types.js +0 -0
  874. /package/{time-picker → lib/esm/time-picker}/index.js +0 -0
  875. /package/{time-picker → lib/esm/time-picker}/types.js +0 -0
  876. /package/{time-picker → lib/esm/time-picker}/utils.js +0 -0
  877. /package/{title → lib/esm/title}/index.js +0 -0
  878. /package/{title → lib/esm/title}/types.js +0 -0
  879. /package/{title → lib/esm/title}/utils.js +0 -0
  880. /package/{toast → lib/esm/toast}/index.js +0 -0
  881. /package/{toast → lib/esm/toast}/types.js +0 -0
  882. /package/{toast → lib/esm/toast}/utils.js +0 -0
  883. /package/{toast-manager → lib/esm/toast-manager}/index.js +0 -0
  884. /package/{toast-manager → lib/esm/toast-manager}/types.js +0 -0
  885. /package/{toast-manager → lib/esm/toast-manager}/utils.js +0 -0
  886. /package/{toggle → lib/esm/toggle}/index.js +0 -0
  887. /package/{toggle → lib/esm/toggle}/types.js +0 -0
  888. /package/{tooltip → lib/esm/tooltip}/index.js +0 -0
  889. /package/{tooltip → lib/esm/tooltip}/tooltip-state.js +0 -0
  890. /package/{tooltip → lib/esm/tooltip}/types.js +0 -0
  891. /package/{tooltip → lib/esm/tooltip}/utils.js +0 -0
  892. /package/{vertical-stepper-item/types.js → lib/esm/types.d.js} +0 -0
  893. /package/{utils → lib/esm/utils}/context.js +0 -0
  894. /package/{utils → lib/esm/utils}/countries.js +0 -0
  895. /package/{utils → lib/esm/utils}/csv.js +0 -0
  896. /package/{utils → lib/esm/utils}/debounce.js +0 -0
  897. /package/{utils → lib/esm/utils}/dom.js +0 -0
  898. /package/{utils → lib/esm/utils}/event-target.js +0 -0
  899. /package/{utils → lib/esm/utils}/get-react-event-handler.js +0 -0
  900. /package/{utils → lib/esm/utils}/index.js +0 -0
  901. /package/{utils → lib/esm/utils}/markdown.js +0 -0
  902. /package/{utils → lib/esm/utils}/rect.js +0 -0
  903. /package/{utils → lib/esm/utils}/size.js +0 -0
  904. /package/{utils → lib/esm/utils}/slot.js +0 -0
  905. /package/{utils → lib/esm/utils}/throttle.js +0 -0
  906. /package/{utils → lib/esm/utils}/uid.js +0 -0
  907. /package/{vertical-stepper → lib/esm/vertical-stepper}/index.js +0 -0
  908. /package/{vertical-stepper-item → lib/esm/vertical-stepper-item}/index.js +0 -0
  909. /package/{vertical-stepper → lib/esm/vertical-stepper-item}/types.js +0 -0
  910. /package/{vertical-stepper-item → lib/esm/vertical-stepper-item}/utils.js +0 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var _utils = require('../utils');
4
+ const templateHTML = '<style>:host{display:block;grid-column:span 12}:host([xl="2"]){grid-column:span 2}:host([xl="3"]){grid-column:span 3}:host([xl="4"]){grid-column:span 4}:host([xl="5"]){grid-column:span 5}:host([xl="6"]){grid-column:span 6}:host([xl="7"]){grid-column:span 7}:host([xl="8"]){grid-column:span 8}:host([xl="9"]){grid-column:span 9}:host([xl="10"]){grid-column:span 10}:host([xl="11"]){grid-column:span 11}:host([xl="12"]){grid-column:span 12}@media only screen and (max-width:1439px){:host{grid-column:span 12}:host([l="2"]){grid-column:span 2}:host([l="3"]){grid-column:span 3}:host([l="4"]){grid-column:span 4}:host([l="5"]){grid-column:span 5}:host([l="6"]){grid-column:span 6}:host([l="7"]){grid-column:span 7}:host([l="8"]){grid-column:span 8}:host([l="9"]){grid-column:span 9}:host([l="10"]){grid-column:span 10}:host([l="11"]){grid-column:span 11}:host([l="12"]){grid-column:span 12}}@media only screen and (max-width:1023px){:host{grid-column:span 8}:host([m="2"]){grid-column:span 2}:host([m="3"]){grid-column:span 3}:host([m="4"]){grid-column:span 4}:host([m="5"]){grid-column:span 5}:host([m="6"]){grid-column:span 6}:host([m="7"]){grid-column:span 7}:host([m="8"]){grid-column:span 8}}@media only screen and (max-width:767px){:host{grid-column:span 4}:host([s="2"]){grid-column:span 2}:host([s="3"]){grid-column:span 3}:host([s="4"]){grid-column:span 4}}</style><slot name="content"></slot>';
5
+ const template = document.createElement('template');
6
+ template.innerHTML = templateHTML;
7
+ (0, _utils.defineCustomElement)('sinch-grid-item', class extends _utils.NectaryElement {
8
+ constructor() {
9
+ super();
10
+ const shadowRoot = this.attachShadow();
11
+ shadowRoot.appendChild(template.content.cloneNode(true));
12
+ }
13
+ get s() {
14
+ return (0, _utils.getIntegerAttribute)(this, 's', null);
15
+ }
16
+ set s(value) {
17
+ (0, _utils.updateIntegerAttribute)(this, 's', value);
18
+ }
19
+ get m() {
20
+ return (0, _utils.getIntegerAttribute)(this, 'm', null);
21
+ }
22
+ set m(value) {
23
+ (0, _utils.updateIntegerAttribute)(this, 'm', value);
24
+ }
25
+ get l() {
26
+ return (0, _utils.getIntegerAttribute)(this, 'l', null);
27
+ }
28
+ set l(value) {
29
+ (0, _utils.updateIntegerAttribute)(this, 'l', value);
30
+ }
31
+ get xl() {
32
+ return (0, _utils.getIntegerAttribute)(this, 'xl', null);
33
+ }
34
+ set xl(value) {
35
+ (0, _utils.updateIntegerAttribute)(this, 'xl', value);
36
+ }
37
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+
3
+ require('../tooltip');
4
+ require('../icon');
5
+ var _utils = require('../utils');
6
+ const templateHTML = '<style>:host{display:contents}#icon{--sinch-global-size-icon:18px}</style><sinch-tooltip type="fast"><sinch-icon id="icon" name="help"></sinch-icon></sinch-tooltip>';
7
+ const template = document.createElement('template');
8
+ template.innerHTML = templateHTML;
9
+ (0, _utils.defineCustomElement)('sinch-help-tooltip', class extends _utils.NectaryElement {
10
+ #$tooltip;
11
+ #controller = null;
12
+ constructor() {
13
+ super();
14
+ const shadowRoot = this.attachShadow();
15
+ shadowRoot.appendChild(template.content.cloneNode(true));
16
+ this.#$tooltip = shadowRoot.querySelector('sinch-tooltip');
17
+ }
18
+ connectedCallback() {
19
+ super.connectedCallback();
20
+ this.#controller = new AbortController();
21
+ const options = {
22
+ signal: this.#controller.signal
23
+ };
24
+ this.#$tooltip.addEventListener('-show', this.#onTooltipShow, options);
25
+ this.#$tooltip.addEventListener('-hide', this.#onTooltipHide, options);
26
+ this.addEventListener('-show', this.#onTooltipShowReactHandler, options);
27
+ this.addEventListener('-hide', this.#onTooltipHideReactHandler, options);
28
+ }
29
+ disconnectedCallback() {
30
+ super.disconnectedCallback();
31
+ this.#controller.abort();
32
+ this.#controller = null;
33
+ }
34
+ static get observedAttributes() {
35
+ return ['text', 'width', 'orientation'];
36
+ }
37
+ attributeChangedCallback(name, _, newVal) {
38
+ (0, _utils.updateAttribute)(this.#$tooltip, name, newVal);
39
+ }
40
+ get text() {
41
+ return (0, _utils.getAttribute)(this, 'text', '');
42
+ }
43
+ set text(value) {
44
+ (0, _utils.updateAttribute)(this, 'text', value);
45
+ }
46
+ get width() {
47
+ return (0, _utils.getIntegerAttribute)(this, 'width');
48
+ }
49
+ set width(value) {
50
+ (0, _utils.updateIntegerAttribute)(this, 'width', value);
51
+ }
52
+ get orientation() {
53
+ return (0, _utils.getAttribute)(this, 'orientation', 'top');
54
+ }
55
+ set orientation(value) {
56
+ (0, _utils.updateAttribute)(this, 'orientation', value);
57
+ }
58
+ get footprintRect() {
59
+ return this.#$tooltip.footprintRect;
60
+ }
61
+ get tooltipRect() {
62
+ return this.#$tooltip.tooltipRect;
63
+ }
64
+ #onTooltipShow = () => {
65
+ this.dispatchEvent(new CustomEvent('-show'));
66
+ };
67
+ #onTooltipHide = () => {
68
+ this.dispatchEvent(new CustomEvent('-hide'));
69
+ };
70
+ #onTooltipShowReactHandler = () => {
71
+ (0, _utils.getReactEventHandler)(this, 'on-show')?.();
72
+ };
73
+ #onTooltipHideReactHandler = () => {
74
+ (0, _utils.getReactEventHandler)(this, 'on-hide')?.();
75
+ };
76
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ var _utils = require('../utils');
4
+ const templateHTML = '<style>:host{display:block;outline:0;--sinch-comp-horizontal-stepper-color-background-default:var(--sinch-sys-color-container-contrast-primary-default);--sinch-comp-horizontal-stepper-color-background-visited-skip:var(--sinch-sys-color-container-contrast-primary-default);--sinch-comp-horizontal-stepper-color-background-active:var(--sinch-ref-color-main-stormy-400);--sinch-comp-horizontal-stepper-color-background-visited:var(--sinch-ref-color-main-snow-700);--sinch-comp-horizontal-stepper-color-background-visited-error:var(--sinch-sys-color-feedback-invalid-background);--sinch-comp-horizontal-stepper-color-border-default:transparent;--sinch-comp-horizontal-stepper-color-border-visited-skip:var(--sinch-ref-color-main-stormy-400);--sinch-comp-horizontal-stepper-color-border-active:transparent;--sinch-comp-horizontal-stepper-color-border-visited:var(--sinch-ref-color-main-stormy-400);--sinch-comp-horizontal-stepper-color-border-visited-error:var(--sinch-ref-color-main-stormy-400);--sinch-comp-horizontal-stepper-color-icon-default:var(--sinch-ref-color-main-stormy-700);--sinch-comp-horizontal-stepper-color-icon-visited-skip:var(--sinch-ref-color-main-stormy-700);--sinch-comp-horizontal-stepper-color-icon-active:var(--sinch-ref-color-main-snow-100);--sinch-comp-horizontal-stepper-color-icon-visited:var(--sinch-ref-color-main-stormy-700);--sinch-comp-horizontal-stepper-color-icon-visited-error:var(--sinch-ref-color-main-stormy-700);--sinch-comp-horizontal-stepper-color-label:var(--sinch-sys-color-text-default);--sinch-comp-horizontal-stepper-color-description:var(--sinch-sys-color-text-muted);--sinch-comp-horizontal-stepper-color-progress:var(--sinch-ref-color-main-snow-700);--sinch-comp-horizontal-stepper-color-progress-visited:var(--sinch-ref-color-main-stormy-400)}#wrapper{position:relative;display:flex;flex-direction:row;gap:28px;width:fit-content}#progress{position:absolute;height:1px;background-color:var(--sinch-comp-horizontal-stepper-color-progress);left:72px;right:72px;top:16px;transform:translateY(-50%)}#bar{position:absolute;height:1px;background-color:var(--sinch-comp-horizontal-stepper-color-progress-visited);left:0;top:0}</style><div id="wrapper"><div id="progress"><div id="bar"></div></div><slot></slot></div>';
5
+ const template = document.createElement('template');
6
+ template.innerHTML = templateHTML;
7
+ (0, _utils.defineCustomElement)('sinch-horizontal-stepper', class extends _utils.NectaryElement {
8
+ #$itemsSlot;
9
+ #$progressBar;
10
+ constructor() {
11
+ super();
12
+ const shadowRoot = this.attachShadow();
13
+ shadowRoot.appendChild(template.content.cloneNode(true));
14
+ this.#$itemsSlot = shadowRoot.querySelector('slot');
15
+ this.#$progressBar = shadowRoot.querySelector('#bar');
16
+ }
17
+ connectedCallback() {
18
+ this.setAttribute('role', 'progressbar');
19
+ this.setAttribute('aria-valuemin', '0');
20
+ this.#$itemsSlot.addEventListener('slotchange', this.#updateItems);
21
+ }
22
+ disconnectedCallback() {
23
+ this.#$itemsSlot.removeEventListener('slotchange', this.#updateItems);
24
+ }
25
+ static get observedAttributes() {
26
+ return ['index'];
27
+ }
28
+ attributeChangedCallback(name) {
29
+ switch (name) {
30
+ case 'index':
31
+ {
32
+ this.#updateItems();
33
+ break;
34
+ }
35
+ }
36
+ }
37
+ set index(value) {
38
+ (0, _utils.updateAttribute)(this, 'index', value);
39
+ }
40
+ get index() {
41
+ return (0, _utils.getAttribute)(this, 'index', '1');
42
+ }
43
+ #updateItems = () => {
44
+ const $items = this.#$itemsSlot.assignedElements();
45
+ const activeIndex = (0, _utils.clampNumber)((0, _utils.getIntegerAttribute)(this, 'index', 0), 0, $items.length + 1);
46
+ for (let i = 0; i < $items.length; i++) {
47
+ const $el = $items[i];
48
+ const itemIndex = i + 1;
49
+ $el.setAttribute('data-index', String(itemIndex));
50
+ if (itemIndex === activeIndex) {
51
+ $el.setAttribute('data-progress', 'active');
52
+ } else if (itemIndex < activeIndex) {
53
+ $el.setAttribute('data-progress', 'done');
54
+ } else {
55
+ $el.removeAttribute('data-progress');
56
+ }
57
+ }
58
+ const valueIndex = (0, _utils.clampNumber)(activeIndex - 1, 0, $items.length - 1);
59
+ this.#$progressBar.style.width = `${Math.floor(valueIndex / Math.max(1, $items.length - 1) * 100)}%`;
60
+ this.setAttribute('aria-valuemax', String($items.length));
61
+ this.setAttribute('aria-valuenow', String(valueIndex + 1));
62
+ };
63
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ require('../icon');
4
+ require('../title');
5
+ require('../text');
6
+ var _utils = require('../utils');
7
+ var _utils2 = require('./utils');
8
+ const templateHTML = '<style>:host{display:block;outline:0}#wrapper{width:144px;min-height:64px;display:flex;flex-direction:column}#circle{position:relative;display:flex;align-items:center;justify-content:center;align-self:center;width:32px;height:32px;background-color:var(--sinch-local-color-background);font:var(--sinch-sys-font-desktop-title-s);line-height:32px;text-align:center;color:var(--sinch-local-color-text);border:1px solid var(--sinch-local-color-border);border-radius:50%;box-sizing:border-box;--sinch-local-color-background:var(--sinch-comp-horizontal-stepper-color-background-default);--sinch-local-color-border:var(--sinch-comp-horizontal-stepper-color-border-default);--sinch-local-color-text:var(--sinch-comp-horizontal-stepper-color-icon-default);--sinch-local-color-icon:var(--sinch-comp-horizontal-stepper-color-icon-default);--sinch-global-size-icon:20px}:host([data-progress=active]) #circle{--sinch-local-color-background:var(--sinch-comp-horizontal-stepper-color-background-active);--sinch-local-color-border:var(--sinch-comp-horizontal-stepper-color-border-active);--sinch-local-color-text:var(--sinch-comp-horizontal-stepper-color-icon-active);--sinch-local-color-icon:var(--sinch-comp-horizontal-stepper-color-icon-active)}:host([data-progress=done]) #circle{--sinch-local-color-background:var(--sinch-comp-horizontal-stepper-color-background-visited);--sinch-local-color-border:var(--sinch-comp-horizontal-stepper-color-border-visited);--sinch-local-color-text:var(--sinch-comp-horizontal-stepper-color-icon-visited);--sinch-local-color-icon:var(--sinch-comp-horizontal-stepper-color-icon-visited)}:host([data-progress=done][status=error]) #circle{--sinch-local-color-background:var(--sinch-comp-horizontal-stepper-color-background-visited-error);--sinch-local-color-border:var(--sinch-comp-horizontal-stepper-color-border-visited-error);--sinch-local-color-text:var(--sinch-comp-horizontal-stepper-color-icon-visited-error);--sinch-local-color-icon:var(--sinch-comp-horizontal-stepper-color-icon-visited-error)}:host([data-progress=done][status=skip]) #circle{--sinch-local-color-background:var(--sinch-comp-horizontal-stepper-color-background-visited-skip);--sinch-local-color-border:var(--sinch-comp-horizontal-stepper-color-border-visited-skip);--sinch-local-color-text:var(--sinch-comp-horizontal-stepper-color-icon-visited-skip);--sinch-local-color-icon:var(--sinch-comp-horizontal-stepper-color-icon-visited-skip)}#icon-error,#icon-success{display:none}:host([data-progress=done]:not([status])) #icon-success{display:block}:host([data-progress=done][status=error]) #icon-error{display:block}:host([data-progress=done]:not([status=skip])) #circle-text{display:none}#label{text-align:center;margin-top:8px;--sinch-global-color-text:var(--sinch-comp-horizontal-stepper-color-label)}#description{text-align:center;--sinch-global-color-text:var(--sinch-comp-horizontal-stepper-color-description)}</style><div id="wrapper"><div id="circle" aria-hidden="true"><sinch-icon id="icon-success" name="check"></sinch-icon><sinch-icon id="icon-error" name="exclamation"></sinch-icon><span id="circle-text"></span></div><sinch-title id="label" type="s" ellipsis></sinch-title><sinch-text id="description" type="xs" ellipsis></sinch-text></div>';
9
+ const template = document.createElement('template');
10
+ template.innerHTML = templateHTML;
11
+ (0, _utils.defineCustomElement)('sinch-horizontal-stepper-item', class extends _utils.NectaryElement {
12
+ #$label;
13
+ #$description;
14
+ #$circleText;
15
+ constructor() {
16
+ super();
17
+ const shadowRoot = this.attachShadow();
18
+ shadowRoot.appendChild(template.content.cloneNode(true));
19
+ this.#$label = shadowRoot.querySelector('#label');
20
+ this.#$description = shadowRoot.querySelector('#description');
21
+ this.#$circleText = shadowRoot.querySelector('#circle-text');
22
+ }
23
+ static get observedAttributes() {
24
+ return ['label', 'description', 'data-index'];
25
+ }
26
+ attributeChangedCallback(name, oldVal, newVal) {
27
+ switch (name) {
28
+ case 'label':
29
+ {
30
+ (0, _utils.updateAttribute)(this.#$label, 'text', newVal);
31
+ break;
32
+ }
33
+ case 'description':
34
+ {
35
+ this.#$description.textContent = newVal;
36
+ break;
37
+ }
38
+ case 'data-index':
39
+ {
40
+ this.#$circleText.textContent = newVal;
41
+ break;
42
+ }
43
+ }
44
+ }
45
+ set label(value) {
46
+ (0, _utils.updateAttribute)(this, 'label', value);
47
+ }
48
+ get label() {
49
+ return (0, _utils.getAttribute)(this, 'label', '');
50
+ }
51
+ set description(value) {
52
+ (0, _utils.updateAttribute)(this, 'description', value);
53
+ }
54
+ get description() {
55
+ return (0, _utils.getAttribute)(this, 'description', '');
56
+ }
57
+ get status() {
58
+ return (0, _utils.getLiteralAttribute)(this, _utils2.statusValues, 'status', null);
59
+ }
60
+ set status(value) {
61
+ (0, _utils.updateLiteralAttribute)(this, _utils2.statusValues, 'status', value);
62
+ }
63
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.statusValues = void 0;
7
+ const statusValues = exports.statusValues = ['skip', 'error'];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ var _utils = require('../utils');
4
+ const templateHTML = '<style>:host{display:inline-block}#icon{display:block;font-family:var(--sinch-comp-icon-font-family);font-weight:var(--sinch-comp-icon-font-weight);font-size:var(--sinch-global-size-icon, 24px);font-feature-settings:var(--sinch-comp-icon-font-feature-settings);-webkit-font-smoothing:antialiased;line-height:1;white-space:nowrap;width:var(--sinch-global-size-icon,24px);height:var(--sinch-global-size-icon,24px);color:var(--sinch-global-color-icon,var(--sinch-sys-color-text-default));user-select:none}</style><span id="icon" role="img"></span>';
5
+ const template = document.createElement('template');
6
+ template.innerHTML = templateHTML;
7
+ (0, _utils.defineCustomElement)('sinch-icon', class extends _utils.NectaryElement {
8
+ #$icon;
9
+ constructor() {
10
+ super();
11
+ const shadowRoot = this.attachShadow();
12
+ shadowRoot.appendChild(template.content.cloneNode(true));
13
+ this.#$icon = shadowRoot.querySelector('#icon');
14
+ }
15
+ static get observedAttributes() {
16
+ return ['name'];
17
+ }
18
+ attributeChangedCallback(name, _, newVal) {
19
+ switch (name) {
20
+ case 'name':
21
+ {
22
+ this.#$icon.textContent = newVal;
23
+ (0, _utils.updateAttribute)(this.#$icon, 'aria-label', newVal);
24
+ break;
25
+ }
26
+ }
27
+ }
28
+ set name(value) {
29
+ (0, _utils.updateAttribute)(this, 'name', value);
30
+ }
31
+ get name() {
32
+ return (0, _utils.getAttribute)(this, 'name', '');
33
+ }
34
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+
3
+ require('../tooltip');
4
+ var _utils = require('../utils');
5
+ var _size = require('../utils/size');
6
+ var _utils2 = require('./utils');
7
+ const templateHTML = '<style>:host{display:inline-block;vertical-align:middle;outline:0}#button{display:block;position:relative;width:var(--sinch-local-size);height:var(--sinch-local-size);cursor:pointer;user-select:none;contain:size;--sinch-global-color-icon:var(--sinch-local-color-icon)}:host([disabled]) #button{cursor:initial}:host([data-size="l"]) #button{--sinch-local-size:var(--sinch-comp-button-size-container-l);--sinch-global-size-icon:var(--sinch-comp-button-size-icon-l);--sinch-local-shape-radius:var(--sinch-comp-button-shape-radius-size-l)}#button,:host([data-size="m"]) #button{--sinch-local-size:var(--sinch-comp-button-size-container-m);--sinch-global-size-icon:var(--sinch-comp-button-size-icon-m);--sinch-local-shape-radius:var(--sinch-comp-button-shape-radius-size-m)}:host([data-size="s"]) #button{--sinch-local-size:var(--sinch-comp-button-size-container-s);--sinch-global-size-icon:var(--sinch-comp-button-size-icon-s);--sinch-local-shape-radius:var(--sinch-comp-button-shape-radius-size-s)}:host([data-size=xs]) #button{--sinch-local-size:var(--sinch-comp-button-size-container-xs);--sinch-global-size-icon:var(--sinch-comp-button-size-icon-xs);--sinch-local-shape-radius:var(--sinch-comp-button-shape-radius-size-xs)}:host([type=primary]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-primary-default-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-primary-default-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-primary-default-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-primary-initial);--sinch-local-color-outline:var(--sinch-comp-button-color-primary-default-outline-focus)}:host([type=secondary]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-secondary-default-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-secondary-default-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-secondary-default-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-secondary-initial);--sinch-local-color-outline:var(--sinch-comp-button-color-secondary-default-outline-focus)}#button,:host([type=tertiary]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-subtle-secondary-default-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-subtle-secondary-default-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-subtle-secondary-default-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-subtle-initial);--sinch-local-color-outline:var(--sinch-comp-button-color-subtle-secondary-default-outline-focus)}:host([type=primary][disabled]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-primary-disabled-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-primary-disabled-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-primary-disabled-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-primary-disabled)}:host([type=secondary][disabled]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-secondary-disabled-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-secondary-disabled-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-secondary-disabled-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-secondary-disabled)}:host([disabled]) #button,:host([type=tertiary][disabled]) #button{--sinch-local-color-background:var(--sinch-comp-button-color-subtle-secondary-disabled-background-initial);--sinch-local-color-border:var(--sinch-comp-button-color-subtle-secondary-disabled-border-initial);--sinch-local-color-icon:var(--sinch-comp-button-color-subtle-secondary-disabled-icon-initial);--sinch-local-shadow:var(--sinch-comp-button-shadow-subtle-disabled)}:host([type=primary]:focus) #button{--sinch-local-shadow:var(--sinch-comp-button-shadow-primary-focus)}:host([type=secondary]:focus) #button{--sinch-local-shadow:var(--sinch-comp-button-shadow-secondary-focus)}:host(:focus),:host([type=tertiary]:focus) #button{--sinch-local-shadow:var(--sinch-comp-button-shadow-subtle-focus)}:host([type=primary]:not([disabled]):hover) #button{--sinch-local-color-background:var(--sinch-comp-button-color-primary-default-background-hover);--sinch-local-shadow:var(--sinch-comp-button-shadow-primary-hover)}:host([type=secondary]:not([disabled]):hover) #button{--sinch-local-color-background:var(--sinch-comp-button-color-secondary-default-background-hover);--sinch-local-shadow:var(--sinch-comp-button-shadow-secondary-hover)}:host(:not([disabled]):hover) #button,:host([type=tertiary]:not([disabled]):active) #button{--sinch-local-color-background:var(--sinch-comp-button-color-subtle-secondary-default-background-hover);--sinch-local-shadow:var(--sinch-comp-button-shadow-subtle-hover)}:host([type=primary]:not([disabled]):active) #button{--sinch-local-color-background:var(--sinch-comp-button-color-primary-default-background-active);--sinch-local-shadow:var(--sinch-comp-button-shadow-primary-active)}:host([type=secondary]:not([disabled]):active) #button{--sinch-local-color-background:var(--sinch-comp-button-color-secondary-default-background-active);--sinch-local-shadow:var(--sinch-comp-button-shadow-secondary-active)}:host(:not([disabled]):active) #button,:host([type=tertiary]:not([disabled]):active) #button{--sinch-local-color-background:var(--sinch-comp-button-color-subtle-secondary-default-background-active);--sinch-local-shadow:var(--sinch-comp-button-shadow-subtle-active)}#button::before{content:"";position:absolute;inset:0;background-color:var(--sinch-local-color-background);border:1px solid var(--sinch-local-color-border);border-radius:var(--sinch-local-shape-radius);box-shadow:var(--sinch-local-shadow);pointer-events:none}:host(:focus-visible) #button::after{content:"";position:absolute;inset:-3px;border:2px solid var(--sinch-local-color-outline);border-radius:calc(var(--sinch-local-shape-radius) + 3px);pointer-events:none}#content{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%}</style><sinch-tooltip id="tooltip"><div id="button"><div id="content" inert><slot name="icon"></slot></div></div></sinch-tooltip>';
8
+ const template = document.createElement('template');
9
+ template.innerHTML = templateHTML;
10
+ (0, _utils.defineCustomElement)('sinch-icon-button', class extends _utils.NectaryElement {
11
+ #$button;
12
+ #$tooltip;
13
+ #controller = null;
14
+ #sizeContext;
15
+ constructor() {
16
+ super();
17
+ const shadowRoot = this.attachShadow();
18
+ shadowRoot.appendChild(template.content.cloneNode(true));
19
+ this.#$button = shadowRoot.querySelector('#button');
20
+ this.#$tooltip = shadowRoot.querySelector('#tooltip');
21
+ this.#sizeContext = new _utils.Context(this.#$button, 'size');
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback();
25
+ this.#controller = new AbortController();
26
+ const options = {
27
+ signal: this.#controller.signal
28
+ };
29
+ this.role = 'button';
30
+ this.tabIndex = 0;
31
+ this.addEventListener('click', this.#onButtonClick, options);
32
+ this.addEventListener('focus', this.#onButtonFocus, options);
33
+ this.addEventListener('blur', this.#onButtonBlur, options);
34
+ this.addEventListener('keydown', this.#onButtonKeydown, options);
35
+ this.addEventListener('-click', this.#onClickReactHandler, options);
36
+ this.addEventListener('-focus', this.#onFocusReactHandler, options);
37
+ this.addEventListener('-blur', this.#onBlurReactHandler, options);
38
+ this.#$tooltip.addEventListener('-show', this.#onTooltipShow, options);
39
+ this.#$tooltip.addEventListener('-hide', this.#onTooltipHide, options);
40
+ this.addEventListener('-tooltip-show', this.#onTooltipShowReactHandler, options);
41
+ this.addEventListener('-tooltip-hide', this.#onTooltipHideReactHandler, options);
42
+ (0, _utils.subscribeContext)(this, 'size', this.#onContextSize, this.#controller.signal);
43
+ this.#sizeContext.listen(this.#controller.signal);
44
+ this.#onSizeUpdate();
45
+ }
46
+ disconnectedCallback() {
47
+ super.disconnectedCallback();
48
+ this.#controller.abort();
49
+ this.#controller = null;
50
+ }
51
+ static get observedAttributes() {
52
+ return ['size', 'disabled', 'aria-label', 'data-size'];
53
+ }
54
+ attributeChangedCallback(name, oldVal, newVal) {
55
+ switch (name) {
56
+ case 'disabled':
57
+ {
58
+ if ((0, _utils.isAttrEqual)(oldVal, newVal)) {
59
+ return;
60
+ }
61
+ const isDisabled = (0, _utils.isAttrTrue)(newVal);
62
+ this.ariaDisabled = isDisabled.toString();
63
+ (0, _utils.updateBooleanAttribute)(this, 'disabled', isDisabled);
64
+ break;
65
+ }
66
+ case 'aria-label':
67
+ {
68
+ (0, _utils.updateAttribute)(this.#$tooltip, 'text', newVal);
69
+ break;
70
+ }
71
+ case 'size':
72
+ {
73
+ (0, _utils.updateAttribute)(this, 'data-size', newVal);
74
+ break;
75
+ }
76
+ case 'data-size':
77
+ {
78
+ this.#onSizeUpdate();
79
+ break;
80
+ }
81
+ }
82
+ }
83
+ set type(value) {
84
+ (0, _utils.updateLiteralAttribute)(this, _utils2.typeValues, 'type', value);
85
+ }
86
+ get type() {
87
+ return (0, _utils.getLiteralAttribute)(this, _utils2.typeValues, 'type', 'tertiary');
88
+ }
89
+ set disabled(isDisabled) {
90
+ (0, _utils.updateBooleanAttribute)(this, 'disabled', isDisabled);
91
+ }
92
+ get disabled() {
93
+ return (0, _utils.getBooleanAttribute)(this, 'disabled');
94
+ }
95
+ set size(size) {
96
+ (0, _utils.updateLiteralAttribute)(this, _size.sizeExValues, 'size', size);
97
+ }
98
+ get size() {
99
+ return (0, _utils.getLiteralAttribute)(this, _size.sizeExValues, 'size', _size.DEFAULT_SIZE);
100
+ }
101
+ get tooltipRect() {
102
+ return this.#$tooltip.tooltipRect;
103
+ }
104
+ get focusable() {
105
+ return true;
106
+ }
107
+ #onSizeUpdate() {
108
+ if (!this.isDomConnected) {
109
+ return;
110
+ }
111
+ const size = (0, _utils.getAttribute)(this, 'data-size', _size.DEFAULT_SIZE);
112
+ this.#sizeContext.dispatch(size);
113
+ }
114
+ #onContextSize = e => {
115
+ if (this.hasAttribute('size')) {
116
+ return;
117
+ }
118
+ switch (e.detail) {
119
+ case 'l':
120
+ {
121
+ this.setAttribute('data-size', 'm');
122
+ break;
123
+ }
124
+ case 'm':
125
+ {
126
+ this.setAttribute('data-size', 's');
127
+ break;
128
+ }
129
+ default:
130
+ {
131
+ this.setAttribute('data-size', 'xs');
132
+ }
133
+ }
134
+ };
135
+ #onButtonClick = () => {
136
+ if (!this.disabled) {
137
+ this.dispatchEvent(new CustomEvent('-click'));
138
+ }
139
+ };
140
+ #onButtonFocus = () => {
141
+ this.dispatchEvent(new CustomEvent('-focus'));
142
+ };
143
+ #onButtonBlur = () => {
144
+ this.dispatchEvent(new CustomEvent('-blur'));
145
+ };
146
+ #onButtonKeydown = e => {
147
+ switch (e.code) {
148
+ case 'Space':
149
+ case 'Enter':
150
+ {
151
+ e.preventDefault();
152
+ this.click();
153
+ }
154
+ }
155
+ };
156
+ #onTooltipShow = () => {
157
+ this.dispatchEvent(new CustomEvent('-tooltip-show'));
158
+ };
159
+ #onTooltipHide = () => {
160
+ this.dispatchEvent(new CustomEvent('-tooltip-hide'));
161
+ };
162
+ #onFocusReactHandler = () => {
163
+ (0, _utils.getReactEventHandler)(this, 'on-focus')?.();
164
+ };
165
+ #onBlurReactHandler = () => {
166
+ (0, _utils.getReactEventHandler)(this, 'on-blur')?.();
167
+ };
168
+ #onClickReactHandler = e => {
169
+ (0, _utils.getReactEventHandler)(this, 'on-click')?.(e);
170
+ };
171
+ #onTooltipShowReactHandler = () => {
172
+ (0, _utils.getReactEventHandler)(this, 'on-tooltip-show')?.();
173
+ };
174
+ #onTooltipHideReactHandler = () => {
175
+ (0, _utils.getReactEventHandler)(this, 'on-tooltip-hide')?.();
176
+ };
177
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.typeValues = void 0;
7
+ const typeValues = exports.typeValues = ['primary', 'secondary', 'tertiary'];
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,9 @@
1
+ declare module '*.html' {
2
+ const value: string
3
+ export default value
4
+ }
5
+
6
+ declare module '*.svg' {
7
+ const value: string
8
+ export default value
9
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ require('../icon');
4
+ require('../rich-text');
5
+ require('../text');
6
+ require('../title');
7
+ var _utils = require('../utils');
8
+ var _utils2 = require('./utils');
9
+ const templateHTML = '<style>:host{display:block}#wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:16px;border-radius:var(--sinch-comp-inline-alert-shape-radius);box-sizing:border-box;width:100%}:host([type=success]) #wrapper{background-color:var(--sinch-comp-inline-alert-color-success-default-background)}:host([type=warn]) #wrapper{background-color:var(--sinch-comp-inline-alert-color-warning-default-background)}:host([type=error]) #wrapper{background-color:var(--sinch-comp-inline-alert-color-error-default-background)}:host([type=info]) #wrapper{background-color:var(--sinch-comp-inline-alert-color-info-default-background)}#icon-error,#icon-info,#icon-success,#icon-warn{display:none}#icon-success{--sinch-global-color-icon:var(--sinch-comp-inline-alert-color-success-default-icon)}#icon-warn{--sinch-global-color-icon:var(--sinch-comp-inline-alert-color-warning-default-icon)}#icon-error{--sinch-global-color-icon:var(--sinch-comp-inline-alert-color-error-default-icon)}#icon-info{--sinch-global-color-icon:var(--sinch-comp-inline-alert-color-info-default-icon)}:host([type=error]) #icon-error,:host([type=info]) #icon-info,:host([type=success]) #icon-success,:host([type=warn]) #icon-warn{display:block}#body-wrapper{display:flex;flex-direction:column;align-items:flex-start;margin-left:8px;min-width:0;flex:1}#caption{align-self:stretch;--sinch-comp-title-font:var(--sinch-comp-inline-alert-font-title)}:host([type=success]) #caption{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-success-default-text)}:host([type=warn]) #caption{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-warning-default-text)}:host([type=error]) #caption{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-error-default-text)}:host([type=info]) #caption{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-info-default-text)}#text{display:flex;flex-direction:column;gap:8px;margin-top:4px;align-self:stretch;--sinch-comp-rich-text-font:var(--sinch-comp-inline-alert-font-body)}:host([type=success]) #text{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-success-default-text)}:host([type=warn]) #text{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-warning-default-text)}:host([type=error]) #text{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-error-default-text)}:host([type=info]) #text{--sinch-global-color-text:var(--sinch-comp-inline-alert-color-info-default-text)}#action{width:100%;display:flex;margin-top:16px;min-width:0}#action.empty{display:none}#close{margin-left:16px}#close.empty{display:none}</style><div id="wrapper"><sinch-icon id="icon-info" name="info"></sinch-icon><sinch-icon id="icon-success" name="check_circle"></sinch-icon><sinch-icon id="icon-warn" name="report_problem"></sinch-icon><sinch-icon id="icon-error" name="report"></sinch-icon><div id="body-wrapper"><sinch-title id="caption" level="3" type="s"></sinch-title><sinch-rich-text id="text"></sinch-rich-text><div id="action"><slot name="action"></slot></div></div><div id="close"><slot name="close"></slot></div></div>';
10
+ const template = document.createElement('template');
11
+ template.innerHTML = templateHTML;
12
+ (0, _utils.defineCustomElement)('sinch-inline-alert', class extends _utils.NectaryElement {
13
+ #$text;
14
+ #$caption;
15
+ #$closeWrapper;
16
+ #$closeSlot;
17
+ #$actionWrapper;
18
+ #$actionSlot;
19
+ constructor() {
20
+ super();
21
+ const shadowRoot = this.attachShadow();
22
+ shadowRoot.appendChild(template.content.cloneNode(true));
23
+ this.#$text = shadowRoot.querySelector('#text');
24
+ this.#$caption = shadowRoot.querySelector('#caption');
25
+ this.#$closeWrapper = shadowRoot.querySelector('#close');
26
+ this.#$closeSlot = shadowRoot.querySelector('slot[name="close"]');
27
+ this.#$actionWrapper = shadowRoot.querySelector('#action');
28
+ this.#$actionSlot = shadowRoot.querySelector('slot[name="action"]');
29
+ }
30
+ connectedCallback() {
31
+ super.connectedCallback();
32
+ this.setAttribute('aria-atomic', 'true');
33
+ this.setAttribute('aria-live', 'polite');
34
+ this.#$closeSlot.addEventListener('slotchange', this.#onCloseSlotChange);
35
+ this.#$actionSlot.addEventListener('slotchange', this.#onActionSlotChange);
36
+ this.#onCloseSlotChange();
37
+ this.#onActionSlotChange();
38
+ }
39
+ disconnectedCallback() {
40
+ super.disconnectedCallback();
41
+ this.#$closeSlot.removeEventListener('slotchange', this.#onCloseSlotChange);
42
+ this.#$actionSlot.removeEventListener('slotchange', this.#onActionSlotChange);
43
+ }
44
+ static get observedAttributes() {
45
+ return ['text', 'caption'];
46
+ }
47
+ attributeChangedCallback(name, _, newVal) {
48
+ switch (name) {
49
+ case 'text':
50
+ {
51
+ (0, _utils.updateAttribute)(this.#$text, 'text', newVal);
52
+ break;
53
+ }
54
+ case 'caption':
55
+ {
56
+ (0, _utils.updateAttribute)(this.#$caption, 'text', newVal);
57
+ break;
58
+ }
59
+ }
60
+ }
61
+ get type() {
62
+ return (0, _utils.getLiteralAttribute)(this, _utils2.typeValues, 'type');
63
+ }
64
+ set type(value) {
65
+ (0, _utils.updateLiteralAttribute)(this, _utils2.typeValues, 'type', value);
66
+ }
67
+ get text() {
68
+ return (0, _utils.getAttribute)(this, 'text', '');
69
+ }
70
+ set text(value) {
71
+ (0, _utils.updateAttribute)(this, 'text', value);
72
+ }
73
+ get caption() {
74
+ return (0, _utils.getAttribute)(this, 'caption', '');
75
+ }
76
+ set caption(value) {
77
+ (0, _utils.updateAttribute)(this, 'caption', value);
78
+ }
79
+ #onCloseSlotChange = () => {
80
+ (0, _utils.setClass)(this.#$closeWrapper, 'empty', this.#$closeSlot.assignedElements().length === 0);
81
+ };
82
+ #onActionSlotChange = () => {
83
+ (0, _utils.setClass)(this.#$actionWrapper, 'empty', this.#$actionSlot.assignedElements().length === 0);
84
+ };
85
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.typeValues = void 0;
7
+ const typeValues = exports.typeValues = ['info', 'success', 'warn', 'error'];