@nectary/components 0.27.0 → 0.28.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/index.d.ts +1 -24
  2. package/accordion-item/index.js +1 -1
  3. package/accordion-item/types.d.ts +23 -0
  4. package/accordion-item/types.js +1 -0
  5. package/accordion-item/utils.d.ts +1 -0
  6. package/accordion-item/utils.js +1 -0
  7. package/action-menu/index.d.ts +29 -0
  8. package/action-menu/index.js +274 -0
  9. package/action-menu-option/index.d.ts +11 -0
  10. package/action-menu-option/index.js +95 -0
  11. package/action-menu-option/types.d.ts +17 -0
  12. package/action-menu-option/types.js +1 -0
  13. package/button/index.js +1 -1
  14. package/chat-block/index.d.ts +1 -1
  15. package/chat-bubble/index.d.ts +1 -15
  16. package/chat-bubble/index.js +1 -2
  17. package/chat-bubble/types.d.ts +13 -0
  18. package/chat-bubble/types.js +1 -0
  19. package/chat-bubble/utils.d.ts +1 -0
  20. package/chat-bubble/utils.js +2 -1
  21. package/dropdown/index.d.ts +2 -27
  22. package/dropdown/index.js +2 -1
  23. package/dropdown/types.d.ts +25 -0
  24. package/dropdown/types.js +1 -0
  25. package/dropdown-checkbox-option/index.d.ts +1 -14
  26. package/dropdown-checkbox-option/types.d.ts +14 -0
  27. package/dropdown-checkbox-option/types.js +1 -0
  28. package/dropdown-radio-option/index.d.ts +1 -14
  29. package/dropdown-radio-option/types.d.ts +14 -0
  30. package/dropdown-radio-option/types.js +1 -0
  31. package/dropdown-text-option/index.d.ts +1 -15
  32. package/dropdown-text-option/types.d.ts +15 -0
  33. package/dropdown-text-option/types.js +1 -0
  34. package/grid/index.d.ts +0 -1
  35. package/grid/index.js +0 -1
  36. package/grid-item/index.d.ts +3 -15
  37. package/grid-item/types.d.ts +13 -0
  38. package/grid-item/types.js +1 -0
  39. package/help-tooltip/index.d.ts +1 -1
  40. package/icons/access-alarm/index.d.ts +11 -0
  41. package/icons/access-alarm/index.js +4 -0
  42. package/icons/access-alarms/index.d.ts +11 -0
  43. package/icons/access-alarms/index.js +4 -0
  44. package/icons/ad-units/index.d.ts +11 -0
  45. package/icons/ad-units/index.js +4 -0
  46. package/icons/add-alarm/index.d.ts +11 -0
  47. package/icons/add-alarm/index.js +4 -0
  48. package/icons/add-ic-call/index.d.ts +11 -0
  49. package/icons/add-ic-call/index.js +4 -0
  50. package/icons/add-to-home-screen/index.d.ts +11 -0
  51. package/icons/add-to-home-screen/index.js +4 -0
  52. package/icons/admin-panel-settings/index.js +1 -1
  53. package/icons/airplanemode-active/index.d.ts +11 -0
  54. package/icons/airplanemode-active/index.js +4 -0
  55. package/icons/airplanemode-inactive/index.d.ts +11 -0
  56. package/icons/airplanemode-inactive/index.js +4 -0
  57. package/icons/alternate-email/index.d.ts +11 -0
  58. package/icons/alternate-email/index.js +4 -0
  59. package/icons/app-blocking/index.js +1 -1
  60. package/icons/arrow-left/index.js +1 -1
  61. package/icons/attach-email/index.js +1 -1
  62. package/icons/attribution/index.js +1 -1
  63. package/icons/backup-table/index.js +1 -1
  64. package/icons/battery-alert/index.d.ts +11 -0
  65. package/icons/battery-alert/index.js +4 -0
  66. package/icons/battery-charging-full/index.d.ts +11 -0
  67. package/icons/battery-charging-full/index.js +4 -0
  68. package/icons/battery-full/index.d.ts +11 -0
  69. package/icons/battery-full/index.js +4 -0
  70. package/icons/battery-std/index.d.ts +11 -0
  71. package/icons/battery-std/index.js +4 -0
  72. package/icons/battery-unknown/index.d.ts +11 -0
  73. package/icons/battery-unknown/index.js +4 -0
  74. package/icons/biotech/index.js +1 -1
  75. package/icons/bluetooth/index.d.ts +11 -0
  76. package/icons/bluetooth/index.js +4 -0
  77. package/icons/bluetooth-connected/index.d.ts +11 -0
  78. package/icons/bluetooth-connected/index.js +4 -0
  79. package/icons/bluetooth-disabled/index.d.ts +11 -0
  80. package/icons/bluetooth-disabled/index.js +4 -0
  81. package/icons/bluetooth-searching/index.d.ts +11 -0
  82. package/icons/bluetooth-searching/index.js +4 -0
  83. package/icons/brightness-auto/index.d.ts +11 -0
  84. package/icons/brightness-auto/index.js +4 -0
  85. package/icons/brightness-high/index.d.ts +11 -0
  86. package/icons/brightness-high/index.js +4 -0
  87. package/icons/brightness-low/index.d.ts +11 -0
  88. package/icons/brightness-low/index.js +4 -0
  89. package/icons/brightness-medium/index.d.ts +11 -0
  90. package/icons/brightness-medium/index.js +4 -0
  91. package/icons/business/index.d.ts +11 -0
  92. package/icons/business/index.js +4 -0
  93. package/icons/call/index.d.ts +11 -0
  94. package/icons/call/index.js +4 -0
  95. package/icons/call-end/index.d.ts +11 -0
  96. package/icons/call-end/index.js +4 -0
  97. package/icons/call-made/index.d.ts +11 -0
  98. package/icons/call-made/index.js +4 -0
  99. package/icons/call-merge/index.d.ts +11 -0
  100. package/icons/call-merge/index.js +4 -0
  101. package/icons/call-missed/index.d.ts +11 -0
  102. package/icons/call-missed/index.js +4 -0
  103. package/icons/call-missed-outgoing/index.d.ts +11 -0
  104. package/icons/call-missed-outgoing/index.js +4 -0
  105. package/icons/call-received/index.d.ts +11 -0
  106. package/icons/call-received/index.js +4 -0
  107. package/icons/call-split/index.d.ts +11 -0
  108. package/icons/call-split/index.js +4 -0
  109. package/icons/cancel-presentation/index.d.ts +11 -0
  110. package/icons/cancel-presentation/index.js +4 -0
  111. package/icons/chat-bubble/index.d.ts +11 -0
  112. package/icons/chat-bubble/index.js +4 -0
  113. package/icons/clear-all/index.d.ts +11 -0
  114. package/icons/clear-all/index.js +4 -0
  115. package/icons/contact-mail/index.d.ts +11 -0
  116. package/icons/contact-mail/index.js +4 -0
  117. package/icons/contact-phone/index.d.ts +11 -0
  118. package/icons/contact-phone/index.js +4 -0
  119. package/icons/contacts/index.d.ts +11 -0
  120. package/icons/contacts/index.js +4 -0
  121. package/icons/data-usage/index.d.ts +11 -0
  122. package/icons/data-usage/index.js +4 -0
  123. package/icons/desktop-access-disabled/index.d.ts +11 -0
  124. package/icons/desktop-access-disabled/index.js +4 -0
  125. package/icons/developer-mode/index.d.ts +11 -0
  126. package/icons/developer-mode/index.js +4 -0
  127. package/icons/devices/index.d.ts +11 -0
  128. package/icons/devices/index.js +4 -0
  129. package/icons/dialer-sip/index.d.ts +11 -0
  130. package/icons/dialer-sip/index.js +4 -0
  131. package/icons/dialpad/index.d.ts +11 -0
  132. package/icons/dialpad/index.js +4 -0
  133. package/icons/domain-disabled/index.d.ts +11 -0
  134. package/icons/domain-disabled/index.js +4 -0
  135. package/icons/domain-verification/index.d.ts +11 -0
  136. package/icons/domain-verification/index.js +4 -0
  137. package/icons/double-arrow/index.js +1 -1
  138. package/icons/duo/index.d.ts +11 -0
  139. package/icons/duo/index.js +4 -0
  140. package/icons/dvr/index.d.ts +11 -0
  141. package/icons/dvr/index.js +4 -0
  142. package/icons/dynamic-feed/index.js +1 -1
  143. package/icons/email/index.d.ts +11 -0
  144. package/icons/email/index.js +4 -0
  145. package/icons/forward-to-inbox/index.d.ts +11 -0
  146. package/icons/forward-to-inbox/index.js +4 -0
  147. package/icons/gps-fixed/index.d.ts +11 -0
  148. package/icons/gps-fixed/index.js +4 -0
  149. package/icons/gps-not-fixed/index.d.ts +11 -0
  150. package/icons/gps-not-fixed/index.js +4 -0
  151. package/icons/gps-off/index.d.ts +11 -0
  152. package/icons/gps-off/index.js +4 -0
  153. package/icons/graphic-eq/index.d.ts +11 -0
  154. package/icons/graphic-eq/index.js +4 -0
  155. package/icons/home-work/index.js +1 -1
  156. package/icons/hourglass-bottom/index.d.ts +11 -0
  157. package/icons/hourglass-bottom/index.js +4 -0
  158. package/icons/hourglass-top/index.d.ts +11 -0
  159. package/icons/hourglass-top/index.js +4 -0
  160. package/icons/import-contacts/index.d.ts +11 -0
  161. package/icons/import-contacts/index.js +4 -0
  162. package/icons/import-export/index.d.ts +11 -0
  163. package/icons/import-export/index.js +4 -0
  164. package/icons/insights/index.js +1 -1
  165. package/icons/invert-colors-off/index.d.ts +11 -0
  166. package/icons/invert-colors-off/index.js +4 -0
  167. package/icons/list-alt/index.d.ts +11 -0
  168. package/icons/list-alt/index.js +4 -0
  169. package/icons/live-help/index.d.ts +11 -0
  170. package/icons/live-help/index.js +4 -0
  171. package/icons/location-disabled/index.d.ts +11 -0
  172. package/icons/location-disabled/index.js +4 -0
  173. package/icons/location-off/index.d.ts +11 -0
  174. package/icons/location-off/index.js +4 -0
  175. package/icons/location-on/index.d.ts +11 -0
  176. package/icons/location-on/index.js +4 -0
  177. package/icons/location-searching/index.d.ts +11 -0
  178. package/icons/location-searching/index.js +4 -0
  179. package/icons/logout/index.js +1 -1
  180. package/icons/mail-outline/index.d.ts +11 -0
  181. package/icons/mail-outline/index.js +4 -0
  182. package/icons/mark-email-read/index.d.ts +11 -0
  183. package/icons/mark-email-read/index.js +4 -0
  184. package/icons/mark-email-unread/index.d.ts +11 -0
  185. package/icons/mark-email-unread/index.js +4 -0
  186. package/icons/message/index.d.ts +11 -0
  187. package/icons/message/index.js +4 -0
  188. package/icons/mobile-friendly/index.d.ts +11 -0
  189. package/icons/mobile-friendly/index.js +4 -0
  190. package/icons/mobile-off/index.d.ts +11 -0
  191. package/icons/mobile-off/index.js +4 -0
  192. package/icons/mobile-screen-share/index.d.ts +11 -0
  193. package/icons/mobile-screen-share/index.js +4 -0
  194. package/icons/more-time/index.js +1 -1
  195. package/icons/nat/index.d.ts +11 -0
  196. package/icons/nat/index.js +4 -0
  197. package/icons/nfc/index.d.ts +11 -0
  198. package/icons/nfc/index.js +4 -0
  199. package/icons/no-sim/index.d.ts +11 -0
  200. package/icons/no-sim/index.js +4 -0
  201. package/icons/pause-presentation/index.d.ts +11 -0
  202. package/icons/pause-presentation/index.js +4 -0
  203. package/icons/person-add-disabled/index.d.ts +11 -0
  204. package/icons/person-add-disabled/index.js +4 -0
  205. package/icons/person-search/index.d.ts +11 -0
  206. package/icons/person-search/index.js +4 -0
  207. package/icons/phone/index.d.ts +11 -0
  208. package/icons/phone/index.js +4 -0
  209. package/icons/phone-disabled/index.d.ts +11 -0
  210. package/icons/phone-disabled/index.js +4 -0
  211. package/icons/phone-enabled/index.d.ts +11 -0
  212. package/icons/phone-enabled/index.js +4 -0
  213. package/icons/phonelink-erase/index.d.ts +11 -0
  214. package/icons/phonelink-erase/index.js +4 -0
  215. package/icons/phonelink-lock/index.d.ts +11 -0
  216. package/icons/phonelink-lock/index.js +4 -0
  217. package/icons/phonelink-ring/index.d.ts +11 -0
  218. package/icons/phonelink-ring/index.js +4 -0
  219. package/icons/phonelink-setup/index.d.ts +11 -0
  220. package/icons/phonelink-setup/index.js +4 -0
  221. package/icons/plagiarism/index.js +1 -1
  222. package/icons/policy/index.js +1 -1
  223. package/icons/portable-wifi-off/index.d.ts +11 -0
  224. package/icons/portable-wifi-off/index.js +4 -0
  225. package/icons/post-add/index.js +1 -1
  226. package/icons/present-to-all/index.d.ts +11 -0
  227. package/icons/present-to-all/index.js +4 -0
  228. package/icons/print-disabled/index.d.ts +11 -0
  229. package/icons/print-disabled/index.js +4 -0
  230. package/icons/qr-code/index.d.ts +11 -0
  231. package/icons/qr-code/index.js +4 -0
  232. package/icons/qr-code-scanner/index.d.ts +11 -0
  233. package/icons/qr-code-scanner/index.js +4 -0
  234. package/icons/quickreply/index.js +1 -1
  235. package/icons/read-more/index.d.ts +11 -0
  236. package/icons/read-more/index.js +4 -0
  237. package/icons/report-outline/index.js +1 -1
  238. package/icons/ring-volume/index.d.ts +11 -0
  239. package/icons/ring-volume/index.js +4 -0
  240. package/icons/rss-feed/index.d.ts +11 -0
  241. package/icons/rss-feed/index.js +4 -0
  242. package/icons/screen-lock-landscape/index.d.ts +11 -0
  243. package/icons/screen-lock-landscape/index.js +4 -0
  244. package/icons/screen-lock-portrait/index.d.ts +11 -0
  245. package/icons/screen-lock-portrait/index.js +4 -0
  246. package/icons/screen-lock-rotation/index.d.ts +11 -0
  247. package/icons/screen-lock-rotation/index.js +4 -0
  248. package/icons/screen-rotation/index.d.ts +11 -0
  249. package/icons/screen-rotation/index.js +4 -0
  250. package/icons/screen-share/index.d.ts +11 -0
  251. package/icons/screen-share/index.js +4 -0
  252. package/icons/sd-storage/index.d.ts +11 -0
  253. package/icons/sd-storage/index.js +4 -0
  254. package/icons/search-off/index.js +1 -1
  255. package/icons/sentiment-satisfied-alt/index.d.ts +11 -0
  256. package/icons/sentiment-satisfied-alt/index.js +4 -0
  257. package/icons/settings-system-daydream/index.d.ts +11 -0
  258. package/icons/settings-system-daydream/index.js +4 -0
  259. package/icons/signal-cellular-4-bar/index.d.ts +11 -0
  260. package/icons/signal-cellular-4-bar/index.js +4 -0
  261. package/icons/signal-cellular-alt/index.d.ts +11 -0
  262. package/icons/signal-cellular-alt/index.js +4 -0
  263. package/icons/signal-cellular-connected-no-internet-4-bar/index.d.ts +11 -0
  264. package/icons/signal-cellular-connected-no-internet-4-bar/index.js +4 -0
  265. package/icons/signal-cellular-no-sim/index.d.ts +11 -0
  266. package/icons/signal-cellular-no-sim/index.js +4 -0
  267. package/icons/signal-cellular-null/index.d.ts +11 -0
  268. package/icons/signal-cellular-null/index.js +4 -0
  269. package/icons/signal-cellular-off/index.d.ts +11 -0
  270. package/icons/signal-cellular-off/index.js +4 -0
  271. package/icons/signal-wifi-4-bar/index.d.ts +11 -0
  272. package/icons/signal-wifi-4-bar/index.js +4 -0
  273. package/icons/signal-wifi-4-bar-lock/index.d.ts +11 -0
  274. package/icons/signal-wifi-4-bar-lock/index.js +4 -0
  275. package/icons/signal-wifi-off/index.d.ts +11 -0
  276. package/icons/signal-wifi-off/index.js +4 -0
  277. package/icons/speaker-phone/index.d.ts +11 -0
  278. package/icons/speaker-phone/index.js +4 -0
  279. package/icons/stay-current-landscape/index.d.ts +11 -0
  280. package/icons/stay-current-landscape/index.js +4 -0
  281. package/icons/stay-current-portrait/index.d.ts +11 -0
  282. package/icons/stay-current-portrait/index.js +4 -0
  283. package/icons/stay-primary-landscape/index.d.ts +11 -0
  284. package/icons/stay-primary-landscape/index.js +4 -0
  285. package/icons/stay-primary-portrait/index.d.ts +11 -0
  286. package/icons/stay-primary-portrait/index.js +4 -0
  287. package/icons/stop-screen-share/index.d.ts +11 -0
  288. package/icons/stop-screen-share/index.js +4 -0
  289. package/icons/storage/index.d.ts +11 -0
  290. package/icons/storage/index.js +4 -0
  291. package/icons/swap-calls/index.d.ts +11 -0
  292. package/icons/swap-calls/index.js +4 -0
  293. package/icons/switch-left/index.js +1 -1
  294. package/icons/switch-right/index.js +1 -1
  295. package/icons/textsms/index.d.ts +11 -0
  296. package/icons/textsms/index.js +4 -0
  297. package/icons/thermostat/index.d.ts +11 -0
  298. package/icons/thermostat/index.js +4 -0
  299. package/icons/unsubscribe/index.d.ts +11 -0
  300. package/icons/unsubscribe/index.js +4 -0
  301. package/icons/usb/index.d.ts +11 -0
  302. package/icons/usb/index.js +4 -0
  303. package/icons/voicemail/index.d.ts +11 -0
  304. package/icons/voicemail/index.js +4 -0
  305. package/icons/vpn-key/index.d.ts +11 -0
  306. package/icons/vpn-key/index.js +4 -0
  307. package/icons/wallpaper/index.d.ts +11 -0
  308. package/icons/wallpaper/index.js +4 -0
  309. package/icons/widgets/index.d.ts +11 -0
  310. package/icons/widgets/index.js +4 -0
  311. package/icons/wifi-calling/index.d.ts +11 -0
  312. package/icons/wifi-calling/index.js +4 -0
  313. package/icons/wifi-lock/index.d.ts +11 -0
  314. package/icons/wifi-lock/index.js +4 -0
  315. package/icons/wifi-tethering/index.d.ts +11 -0
  316. package/icons/wifi-tethering/index.js +4 -0
  317. package/package.json +1 -3
  318. package/popover/index.d.ts +1 -2
  319. package/popover/index.js +5 -1
  320. package/popover/utils.d.ts +1 -0
  321. package/popover/utils.js +1 -0
  322. package/radio-option/index.d.ts +1 -19
  323. package/radio-option/index.js +0 -3
  324. package/radio-option/types.d.ts +18 -0
  325. package/radio-option/types.js +1 -0
  326. package/search-option/index.d.ts +1 -10
  327. package/search-option/index.js +4 -10
  328. package/search-option/types.d.ts +9 -0
  329. package/search-option/types.js +1 -0
  330. package/select-option/index.d.ts +1 -3
  331. package/select-option/types.d.ts +3 -0
  332. package/select-option/types.js +1 -0
  333. package/table/index.js +1 -1
  334. package/table-cell/index.js +1 -1
  335. package/table-head-cell/index.js +1 -1
  336. package/tabs-option/index.d.ts +1 -19
  337. package/tabs-option/index.js +0 -3
  338. package/tabs-option/types.d.ts +18 -0
  339. package/tabs-option/types.js +1 -0
  340. package/tooltip/index.d.ts +1 -17
  341. package/tooltip/index.js +1 -1
  342. package/tooltip/types.d.ts +16 -0
  343. package/tooltip/types.js +1 -0
  344. package/tooltip/utils.d.ts +1 -0
  345. package/tooltip/utils.js +1 -0
  346. package/index.d.ts +0 -649
  347. package/index.js +0 -649
