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