@@ -9,9 +9,6 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
9
9
 
10
10
  import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
11
11
  const templateHTML = '<style>:host{--sinch-color-radio-outer-circle:var(--sinch-color-transparent);--sinch-color-radio-background:var(--sinch-color-snow-100);--sinch-color-radio-border:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-checked:var(--sinch-color-transparent);--sinch-color-radio-border-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-hover:var(--sinch-color-snow-500);--sinch-color-radio-border-hover:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-hover-checked:var(--sinch-color-tropical-100);--sinch-color-radio-border-hover-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-focus:var(--sinch-color-snow-800);--sinch-color-radio-border-focus:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-focus-checked:var(--sinch-color-tropical-200);--sinch-color-radio-border-focus-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-active:var(--sinch-color-stormy-100);--sinch-color-radio-border-active:var(--sinch-color-stormy-300);--sinch-color-radio-outer-circle-active-checked:var(--sinch-color-tropical-300);--sinch-color-radio-border-active-checked:var(--sinch-color-tropical-500);--sinch-color-radio-outer-circle-disabled:var(--sinch-color-transparent);--sinch-color-radio-border-disabled:var(--sinch-color-stormy-100);--sinch-color-radio-outer-circle-disabled-checked:var(--sinch-color-transparent);--sinch-color-radio-border-disabled-checked:var(--sinch-color-stormy-100);display:block;outline:0}#wrapper{display:flex;height:32px;box-sizing:border-box;width:100%}#input{all:initial;display:block;width:32px;height:32px;cursor:pointer}#input:disabled{cursor:initial}#icon-container{position:relative;width:32px;height:32px}#input::before{content:"";position:absolute;top:0;left:0;width:32px;height:32px;border-radius:50%;pointer-events:none;background-color:var(--sinch-color-radio-outer-circle);transition:background-color .1s linear}#input::after{content:"";position:absolute;top:6px;left:6px;width:20px;height:20px;border-radius:50%;pointer-events:none;background-color:var(--sinch-color-radio-background);box-shadow:0 0 0 2px var(--sinch-color-radio-border) inset;transition:background-color .1s linear}#icon-knob{position:absolute;left:11px;top:11px;width:10px;height:10px;border-radius:50%;transition:opacity .1s linear;opacity:0;background-color:var(--sinch-color-radio-border);pointer-events:none}@media (prefers-reduced-motion){#icon-knob,#input::after,#input::before{transition:none}}#label{align-self:center;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:8px;font:var(--sinch-font-body);color:var(--sinch-color-text-default)}:host([disabled]:not([disabled=false])) #label{color:var(--sinch-color-stormy-200)}#input:checked::before{background-color:var(--sinch-color-radio-outer-circle-checked)}#input:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-checked) inset}#input:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-checked)}#input:focus::before{background-color:var(--sinch-color-radio-outer-circle-focus)}#input:focus::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-focus) inset}#input:focus~#icon-knob{background-color:var(--sinch-color-radio-border-focus)}#input:hover::before{background-color:var(--sinch-color-radio-outer-circle-hover)}#input:hover::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-hover) inset}#input:hover~#icon-knob{background-color:var(--sinch-color-radio-border-hover)}#input:active::before{background-color:var(--sinch-color-radio-outer-circle-active)}#input:active::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-active) inset}#input:active~#icon-knob{background-color:var(--sinch-color-radio-border-active)}#input:disabled::before{background-color:var(--sinch-color-radio-outer-circle-disabled)}#input:disabled::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-disabled) inset}#input:disabled~#icon-knob{background-color:var(--sinch-color-radio-border-disabled)}#input:focus:checked::before{background-color:var(--sinch-color-radio-outer-circle-focus-checked)}#input:focus:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-focus-checked) inset}#input:focus:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-focus-checked)}#input:hover:checked::before{background-color:var(--sinch-color-radio-outer-circle-hover-checked)}#input:hover:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-hover-checked) inset}#input:hover:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-hover-checked)}#input:active:checked::before{background-color:var(--sinch-color-radio-outer-circle-active-checked)}#input:active:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-active-checked) inset}#input:active:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-active-checked)}#input:disabled:checked::before{background-color:var(--sinch-color-radio-outer-circle-disabled-checked)}#input:disabled:checked::after{box-shadow:0 0 0 2px var(--sinch-color-radio-border-disabled-checked) inset}#input:disabled:checked~#icon-knob{opacity:1;background-color:var(--sinch-color-radio-border-disabled-checked)}</style><div id="wrapper"><div id="icon-container"><input id="input" type="radio"/><div id="icon-knob"></div></div><label for="input" id="label"></label></div>';
12
- export const isRadioOptionElement = element => {
13
- return element instanceof Element && element.tagName === 'SINCH-RADIO-OPTION';
14
- };
15
12
  const template = document.createElement('template');
16
13
  template.innerHTML = templateHTML;
17
14
  defineCustomElement('sinch-radio-option', (_$input = new WeakMap(), _$label = new WeakMap(), _onInput = new WeakMap(), class extends NectaryElement {
@@ -0,0 +1,18 @@
1
+ import type { TSinchElementReact } from '../types';
2
+ import type { FocusEvent } from 'react';
3
+ export declare type TSinchRadioOptionElement = HTMLElement & {
4
+ value: string;
5
+ checked: boolean;
6
+ disabled: boolean;
7
+ text: string;
8
+ focus(): void;
9
+ blur(): void;
10
+ };
11
+ export declare type TSinchRadioOptionReact = TSinchElementReact<TSinchRadioOptionElement> & {
12
+ value: string;
13
+ disabled?: boolean;
14
+ text: string;
15
+ 'aria-label': string;
16
+ onFocus?: (e: FocusEvent<TSinchRadioOptionElement>) => void;
17
+ onBlur?: (e: FocusEvent<TSinchRadioOptionElement>) => void;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,13 +1,4 @@
1
- import type { TSinchElementReact } from '../types';
2
- export declare const isSinchSearchOptionElement: (element: EventTarget | Element | null) => element is TSinchSearchOptionElement;
3
- export declare type TSinchSearchOptionElement = HTMLElement & {
4
- text: string;
5
- selected: boolean;
6
- };
7
- export declare type TSinchSearchOptionReact = TSinchElementReact<TSinchSearchOptionElement> & {
8
- text: string;
9
- 'aria-label': string;
10
- };
1
+ import type { TSinchSearchOptionElement, TSinchSearchOptionReact } from './types';
11
2
  declare global {
12
3
  namespace JSX {
13
4
  interface IntrinsicElements {
@@ -1,6 +1,8 @@
1
1
  import _classPrivateFieldGet from '@babel/runtime/helpers/classPrivateFieldGet';
2
2
  import _classPrivateFieldSet from '@babel/runtime/helpers/classPrivateFieldSet';
3
3
 
4
+ var _$content;
5
+
4
6
  function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
5
7
 
6
8
  function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
@@ -9,10 +11,7 @@ import { defineCustomElement, getAttribute, getBooleanAttribute, NectaryElement,
9
11
  const templateHTML = '<style>:host{display:block}#wrapper{display:block;box-sizing:border-box;line-height:40px;padding:0 12px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host(:hover)>#wrapper,:host([data-selected])>#wrapper{background-color:var(--sinch-color-snow-500)}</style><div id="wrapper"></div>';
10
12
  const template = document.createElement('template');
11
13
  template.innerHTML = templateHTML;
12
-
13
- var _$content = new WeakMap();
14
-
15
- class SinchSearchOption extends NectaryElement {
14
+ defineCustomElement('sinch-search-option', (_$content = new WeakMap(), class extends NectaryElement {
16
15
  constructor() {
17
16
  super();
18
17
 
@@ -66,9 +65,4 @@ class SinchSearchOption extends NectaryElement {
66
65
  return getBooleanAttribute(this, 'data-selected');
67
66
  }
68
67
 
69
- }
70
-
71
- defineCustomElement('sinch-search-option', SinchSearchOption);
72
- export const isSinchSearchOptionElement = element => {
73
- return element instanceof SinchSearchOption;
74
- };
68
+ }));
@@ -0,0 +1,9 @@
1
+ import type { TSinchElementReact } from '../types';
2
+ export declare type TSinchSearchOptionElement = HTMLElement & {
3
+ text: string;
4
+ selected: boolean;
5
+ };
6
+ export declare type TSinchSearchOptionReact = TSinchElementReact<TSinchSearchOptionElement> & {
7
+ text: string;
8
+ 'aria-label': string;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,4 @@
1
- import type { TSinchDropdownTextOptionElement, TSinchDropdownTextOptionReact } from '../dropdown-text-option';
2
- export declare type TSinchSelectOptionElement = TSinchDropdownTextOptionElement;
3
- export declare type TSinchSelectOptionReact = TSinchDropdownTextOptionReact;
1
+ import type { TSinchSelectOptionElement, TSinchSelectOptionReact } from './types';
4
2
  declare global {
5
3
  namespace JSX {
6
4
  interface IntrinsicElements {
@@ -0,0 +1,3 @@
1
+ import type { TSinchDropdownTextOptionElement, TSinchDropdownTextOptionReact } from '../dropdown-text-option/types';
2
+ export declare type TSinchSelectOptionElement = TSinchDropdownTextOptionElement;
3
+ export declare type TSinchSelectOptionReact = TSinchDropdownTextOptionReact;
@@ -0,0 +1 @@
1
+ export {};
package/table/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineCustomElement, NectaryElement } from '../utils';
2
- const templateHTML = '<style>:host{display:table;font:var(--sinch-font-body);color:var(--sinch-color-text-default)}</style><slot></slot>';
2
+ const templateHTML = '<style>:host{display:table;font:var(--sinch-font-body);color:var(--sinch-color-text-default);--sinch-color-icon:var(--sinch-color-text-default)}</style><slot></slot>';
3
3
  const template = document.createElement('template');
4
4
  template.innerHTML = templateHTML;
5
5
  defineCustomElement('sinch-table', class extends NectaryElement {
@@ -1,5 +1,5 @@
1
1
  import { defineCustomElement, getLiteralAttribute, NectaryElement, updateLiteralAttribute } from '../utils';
2
- const templateHTML = '<style>:host{display:table-cell;vertical-align:top;border-bottom:1px solid var(--sinch-color-snow-600)}#wrapper{display:flex;flex-direction:column;justify-content:center;min-height:48px;box-sizing:border-box;padding:8px 4px}:host(:first-child) #wrapper{padding-left:8px}:host(:last-child) #wrapper{padding-right:8px}:host([align=end]) #wrapper{text-align:end;align-items:flex-end}:host([align=center]) #wrapper{text-align:center;align-items:center}</style><div id="wrapper"><slot></slot></div>';
2
+ const templateHTML = '<style>:host{display:table-cell;vertical-align:top;border-bottom:1px solid var(--sinch-color-snow-600)}#wrapper{display:flex;flex-direction:column;justify-content:center;min-height:48px;box-sizing:border-box;padding:8px}:host([align=end]) #wrapper{text-align:end;align-items:flex-end}:host([align=center]) #wrapper{text-align:center;align-items:center}</style><div id="wrapper"><slot></slot></div>';
3
3
  const template = document.createElement('template');
4
4
  template.innerHTML = templateHTML;
5
5
  const alignValues = ['start', 'center', 'end'];
@@ -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, getLiteralAttribute, NectaryElement, updateAttribute, updateBooleanAttribute, updateLiteralAttribute } from '../utils';
11
- const templateHTML = '<style>:host{display:table-cell;border-bottom:1px solid var(--sinch-color-stormy-200);height:48px;vertical-align:middle;padding:0 6px;--sinch-color-icon:var(--sinch-color-stormy-200)}:host(:first-child){padding-left:8px}:host(:last-child){padding-right:8px}#wrapper{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:100%;box-sizing:border-box;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-300);--sinch-icon-button-color:var(--sinch-color-stormy-100)}#text{flex-shrink:1;min-width:0;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-200);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([align=center])>#wrapper{justify-content:center}:host([align=end])>#wrapper{justify-content:flex-end}:host(:is([text=""],:not([text])))>#wrapper{display:none}:host([fit]:not([fit=false])){width:1px}</style><slot name="checkbox"></slot><div id="wrapper"><slot name="left"></slot><span id="text"></span><slot name="tooltip"></slot><slot name="right"></slot></div>';
11
+ const templateHTML = '<style>:host{display:table-cell;border-bottom:1px solid var(--sinch-color-stormy-200);vertical-align:middle;--sinch-color-icon:var(--sinch-color-stormy-200)}#wrapper{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:100%;padding:8px;box-sizing:border-box;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-300);--sinch-icon-button-color:var(--sinch-color-stormy-100)}#text{flex-shrink:1;min-width:0;font:var(--sinch-font-title-s);color:var(--sinch-color-stormy-200)}:host([align=center])>#wrapper{justify-content:center}:host([align=end])>#wrapper{justify-content:flex-end}:host(:is([text=""],:not([text]))) #text{display:none}:host([fit]:not([fit=false])){width:1px}</style><div id="wrapper"><slot name="checkbox"></slot><slot name="left"></slot><span id="text"></span><slot name="tooltip"></slot><slot name="right"></slot></div>';
12
12
  const template = document.createElement('template');
13
13
  template.innerHTML = templateHTML;
14
14
  const alignValues = ['start', 'center', 'end'];
@@ -1,22 +1,4 @@
1
- import type { TSinchElementReact } from '../types';
2
- import type { FocusEvent } from 'react';
3
- export declare const isTabsOptionElement: (element: EventTarget | Element | null) => element is TSinchTabsOptionElement;
4
- export declare type TSinchTabsOptionElement = HTMLElement & {
5
- value: string;
6
- disabled: boolean;
7
- checked: boolean;
8
- text: string;
9
- focus(): void;
10
- blur(): void;
11
- };
12
- export declare type TSinchTabsOptionReact = TSinchElementReact<TSinchTabsOptionElement> & {
13
- value: string;
14
- disabled?: boolean;
15
- text: string;
16
- 'aria-label': string;
17
- onFocus?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
18
- onBlur?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
19
- };
1
+ import type { TSinchTabsOptionElement, TSinchTabsOptionReact } from './types';
20
2
  declare global {
21
3
  namespace JSX {
22
4
  interface IntrinsicElements {
@@ -8,9 +8,6 @@ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollect
8
8
 
9
9
  import { defineCustomElement, getAttribute, getBooleanAttribute, isAttrTrue, NectaryElement, updateAttribute, updateBooleanAttribute } from '../utils';
10
10
  const templateHTML = '<style>:host{display:block;outline:0}:host()>*{pointer-events:none}#wrapper{display:flex;flex-direction:row;align-items:center;gap:12px;position:relative;width:100%;height:42px;padding:8px 20px;box-sizing:border-box;box-shadow:0 1px 0 0 var(--sinch-color-stormy-100);color:var(--sinch-color-stormy-500);background-color:var(--sinch-color-snow-100);--sinch-color-icon:var(--sinch-color-stormy-500);--sinch-size-icon:16px}#content{font:var(--sinch-font-title-s);flex-shrink:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([checked]:not([checked=false])) #wrapper{box-shadow:0 2px 0 0 var(--sinch-color-stormy-500)}#button{all:initial;position:absolute;left:0;top:0;box-sizing:border-box;width:100%;height:100%;cursor:pointer}#button:disabled{cursor:unset}:host([disabled]:not([disabled=false])) #wrapper{color:var(--sinch-color-stormy-100);--sinch-color-icon:var(--sinch-color-stormy-100)}</style><div id="wrapper"><slot name="icon"></slot><label for="input" id="content"></label> <button id="button" type="radio"/></div>';
11
- export const isTabsOptionElement = element => {
12
- return element instanceof Element && element.tagName === 'SINCH-TABS-OPTION';
13
- };
14
11
  const template = document.createElement('template');
15
12
  template.innerHTML = templateHTML;
16
13
  defineCustomElement('sinch-tabs-option', (_onClick = new WeakMap(), class extends NectaryElement {
@@ -0,0 +1,18 @@
1
+ import type { TSinchElementReact } from '../types';
2
+ import type { FocusEvent } from 'react';
3
+ export declare type TSinchTabsOptionElement = HTMLElement & {
4
+ value: string;
5
+ disabled: boolean;
6
+ checked: boolean;
7
+ text: string;
8
+ focus(): void;
9
+ blur(): void;
10
+ };
11
+ export declare type TSinchTabsOptionReact = TSinchElementReact<TSinchTabsOptionElement> & {
12
+ value: string;
13
+ disabled?: boolean;
14
+ text: string;
15
+ 'aria-label': string;
16
+ onFocus?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
17
+ onBlur?: (e: FocusEvent<TSinchTabsOptionElement>) => void;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,19 +1,4 @@
1
- import type { TRect, TSinchElementReact } from '../types';
2
- declare const orientationValues: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
3
- export declare type TSinchTooltipOrientation = typeof orientationValues[number];
4
- export declare type TSinchTooltipElement = HTMLElement & {
5
- text: string;
6
- width: number | null;
7
- inverted: boolean;
8
- orientation: TSinchTooltipOrientation;
9
- readonly tooltipRect: TRect;
10
- };
11
- export declare type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
12
- text: string;
13
- width?: number;
14
- inverted?: boolean;
15
- orientation?: TSinchTooltipOrientation;
16
- };
1
+ import type { TSinchTooltipElement, TSinchTooltipReact } from './types';
17
2
  declare global {
18
3
  namespace JSX {
19
4
  interface IntrinsicElements {
@@ -24,4 +9,3 @@ declare global {
24
9
  'sinch-tooltip': TSinchTooltipElement;
25
10
  }
26
11
  }
27
- export {};
package/tooltip/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { attrValueToPixels, defineCustomElement, getBooleanAttribute, getIntegerAttribute, getAttribute, getLiteralAttribute, updateBooleanAttribute, updateAttribute, updateLiteralAttribute, getRect, NectaryElement } from '../utils';
2
2
  const templateHTML = '<style>:host{display:inline-block;vertical-align:middle}#wrapper{position:relative;display:block}#tooltip{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .2s linear .2s}@media (prefers-reduced-motion){#tooltip{transition:none}}:host(:hover) #tooltip{opacity:1}#text{position:absolute;padding:2px 6px;font:var(--sinch-font-extra-small-text);color:var(--sinch-color-text-default);background-color:var(--sinch-color-snow-600);width:max-content;border-radius:2px;top:-8px;left:50%;transform:translateX(-50%) translateY(-100%)}#arrow{position:absolute;top:-8px;left:50%;transform:translateX(-50%);fill:var(--sinch-color-snow-600)}:host([orientation=top-left]) #text{transform:translateX(-80%) translateY(-100%)}:host([orientation=top-right]) #text{transform:translateX(-20%) translateY(-100%)}:host([orientation=bottom-right]) #text{top:calc(100% + 8px);transform:translateX(-20%)}:host([orientation=bottom-left]) #text{top:calc(100% + 8px);transform:translateX(-80%)}:host([orientation=bottom]) #text{top:calc(100% + 8px);transform:translateX(-50%)}:host([orientation^=bottom]) #arrow{top:calc(100% + 4px);transform:translateX(-50%) rotate(180deg)}:host([orientation=left]) #text{left:unset;right:calc(100% + 8px);top:50%;transform:translateY(-50%)}:host([orientation=left]) #arrow{left:-11px;top:50%;transform:translateY(-50%) rotate(270deg)}:host([orientation=right]) #text{left:calc(100% + 8px);top:50%;transform:translateY(-50%)}:host([orientation=right]) #arrow{top:50%;left:calc(100% + 2px);transform:translateY(-50%) rotate(90deg)}:host([inverted]:not([inverted=false])) #text{color:var(--sinch-color-text-inverted);background-color:var(--sinch-color-stormy-500)}:host([inverted]:not([inverted=false])) #arrow{fill:var(--sinch-color-stormy-500)}::slotted(*){display:block}</style><div id="wrapper"><slot></slot><div id="tooltip"><div id="text"></div><svg id="arrow" width="9" height="4" aria-hidden="true"><path d="m4.5 4 4-4h-8l4 4Z"/></svg></div></div>';
3
- const orientationValues = ['top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'];
3
+ import { orientationValues } from './utils';
4
4
  const template = document.createElement('template');
5
5
  template.innerHTML = templateHTML;
6
6
  defineCustomElement('sinch-tooltip', class extends NectaryElement {
@@ -0,0 +1,16 @@
1
+ import type { TRect, TSinchElementReact } from '../types';
2
+ import type { orientationValues } from './utils';
3
+ export declare type TSinchTooltipOrientation = typeof orientationValues[number];
4
+ export declare type TSinchTooltipElement = HTMLElement & {
5
+ text: string;
6
+ width: number | null;
7
+ inverted: boolean;
8
+ orientation: TSinchTooltipOrientation;
9
+ readonly tooltipRect: TRect;
10
+ };
11
+ export declare type TSinchTooltipReact = TSinchElementReact<TSinchTooltipElement> & {
12
+ text: string;
13
+ width?: number;
14
+ inverted?: boolean;
15
+ orientation?: TSinchTooltipOrientation;
16
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const orientationValues: readonly ["top", "bottom", "left", "right", "top-left", "top-right", "bottom-left", "bottom-right"];
@@ -0,0 +1 @@
1
+ export const orientationValues = ['top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right'];