@helpdice/ui 2.1.3 → 2.1.5

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 (983) hide show
  1. package/dist/{Breadcrumbs → breadcrumbs}/breadcrumbs-item.d.ts +1 -1
  2. package/dist/{Button → button}/styles.d.ts +1 -1
  3. package/{esm/ButtonDropdown → dist/button-dropdown}/styles.d.ts +1 -1
  4. package/{esm/Card → dist/card}/styles.d.ts +1 -1
  5. package/dist/{Checkbox → checkbox}/styles.d.ts +1 -1
  6. package/dist/{Drawer → drawer}/index.d.ts +4 -4
  7. package/dist/form/index.js +6145 -0
  8. package/dist/{Grid → grid}/index.d.ts +5 -4
  9. package/dist/{Grid → grid}/index.js +1 -0
  10. package/dist/html-renderer/index.d.ts +2 -0
  11. package/dist/html-renderer/index.js +1363 -0
  12. package/dist/{Image → image}/image-browser.d.ts +1 -1
  13. package/dist/{Image → image}/styles.d.ts +1 -1
  14. package/dist/index.d.ts +111 -112
  15. package/dist/index.js +45 -45
  16. package/dist/{Input → input}/index.d.ts +4 -4
  17. package/{esm/Input → dist/input}/styles.d.ts +1 -1
  18. package/dist/{Modal → modal}/modal-action.d.ts +1 -1
  19. package/{esm/PhoneInput → dist/phone-input}/phone.d.ts +1 -1
  20. package/dist/placeholder/index.d.ts +2 -0
  21. package/dist/{Popover → popover}/popover.d.ts +1 -1
  22. package/dist/{Radio → radio}/styles.d.ts +1 -1
  23. package/dist/{Select → select}/styles.d.ts +1 -1
  24. package/{esm/Slider → dist/slider}/styles.d.ts +1 -1
  25. package/{esm/Snippet → dist/snippet}/styles.d.ts +1 -1
  26. package/dist/{Toggle → toggle}/styles.d.ts +1 -1
  27. package/dist/{Tooltip → tooltip}/styles.d.ts +1 -1
  28. package/dist/use-modal/use-modal.d.ts +1 -1
  29. package/esm/{AutoComplete → auto-complete}/auto-complete.js +2 -2
  30. package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs-item.d.ts +1 -1
  31. package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs-item.js +1 -1
  32. package/esm/{Button → button}/button-loading.js +1 -1
  33. package/esm/{Button → button}/styles.d.ts +1 -1
  34. package/esm/{ButtonDropdown → button-dropdown}/button-dropdown-item.js +1 -1
  35. package/{dist/ButtonDropdown → esm/button-dropdown}/styles.d.ts +1 -1
  36. package/esm/{Card → card}/card.js +1 -1
  37. package/{dist/Card → esm/card}/styles.d.ts +1 -1
  38. package/esm/{Carousal → carousal}/component/Thumbs.js +2 -2
  39. package/esm/{Carousal → carousal}/component/index.js +1 -1
  40. package/esm/{Checkbox → checkbox}/styles.d.ts +1 -1
  41. package/esm/{Drawer → drawer}/index.d.ts +4 -4
  42. package/esm/drawer/index.js +9 -0
  43. package/esm/{Grid → grid}/index.d.ts +5 -4
  44. package/esm/grid/index.js +6 -0
  45. package/esm/html-renderer/index.d.ts +2 -0
  46. package/esm/html-renderer/index.js +2 -0
  47. package/esm/{Image → image}/image-browser.d.ts +1 -1
  48. package/esm/{Image → image}/image-browser.js +1 -1
  49. package/esm/{Image → image}/styles.d.ts +1 -1
  50. package/esm/index.d.ts +111 -112
  51. package/esm/index.js +61 -62
  52. package/esm/{Input → input}/index.d.ts +4 -4
  53. package/esm/{Input → input}/index.js +2 -2
  54. package/esm/{Input → input}/password.js +1 -1
  55. package/{dist/Input → esm/input}/styles.d.ts +1 -1
  56. package/esm/{List → list}/list.js +1 -1
  57. package/esm/{Loadable → loadable}/loader.js +1 -1
  58. package/esm/{Modal → modal}/modal-action.d.ts +1 -1
  59. package/esm/{Modal → modal}/modal-action.js +1 -1
  60. package/{dist/PhoneInput → esm/phone-input}/phone.d.ts +1 -1
  61. package/esm/{PhoneInput → phone-input}/phone.js +1 -1
  62. package/esm/{Placeholder/placeholder.js → placeholder/holder.js} +1 -1
  63. package/esm/placeholder/index.d.ts +2 -0
  64. package/esm/placeholder/index.js +2 -0
  65. package/esm/{Popover → popover}/popover.d.ts +1 -1
  66. package/esm/{Popover → popover}/popover.js +1 -1
  67. package/esm/{Radio → radio}/styles.d.ts +1 -1
  68. package/esm/{Select → select}/select-multiple-value.js +1 -1
  69. package/esm/{Select → select}/select.js +1 -1
  70. package/esm/{Select → select}/styles.d.ts +1 -1
  71. package/esm/{Toggle → slider}/styles.d.ts +1 -1
  72. package/{dist/Snippet → esm/snippet}/styles.d.ts +1 -1
  73. package/esm/{Table → table}/table-body.js +3 -2
  74. package/esm/{Table → table}/table-head.js +2 -2
  75. package/esm/{Table → table}/table.js +3 -3
  76. package/esm/{Textarea → textarea}/textarea.js +1 -1
  77. package/{dist/Slider → esm/toggle}/styles.d.ts +1 -1
  78. package/esm/{Tooltip → tooltip}/styles.d.ts +1 -1
  79. package/esm/use-modal/use-modal.d.ts +1 -1
  80. package/esm/use-toasts/helpers.js +1 -1
  81. package/esm/{User → user}/user-link.js +1 -1
  82. package/esm/{User → user}/user.js +1 -1
  83. package/package.json +263 -170
  84. package/dist/Placeholder/index.d.ts +0 -2
  85. package/esm/Drawer/index.js +0 -9
  86. package/esm/Grid/index.js +0 -5
  87. package/esm/Placeholder/index.d.ts +0 -2
  88. package/esm/Placeholder/index.js +0 -2
  89. package/dist/{AutoComplete → auto-complete}/auto-complete-context.d.ts +0 -0
  90. package/dist/{AutoComplete → auto-complete}/auto-complete-dropdown.d.ts +0 -0
  91. package/dist/{AutoComplete → auto-complete}/auto-complete-empty.d.ts +0 -0
  92. package/dist/{AutoComplete → auto-complete}/auto-complete-item.d.ts +0 -0
  93. package/dist/{AutoComplete → auto-complete}/auto-complete-searching.d.ts +0 -0
  94. package/dist/{AutoComplete → auto-complete}/auto-complete.d.ts +0 -0
  95. package/dist/{AutoComplete → auto-complete}/index.d.ts +0 -0
  96. package/dist/{AutoComplete → auto-complete}/index.js +0 -0
  97. package/dist/{Avatar → avatar}/avatar-group.d.ts +0 -0
  98. package/dist/{Avatar → avatar}/avatar.d.ts +0 -0
  99. package/dist/{Avatar → avatar}/index.d.ts +0 -0
  100. package/dist/{Avatar → avatar}/index.js +0 -0
  101. package/dist/{Badge → badge}/badge-anchor.d.ts +0 -0
  102. package/dist/{Badge → badge}/badge.d.ts +0 -0
  103. package/dist/{Badge → badge}/index.d.ts +0 -0
  104. package/dist/{Badge → badge}/index.js +0 -0
  105. package/dist/{Breadcrumbs → breadcrumbs}/breadcrumbs-separator.d.ts +0 -0
  106. package/dist/{Breadcrumbs → breadcrumbs}/breadcrumbs.d.ts +0 -0
  107. package/dist/{Breadcrumbs → breadcrumbs}/index.d.ts +0 -0
  108. package/dist/{Breadcrumbs → breadcrumbs}/index.js +0 -0
  109. package/dist/{Button → button}/button-icon.d.ts +0 -0
  110. package/dist/{Button → button}/button-loading.d.ts +0 -0
  111. package/dist/{Button → button}/button.compact.d.ts +0 -0
  112. package/dist/{Button → button}/button.d.ts +0 -0
  113. package/dist/{Button → button}/button.drip.d.ts +0 -0
  114. package/dist/{Button → button}/index.d.ts +0 -0
  115. package/dist/{Button → button}/index.js +0 -0
  116. package/dist/{Button → button}/utils.d.ts +0 -0
  117. package/dist/{ButtonDropdown → button-dropdown}/button-dropdown-context.d.ts +0 -0
  118. package/dist/{ButtonDropdown → button-dropdown}/button-dropdown-item.d.ts +0 -0
  119. package/dist/{ButtonDropdown → button-dropdown}/button-dropdown.d.ts +0 -0
  120. package/dist/{ButtonDropdown → button-dropdown}/icon.d.ts +0 -0
  121. package/dist/{ButtonDropdown → button-dropdown}/index.d.ts +0 -0
  122. package/dist/{ButtonDropdown → button-dropdown}/index.js +0 -0
  123. package/dist/{Capacity → capacity}/capacity.d.ts +0 -0
  124. package/dist/{Capacity → capacity}/index.d.ts +0 -0
  125. package/dist/{Capacity → capacity}/index.js +0 -0
  126. package/dist/{Card → card}/card-content.d.ts +0 -0
  127. package/dist/{Card → card}/card-footer.d.ts +0 -0
  128. package/dist/{Card → card}/card.d.ts +0 -0
  129. package/dist/{Card → card}/index.d.ts +0 -0
  130. package/dist/{Card → card}/index.js +0 -0
  131. package/dist/{Carousal → carousal}/CSSTranslate.d.ts +0 -0
  132. package/dist/{Carousal → carousal}/component/Arrow.d.ts +0 -0
  133. package/dist/{Carousal → carousal}/component/Indicator.d.ts +0 -0
  134. package/dist/{Carousal → carousal}/component/Thumbs.d.ts +0 -0
  135. package/dist/{Carousal → carousal}/component/animations.d.ts +0 -0
  136. package/dist/{Carousal → carousal}/component/index.d.ts +0 -0
  137. package/dist/{Carousal → carousal}/component/types.d.ts +0 -0
  138. package/dist/{Carousal → carousal}/component/utils.d.ts +0 -0
  139. package/dist/{Carousal → carousal}/cssClasses.d.ts +0 -0
  140. package/dist/{Carousal → carousal}/dimensions.d.ts +0 -0
  141. package/dist/{Carousal → carousal}/index.d.ts +0 -0
  142. package/dist/{Carousal → carousal}/index.js +0 -0
  143. package/dist/{Carousal → carousal}/shims/document.d.ts +0 -0
  144. package/dist/{Carousal → carousal}/shims/window.d.ts +0 -0
  145. package/dist/{Checkbox → checkbox}/checkbox-context.d.ts +0 -0
  146. package/dist/{Checkbox → checkbox}/checkbox-group.d.ts +0 -0
  147. package/dist/{Checkbox → checkbox}/checkbox.d.ts +0 -0
  148. package/dist/{Checkbox → checkbox}/checkbox.icon.d.ts +0 -0
  149. package/dist/{Checkbox → checkbox}/index.d.ts +0 -0
  150. package/dist/{Checkbox → checkbox}/index.js +0 -0
  151. package/dist/{CircularProgress → circular-progress}/CircularProgressbar.d.ts +0 -0
  152. package/dist/{CircularProgress → circular-progress}/CircularProgressbarWithChildren.d.ts +0 -0
  153. package/dist/{CircularProgress → circular-progress}/Path.d.ts +0 -0
  154. package/dist/{CircularProgress → circular-progress}/buildStyles.d.ts +0 -0
  155. package/dist/{CircularProgress → circular-progress}/constants.d.ts +0 -0
  156. package/dist/{CircularProgress → circular-progress}/index.d.ts +0 -0
  157. package/dist/{CircularProgress → circular-progress}/index.js +0 -0
  158. package/dist/{CircularProgress → circular-progress}/types.d.ts +0 -0
  159. package/dist/{Code → code}/code.d.ts +0 -0
  160. package/dist/{Code → code}/index.d.ts +0 -0
  161. package/dist/{Code → code}/index.js +0 -0
  162. package/dist/{CodeBlock → code-block}/index.d.ts +0 -0
  163. package/dist/{Col → col}/index.js +0 -0
  164. package/dist/{Collapse → collapse}/collapse-context.d.ts +0 -0
  165. package/dist/{Collapse → collapse}/collapse-group.d.ts +0 -0
  166. package/dist/{Collapse → collapse}/collapse-icon.d.ts +0 -0
  167. package/dist/{Collapse → collapse}/collapse.d.ts +0 -0
  168. package/dist/{Collapse → collapse}/index.d.ts +0 -0
  169. package/dist/{Collapse → collapse}/index.js +0 -0
  170. package/dist/{CurrencyInput → currency-input}/components/CurrencyInput.d.ts +0 -0
  171. package/dist/{CurrencyInput → currency-input}/components/CurrencyInputProps.d.ts +0 -0
  172. package/dist/{CurrencyInput → currency-input}/components/utils/cleanValue.d.ts +0 -0
  173. package/dist/{CurrencyInput → currency-input}/components/utils/escapeRegExp.d.ts +0 -0
  174. package/dist/{CurrencyInput → currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
  175. package/dist/{CurrencyInput → currency-input}/components/utils/formatValue.d.ts +0 -0
  176. package/dist/{CurrencyInput → currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
  177. package/dist/{CurrencyInput → currency-input}/components/utils/getSuffix.d.ts +0 -0
  178. package/dist/{CurrencyInput → currency-input}/components/utils/index.d.ts +0 -0
  179. package/dist/{CurrencyInput → currency-input}/components/utils/isNumber.d.ts +0 -0
  180. package/dist/{CurrencyInput → currency-input}/components/utils/padTrimValue.d.ts +0 -0
  181. package/dist/{CurrencyInput → currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
  182. package/dist/{CurrencyInput → currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
  183. package/dist/{CurrencyInput → currency-input}/components/utils/removeSeparators.d.ts +0 -0
  184. package/dist/{CurrencyInput → currency-input}/components/utils/repositionCursor.d.ts +0 -0
  185. package/dist/{CurrencyInput → currency-input}/index.d.ts +0 -0
  186. package/dist/{CurrencyInput → currency-input}/index.js +0 -0
  187. package/dist/{Description → description}/description.d.ts +0 -0
  188. package/dist/{Description → description}/index.d.ts +0 -0
  189. package/dist/{Description → description}/index.js +0 -0
  190. package/dist/{Display → display}/display.d.ts +0 -0
  191. package/dist/{Display → display}/index.d.ts +0 -0
  192. package/dist/{Display → display}/index.js +0 -0
  193. package/dist/{Divider → divider}/divider.d.ts +0 -0
  194. package/dist/{Divider → divider}/index.d.ts +0 -0
  195. package/dist/{Divider → divider}/index.js +0 -0
  196. package/dist/{Dot → dot}/dot.d.ts +0 -0
  197. package/dist/{Dot → dot}/index.d.ts +0 -0
  198. package/dist/{Dot → dot}/index.js +0 -0
  199. package/dist/{Drawer → drawer}/drawer-wrapper.d.ts +0 -0
  200. package/dist/{Drawer → drawer}/drawer.d.ts +0 -0
  201. package/dist/{Drawer → drawer}/helper.d.ts +0 -0
  202. package/dist/{Drawer → drawer}/index.js +0 -0
  203. package/dist/{Fieldset → fieldset}/fieldset-content.d.ts +0 -0
  204. package/dist/{Fieldset → fieldset}/fieldset-context.d.ts +0 -0
  205. package/dist/{Fieldset → fieldset}/fieldset-footer.d.ts +0 -0
  206. package/dist/{Fieldset → fieldset}/fieldset-group.d.ts +0 -0
  207. package/dist/{Fieldset → fieldset}/fieldset-subtitle.d.ts +0 -0
  208. package/dist/{Fieldset → fieldset}/fieldset-title.d.ts +0 -0
  209. package/dist/{Fieldset → fieldset}/fieldset.d.ts +0 -0
  210. package/dist/{Fieldset → fieldset}/index.d.ts +0 -0
  211. package/dist/{Fieldset → fieldset}/index.js +0 -0
  212. package/dist/{Form → form}/ErrorMessage.d.ts +0 -0
  213. package/dist/{Form → form}/Field.d.ts +0 -0
  214. package/dist/{Form → form}/FormWrapper.d.ts +0 -0
  215. package/dist/{Form → form}/FormikContext.d.ts +0 -0
  216. package/dist/{Form → form}/connect.d.ts +0 -0
  217. package/dist/{Form → form}/constants.d.ts +0 -0
  218. package/dist/{Form → form}/index.d.ts +0 -0
  219. package/dist/{Form → form}/types.d.ts +0 -0
  220. package/dist/{Form → form}/utils.d.ts +0 -0
  221. package/dist/{Form → form}/withFormik.d.ts +0 -0
  222. package/dist/{Grid → grid}/basic-item.d.ts +0 -0
  223. package/dist/{Grid/grid.d.ts → grid/grid-base.d.ts} +0 -0
  224. package/dist/{Grid → grid}/grid-container.d.ts +0 -0
  225. package/dist/{Grid → grid}/grid-types.d.ts +0 -0
  226. package/dist/{HtmlRenderer/index.d.ts → html-renderer/renderer.d.ts} +0 -0
  227. package/dist/{Image → image}/helpers.d.ts +0 -0
  228. package/dist/{Image → image}/image-browser-https-icon.d.ts +0 -0
  229. package/dist/{Image → image}/image.d.ts +0 -0
  230. package/dist/{Image → image}/image.skeleton.d.ts +0 -0
  231. package/dist/{Image → image}/index.d.ts +0 -0
  232. package/dist/{Image → image}/index.js +0 -0
  233. package/dist/{Input → input}/index.js +0 -0
  234. package/dist/{Input → input}/input-block-label.d.ts +0 -0
  235. package/dist/{Input/input.d.ts → input/input-field.d.ts} +0 -0
  236. package/dist/{Input → input}/input-icon-clear.d.ts +0 -0
  237. package/dist/{Input → input}/input-icon.d.ts +0 -0
  238. package/dist/{Input → input}/input-label.d.ts +0 -0
  239. package/dist/{Input → input}/input-props.d.ts +0 -0
  240. package/dist/{Input → input}/password-icon.d.ts +0 -0
  241. package/dist/{Input → input}/password.d.ts +0 -0
  242. package/dist/{Keyboard → keyboard}/index.d.ts +0 -0
  243. package/dist/{Keyboard → keyboard}/index.js +0 -0
  244. package/dist/{Keyboard → keyboard}/keyboard.d.ts +0 -0
  245. package/dist/{LinearProgress → linear-progress}/index.d.ts +0 -0
  246. package/dist/{LinearProgress → linear-progress}/index.js +0 -0
  247. package/dist/{LinearProgress → linear-progress}/linear-progress.d.ts +0 -0
  248. package/dist/{Link → link}/icon.d.ts +0 -0
  249. package/dist/{Link → link}/index.d.ts +0 -0
  250. package/dist/{Link → link}/index.js +0 -0
  251. package/dist/{Link → link}/link.d.ts +0 -0
  252. package/dist/{List → list}/index.d.ts +0 -0
  253. package/dist/{List → list}/index.js +0 -0
  254. package/dist/{List → list}/list-item.d.ts +0 -0
  255. package/dist/{List → list}/list.d.ts +0 -0
  256. package/dist/{Loadable → loadable}/index.js +0 -0
  257. package/dist/{Loading → loading}/index.d.ts +0 -0
  258. package/dist/{Loading → loading}/index.js +0 -0
  259. package/dist/{Loading → loading}/loading.d.ts +0 -0
  260. package/dist/{LoginWith → login-with}/LoginSocialApple/index.d.ts +0 -0
  261. package/dist/{LoginWith → login-with}/LoginSocialFacebook/index.d.ts +0 -0
  262. package/dist/{LoginWith → login-with}/LoginSocialGithub/index.d.ts +0 -0
  263. package/dist/{LoginWith → login-with}/LoginSocialGoogle/index.d.ts +0 -0
  264. package/dist/{LoginWith → login-with}/LoginSocialInstagram/index.d.ts +0 -0
  265. package/dist/{LoginWith → login-with}/LoginSocialLinkedin/index.d.ts +0 -0
  266. package/dist/{LoginWith → login-with}/LoginSocialMicrosoft/index.d.ts +0 -0
  267. package/dist/{LoginWith → login-with}/LoginSocialPinterest/index.d.ts +0 -0
  268. package/dist/{LoginWith → login-with}/LoginSocialTiktok/index.d.ts +0 -0
  269. package/dist/{LoginWith → login-with}/LoginSocialTwitter/index.d.ts +0 -0
  270. package/dist/{LoginWith → login-with}/index.d.ts +0 -0
  271. package/dist/{Menu → menu}/index.d.ts +0 -0
  272. package/dist/{Menu → menu}/index.js +0 -0
  273. package/dist/{Menu → menu}/menu.d.ts +0 -0
  274. package/dist/{Modal → modal}/index.d.ts +0 -0
  275. package/dist/{Modal → modal}/index.js +0 -0
  276. package/dist/{Modal → modal}/modal-actions.d.ts +0 -0
  277. package/dist/{Modal → modal}/modal-content.d.ts +0 -0
  278. package/dist/{Modal → modal}/modal-context.d.ts +0 -0
  279. package/dist/{Modal → modal}/modal-subtitle.d.ts +0 -0
  280. package/dist/{Modal → modal}/modal-title.d.ts +0 -0
  281. package/dist/{Modal → modal}/modal-wrapper.d.ts +0 -0
  282. package/dist/{Modal → modal}/modal.d.ts +0 -0
  283. package/dist/{Note → note}/index.d.ts +0 -0
  284. package/dist/{Note → note}/index.js +0 -0
  285. package/dist/{Note → note}/note.d.ts +0 -0
  286. package/dist/{ITooltip → notetip}/index.d.ts +0 -0
  287. package/dist/{Page → page}/index.d.ts +0 -0
  288. package/dist/{Page → page}/index.js +0 -0
  289. package/dist/{Page → page}/page-content.d.ts +0 -0
  290. package/dist/{Page → page}/page-footer.d.ts +0 -0
  291. package/dist/{Page → page}/page-header.d.ts +0 -0
  292. package/dist/{Page → page}/page.d.ts +0 -0
  293. package/dist/{Pagination → pagination}/index.d.ts +0 -0
  294. package/dist/{Pagination → pagination}/index.js +0 -0
  295. package/dist/{Pagination → pagination}/pagination-context.d.ts +0 -0
  296. package/dist/{Pagination → pagination}/pagination-ellipsis.d.ts +0 -0
  297. package/dist/{Pagination → pagination}/pagination-item.d.ts +0 -0
  298. package/dist/{Pagination → pagination}/pagination-next.d.ts +0 -0
  299. package/dist/{Pagination → pagination}/pagination-pages.d.ts +0 -0
  300. package/dist/{Pagination → pagination}/pagination-previous.d.ts +0 -0
  301. package/dist/{Pagination → pagination}/pagination.d.ts +0 -0
  302. package/dist/{PhoneInput → phone-input}/index.d.ts +0 -0
  303. package/dist/{PhoneInput → phone-input}/index.js +0 -0
  304. package/dist/{Placeholder → placeholder}/empty.d.ts +0 -0
  305. package/dist/{Placeholder/placeholder.d.ts → placeholder/holder.d.ts} +0 -0
  306. package/dist/{Placeholder → placeholder}/index.js +0 -0
  307. package/dist/{Popover → popover}/index.d.ts +0 -0
  308. package/dist/{Popover → popover}/index.js +0 -0
  309. package/dist/{Popover → popover}/popover-context.d.ts +0 -0
  310. package/dist/{Popover → popover}/popover-item.d.ts +0 -0
  311. package/dist/{Progress → progress}/index.d.ts +0 -0
  312. package/dist/{Progress → progress}/index.js +0 -0
  313. package/dist/{Progress → progress}/progress.d.ts +0 -0
  314. package/dist/{Radio → radio}/index.d.ts +0 -0
  315. package/dist/{Radio → radio}/index.js +0 -0
  316. package/dist/{Radio → radio}/radio-context.d.ts +0 -0
  317. package/dist/{Radio → radio}/radio-description.d.ts +0 -0
  318. package/dist/{Radio → radio}/radio-group.d.ts +0 -0
  319. package/dist/{Radio → radio}/radio.d.ts +0 -0
  320. package/dist/{Rating → rating}/index.d.ts +0 -0
  321. package/dist/{Rating → rating}/index.js +0 -0
  322. package/dist/{Rating → rating}/rating-icon.d.ts +0 -0
  323. package/dist/{Rating → rating}/rating.d.ts +0 -0
  324. package/dist/{Row → row}/index.js +0 -0
  325. package/dist/{SearchBar → search-bar}/index.js +0 -0
  326. package/dist/{Select → select}/index.d.ts +0 -0
  327. package/dist/{Select → select}/index.js +0 -0
  328. package/dist/{Select → select}/select-context.d.ts +0 -0
  329. package/dist/{Select → select}/select-dropdown.d.ts +0 -0
  330. package/dist/{Select → select}/select-icon-clear.d.ts +0 -0
  331. package/dist/{Select → select}/select-icon.d.ts +0 -0
  332. package/dist/{Select → select}/select-input.d.ts +0 -0
  333. package/dist/{Select → select}/select-multiple-value.d.ts +0 -0
  334. package/dist/{Select → select}/select-option.d.ts +0 -0
  335. package/dist/{Select → select}/select.d.ts +0 -0
  336. package/dist/{Skeleton → skeleton}/index.d.ts +0 -0
  337. package/dist/{Slider → slider}/index.d.ts +0 -0
  338. package/dist/{Slider → slider}/index.js +0 -0
  339. package/dist/{Slider → slider}/slider-dot.d.ts +0 -0
  340. package/dist/{Slider → slider}/slider-mark.d.ts +0 -0
  341. package/dist/{Slider → slider}/slider.d.ts +0 -0
  342. package/dist/{Snippet → snippet}/index.d.ts +0 -0
  343. package/dist/{Snippet → snippet}/index.js +0 -0
  344. package/dist/{Snippet → snippet}/snippet-icon.d.ts +0 -0
  345. package/dist/{Snippet → snippet}/snippet.d.ts +0 -0
  346. package/dist/{Spacer → spacer}/index.d.ts +0 -0
  347. package/dist/{Spacer → spacer}/index.js +0 -0
  348. package/dist/{Spacer → spacer}/spacer.d.ts +0 -0
  349. package/dist/{Spinner → spinner}/index.d.ts +0 -0
  350. package/dist/{Spinner → spinner}/index.js +0 -0
  351. package/dist/{Spinner → spinner}/spinner.d.ts +0 -0
  352. package/dist/{Swipe → swipe}/index.d.ts +0 -0
  353. package/dist/{Swipe → swipe}/index.js +0 -0
  354. package/dist/{Swipe → swipe}/react-swipe.d.ts +0 -0
  355. package/dist/{Table → table}/index.d.ts +0 -0
  356. package/dist/{Table → table}/index.js +45 -45
  357. /package/dist/{Table → table}/table-body.d.ts +0 -0
  358. /package/dist/{Table → table}/table-cell.d.ts +0 -0
  359. /package/dist/{Table → table}/table-column.d.ts +0 -0
  360. /package/dist/{Table → table}/table-context.d.ts +0 -0
  361. /package/dist/{Table → table}/table-head.d.ts +0 -0
  362. /package/dist/{Table → table}/table-types.d.ts +0 -0
  363. /package/dist/{Table → table}/table.d.ts +0 -0
  364. /package/dist/{Tabs → tabs}/index.d.ts +0 -0
  365. /package/dist/{Tabs → tabs}/index.js +0 -0
  366. /package/dist/{Tabs → tabs}/tabs-context.d.ts +0 -0
  367. /package/dist/{Tabs → tabs}/tabs-item.d.ts +0 -0
  368. /package/dist/{Tabs → tabs}/tabs.d.ts +0 -0
  369. /package/dist/{Tag → tag}/index.d.ts +0 -0
  370. /package/dist/{Tag → tag}/index.js +0 -0
  371. /package/dist/{Tag → tag}/tag.d.ts +0 -0
  372. /package/dist/{Text → text}/child.d.ts +0 -0
  373. /package/dist/{Text → text}/index.d.ts +0 -0
  374. /package/dist/{Text → text}/index.js +0 -0
  375. /package/dist/{Text → text}/text.d.ts +0 -0
  376. /package/dist/{Textarea → textarea}/index.d.ts +0 -0
  377. /package/dist/{Textarea → textarea}/index.js +0 -0
  378. /package/dist/{Textarea → textarea}/textarea.d.ts +0 -0
  379. /package/dist/{Themes → themes}/index.d.ts +0 -0
  380. /package/dist/{Themes → themes}/index.js +0 -0
  381. /package/dist/{Themes → themes}/presets/dark.d.ts +0 -0
  382. /package/dist/{Themes → themes}/presets/default.d.ts +0 -0
  383. /package/dist/{Themes → themes}/presets/index.d.ts +0 -0
  384. /package/dist/{Themes → themes}/presets/shared.d.ts +0 -0
  385. /package/dist/{Themes → themes}/themes.d.ts +0 -0
  386. /package/dist/{Toggle → toggle}/index.d.ts +0 -0
  387. /package/dist/{Toggle → toggle}/index.js +0 -0
  388. /package/dist/{Toggle → toggle}/toggle.d.ts +0 -0
  389. /package/dist/{Tooltip → tooltip}/helper.d.ts +0 -0
  390. /package/dist/{Tooltip → tooltip}/index.d.ts +0 -0
  391. /package/dist/{Tooltip → tooltip}/index.js +0 -0
  392. /package/dist/{Tooltip → tooltip}/placement.d.ts +0 -0
  393. /package/dist/{Tooltip → tooltip}/tooltip-content.d.ts +0 -0
  394. /package/dist/{Tooltip → tooltip}/tooltip-icon.d.ts +0 -0
  395. /package/dist/{Tooltip → tooltip}/tooltip.d.ts +0 -0
  396. /package/dist/{Tree → tree}/index.d.ts +0 -0
  397. /package/dist/{Tree → tree}/index.js +0 -0
  398. /package/dist/{Tree → tree}/tree-context.d.ts +0 -0
  399. /package/dist/{Tree → tree}/tree-file-icon.d.ts +0 -0
  400. /package/dist/{Tree → tree}/tree-file.d.ts +0 -0
  401. /package/dist/{Tree → tree}/tree-folder-icon.d.ts +0 -0
  402. /package/dist/{Tree → tree}/tree-folder.d.ts +0 -0
  403. /package/dist/{Tree → tree}/tree-help.d.ts +0 -0
  404. /package/dist/{Tree → tree}/tree-indents.d.ts +0 -0
  405. /package/dist/{Tree → tree}/tree-status-icon.d.ts +0 -0
  406. /package/dist/{Tree → tree}/tree.d.ts +0 -0
  407. /package/dist/{User → user}/index.d.ts +0 -0
  408. /package/dist/{User → user}/index.js +0 -0
  409. /package/dist/{User → user}/user-link.d.ts +0 -0
  410. /package/dist/{User → user}/user.d.ts +0 -0
  411. /package/esm/{AutoComplete → auto-complete}/auto-complete-context.d.ts +0 -0
  412. /package/esm/{AutoComplete → auto-complete}/auto-complete-context.js +0 -0
  413. /package/esm/{AutoComplete → auto-complete}/auto-complete-dropdown.d.ts +0 -0
  414. /package/esm/{AutoComplete → auto-complete}/auto-complete-dropdown.js +0 -0
  415. /package/esm/{AutoComplete → auto-complete}/auto-complete-empty.d.ts +0 -0
  416. /package/esm/{AutoComplete → auto-complete}/auto-complete-empty.js +0 -0
  417. /package/esm/{AutoComplete → auto-complete}/auto-complete-item.d.ts +0 -0
  418. /package/esm/{AutoComplete → auto-complete}/auto-complete-item.js +0 -0
  419. /package/esm/{AutoComplete → auto-complete}/auto-complete-searching.d.ts +0 -0
  420. /package/esm/{AutoComplete → auto-complete}/auto-complete-searching.js +0 -0
  421. /package/esm/{AutoComplete → auto-complete}/auto-complete.d.ts +0 -0
  422. /package/esm/{AutoComplete → auto-complete}/index.d.ts +0 -0
  423. /package/esm/{AutoComplete → auto-complete}/index.js +0 -0
  424. /package/esm/{Avatar → avatar}/avatar-group.d.ts +0 -0
  425. /package/esm/{Avatar → avatar}/avatar-group.js +0 -0
  426. /package/esm/{Avatar → avatar}/avatar.d.ts +0 -0
  427. /package/esm/{Avatar → avatar}/avatar.js +0 -0
  428. /package/esm/{Avatar → avatar}/index.d.ts +0 -0
  429. /package/esm/{Avatar → avatar}/index.js +0 -0
  430. /package/esm/{Badge → badge}/badge-anchor.d.ts +0 -0
  431. /package/esm/{Badge → badge}/badge-anchor.js +0 -0
  432. /package/esm/{Badge → badge}/badge.d.ts +0 -0
  433. /package/esm/{Badge → badge}/badge.js +0 -0
  434. /package/esm/{Badge → badge}/index.d.ts +0 -0
  435. /package/esm/{Badge → badge}/index.js +0 -0
  436. /package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs-separator.d.ts +0 -0
  437. /package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs-separator.js +0 -0
  438. /package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs.d.ts +0 -0
  439. /package/esm/{Breadcrumbs → breadcrumbs}/breadcrumbs.js +0 -0
  440. /package/esm/{Breadcrumbs → breadcrumbs}/index.d.ts +0 -0
  441. /package/esm/{Breadcrumbs → breadcrumbs}/index.js +0 -0
  442. /package/esm/{Button → button}/button-icon.d.ts +0 -0
  443. /package/esm/{Button → button}/button-icon.js +0 -0
  444. /package/esm/{Button → button}/button-loading.d.ts +0 -0
  445. /package/esm/{Button → button}/button.compact.d.ts +0 -0
  446. /package/esm/{Button → button}/button.compact.js +0 -0
  447. /package/esm/{Button → button}/button.d.ts +0 -0
  448. /package/esm/{Button → button}/button.drip.d.ts +0 -0
  449. /package/esm/{Button → button}/button.drip.js +0 -0
  450. /package/esm/{Button → button}/button.js +0 -0
  451. /package/esm/{Button → button}/index.d.ts +0 -0
  452. /package/esm/{Button → button}/index.js +0 -0
  453. /package/esm/{Button → button}/styles.js +0 -0
  454. /package/esm/{Button → button}/utils.d.ts +0 -0
  455. /package/esm/{Button → button}/utils.js +0 -0
  456. /package/esm/{ButtonDropdown → button-dropdown}/button-dropdown-context.d.ts +0 -0
  457. /package/esm/{ButtonDropdown → button-dropdown}/button-dropdown-context.js +0 -0
  458. /package/esm/{ButtonDropdown → button-dropdown}/button-dropdown-item.d.ts +0 -0
  459. /package/esm/{ButtonDropdown → button-dropdown}/button-dropdown.d.ts +0 -0
  460. /package/esm/{ButtonDropdown → button-dropdown}/button-dropdown.js +0 -0
  461. /package/esm/{ButtonDropdown → button-dropdown}/icon.d.ts +0 -0
  462. /package/esm/{ButtonDropdown → button-dropdown}/icon.js +0 -0
  463. /package/esm/{ButtonDropdown → button-dropdown}/index.d.ts +0 -0
  464. /package/esm/{ButtonDropdown → button-dropdown}/index.js +0 -0
  465. /package/esm/{ButtonDropdown → button-dropdown}/styles.js +0 -0
  466. /package/esm/{Capacity → capacity}/capacity.d.ts +0 -0
  467. /package/esm/{Capacity → capacity}/capacity.js +0 -0
  468. /package/esm/{Capacity → capacity}/index.d.ts +0 -0
  469. /package/esm/{Capacity → capacity}/index.js +0 -0
  470. /package/esm/{Card → card}/card-content.d.ts +0 -0
  471. /package/esm/{Card → card}/card-content.js +0 -0
  472. /package/esm/{Card → card}/card-footer.d.ts +0 -0
  473. /package/esm/{Card → card}/card-footer.js +0 -0
  474. /package/esm/{Card → card}/card.d.ts +0 -0
  475. /package/esm/{Card → card}/index.d.ts +0 -0
  476. /package/esm/{Card → card}/index.js +0 -0
  477. /package/esm/{Card → card}/styles.js +0 -0
  478. /package/esm/{Carousal → carousal}/CSSTranslate.d.ts +0 -0
  479. /package/esm/{Carousal → carousal}/CSSTranslate.js +0 -0
  480. /package/esm/{Carousal → carousal}/component/Arrow.d.ts +0 -0
  481. /package/esm/{Carousal → carousal}/component/Arrow.js +0 -0
  482. /package/esm/{Carousal → carousal}/component/Indicator.d.ts +0 -0
  483. /package/esm/{Carousal → carousal}/component/Indicator.js +0 -0
  484. /package/esm/{Carousal → carousal}/component/Thumbs.d.ts +0 -0
  485. /package/esm/{Carousal → carousal}/component/animations.d.ts +0 -0
  486. /package/esm/{Carousal → carousal}/component/animations.js +0 -0
  487. /package/esm/{Carousal → carousal}/component/index.d.ts +0 -0
  488. /package/esm/{Carousal → carousal}/component/types.d.ts +0 -0
  489. /package/esm/{Carousal → carousal}/component/types.js +0 -0
  490. /package/esm/{Carousal → carousal}/component/utils.d.ts +0 -0
  491. /package/esm/{Carousal → carousal}/component/utils.js +0 -0
  492. /package/esm/{Carousal → carousal}/cssClasses.d.ts +0 -0
  493. /package/esm/{Carousal → carousal}/cssClasses.js +0 -0
  494. /package/esm/{Carousal → carousal}/dimensions.d.ts +0 -0
  495. /package/esm/{Carousal → carousal}/dimensions.js +0 -0
  496. /package/esm/{Carousal → carousal}/index.d.ts +0 -0
  497. /package/esm/{Carousal → carousal}/index.js +0 -0
  498. /package/esm/{Carousal → carousal}/main.js +0 -0
  499. /package/esm/{Carousal → carousal}/shims/document.d.ts +0 -0
  500. /package/esm/{Carousal → carousal}/shims/document.js +0 -0
  501. /package/esm/{Carousal → carousal}/shims/window.d.ts +0 -0
  502. /package/esm/{Carousal → carousal}/shims/window.js +0 -0
  503. /package/esm/{Checkbox → checkbox}/checkbox-context.d.ts +0 -0
  504. /package/esm/{Checkbox → checkbox}/checkbox-context.js +0 -0
  505. /package/esm/{Checkbox → checkbox}/checkbox-group.d.ts +0 -0
  506. /package/esm/{Checkbox → checkbox}/checkbox-group.js +0 -0
  507. /package/esm/{Checkbox → checkbox}/checkbox.d.ts +0 -0
  508. /package/esm/{Checkbox → checkbox}/checkbox.icon.d.ts +0 -0
  509. /package/esm/{Checkbox → checkbox}/checkbox.icon.js +0 -0
  510. /package/esm/{Checkbox → checkbox}/checkbox.js +0 -0
  511. /package/esm/{Checkbox → checkbox}/index.d.ts +0 -0
  512. /package/esm/{Checkbox → checkbox}/index.js +0 -0
  513. /package/esm/{Checkbox → checkbox}/styles.js +0 -0
  514. /package/esm/{CircularProgress → circular-progress}/CircularProgressbar.d.ts +0 -0
  515. /package/esm/{CircularProgress → circular-progress}/CircularProgressbar.js +0 -0
  516. /package/esm/{CircularProgress → circular-progress}/CircularProgressbarWithChildren.d.ts +0 -0
  517. /package/esm/{CircularProgress → circular-progress}/CircularProgressbarWithChildren.js +0 -0
  518. /package/esm/{CircularProgress → circular-progress}/Path.d.ts +0 -0
  519. /package/esm/{CircularProgress → circular-progress}/Path.js +0 -0
  520. /package/esm/{CircularProgress → circular-progress}/buildStyles.d.ts +0 -0
  521. /package/esm/{CircularProgress → circular-progress}/buildStyles.js +0 -0
  522. /package/esm/{CircularProgress → circular-progress}/constants.d.ts +0 -0
  523. /package/esm/{CircularProgress → circular-progress}/constants.js +0 -0
  524. /package/esm/{CircularProgress → circular-progress}/index.d.ts +0 -0
  525. /package/esm/{CircularProgress → circular-progress}/index.js +0 -0
  526. /package/esm/{CircularProgress → circular-progress}/types.d.ts +0 -0
  527. /package/esm/{CircularProgress → circular-progress}/types.js +0 -0
  528. /package/esm/{Code → code}/code.d.ts +0 -0
  529. /package/esm/{Code → code}/code.js +0 -0
  530. /package/esm/{Code → code}/index.d.ts +0 -0
  531. /package/esm/{Code → code}/index.js +0 -0
  532. /package/esm/{CodeBlock → code-block}/index.d.ts +0 -0
  533. /package/esm/{CodeBlock → code-block}/index.js +0 -0
  534. /package/esm/{Col → col}/col.js +0 -0
  535. /package/esm/{Col → col}/index.js +0 -0
  536. /package/esm/{Collapse → collapse}/collapse-context.d.ts +0 -0
  537. /package/esm/{Collapse → collapse}/collapse-context.js +0 -0
  538. /package/esm/{Collapse → collapse}/collapse-group.d.ts +0 -0
  539. /package/esm/{Collapse → collapse}/collapse-group.js +0 -0
  540. /package/esm/{Collapse → collapse}/collapse-icon.d.ts +0 -0
  541. /package/esm/{Collapse → collapse}/collapse-icon.js +0 -0
  542. /package/esm/{Collapse → collapse}/collapse.d.ts +0 -0
  543. /package/esm/{Collapse → collapse}/collapse.js +0 -0
  544. /package/esm/{Collapse → collapse}/index.d.ts +0 -0
  545. /package/esm/{Collapse → collapse}/index.js +0 -0
  546. /package/esm/{CurrencyInput → currency-input}/components/CurrencyInput.d.ts +0 -0
  547. /package/esm/{CurrencyInput → currency-input}/components/CurrencyInput.js +0 -0
  548. /package/esm/{CurrencyInput → currency-input}/components/CurrencyInputProps.d.ts +0 -0
  549. /package/esm/{CurrencyInput → currency-input}/components/CurrencyInputProps.js +0 -0
  550. /package/esm/{CurrencyInput → currency-input}/components/utils/addSeparators.js +0 -0
  551. /package/esm/{CurrencyInput → currency-input}/components/utils/cleanValue.d.ts +0 -0
  552. /package/esm/{CurrencyInput → currency-input}/components/utils/cleanValue.js +0 -0
  553. /package/esm/{CurrencyInput → currency-input}/components/utils/escapeRegExp.d.ts +0 -0
  554. /package/esm/{CurrencyInput → currency-input}/components/utils/escapeRegExp.js +0 -0
  555. /package/esm/{CurrencyInput → currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
  556. /package/esm/{CurrencyInput → currency-input}/components/utils/fixedDecimalValue.js +0 -0
  557. /package/esm/{CurrencyInput → currency-input}/components/utils/formatValue.d.ts +0 -0
  558. /package/esm/{CurrencyInput → currency-input}/components/utils/formatValue.js +0 -0
  559. /package/esm/{CurrencyInput → currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
  560. /package/esm/{CurrencyInput → currency-input}/components/utils/getLocaleConfig.js +0 -0
  561. /package/esm/{CurrencyInput → currency-input}/components/utils/getSuffix.d.ts +0 -0
  562. /package/esm/{CurrencyInput → currency-input}/components/utils/getSuffix.js +0 -0
  563. /package/esm/{CurrencyInput → currency-input}/components/utils/index.d.ts +0 -0
  564. /package/esm/{CurrencyInput → currency-input}/components/utils/index.js +0 -0
  565. /package/esm/{CurrencyInput → currency-input}/components/utils/isNumber.d.ts +0 -0
  566. /package/esm/{CurrencyInput → currency-input}/components/utils/isNumber.js +0 -0
  567. /package/esm/{CurrencyInput → currency-input}/components/utils/padTrimValue.d.ts +0 -0
  568. /package/esm/{CurrencyInput → currency-input}/components/utils/padTrimValue.js +0 -0
  569. /package/esm/{CurrencyInput → currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
  570. /package/esm/{CurrencyInput → currency-input}/components/utils/parseAbbrValue.js +0 -0
  571. /package/esm/{CurrencyInput → currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
  572. /package/esm/{CurrencyInput → currency-input}/components/utils/removeInvalidChars.js +0 -0
  573. /package/esm/{CurrencyInput → currency-input}/components/utils/removeSeparators.d.ts +0 -0
  574. /package/esm/{CurrencyInput → currency-input}/components/utils/removeSeparators.js +0 -0
  575. /package/esm/{CurrencyInput → currency-input}/components/utils/repositionCursor.d.ts +0 -0
  576. /package/esm/{CurrencyInput → currency-input}/components/utils/repositionCursor.js +0 -0
  577. /package/esm/{CurrencyInput → currency-input}/index.d.ts +0 -0
  578. /package/esm/{CurrencyInput → currency-input}/index.js +0 -0
  579. /package/esm/{Description → description}/description.d.ts +0 -0
  580. /package/esm/{Description → description}/description.js +0 -0
  581. /package/esm/{Description → description}/index.d.ts +0 -0
  582. /package/esm/{Description → description}/index.js +0 -0
  583. /package/esm/{Display → display}/display.d.ts +0 -0
  584. /package/esm/{Display → display}/display.js +0 -0
  585. /package/esm/{Display → display}/index.d.ts +0 -0
  586. /package/esm/{Display → display}/index.js +0 -0
  587. /package/esm/{Divider → divider}/divider.d.ts +0 -0
  588. /package/esm/{Divider → divider}/divider.js +0 -0
  589. /package/esm/{Divider → divider}/index.d.ts +0 -0
  590. /package/esm/{Divider → divider}/index.js +0 -0
  591. /package/esm/{Dot → dot}/dot.d.ts +0 -0
  592. /package/esm/{Dot → dot}/dot.js +0 -0
  593. /package/esm/{Dot → dot}/index.d.ts +0 -0
  594. /package/esm/{Dot → dot}/index.js +0 -0
  595. /package/esm/{Drawer → drawer}/drawer-wrapper.d.ts +0 -0
  596. /package/esm/{Drawer → drawer}/drawer-wrapper.js +0 -0
  597. /package/esm/{Drawer → drawer}/drawer.d.ts +0 -0
  598. /package/esm/{Drawer → drawer}/drawer.js +0 -0
  599. /package/esm/{Drawer → drawer}/helper.d.ts +0 -0
  600. /package/esm/{Drawer → drawer}/helper.js +0 -0
  601. /package/esm/{Fieldset → fieldset}/fieldset-content.d.ts +0 -0
  602. /package/esm/{Fieldset → fieldset}/fieldset-content.js +0 -0
  603. /package/esm/{Fieldset → fieldset}/fieldset-context.d.ts +0 -0
  604. /package/esm/{Fieldset → fieldset}/fieldset-context.js +0 -0
  605. /package/esm/{Fieldset → fieldset}/fieldset-footer.d.ts +0 -0
  606. /package/esm/{Fieldset → fieldset}/fieldset-footer.js +0 -0
  607. /package/esm/{Fieldset → fieldset}/fieldset-group.d.ts +0 -0
  608. /package/esm/{Fieldset → fieldset}/fieldset-group.js +0 -0
  609. /package/esm/{Fieldset → fieldset}/fieldset-subtitle.d.ts +0 -0
  610. /package/esm/{Fieldset → fieldset}/fieldset-subtitle.js +0 -0
  611. /package/esm/{Fieldset → fieldset}/fieldset-title.d.ts +0 -0
  612. /package/esm/{Fieldset → fieldset}/fieldset-title.js +0 -0
  613. /package/esm/{Fieldset → fieldset}/fieldset.d.ts +0 -0
  614. /package/esm/{Fieldset → fieldset}/fieldset.js +0 -0
  615. /package/esm/{Fieldset → fieldset}/index.d.ts +0 -0
  616. /package/esm/{Fieldset → fieldset}/index.js +0 -0
  617. /package/esm/{Form → form}/ErrorMessage.d.ts +0 -0
  618. /package/esm/{Form → form}/ErrorMessage.js +0 -0
  619. /package/esm/{Form → form}/FastField.js +0 -0
  620. /package/esm/{Form → form}/Field.d.ts +0 -0
  621. /package/esm/{Form → form}/Field.js +0 -0
  622. /package/esm/{Form → form}/FieldArray.js +0 -0
  623. /package/esm/{Form → form}/Form.js +0 -0
  624. /package/esm/{Form → form}/FormPersist.js +0 -0
  625. /package/esm/{Form → form}/FormWrapper.d.ts +0 -0
  626. /package/esm/{Form → form}/FormWrapper.js +0 -0
  627. /package/esm/{Form → form}/FormikContext.d.ts +0 -0
  628. /package/esm/{Form → form}/FormikContext.js +0 -0
  629. /package/esm/{Form → form}/connect.d.ts +0 -0
  630. /package/esm/{Form → form}/connect.js +0 -0
  631. /package/esm/{Form → form}/constants.d.ts +0 -0
  632. /package/esm/{Form → form}/constants.js +0 -0
  633. /package/esm/{Form → form}/index.d.ts +0 -0
  634. /package/esm/{Form → form}/index.js +0 -0
  635. /package/esm/{Form → form}/types.d.ts +0 -0
  636. /package/esm/{Form → form}/types.js +0 -0
  637. /package/esm/{Form → form}/utils.d.ts +0 -0
  638. /package/esm/{Form → form}/utils.js +0 -0
  639. /package/esm/{Form → form}/withFormik.d.ts +0 -0
  640. /package/esm/{Form → form}/withFormik.js +0 -0
  641. /package/esm/{Grid → grid}/basic-item.d.ts +0 -0
  642. /package/esm/{Grid → grid}/basic-item.js +0 -0
  643. /package/esm/{Grid/grid.d.ts → grid/grid-base.d.ts} +0 -0
  644. /package/esm/{Grid/grid.js → grid/grid-base.js} +0 -0
  645. /package/esm/{Grid → grid}/grid-container.d.ts +0 -0
  646. /package/esm/{Grid → grid}/grid-container.js +0 -0
  647. /package/esm/{Grid → grid}/grid-types.d.ts +0 -0
  648. /package/esm/{Grid → grid}/grid-types.js +0 -0
  649. /package/esm/{HtmlRenderer/index.d.ts → html-renderer/renderer.d.ts} +0 -0
  650. /package/esm/{HtmlRenderer/index.js → html-renderer/renderer.js} +0 -0
  651. /package/esm/{Image → image}/helpers.d.ts +0 -0
  652. /package/esm/{Image → image}/helpers.js +0 -0
  653. /package/esm/{Image → image}/image-browser-https-icon.d.ts +0 -0
  654. /package/esm/{Image → image}/image-browser-https-icon.js +0 -0
  655. /package/esm/{Image → image}/image.d.ts +0 -0
  656. /package/esm/{Image → image}/image.js +0 -0
  657. /package/esm/{Image → image}/image.skeleton.d.ts +0 -0
  658. /package/esm/{Image → image}/image.skeleton.js +0 -0
  659. /package/esm/{Image → image}/index.d.ts +0 -0
  660. /package/esm/{Image → image}/index.js +0 -0
  661. /package/esm/{Image → image}/styles.js +0 -0
  662. /package/esm/{Input → input}/input-block-label.d.ts +0 -0
  663. /package/esm/{Input → input}/input-block-label.js +0 -0
  664. /package/esm/{Input/input.d.ts → input/input-field.d.ts} +0 -0
  665. /package/esm/{Input/input.js → input/input-field.js} +0 -0
  666. /package/esm/{Input → input}/input-icon-clear.d.ts +0 -0
  667. /package/esm/{Input → input}/input-icon-clear.js +0 -0
  668. /package/esm/{Input → input}/input-icon.d.ts +0 -0
  669. /package/esm/{Input → input}/input-icon.js +0 -0
  670. /package/esm/{Input → input}/input-label.d.ts +0 -0
  671. /package/esm/{Input → input}/input-label.js +0 -0
  672. /package/esm/{Input → input}/input-props.d.ts +0 -0
  673. /package/esm/{Input → input}/input-props.js +0 -0
  674. /package/esm/{Input → input}/password-icon.d.ts +0 -0
  675. /package/esm/{Input → input}/password-icon.js +0 -0
  676. /package/esm/{Input → input}/password.d.ts +0 -0
  677. /package/esm/{Input → input}/styles.js +0 -0
  678. /package/esm/{Keyboard → keyboard}/index.d.ts +0 -0
  679. /package/esm/{Keyboard → keyboard}/index.js +0 -0
  680. /package/esm/{Keyboard → keyboard}/keyboard.d.ts +0 -0
  681. /package/esm/{Keyboard → keyboard}/keyboard.js +0 -0
  682. /package/esm/{LinearProgress → linear-progress}/index.d.ts +0 -0
  683. /package/esm/{LinearProgress → linear-progress}/index.js +0 -0
  684. /package/esm/{LinearProgress → linear-progress}/linear-progress.d.ts +0 -0
  685. /package/esm/{LinearProgress → linear-progress}/linear-progress.js +0 -0
  686. /package/esm/{Link → link}/icon.d.ts +0 -0
  687. /package/esm/{Link → link}/icon.js +0 -0
  688. /package/esm/{Link → link}/index.d.ts +0 -0
  689. /package/esm/{Link → link}/index.js +0 -0
  690. /package/esm/{Link → link}/link.d.ts +0 -0
  691. /package/esm/{Link → link}/link.js +0 -0
  692. /package/esm/{List → list}/index.d.ts +0 -0
  693. /package/esm/{List → list}/index.js +0 -0
  694. /package/esm/{List → list}/list-item.d.ts +0 -0
  695. /package/esm/{List → list}/list-item.js +0 -0
  696. /package/esm/{List → list}/list.d.ts +0 -0
  697. /package/esm/{Loadable → loadable}/index.js +0 -0
  698. /package/esm/{Loading → loading}/index.d.ts +0 -0
  699. /package/esm/{Loading → loading}/index.js +0 -0
  700. /package/esm/{Loading → loading}/loading.d.ts +0 -0
  701. /package/esm/{Loading → loading}/loading.js +0 -0
  702. /package/esm/{LoginWith → login-with}/LoginSocialAmazon/index.js +0 -0
  703. /package/esm/{LoginWith → login-with}/LoginSocialApple/index.d.ts +0 -0
  704. /package/esm/{LoginWith → login-with}/LoginSocialApple/index.js +0 -0
  705. /package/esm/{LoginWith → login-with}/LoginSocialFacebook/index.d.ts +0 -0
  706. /package/esm/{LoginWith → login-with}/LoginSocialFacebook/index.js +0 -0
  707. /package/esm/{LoginWith → login-with}/LoginSocialGithub/index.d.ts +0 -0
  708. /package/esm/{LoginWith → login-with}/LoginSocialGithub/index.js +0 -0
  709. /package/esm/{LoginWith → login-with}/LoginSocialGoogle/index.d.ts +0 -0
  710. /package/esm/{LoginWith → login-with}/LoginSocialGoogle/index.js +0 -0
  711. /package/esm/{LoginWith → login-with}/LoginSocialInstagram/index.d.ts +0 -0
  712. /package/esm/{LoginWith → login-with}/LoginSocialInstagram/index.js +0 -0
  713. /package/esm/{LoginWith → login-with}/LoginSocialLinkedin/index.d.ts +0 -0
  714. /package/esm/{LoginWith → login-with}/LoginSocialLinkedin/index.js +0 -0
  715. /package/esm/{LoginWith → login-with}/LoginSocialMicrosoft/index.d.ts +0 -0
  716. /package/esm/{LoginWith → login-with}/LoginSocialMicrosoft/index.js +0 -0
  717. /package/esm/{LoginWith → login-with}/LoginSocialPinterest/index.d.ts +0 -0
  718. /package/esm/{LoginWith → login-with}/LoginSocialPinterest/index.js +0 -0
  719. /package/esm/{LoginWith → login-with}/LoginSocialTiktok/index.d.ts +0 -0
  720. /package/esm/{LoginWith → login-with}/LoginSocialTiktok/index.js +0 -0
  721. /package/esm/{LoginWith → login-with}/LoginSocialTwitter/index.d.ts +0 -0
  722. /package/esm/{LoginWith → login-with}/LoginSocialTwitter/index.js +0 -0
  723. /package/esm/{LoginWith → login-with}/helper/signature.js +0 -0
  724. /package/esm/{LoginWith → login-with}/index.d.ts +0 -0
  725. /package/esm/{LoginWith → login-with}/index.js +0 -0
  726. /package/esm/{Menu → menu}/index.d.ts +0 -0
  727. /package/esm/{Menu → menu}/index.js +0 -0
  728. /package/esm/{Menu → menu}/menu.d.ts +0 -0
  729. /package/esm/{Menu → menu}/menu.js +0 -0
  730. /package/esm/{Modal → modal}/index.d.ts +0 -0
  731. /package/esm/{Modal → modal}/index.js +0 -0
  732. /package/esm/{Modal → modal}/modal-actions.d.ts +0 -0
  733. /package/esm/{Modal → modal}/modal-actions.js +0 -0
  734. /package/esm/{Modal → modal}/modal-content.d.ts +0 -0
  735. /package/esm/{Modal → modal}/modal-content.js +0 -0
  736. /package/esm/{Modal → modal}/modal-context.d.ts +0 -0
  737. /package/esm/{Modal → modal}/modal-context.js +0 -0
  738. /package/esm/{Modal → modal}/modal-subtitle.d.ts +0 -0
  739. /package/esm/{Modal → modal}/modal-subtitle.js +0 -0
  740. /package/esm/{Modal → modal}/modal-title.d.ts +0 -0
  741. /package/esm/{Modal → modal}/modal-title.js +0 -0
  742. /package/esm/{Modal → modal}/modal-wrapper.d.ts +0 -0
  743. /package/esm/{Modal → modal}/modal-wrapper.js +0 -0
  744. /package/esm/{Modal → modal}/modal.d.ts +0 -0
  745. /package/esm/{Modal → modal}/modal.js +0 -0
  746. /package/esm/{Note → note}/index.d.ts +0 -0
  747. /package/esm/{Note → note}/index.js +0 -0
  748. /package/esm/{Note → note}/note.d.ts +0 -0
  749. /package/esm/{Note → note}/note.js +0 -0
  750. /package/esm/{ITooltip → notetip}/index.d.ts +0 -0
  751. /package/esm/{ITooltip → notetip}/index.js +0 -0
  752. /package/esm/{Page → page}/index.d.ts +0 -0
  753. /package/esm/{Page → page}/index.js +0 -0
  754. /package/esm/{Page → page}/page-content.d.ts +0 -0
  755. /package/esm/{Page → page}/page-content.js +0 -0
  756. /package/esm/{Page → page}/page-footer.d.ts +0 -0
  757. /package/esm/{Page → page}/page-footer.js +0 -0
  758. /package/esm/{Page → page}/page-header.d.ts +0 -0
  759. /package/esm/{Page → page}/page-header.js +0 -0
  760. /package/esm/{Page → page}/page.d.ts +0 -0
  761. /package/esm/{Page → page}/page.js +0 -0
  762. /package/esm/{Pagination → pagination}/index.d.ts +0 -0
  763. /package/esm/{Pagination → pagination}/index.js +0 -0
  764. /package/esm/{Pagination → pagination}/pagination-context.d.ts +0 -0
  765. /package/esm/{Pagination → pagination}/pagination-context.js +0 -0
  766. /package/esm/{Pagination → pagination}/pagination-ellipsis.d.ts +0 -0
  767. /package/esm/{Pagination → pagination}/pagination-ellipsis.js +0 -0
  768. /package/esm/{Pagination → pagination}/pagination-item.d.ts +0 -0
  769. /package/esm/{Pagination → pagination}/pagination-item.js +0 -0
  770. /package/esm/{Pagination → pagination}/pagination-next.d.ts +0 -0
  771. /package/esm/{Pagination → pagination}/pagination-next.js +0 -0
  772. /package/esm/{Pagination → pagination}/pagination-pages.d.ts +0 -0
  773. /package/esm/{Pagination → pagination}/pagination-pages.js +0 -0
  774. /package/esm/{Pagination → pagination}/pagination-previous.d.ts +0 -0
  775. /package/esm/{Pagination → pagination}/pagination-previous.js +0 -0
  776. /package/esm/{Pagination → pagination}/pagination.d.ts +0 -0
  777. /package/esm/{Pagination → pagination}/pagination.js +0 -0
  778. /package/esm/{Parser → parser}/HtmlParser.js +0 -0
  779. /package/esm/{Parser → parser}/convertNodeToElement.js +0 -0
  780. /package/esm/{Parser → parser}/dom/attributes/BooleanAttributes.js +0 -0
  781. /package/esm/{Parser → parser}/dom/attributes/ReactAttributes.js +0 -0
  782. /package/esm/{Parser → parser}/dom/elements/VoidElements.js +0 -0
  783. /package/esm/{Parser → parser}/elementTypes/StyleElementType.js +0 -0
  784. /package/esm/{Parser → parser}/elementTypes/TagElementType.js +0 -0
  785. /package/esm/{Parser → parser}/elementTypes/TextElementType.js +0 -0
  786. /package/esm/{Parser → parser}/elementTypes/UnsupportedElementType.js +0 -0
  787. /package/esm/{Parser → parser}/elementTypes/index.js +0 -0
  788. /package/esm/{Parser → parser}/index.js +0 -0
  789. /package/esm/{Parser → parser}/processNodes.js +0 -0
  790. /package/esm/{Parser → parser}/scripts/attributes-diff.js +0 -0
  791. /package/esm/{Parser → parser}/utils/generatePropsFromAttributes.js +0 -0
  792. /package/esm/{Parser → parser}/utils/htmlAttributesToReact.js +0 -0
  793. /package/esm/{Parser → parser}/utils/inlineStyleToObject.js +0 -0
  794. /package/esm/{Parser → parser}/utils/isEmptyTextNode.js +0 -0
  795. /package/esm/{Parser → parser}/utils/isValidTagOrAttributeName.js +0 -0
  796. /package/esm/{PhoneInput → phone-input}/index.d.ts +0 -0
  797. /package/esm/{PhoneInput → phone-input}/index.js +0 -0
  798. /package/esm/{Placeholder → placeholder}/empty.d.ts +0 -0
  799. /package/esm/{Placeholder → placeholder}/empty.js +0 -0
  800. /package/esm/{Placeholder/placeholder.d.ts → placeholder/holder.d.ts} +0 -0
  801. /package/esm/{Popover → popover}/index.d.ts +0 -0
  802. /package/esm/{Popover → popover}/index.js +0 -0
  803. /package/esm/{Popover → popover}/popover-context.d.ts +0 -0
  804. /package/esm/{Popover → popover}/popover-context.js +0 -0
  805. /package/esm/{Popover → popover}/popover-item.d.ts +0 -0
  806. /package/esm/{Popover → popover}/popover-item.js +0 -0
  807. /package/esm/{Progress → progress}/index.d.ts +0 -0
  808. /package/esm/{Progress → progress}/index.js +0 -0
  809. /package/esm/{Progress → progress}/progress.d.ts +0 -0
  810. /package/esm/{Progress → progress}/progress.js +0 -0
  811. /package/esm/{Radio → radio}/index.d.ts +0 -0
  812. /package/esm/{Radio → radio}/index.js +0 -0
  813. /package/esm/{Radio → radio}/radio-context.d.ts +0 -0
  814. /package/esm/{Radio → radio}/radio-context.js +0 -0
  815. /package/esm/{Radio → radio}/radio-description.d.ts +0 -0
  816. /package/esm/{Radio → radio}/radio-description.js +0 -0
  817. /package/esm/{Radio → radio}/radio-group.d.ts +0 -0
  818. /package/esm/{Radio → radio}/radio-group.js +0 -0
  819. /package/esm/{Radio → radio}/radio.d.ts +0 -0
  820. /package/esm/{Radio → radio}/radio.js +0 -0
  821. /package/esm/{Radio → radio}/styles.js +0 -0
  822. /package/esm/{Rating → rating}/index.d.ts +0 -0
  823. /package/esm/{Rating → rating}/index.js +0 -0
  824. /package/esm/{Rating → rating}/rating-icon.d.ts +0 -0
  825. /package/esm/{Rating → rating}/rating-icon.js +0 -0
  826. /package/esm/{Rating → rating}/rating.d.ts +0 -0
  827. /package/esm/{Rating → rating}/rating.js +0 -0
  828. /package/esm/{Row → row}/index.js +0 -0
  829. /package/esm/{Row → row}/row.js +0 -0
  830. /package/esm/{SearchBar → search-bar}/components/ClearIcon.js +0 -0
  831. /package/esm/{SearchBar → search-bar}/components/Results.js +0 -0
  832. /package/esm/{SearchBar → search-bar}/components/SearchIcon.js +0 -0
  833. /package/esm/{SearchBar → search-bar}/components/SearchInput.js +0 -0
  834. /package/esm/{SearchBar → search-bar}/components/index.js +0 -0
  835. /package/esm/{SearchBar → search-bar}/config/config.js +0 -0
  836. /package/esm/{SearchBar → search-bar}/index.js +0 -0
  837. /package/esm/{SearchBar → search-bar}/utils/utils.js +0 -0
  838. /package/esm/{Select → select}/index.d.ts +0 -0
  839. /package/esm/{Select → select}/index.js +0 -0
  840. /package/esm/{Select → select}/select-context.d.ts +0 -0
  841. /package/esm/{Select → select}/select-context.js +0 -0
  842. /package/esm/{Select → select}/select-dropdown.d.ts +0 -0
  843. /package/esm/{Select → select}/select-dropdown.js +0 -0
  844. /package/esm/{Select → select}/select-icon-clear.d.ts +0 -0
  845. /package/esm/{Select → select}/select-icon-clear.js +0 -0
  846. /package/esm/{Select → select}/select-icon.d.ts +0 -0
  847. /package/esm/{Select → select}/select-icon.js +0 -0
  848. /package/esm/{Select → select}/select-input.d.ts +0 -0
  849. /package/esm/{Select → select}/select-input.js +0 -0
  850. /package/esm/{Select → select}/select-multiple-value.d.ts +0 -0
  851. /package/esm/{Select → select}/select-option.d.ts +0 -0
  852. /package/esm/{Select → select}/select-option.js +0 -0
  853. /package/esm/{Select → select}/select.d.ts +0 -0
  854. /package/esm/{Select → select}/styles.js +0 -0
  855. /package/esm/{Skeleton → skeleton}/index.d.ts +0 -0
  856. /package/esm/{Skeleton → skeleton}/index.js +0 -0
  857. /package/esm/{Slider → slider}/index.d.ts +0 -0
  858. /package/esm/{Slider → slider}/index.js +0 -0
  859. /package/esm/{Slider → slider}/slider-dot.d.ts +0 -0
  860. /package/esm/{Slider → slider}/slider-dot.js +0 -0
  861. /package/esm/{Slider → slider}/slider-mark.d.ts +0 -0
  862. /package/esm/{Slider → slider}/slider-mark.js +0 -0
  863. /package/esm/{Slider → slider}/slider.d.ts +0 -0
  864. /package/esm/{Slider → slider}/slider.js +0 -0
  865. /package/esm/{Slider → slider}/styles.js +0 -0
  866. /package/esm/{Snippet → snippet}/index.d.ts +0 -0
  867. /package/esm/{Snippet → snippet}/index.js +0 -0
  868. /package/esm/{Snippet → snippet}/snippet-icon.d.ts +0 -0
  869. /package/esm/{Snippet → snippet}/snippet-icon.js +0 -0
  870. /package/esm/{Snippet → snippet}/snippet.d.ts +0 -0
  871. /package/esm/{Snippet → snippet}/snippet.js +0 -0
  872. /package/esm/{Snippet → snippet}/styles.js +0 -0
  873. /package/esm/{Spacer → spacer}/index.d.ts +0 -0
  874. /package/esm/{Spacer → spacer}/index.js +0 -0
  875. /package/esm/{Spacer → spacer}/spacer.d.ts +0 -0
  876. /package/esm/{Spacer → spacer}/spacer.js +0 -0
  877. /package/esm/{Spinner → spinner}/index.d.ts +0 -0
  878. /package/esm/{Spinner → spinner}/index.js +0 -0
  879. /package/esm/{Spinner → spinner}/spinner.d.ts +0 -0
  880. /package/esm/{Spinner → spinner}/spinner.js +0 -0
  881. /package/esm/{Swipe → swipe}/demo.js +0 -0
  882. /package/esm/{Swipe → swipe}/index.d.ts +0 -0
  883. /package/esm/{Swipe → swipe}/index.js +0 -0
  884. /package/esm/{Swipe → swipe}/react-swipe.d.ts +0 -0
  885. /package/esm/{Swipe → swipe}/react-swipe.js +0 -0
  886. /package/esm/{Table → table}/index.d.ts +0 -0
  887. /package/esm/{Table → table}/index.js +0 -0
  888. /package/esm/{Table → table}/table-body.d.ts +0 -0
  889. /package/esm/{Table → table}/table-cell.d.ts +0 -0
  890. /package/esm/{Table → table}/table-cell.js +0 -0
  891. /package/esm/{Table → table}/table-column.d.ts +0 -0
  892. /package/esm/{Table → table}/table-column.js +0 -0
  893. /package/esm/{Table → table}/table-context.d.ts +0 -0
  894. /package/esm/{Table → table}/table-context.js +0 -0
  895. /package/esm/{Table → table}/table-head.d.ts +0 -0
  896. /package/esm/{Table → table}/table-types.d.ts +0 -0
  897. /package/esm/{Table → table}/table-types.js +0 -0
  898. /package/esm/{Table → table}/table.d.ts +0 -0
  899. /package/esm/{Tabs → tabs}/index.d.ts +0 -0
  900. /package/esm/{Tabs → tabs}/index.js +0 -0
  901. /package/esm/{Tabs → tabs}/tabs-context.d.ts +0 -0
  902. /package/esm/{Tabs → tabs}/tabs-context.js +0 -0
  903. /package/esm/{Tabs → tabs}/tabs-item.d.ts +0 -0
  904. /package/esm/{Tabs → tabs}/tabs-item.js +0 -0
  905. /package/esm/{Tabs → tabs}/tabs.d.ts +0 -0
  906. /package/esm/{Tabs → tabs}/tabs.js +0 -0
  907. /package/esm/{Tag → tag}/index.d.ts +0 -0
  908. /package/esm/{Tag → tag}/index.js +0 -0
  909. /package/esm/{Tag → tag}/tag.d.ts +0 -0
  910. /package/esm/{Tag → tag}/tag.js +0 -0
  911. /package/esm/{Text → text}/child.d.ts +0 -0
  912. /package/esm/{Text → text}/child.js +0 -0
  913. /package/esm/{Text → text}/index.d.ts +0 -0
  914. /package/esm/{Text → text}/index.js +0 -0
  915. /package/esm/{Text → text}/text.d.ts +0 -0
  916. /package/esm/{Text → text}/text.js +0 -0
  917. /package/esm/{Textarea → textarea}/index.d.ts +0 -0
  918. /package/esm/{Textarea → textarea}/index.js +0 -0
  919. /package/esm/{Textarea → textarea}/textarea.d.ts +0 -0
  920. /package/esm/{Themes → themes}/index.d.ts +0 -0
  921. /package/esm/{Themes → themes}/index.js +0 -0
  922. /package/esm/{Themes → themes}/presets/dark.d.ts +0 -0
  923. /package/esm/{Themes → themes}/presets/dark.js +0 -0
  924. /package/esm/{Themes → themes}/presets/default.d.ts +0 -0
  925. /package/esm/{Themes → themes}/presets/default.js +0 -0
  926. /package/esm/{Themes → themes}/presets/index.d.ts +0 -0
  927. /package/esm/{Themes → themes}/presets/index.js +0 -0
  928. /package/esm/{Themes → themes}/presets/shared.d.ts +0 -0
  929. /package/esm/{Themes → themes}/presets/shared.js +0 -0
  930. /package/esm/{Themes → themes}/themes.d.ts +0 -0
  931. /package/esm/{Themes → themes}/themes.js +0 -0
  932. /package/esm/{Timer → timer}/hooks/index.js +0 -0
  933. /package/esm/{Timer → timer}/hooks/useInterval.js +0 -0
  934. /package/esm/{Timer → timer}/index.js +0 -0
  935. /package/esm/{Timer → timer}/useStopwatch.js +0 -0
  936. /package/esm/{Timer → timer}/useTime.js +0 -0
  937. /package/esm/{Timer → timer}/useTimer.js +0 -0
  938. /package/esm/{Timer → timer}/utils/Time.js +0 -0
  939. /package/esm/{Timer → timer}/utils/Validate.js +0 -0
  940. /package/esm/{Timer → timer}/utils/index.js +0 -0
  941. /package/esm/{Toggle → toggle}/index.d.ts +0 -0
  942. /package/esm/{Toggle → toggle}/index.js +0 -0
  943. /package/esm/{Toggle → toggle}/styles.js +0 -0
  944. /package/esm/{Toggle → toggle}/toggle.d.ts +0 -0
  945. /package/esm/{Toggle → toggle}/toggle.js +0 -0
  946. /package/esm/{Tooltip → tooltip}/__test__/index.test.js +0 -0
  947. /package/esm/{Tooltip → tooltip}/helper.d.ts +0 -0
  948. /package/esm/{Tooltip → tooltip}/helper.js +0 -0
  949. /package/esm/{Tooltip → tooltip}/index.d.ts +0 -0
  950. /package/esm/{Tooltip → tooltip}/index.js +0 -0
  951. /package/esm/{Tooltip → tooltip}/placement.d.ts +0 -0
  952. /package/esm/{Tooltip → tooltip}/placement.js +0 -0
  953. /package/esm/{Tooltip → tooltip}/styles.js +0 -0
  954. /package/esm/{Tooltip → tooltip}/tooltip-content.d.ts +0 -0
  955. /package/esm/{Tooltip → tooltip}/tooltip-content.js +0 -0
  956. /package/esm/{Tooltip → tooltip}/tooltip-icon.d.ts +0 -0
  957. /package/esm/{Tooltip → tooltip}/tooltip-icon.js +0 -0
  958. /package/esm/{Tooltip → tooltip}/tooltip.d.ts +0 -0
  959. /package/esm/{Tooltip → tooltip}/tooltip.js +0 -0
  960. /package/esm/{Tree → tree}/index.d.ts +0 -0
  961. /package/esm/{Tree → tree}/index.js +0 -0
  962. /package/esm/{Tree → tree}/tree-context.d.ts +0 -0
  963. /package/esm/{Tree → tree}/tree-context.js +0 -0
  964. /package/esm/{Tree → tree}/tree-file-icon.d.ts +0 -0
  965. /package/esm/{Tree → tree}/tree-file-icon.js +0 -0
  966. /package/esm/{Tree → tree}/tree-file.d.ts +0 -0
  967. /package/esm/{Tree → tree}/tree-file.js +0 -0
  968. /package/esm/{Tree → tree}/tree-folder-icon.d.ts +0 -0
  969. /package/esm/{Tree → tree}/tree-folder-icon.js +0 -0
  970. /package/esm/{Tree → tree}/tree-folder.d.ts +0 -0
  971. /package/esm/{Tree → tree}/tree-folder.js +0 -0
  972. /package/esm/{Tree → tree}/tree-help.d.ts +0 -0
  973. /package/esm/{Tree → tree}/tree-help.js +0 -0
  974. /package/esm/{Tree → tree}/tree-indents.d.ts +0 -0
  975. /package/esm/{Tree → tree}/tree-indents.js +0 -0
  976. /package/esm/{Tree → tree}/tree-status-icon.d.ts +0 -0
  977. /package/esm/{Tree → tree}/tree-status-icon.js +0 -0
  978. /package/esm/{Tree → tree}/tree.d.ts +0 -0
  979. /package/esm/{Tree → tree}/tree.js +0 -0
  980. /package/esm/{User → user}/index.d.ts +0 -0
  981. /package/esm/{User → user}/index.js +0 -0
  982. /package/esm/{User → user}/user-link.d.ts +0 -0
  983. /package/esm/{User → user}/user.d.ts +0 -0
@@ -0,0 +1,1363 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ /*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */
8
+
9
+ const {
10
+ entries,
11
+ setPrototypeOf,
12
+ isFrozen,
13
+ getPrototypeOf,
14
+ getOwnPropertyDescriptor
15
+ } = Object;
16
+ let {
17
+ freeze,
18
+ seal,
19
+ create
20
+ } = Object; // eslint-disable-line import/no-mutable-exports
21
+ let {
22
+ apply,
23
+ construct
24
+ } = typeof Reflect !== 'undefined' && Reflect;
25
+ if (!freeze) {
26
+ freeze = function freeze(x) {
27
+ return x;
28
+ };
29
+ }
30
+ if (!seal) {
31
+ seal = function seal(x) {
32
+ return x;
33
+ };
34
+ }
35
+ if (!apply) {
36
+ apply = function apply(func, thisArg) {
37
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
38
+ args[_key - 2] = arguments[_key];
39
+ }
40
+ return func.apply(thisArg, args);
41
+ };
42
+ }
43
+ if (!construct) {
44
+ construct = function construct(Func) {
45
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
46
+ args[_key2 - 1] = arguments[_key2];
47
+ }
48
+ return new Func(...args);
49
+ };
50
+ }
51
+ const arrayForEach = unapply(Array.prototype.forEach);
52
+ const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
53
+ const arrayPop = unapply(Array.prototype.pop);
54
+ const arrayPush = unapply(Array.prototype.push);
55
+ const arraySplice = unapply(Array.prototype.splice);
56
+ const stringToLowerCase = unapply(String.prototype.toLowerCase);
57
+ const stringToString = unapply(String.prototype.toString);
58
+ const stringMatch = unapply(String.prototype.match);
59
+ const stringReplace = unapply(String.prototype.replace);
60
+ const stringIndexOf = unapply(String.prototype.indexOf);
61
+ const stringTrim = unapply(String.prototype.trim);
62
+ const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty);
63
+ const regExpTest = unapply(RegExp.prototype.test);
64
+ const typeErrorCreate = unconstruct(TypeError);
65
+ /**
66
+ * Creates a new function that calls the given function with a specified thisArg and arguments.
67
+ *
68
+ * @param func - The function to be wrapped and called.
69
+ * @returns A new function that calls the given function with a specified thisArg and arguments.
70
+ */
71
+ function unapply(func) {
72
+ return function (thisArg) {
73
+ if (thisArg instanceof RegExp) {
74
+ thisArg.lastIndex = 0;
75
+ }
76
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
77
+ args[_key3 - 1] = arguments[_key3];
78
+ }
79
+ return apply(func, thisArg, args);
80
+ };
81
+ }
82
+ /**
83
+ * Creates a new function that constructs an instance of the given constructor function with the provided arguments.
84
+ *
85
+ * @param func - The constructor function to be wrapped and called.
86
+ * @returns A new function that constructs an instance of the given constructor function with the provided arguments.
87
+ */
88
+ function unconstruct(Func) {
89
+ return function () {
90
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
91
+ args[_key4] = arguments[_key4];
92
+ }
93
+ return construct(Func, args);
94
+ };
95
+ }
96
+ /**
97
+ * Add properties to a lookup table
98
+ *
99
+ * @param set - The set to which elements will be added.
100
+ * @param array - The array containing elements to be added to the set.
101
+ * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set.
102
+ * @returns The modified set with added elements.
103
+ */
104
+ function addToSet(set, array) {
105
+ let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
106
+ if (setPrototypeOf) {
107
+ // Make 'in' and truthy checks like Boolean(set.constructor)
108
+ // independent of any properties defined on Object.prototype.
109
+ // Prevent prototype setters from intercepting set as a this value.
110
+ setPrototypeOf(set, null);
111
+ }
112
+ let l = array.length;
113
+ while (l--) {
114
+ let element = array[l];
115
+ if (typeof element === 'string') {
116
+ const lcElement = transformCaseFunc(element);
117
+ if (lcElement !== element) {
118
+ // Config presets (e.g. tags.js, attrs.js) are immutable.
119
+ if (!isFrozen(array)) {
120
+ array[l] = lcElement;
121
+ }
122
+ element = lcElement;
123
+ }
124
+ }
125
+ set[element] = true;
126
+ }
127
+ return set;
128
+ }
129
+ /**
130
+ * Clean up an array to harden against CSPP
131
+ *
132
+ * @param array - The array to be cleaned.
133
+ * @returns The cleaned version of the array
134
+ */
135
+ function cleanArray(array) {
136
+ for (let index = 0; index < array.length; index++) {
137
+ const isPropertyExist = objectHasOwnProperty(array, index);
138
+ if (!isPropertyExist) {
139
+ array[index] = null;
140
+ }
141
+ }
142
+ return array;
143
+ }
144
+ /**
145
+ * Shallow clone an object
146
+ *
147
+ * @param object - The object to be cloned.
148
+ * @returns A new object that copies the original.
149
+ */
150
+ function clone(object) {
151
+ const newObject = create(null);
152
+ for (const [property, value] of entries(object)) {
153
+ const isPropertyExist = objectHasOwnProperty(object, property);
154
+ if (isPropertyExist) {
155
+ if (Array.isArray(value)) {
156
+ newObject[property] = cleanArray(value);
157
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
158
+ newObject[property] = clone(value);
159
+ } else {
160
+ newObject[property] = value;
161
+ }
162
+ }
163
+ }
164
+ return newObject;
165
+ }
166
+ /**
167
+ * This method automatically checks if the prop is function or getter and behaves accordingly.
168
+ *
169
+ * @param object - The object to look up the getter function in its prototype chain.
170
+ * @param prop - The property name for which to find the getter function.
171
+ * @returns The getter function found in the prototype chain or a fallback function.
172
+ */
173
+ function lookupGetter(object, prop) {
174
+ while (object !== null) {
175
+ const desc = getOwnPropertyDescriptor(object, prop);
176
+ if (desc) {
177
+ if (desc.get) {
178
+ return unapply(desc.get);
179
+ }
180
+ if (typeof desc.value === 'function') {
181
+ return unapply(desc.value);
182
+ }
183
+ }
184
+ object = getPrototypeOf(object);
185
+ }
186
+ function fallbackValue() {
187
+ return null;
188
+ }
189
+ return fallbackValue;
190
+ }
191
+
192
+ const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
193
+ const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'slot', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
194
+ const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
195
+ // List of SVG elements that are disallowed by default.
196
+ // We still need to know them so that we can do namespace
197
+ // checks properly in case one wants to add them to
198
+ // allow-list.
199
+ const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);
200
+ const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']);
201
+ // Similarly to SVG, we want to know all MathML elements,
202
+ // even those that we disallow by default.
203
+ const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);
204
+ const text = freeze(['#text']);
205
+
206
+ const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
207
+ const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
208
+ const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
209
+ const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
210
+
211
+ // eslint-disable-next-line unicorn/better-regex
212
+ const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode
213
+ const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm);
214
+ const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex
215
+ const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape
216
+ const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape
217
+ const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape
218
+ );
219
+ const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i);
220
+ const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex
221
+ );
222
+ const DOCTYPE_NAME = seal(/^html$/i);
223
+ const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i);
224
+
225
+ var EXPRESSIONS = /*#__PURE__*/Object.freeze({
226
+ __proto__: null,
227
+ ARIA_ATTR: ARIA_ATTR,
228
+ ATTR_WHITESPACE: ATTR_WHITESPACE,
229
+ CUSTOM_ELEMENT: CUSTOM_ELEMENT,
230
+ DATA_ATTR: DATA_ATTR,
231
+ DOCTYPE_NAME: DOCTYPE_NAME,
232
+ ERB_EXPR: ERB_EXPR,
233
+ IS_ALLOWED_URI: IS_ALLOWED_URI,
234
+ IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA,
235
+ MUSTACHE_EXPR: MUSTACHE_EXPR,
236
+ TMPLIT_EXPR: TMPLIT_EXPR
237
+ });
238
+
239
+ /* eslint-disable @typescript-eslint/indent */
240
+ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
241
+ const NODE_TYPE = {
242
+ element: 1,
243
+ text: 3,
244
+ // Deprecated
245
+ progressingInstruction: 7,
246
+ comment: 8,
247
+ document: 9};
248
+ const getGlobal = function getGlobal() {
249
+ return typeof window === 'undefined' ? null : window;
250
+ };
251
+ /**
252
+ * Creates a no-op policy for internal use only.
253
+ * Don't export this function outside this module!
254
+ * @param trustedTypes The policy factory.
255
+ * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix).
256
+ * @return The policy created (or null, if Trusted Types
257
+ * are not supported or creating the policy failed).
258
+ */
259
+ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) {
260
+ if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') {
261
+ return null;
262
+ }
263
+ // Allow the callers to control the unique policy name
264
+ // by adding a data-tt-policy-suffix to the script element with the DOMPurify.
265
+ // Policy creation with duplicate names throws in Trusted Types.
266
+ let suffix = null;
267
+ const ATTR_NAME = 'data-tt-policy-suffix';
268
+ if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) {
269
+ suffix = purifyHostElement.getAttribute(ATTR_NAME);
270
+ }
271
+ const policyName = 'dompurify' + (suffix ? '#' + suffix : '');
272
+ try {
273
+ return trustedTypes.createPolicy(policyName, {
274
+ createHTML(html) {
275
+ return html;
276
+ },
277
+ createScriptURL(scriptUrl) {
278
+ return scriptUrl;
279
+ }
280
+ });
281
+ } catch (_) {
282
+ // Policy creation failed (most likely another DOMPurify script has
283
+ // already run). Skip creating the policy, as this will only cause errors
284
+ // if TT are enforced.
285
+ console.warn('TrustedTypes policy ' + policyName + ' could not be created.');
286
+ return null;
287
+ }
288
+ };
289
+ const _createHooksMap = function _createHooksMap() {
290
+ return {
291
+ afterSanitizeAttributes: [],
292
+ afterSanitizeElements: [],
293
+ afterSanitizeShadowDOM: [],
294
+ beforeSanitizeAttributes: [],
295
+ beforeSanitizeElements: [],
296
+ beforeSanitizeShadowDOM: [],
297
+ uponSanitizeAttribute: [],
298
+ uponSanitizeElement: [],
299
+ uponSanitizeShadowNode: []
300
+ };
301
+ };
302
+ function createDOMPurify() {
303
+ let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
304
+ const DOMPurify = root => createDOMPurify(root);
305
+ DOMPurify.version = '3.2.7';
306
+ DOMPurify.removed = [];
307
+ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
308
+ // Not running in a browser, provide a factory function
309
+ // so that you can pass your own Window
310
+ DOMPurify.isSupported = false;
311
+ return DOMPurify;
312
+ }
313
+ let {
314
+ document
315
+ } = window;
316
+ const originalDocument = document;
317
+ const currentScript = originalDocument.currentScript;
318
+ const {
319
+ DocumentFragment,
320
+ HTMLTemplateElement,
321
+ Node,
322
+ Element,
323
+ NodeFilter,
324
+ NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap,
325
+ HTMLFormElement,
326
+ DOMParser,
327
+ trustedTypes
328
+ } = window;
329
+ const ElementPrototype = Element.prototype;
330
+ const cloneNode = lookupGetter(ElementPrototype, 'cloneNode');
331
+ const remove = lookupGetter(ElementPrototype, 'remove');
332
+ const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');
333
+ const getChildNodes = lookupGetter(ElementPrototype, 'childNodes');
334
+ const getParentNode = lookupGetter(ElementPrototype, 'parentNode');
335
+ // As per issue #47, the web-components registry is inherited by a
336
+ // new document created via createHTMLDocument. As per the spec
337
+ // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
338
+ // a new empty registry is used when creating a template contents owner
339
+ // document, so we use that as our parent document to ensure nothing
340
+ // is inherited.
341
+ if (typeof HTMLTemplateElement === 'function') {
342
+ const template = document.createElement('template');
343
+ if (template.content && template.content.ownerDocument) {
344
+ document = template.content.ownerDocument;
345
+ }
346
+ }
347
+ let trustedTypesPolicy;
348
+ let emptyHTML = '';
349
+ const {
350
+ implementation,
351
+ createNodeIterator,
352
+ createDocumentFragment,
353
+ getElementsByTagName
354
+ } = document;
355
+ const {
356
+ importNode
357
+ } = originalDocument;
358
+ let hooks = _createHooksMap();
359
+ /**
360
+ * Expose whether this browser supports running the full DOMPurify.
361
+ */
362
+ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined;
363
+ const {
364
+ MUSTACHE_EXPR,
365
+ ERB_EXPR,
366
+ TMPLIT_EXPR,
367
+ DATA_ATTR,
368
+ ARIA_ATTR,
369
+ IS_SCRIPT_OR_DATA,
370
+ ATTR_WHITESPACE,
371
+ CUSTOM_ELEMENT
372
+ } = EXPRESSIONS;
373
+ let {
374
+ IS_ALLOWED_URI: IS_ALLOWED_URI$1
375
+ } = EXPRESSIONS;
376
+ /**
377
+ * We consider the elements and attributes below to be safe. Ideally
378
+ * don't add any new ones but feel free to remove unwanted ones.
379
+ */
380
+ /* allowed element names */
381
+ let ALLOWED_TAGS = null;
382
+ const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]);
383
+ /* Allowed attribute names */
384
+ let ALLOWED_ATTR = null;
385
+ const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]);
386
+ /*
387
+ * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements.
388
+ * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements)
389
+ * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list)
390
+ * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
391
+ */
392
+ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
393
+ tagNameCheck: {
394
+ writable: true,
395
+ configurable: false,
396
+ enumerable: true,
397
+ value: null
398
+ },
399
+ attributeNameCheck: {
400
+ writable: true,
401
+ configurable: false,
402
+ enumerable: true,
403
+ value: null
404
+ },
405
+ allowCustomizedBuiltInElements: {
406
+ writable: true,
407
+ configurable: false,
408
+ enumerable: true,
409
+ value: false
410
+ }
411
+ }));
412
+ /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */
413
+ let FORBID_TAGS = null;
414
+ /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
415
+ let FORBID_ATTR = null;
416
+ /* Decide if ARIA attributes are okay */
417
+ let ALLOW_ARIA_ATTR = true;
418
+ /* Decide if custom data attributes are okay */
419
+ let ALLOW_DATA_ATTR = true;
420
+ /* Decide if unknown protocols are okay */
421
+ let ALLOW_UNKNOWN_PROTOCOLS = false;
422
+ /* Decide if self-closing tags in attributes are allowed.
423
+ * Usually removed due to a mXSS issue in jQuery 3.0 */
424
+ let ALLOW_SELF_CLOSE_IN_ATTR = true;
425
+ /* Output should be safe for common template engines.
426
+ * This means, DOMPurify removes data attributes, mustaches and ERB
427
+ */
428
+ let SAFE_FOR_TEMPLATES = false;
429
+ /* Output should be safe even for XML used within HTML and alike.
430
+ * This means, DOMPurify removes comments when containing risky content.
431
+ */
432
+ let SAFE_FOR_XML = true;
433
+ /* Decide if document with <html>... should be returned */
434
+ let WHOLE_DOCUMENT = false;
435
+ /* Track whether config is already set on this instance of DOMPurify. */
436
+ let SET_CONFIG = false;
437
+ /* Decide if all elements (e.g. style, script) must be children of
438
+ * document.body. By default, browsers might move them to document.head */
439
+ let FORCE_BODY = false;
440
+ /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html
441
+ * string (or a TrustedHTML object if Trusted Types are supported).
442
+ * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead
443
+ */
444
+ let RETURN_DOM = false;
445
+ /* Decide if a DOM `DocumentFragment` should be returned, instead of a html
446
+ * string (or a TrustedHTML object if Trusted Types are supported) */
447
+ let RETURN_DOM_FRAGMENT = false;
448
+ /* Try to return a Trusted Type object instead of a string, return a string in
449
+ * case Trusted Types are not supported */
450
+ let RETURN_TRUSTED_TYPE = false;
451
+ /* Output should be free from DOM clobbering attacks?
452
+ * This sanitizes markups named with colliding, clobberable built-in DOM APIs.
453
+ */
454
+ let SANITIZE_DOM = true;
455
+ /* Achieve full DOM Clobbering protection by isolating the namespace of named
456
+ * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules.
457
+ *
458
+ * HTML/DOM spec rules that enable DOM Clobbering:
459
+ * - Named Access on Window (§7.3.3)
460
+ * - DOM Tree Accessors (§3.1.5)
461
+ * - Form Element Parent-Child Relations (§4.10.3)
462
+ * - Iframe srcdoc / Nested WindowProxies (§4.8.5)
463
+ * - HTMLCollection (§4.2.10.2)
464
+ *
465
+ * Namespace isolation is implemented by prefixing `id` and `name` attributes
466
+ * with a constant string, i.e., `user-content-`
467
+ */
468
+ let SANITIZE_NAMED_PROPS = false;
469
+ const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-';
470
+ /* Keep element content when removing element? */
471
+ let KEEP_CONTENT = true;
472
+ /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead
473
+ * of importing it into a new Document and returning a sanitized copy */
474
+ let IN_PLACE = false;
475
+ /* Allow usage of profiles like html, svg and mathMl */
476
+ let USE_PROFILES = {};
477
+ /* Tags to ignore content of when KEEP_CONTENT is true */
478
+ let FORBID_CONTENTS = null;
479
+ const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);
480
+ /* Tags that are safe for data: URIs */
481
+ let DATA_URI_TAGS = null;
482
+ const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);
483
+ /* Attributes safe for values like "javascript:" */
484
+ let URI_SAFE_ATTRIBUTES = null;
485
+ const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);
486
+ const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
487
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
488
+ const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
489
+ /* Document namespace */
490
+ let NAMESPACE = HTML_NAMESPACE;
491
+ let IS_EMPTY_INPUT = false;
492
+ /* Allowed XHTML+XML namespaces */
493
+ let ALLOWED_NAMESPACES = null;
494
+ const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
495
+ let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);
496
+ let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']);
497
+ // Certain elements are allowed in both SVG and HTML
498
+ // namespace. We need to specify them explicitly
499
+ // so that they don't get erroneously deleted from
500
+ // HTML namespace.
501
+ const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']);
502
+ /* Parsing of strict XHTML documents */
503
+ let PARSER_MEDIA_TYPE = null;
504
+ const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
505
+ const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
506
+ let transformCaseFunc = null;
507
+ /* Keep a reference to config to pass to hooks */
508
+ let CONFIG = null;
509
+ /* Ideally, do not touch anything below this line */
510
+ /* ______________________________________________ */
511
+ const formElement = document.createElement('form');
512
+ const isRegexOrFunction = function isRegexOrFunction(testValue) {
513
+ return testValue instanceof RegExp || testValue instanceof Function;
514
+ };
515
+ /**
516
+ * _parseConfig
517
+ *
518
+ * @param cfg optional config literal
519
+ */
520
+ // eslint-disable-next-line complexity
521
+ const _parseConfig = function _parseConfig() {
522
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
523
+ if (CONFIG && CONFIG === cfg) {
524
+ return;
525
+ }
526
+ /* Shield configuration object from tampering */
527
+ if (!cfg || typeof cfg !== 'object') {
528
+ cfg = {};
529
+ }
530
+ /* Shield configuration object from prototype pollution */
531
+ cfg = clone(cfg);
532
+ PARSER_MEDIA_TYPE =
533
+ // eslint-disable-next-line unicorn/prefer-includes
534
+ SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE;
535
+ // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is.
536
+ transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase;
537
+ /* Set configuration parameters */
538
+ ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS;
539
+ ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR;
540
+ ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES;
541
+ URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES;
542
+ DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS;
543
+ FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS;
544
+ FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({});
545
+ FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({});
546
+ USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false;
547
+ ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true
548
+ ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true
549
+ ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false
550
+ ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true
551
+ SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false
552
+ SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true
553
+ WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false
554
+ RETURN_DOM = cfg.RETURN_DOM || false; // Default false
555
+ RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false
556
+ RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false
557
+ FORCE_BODY = cfg.FORCE_BODY || false; // Default false
558
+ SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true
559
+ SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false
560
+ KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true
561
+ IN_PLACE = cfg.IN_PLACE || false; // Default false
562
+ IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI;
563
+ NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
564
+ MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS;
565
+ HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS;
566
+ CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
567
+ if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
568
+ CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
569
+ }
570
+ if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) {
571
+ CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck;
572
+ }
573
+ if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') {
574
+ CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements;
575
+ }
576
+ if (SAFE_FOR_TEMPLATES) {
577
+ ALLOW_DATA_ATTR = false;
578
+ }
579
+ if (RETURN_DOM_FRAGMENT) {
580
+ RETURN_DOM = true;
581
+ }
582
+ /* Parse profile info */
583
+ if (USE_PROFILES) {
584
+ ALLOWED_TAGS = addToSet({}, text);
585
+ ALLOWED_ATTR = [];
586
+ if (USE_PROFILES.html === true) {
587
+ addToSet(ALLOWED_TAGS, html$1);
588
+ addToSet(ALLOWED_ATTR, html);
589
+ }
590
+ if (USE_PROFILES.svg === true) {
591
+ addToSet(ALLOWED_TAGS, svg$1);
592
+ addToSet(ALLOWED_ATTR, svg);
593
+ addToSet(ALLOWED_ATTR, xml);
594
+ }
595
+ if (USE_PROFILES.svgFilters === true) {
596
+ addToSet(ALLOWED_TAGS, svgFilters);
597
+ addToSet(ALLOWED_ATTR, svg);
598
+ addToSet(ALLOWED_ATTR, xml);
599
+ }
600
+ if (USE_PROFILES.mathMl === true) {
601
+ addToSet(ALLOWED_TAGS, mathMl$1);
602
+ addToSet(ALLOWED_ATTR, mathMl);
603
+ addToSet(ALLOWED_ATTR, xml);
604
+ }
605
+ }
606
+ /* Merge configuration parameters */
607
+ if (cfg.ADD_TAGS) {
608
+ if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
609
+ ALLOWED_TAGS = clone(ALLOWED_TAGS);
610
+ }
611
+ addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
612
+ }
613
+ if (cfg.ADD_ATTR) {
614
+ if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
615
+ ALLOWED_ATTR = clone(ALLOWED_ATTR);
616
+ }
617
+ addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
618
+ }
619
+ if (cfg.ADD_URI_SAFE_ATTR) {
620
+ addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
621
+ }
622
+ if (cfg.FORBID_CONTENTS) {
623
+ if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {
624
+ FORBID_CONTENTS = clone(FORBID_CONTENTS);
625
+ }
626
+ addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc);
627
+ }
628
+ /* Add #text in case KEEP_CONTENT is set to true */
629
+ if (KEEP_CONTENT) {
630
+ ALLOWED_TAGS['#text'] = true;
631
+ }
632
+ /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */
633
+ if (WHOLE_DOCUMENT) {
634
+ addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);
635
+ }
636
+ /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */
637
+ if (ALLOWED_TAGS.table) {
638
+ addToSet(ALLOWED_TAGS, ['tbody']);
639
+ delete FORBID_TAGS.tbody;
640
+ }
641
+ if (cfg.TRUSTED_TYPES_POLICY) {
642
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') {
643
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
644
+ }
645
+ if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') {
646
+ throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
647
+ }
648
+ // Overwrite existing TrustedTypes policy.
649
+ trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY;
650
+ // Sign local variables required by `sanitize`.
651
+ emptyHTML = trustedTypesPolicy.createHTML('');
652
+ } else {
653
+ // Uninitialized policy, attempt to initialize the internal dompurify policy.
654
+ if (trustedTypesPolicy === undefined) {
655
+ trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript);
656
+ }
657
+ // If creating the internal policy succeeded sign internal variables.
658
+ if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') {
659
+ emptyHTML = trustedTypesPolicy.createHTML('');
660
+ }
661
+ }
662
+ // Prevent further manipulation of configuration.
663
+ // Not available in IE8, Safari 5, etc.
664
+ if (freeze) {
665
+ freeze(cfg);
666
+ }
667
+ CONFIG = cfg;
668
+ };
669
+ /* Keep track of all possible SVG and MathML tags
670
+ * so that we can perform the namespace checks
671
+ * correctly. */
672
+ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]);
673
+ const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]);
674
+ /**
675
+ * @param element a DOM element whose namespace is being checked
676
+ * @returns Return false if the element has a
677
+ * namespace that a spec-compliant parser would never
678
+ * return. Return true otherwise.
679
+ */
680
+ const _checkValidNamespace = function _checkValidNamespace(element) {
681
+ let parent = getParentNode(element);
682
+ // In JSDOM, if we're inside shadow DOM, then parentNode
683
+ // can be null. We just simulate parent in this case.
684
+ if (!parent || !parent.tagName) {
685
+ parent = {
686
+ namespaceURI: NAMESPACE,
687
+ tagName: 'template'
688
+ };
689
+ }
690
+ const tagName = stringToLowerCase(element.tagName);
691
+ const parentTagName = stringToLowerCase(parent.tagName);
692
+ if (!ALLOWED_NAMESPACES[element.namespaceURI]) {
693
+ return false;
694
+ }
695
+ if (element.namespaceURI === SVG_NAMESPACE) {
696
+ // The only way to switch from HTML namespace to SVG
697
+ // is via <svg>. If it happens via any other tag, then
698
+ // it should be killed.
699
+ if (parent.namespaceURI === HTML_NAMESPACE) {
700
+ return tagName === 'svg';
701
+ }
702
+ // The only way to switch from MathML to SVG is via`
703
+ // svg if parent is either <annotation-xml> or MathML
704
+ // text integration points.
705
+ if (parent.namespaceURI === MATHML_NAMESPACE) {
706
+ return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);
707
+ }
708
+ // We only allow elements that are defined in SVG
709
+ // spec. All others are disallowed in SVG namespace.
710
+ return Boolean(ALL_SVG_TAGS[tagName]);
711
+ }
712
+ if (element.namespaceURI === MATHML_NAMESPACE) {
713
+ // The only way to switch from HTML namespace to MathML
714
+ // is via <math>. If it happens via any other tag, then
715
+ // it should be killed.
716
+ if (parent.namespaceURI === HTML_NAMESPACE) {
717
+ return tagName === 'math';
718
+ }
719
+ // The only way to switch from SVG to MathML is via
720
+ // <math> and HTML integration points
721
+ if (parent.namespaceURI === SVG_NAMESPACE) {
722
+ return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];
723
+ }
724
+ // We only allow elements that are defined in MathML
725
+ // spec. All others are disallowed in MathML namespace.
726
+ return Boolean(ALL_MATHML_TAGS[tagName]);
727
+ }
728
+ if (element.namespaceURI === HTML_NAMESPACE) {
729
+ // The only way to switch from SVG to HTML is via
730
+ // HTML integration points, and from MathML to HTML
731
+ // is via MathML text integration points
732
+ if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {
733
+ return false;
734
+ }
735
+ if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {
736
+ return false;
737
+ }
738
+ // We disallow tags that are specific for MathML
739
+ // or SVG and should never appear in HTML namespace
740
+ return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]);
741
+ }
742
+ // For XHTML and XML documents that support custom namespaces
743
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) {
744
+ return true;
745
+ }
746
+ // The code should never reach this place (this means
747
+ // that the element somehow got namespace that is not
748
+ // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES).
749
+ // Return false just in case.
750
+ return false;
751
+ };
752
+ /**
753
+ * _forceRemove
754
+ *
755
+ * @param node a DOM node
756
+ */
757
+ const _forceRemove = function _forceRemove(node) {
758
+ arrayPush(DOMPurify.removed, {
759
+ element: node
760
+ });
761
+ try {
762
+ // eslint-disable-next-line unicorn/prefer-dom-node-remove
763
+ getParentNode(node).removeChild(node);
764
+ } catch (_) {
765
+ remove(node);
766
+ }
767
+ };
768
+ /**
769
+ * _removeAttribute
770
+ *
771
+ * @param name an Attribute name
772
+ * @param element a DOM node
773
+ */
774
+ const _removeAttribute = function _removeAttribute(name, element) {
775
+ try {
776
+ arrayPush(DOMPurify.removed, {
777
+ attribute: element.getAttributeNode(name),
778
+ from: element
779
+ });
780
+ } catch (_) {
781
+ arrayPush(DOMPurify.removed, {
782
+ attribute: null,
783
+ from: element
784
+ });
785
+ }
786
+ element.removeAttribute(name);
787
+ // We void attribute values for unremovable "is" attributes
788
+ if (name === 'is') {
789
+ if (RETURN_DOM || RETURN_DOM_FRAGMENT) {
790
+ try {
791
+ _forceRemove(element);
792
+ } catch (_) {}
793
+ } else {
794
+ try {
795
+ element.setAttribute(name, '');
796
+ } catch (_) {}
797
+ }
798
+ }
799
+ };
800
+ /**
801
+ * _initDocument
802
+ *
803
+ * @param dirty - a string of dirty markup
804
+ * @return a DOM, filled with the dirty markup
805
+ */
806
+ const _initDocument = function _initDocument(dirty) {
807
+ /* Create a HTML document */
808
+ let doc = null;
809
+ let leadingWhitespace = null;
810
+ if (FORCE_BODY) {
811
+ dirty = '<remove></remove>' + dirty;
812
+ } else {
813
+ /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */
814
+ const matches = stringMatch(dirty, /^[\r\n\t ]+/);
815
+ leadingWhitespace = matches && matches[0];
816
+ }
817
+ if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) {
818
+ // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict)
819
+ dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>';
820
+ }
821
+ const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;
822
+ /*
823
+ * Use the DOMParser API by default, fallback later if needs be
824
+ * DOMParser not work for svg when has multiple root element.
825
+ */
826
+ if (NAMESPACE === HTML_NAMESPACE) {
827
+ try {
828
+ doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE);
829
+ } catch (_) {}
830
+ }
831
+ /* Use createHTMLDocument in case DOMParser is not available */
832
+ if (!doc || !doc.documentElement) {
833
+ doc = implementation.createDocument(NAMESPACE, 'template', null);
834
+ try {
835
+ doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload;
836
+ } catch (_) {
837
+ // Syntax error if dirtyPayload is invalid xml
838
+ }
839
+ }
840
+ const body = doc.body || doc.documentElement;
841
+ if (dirty && leadingWhitespace) {
842
+ body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);
843
+ }
844
+ /* Work on whole document or just its body */
845
+ if (NAMESPACE === HTML_NAMESPACE) {
846
+ return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];
847
+ }
848
+ return WHOLE_DOCUMENT ? doc.documentElement : body;
849
+ };
850
+ /**
851
+ * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
852
+ *
853
+ * @param root The root element or node to start traversing on.
854
+ * @return The created NodeIterator
855
+ */
856
+ const _createNodeIterator = function _createNodeIterator(root) {
857
+ return createNodeIterator.call(root.ownerDocument || root, root,
858
+ // eslint-disable-next-line no-bitwise
859
+ NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
860
+ };
861
+ /**
862
+ * _isClobbered
863
+ *
864
+ * @param element element to check for clobbering attacks
865
+ * @return true if clobbered, false if safe
866
+ */
867
+ const _isClobbered = function _isClobbered(element) {
868
+ return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function');
869
+ };
870
+ /**
871
+ * Checks whether the given object is a DOM node.
872
+ *
873
+ * @param value object to check whether it's a DOM node
874
+ * @return true is object is a DOM node
875
+ */
876
+ const _isNode = function _isNode(value) {
877
+ return typeof Node === 'function' && value instanceof Node;
878
+ };
879
+ function _executeHooks(hooks, currentNode, data) {
880
+ arrayForEach(hooks, hook => {
881
+ hook.call(DOMPurify, currentNode, data, CONFIG);
882
+ });
883
+ }
884
+ /**
885
+ * _sanitizeElements
886
+ *
887
+ * @protect nodeName
888
+ * @protect textContent
889
+ * @protect removeChild
890
+ * @param currentNode to check for permission to exist
891
+ * @return true if node was killed, false if left alive
892
+ */
893
+ const _sanitizeElements = function _sanitizeElements(currentNode) {
894
+ let content = null;
895
+ /* Execute a hook if present */
896
+ _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
897
+ /* Check if element is clobbered or can clobber */
898
+ if (_isClobbered(currentNode)) {
899
+ _forceRemove(currentNode);
900
+ return true;
901
+ }
902
+ /* Now let's check the element's type and name */
903
+ const tagName = transformCaseFunc(currentNode.nodeName);
904
+ /* Execute a hook if present */
905
+ _executeHooks(hooks.uponSanitizeElement, currentNode, {
906
+ tagName,
907
+ allowedTags: ALLOWED_TAGS
908
+ });
909
+ /* Detect mXSS attempts abusing namespace confusion */
910
+ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) {
911
+ _forceRemove(currentNode);
912
+ return true;
913
+ }
914
+ /* Remove any occurrence of processing instructions */
915
+ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) {
916
+ _forceRemove(currentNode);
917
+ return true;
918
+ }
919
+ /* Remove any kind of possibly harmful comments */
920
+ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) {
921
+ _forceRemove(currentNode);
922
+ return true;
923
+ }
924
+ /* Remove element if anything forbids its presence */
925
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
926
+ /* Check if we have a custom element to handle */
927
+ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
928
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
929
+ return false;
930
+ }
931
+ if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
932
+ return false;
933
+ }
934
+ }
935
+ /* Keep content except for bad-listed elements */
936
+ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
937
+ const parentNode = getParentNode(currentNode) || currentNode.parentNode;
938
+ const childNodes = getChildNodes(currentNode) || currentNode.childNodes;
939
+ if (childNodes && parentNode) {
940
+ const childCount = childNodes.length;
941
+ for (let i = childCount - 1; i >= 0; --i) {
942
+ const childClone = cloneNode(childNodes[i], true);
943
+ childClone.__removalCount = (currentNode.__removalCount || 0) + 1;
944
+ parentNode.insertBefore(childClone, getNextSibling(currentNode));
945
+ }
946
+ }
947
+ }
948
+ _forceRemove(currentNode);
949
+ return true;
950
+ }
951
+ /* Check whether element has a valid namespace */
952
+ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {
953
+ _forceRemove(currentNode);
954
+ return true;
955
+ }
956
+ /* Make sure that older browsers don't get fallback-tag mXSS */
957
+ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) {
958
+ _forceRemove(currentNode);
959
+ return true;
960
+ }
961
+ /* Sanitize element content to be template-safe */
962
+ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) {
963
+ /* Get the element's text content */
964
+ content = currentNode.textContent;
965
+ arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
966
+ content = stringReplace(content, expr, ' ');
967
+ });
968
+ if (currentNode.textContent !== content) {
969
+ arrayPush(DOMPurify.removed, {
970
+ element: currentNode.cloneNode()
971
+ });
972
+ currentNode.textContent = content;
973
+ }
974
+ }
975
+ /* Execute a hook if present */
976
+ _executeHooks(hooks.afterSanitizeElements, currentNode, null);
977
+ return false;
978
+ };
979
+ /**
980
+ * _isValidAttribute
981
+ *
982
+ * @param lcTag Lowercase tag name of containing element.
983
+ * @param lcName Lowercase attribute name.
984
+ * @param value Attribute value.
985
+ * @return Returns true if `value` is valid, otherwise false.
986
+ */
987
+ // eslint-disable-next-line complexity
988
+ const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {
989
+ /* Make sure attribute cannot clobber */
990
+ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {
991
+ return false;
992
+ }
993
+ /* Allow valid data-* attributes: At least one character after "-"
994
+ (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
995
+ XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
996
+ We don't need to check the value; it's always URI safe. */
997
+ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
998
+ if (
999
+ // First condition does a very basic check if a) it's basically a valid custom element tagname AND
1000
+ // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1001
+ // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
1002
+ _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName, lcTag)) ||
1003
+ // Alternative, second condition checks if it's an `is`-attribute, AND
1004
+ // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
1005
+ lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
1006
+ return false;
1007
+ }
1008
+ /* Check value is safe. First, is attr inert? If so, is safe */
1009
+ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) {
1010
+ return false;
1011
+ } else ;
1012
+ return true;
1013
+ };
1014
+ /**
1015
+ * _isBasicCustomElement
1016
+ * checks if at least one dash is included in tagName, and it's not the first char
1017
+ * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
1018
+ *
1019
+ * @param tagName name of the tag of the node to sanitize
1020
+ * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
1021
+ */
1022
+ const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
1023
+ return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT);
1024
+ };
1025
+ /**
1026
+ * _sanitizeAttributes
1027
+ *
1028
+ * @protect attributes
1029
+ * @protect nodeName
1030
+ * @protect removeAttribute
1031
+ * @protect setAttribute
1032
+ *
1033
+ * @param currentNode to sanitize
1034
+ */
1035
+ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
1036
+ /* Execute a hook if present */
1037
+ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
1038
+ const {
1039
+ attributes
1040
+ } = currentNode;
1041
+ /* Check if we have attributes; if not we might have a text node */
1042
+ if (!attributes || _isClobbered(currentNode)) {
1043
+ return;
1044
+ }
1045
+ const hookEvent = {
1046
+ attrName: '',
1047
+ attrValue: '',
1048
+ keepAttr: true,
1049
+ allowedAttributes: ALLOWED_ATTR,
1050
+ forceKeepAttr: undefined
1051
+ };
1052
+ let l = attributes.length;
1053
+ /* Go backwards over all attributes; safely remove bad ones */
1054
+ while (l--) {
1055
+ const attr = attributes[l];
1056
+ const {
1057
+ name,
1058
+ namespaceURI,
1059
+ value: attrValue
1060
+ } = attr;
1061
+ const lcName = transformCaseFunc(name);
1062
+ const initValue = attrValue;
1063
+ let value = name === 'value' ? initValue : stringTrim(initValue);
1064
+ /* Execute a hook if present */
1065
+ hookEvent.attrName = lcName;
1066
+ hookEvent.attrValue = value;
1067
+ hookEvent.keepAttr = true;
1068
+ hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set
1069
+ _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent);
1070
+ value = hookEvent.attrValue;
1071
+ /* Full DOM Clobbering protection via namespace isolation,
1072
+ * Prefix id and name attributes with `user-content-`
1073
+ */
1074
+ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) {
1075
+ // Remove the attribute with this value
1076
+ _removeAttribute(name, currentNode);
1077
+ // Prefix the value and later re-create the attribute with the sanitized value
1078
+ value = SANITIZE_NAMED_PROPS_PREFIX + value;
1079
+ }
1080
+ /* Work around a security issue with comments inside attributes */
1081
+ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, value)) {
1082
+ _removeAttribute(name, currentNode);
1083
+ continue;
1084
+ }
1085
+ /* Make sure we cannot easily use animated hrefs, even if animations are allowed */
1086
+ if (lcName === 'attributename' && stringMatch(value, 'href')) {
1087
+ _removeAttribute(name, currentNode);
1088
+ continue;
1089
+ }
1090
+ /* Did the hooks approve of the attribute? */
1091
+ if (hookEvent.forceKeepAttr) {
1092
+ continue;
1093
+ }
1094
+ /* Did the hooks approve of the attribute? */
1095
+ if (!hookEvent.keepAttr) {
1096
+ _removeAttribute(name, currentNode);
1097
+ continue;
1098
+ }
1099
+ /* Work around a security issue in jQuery 3.0 */
1100
+ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) {
1101
+ _removeAttribute(name, currentNode);
1102
+ continue;
1103
+ }
1104
+ /* Sanitize attribute content to be template-safe */
1105
+ if (SAFE_FOR_TEMPLATES) {
1106
+ arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
1107
+ value = stringReplace(value, expr, ' ');
1108
+ });
1109
+ }
1110
+ /* Is `value` valid for this attribute? */
1111
+ const lcTag = transformCaseFunc(currentNode.nodeName);
1112
+ if (!_isValidAttribute(lcTag, lcName, value)) {
1113
+ _removeAttribute(name, currentNode);
1114
+ continue;
1115
+ }
1116
+ /* Handle attributes that require Trusted Types */
1117
+ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') {
1118
+ if (namespaceURI) ; else {
1119
+ switch (trustedTypes.getAttributeType(lcTag, lcName)) {
1120
+ case 'TrustedHTML':
1121
+ {
1122
+ value = trustedTypesPolicy.createHTML(value);
1123
+ break;
1124
+ }
1125
+ case 'TrustedScriptURL':
1126
+ {
1127
+ value = trustedTypesPolicy.createScriptURL(value);
1128
+ break;
1129
+ }
1130
+ }
1131
+ }
1132
+ }
1133
+ /* Handle invalid data-* attribute set by try-catching it */
1134
+ if (value !== initValue) {
1135
+ try {
1136
+ if (namespaceURI) {
1137
+ currentNode.setAttributeNS(namespaceURI, name, value);
1138
+ } else {
1139
+ /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */
1140
+ currentNode.setAttribute(name, value);
1141
+ }
1142
+ if (_isClobbered(currentNode)) {
1143
+ _forceRemove(currentNode);
1144
+ } else {
1145
+ arrayPop(DOMPurify.removed);
1146
+ }
1147
+ } catch (_) {
1148
+ _removeAttribute(name, currentNode);
1149
+ }
1150
+ }
1151
+ }
1152
+ /* Execute a hook if present */
1153
+ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null);
1154
+ };
1155
+ /**
1156
+ * _sanitizeShadowDOM
1157
+ *
1158
+ * @param fragment to iterate over recursively
1159
+ */
1160
+ const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
1161
+ let shadowNode = null;
1162
+ const shadowIterator = _createNodeIterator(fragment);
1163
+ /* Execute a hook if present */
1164
+ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null);
1165
+ while (shadowNode = shadowIterator.nextNode()) {
1166
+ /* Execute a hook if present */
1167
+ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null);
1168
+ /* Sanitize tags and elements */
1169
+ _sanitizeElements(shadowNode);
1170
+ /* Check attributes next */
1171
+ _sanitizeAttributes(shadowNode);
1172
+ /* Deep shadow DOM detected */
1173
+ if (shadowNode.content instanceof DocumentFragment) {
1174
+ _sanitizeShadowDOM(shadowNode.content);
1175
+ }
1176
+ }
1177
+ /* Execute a hook if present */
1178
+ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
1179
+ };
1180
+ // eslint-disable-next-line complexity
1181
+ DOMPurify.sanitize = function (dirty) {
1182
+ let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1183
+ let body = null;
1184
+ let importedNode = null;
1185
+ let currentNode = null;
1186
+ let returnNode = null;
1187
+ /* Make sure we have a string to sanitize.
1188
+ DO NOT return early, as this will return the wrong type if
1189
+ the user has requested a DOM object rather than a string */
1190
+ IS_EMPTY_INPUT = !dirty;
1191
+ if (IS_EMPTY_INPUT) {
1192
+ dirty = '<!-->';
1193
+ }
1194
+ /* Stringify, in case dirty is an object */
1195
+ if (typeof dirty !== 'string' && !_isNode(dirty)) {
1196
+ if (typeof dirty.toString === 'function') {
1197
+ dirty = dirty.toString();
1198
+ if (typeof dirty !== 'string') {
1199
+ throw typeErrorCreate('dirty is not a string, aborting');
1200
+ }
1201
+ } else {
1202
+ throw typeErrorCreate('toString is not a function');
1203
+ }
1204
+ }
1205
+ /* Return dirty HTML if DOMPurify cannot run */
1206
+ if (!DOMPurify.isSupported) {
1207
+ return dirty;
1208
+ }
1209
+ /* Assign config vars */
1210
+ if (!SET_CONFIG) {
1211
+ _parseConfig(cfg);
1212
+ }
1213
+ /* Clean up removed elements */
1214
+ DOMPurify.removed = [];
1215
+ /* Check if dirty is correctly typed for IN_PLACE */
1216
+ if (typeof dirty === 'string') {
1217
+ IN_PLACE = false;
1218
+ }
1219
+ if (IN_PLACE) {
1220
+ /* Do some early pre-sanitization to avoid unsafe root nodes */
1221
+ if (dirty.nodeName) {
1222
+ const tagName = transformCaseFunc(dirty.nodeName);
1223
+ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
1224
+ throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place');
1225
+ }
1226
+ }
1227
+ } else if (dirty instanceof Node) {
1228
+ /* If dirty is a DOM element, append to an empty document to avoid
1229
+ elements being stripped by the parser */
1230
+ body = _initDocument('<!---->');
1231
+ importedNode = body.ownerDocument.importNode(dirty, true);
1232
+ if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') {
1233
+ /* Node is already a body, use as is */
1234
+ body = importedNode;
1235
+ } else if (importedNode.nodeName === 'HTML') {
1236
+ body = importedNode;
1237
+ } else {
1238
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1239
+ body.appendChild(importedNode);
1240
+ }
1241
+ } else {
1242
+ /* Exit directly if we have nothing to do */
1243
+ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&
1244
+ // eslint-disable-next-line unicorn/prefer-includes
1245
+ dirty.indexOf('<') === -1) {
1246
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;
1247
+ }
1248
+ /* Initialize the document to work on */
1249
+ body = _initDocument(dirty);
1250
+ /* Check we have a DOM node from the data */
1251
+ if (!body) {
1252
+ return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : '';
1253
+ }
1254
+ }
1255
+ /* Remove first element node (ours) if FORCE_BODY is set */
1256
+ if (body && FORCE_BODY) {
1257
+ _forceRemove(body.firstChild);
1258
+ }
1259
+ /* Get node iterator */
1260
+ const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
1261
+ /* Now start iterating over the created document */
1262
+ while (currentNode = nodeIterator.nextNode()) {
1263
+ /* Sanitize tags and elements */
1264
+ _sanitizeElements(currentNode);
1265
+ /* Check attributes next */
1266
+ _sanitizeAttributes(currentNode);
1267
+ /* Shadow DOM detected, sanitize it */
1268
+ if (currentNode.content instanceof DocumentFragment) {
1269
+ _sanitizeShadowDOM(currentNode.content);
1270
+ }
1271
+ }
1272
+ /* If we sanitized `dirty` in-place, return it. */
1273
+ if (IN_PLACE) {
1274
+ return dirty;
1275
+ }
1276
+ /* Return sanitized string or DOM */
1277
+ if (RETURN_DOM) {
1278
+ if (RETURN_DOM_FRAGMENT) {
1279
+ returnNode = createDocumentFragment.call(body.ownerDocument);
1280
+ while (body.firstChild) {
1281
+ // eslint-disable-next-line unicorn/prefer-dom-node-append
1282
+ returnNode.appendChild(body.firstChild);
1283
+ }
1284
+ } else {
1285
+ returnNode = body;
1286
+ }
1287
+ if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) {
1288
+ /*
1289
+ AdoptNode() is not used because internal state is not reset
1290
+ (e.g. the past names map of a HTMLFormElement), this is safe
1291
+ in theory but we would rather not risk another attack vector.
1292
+ The state that is cloned by importNode() is explicitly defined
1293
+ by the specs.
1294
+ */
1295
+ returnNode = importNode.call(originalDocument, returnNode, true);
1296
+ }
1297
+ return returnNode;
1298
+ }
1299
+ let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;
1300
+ /* Serialize doctype if allowed */
1301
+ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) {
1302
+ serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML;
1303
+ }
1304
+ /* Sanitize final string template-safe */
1305
+ if (SAFE_FOR_TEMPLATES) {
1306
+ arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
1307
+ serializedHTML = stringReplace(serializedHTML, expr, ' ');
1308
+ });
1309
+ }
1310
+ return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
1311
+ };
1312
+ DOMPurify.setConfig = function () {
1313
+ let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1314
+ _parseConfig(cfg);
1315
+ SET_CONFIG = true;
1316
+ };
1317
+ DOMPurify.clearConfig = function () {
1318
+ CONFIG = null;
1319
+ SET_CONFIG = false;
1320
+ };
1321
+ DOMPurify.isValidAttribute = function (tag, attr, value) {
1322
+ /* Initialize shared config vars if necessary. */
1323
+ if (!CONFIG) {
1324
+ _parseConfig({});
1325
+ }
1326
+ const lcTag = transformCaseFunc(tag);
1327
+ const lcName = transformCaseFunc(attr);
1328
+ return _isValidAttribute(lcTag, lcName, value);
1329
+ };
1330
+ DOMPurify.addHook = function (entryPoint, hookFunction) {
1331
+ if (typeof hookFunction !== 'function') {
1332
+ return;
1333
+ }
1334
+ arrayPush(hooks[entryPoint], hookFunction);
1335
+ };
1336
+ DOMPurify.removeHook = function (entryPoint, hookFunction) {
1337
+ if (hookFunction !== undefined) {
1338
+ const index = arrayLastIndexOf(hooks[entryPoint], hookFunction);
1339
+ return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0];
1340
+ }
1341
+ return arrayPop(hooks[entryPoint]);
1342
+ };
1343
+ DOMPurify.removeHooks = function (entryPoint) {
1344
+ hooks[entryPoint] = [];
1345
+ };
1346
+ DOMPurify.removeAllHooks = function () {
1347
+ hooks = _createHooksMap();
1348
+ };
1349
+ return DOMPurify;
1350
+ }
1351
+ var purify = createDOMPurify();
1352
+
1353
+ var HtmlRenderer = function HtmlRenderer(_ref) {
1354
+ var htmlString = _ref.htmlString;
1355
+ var sanitizedHTML = purify.sanitize(htmlString);
1356
+ return /*#__PURE__*/React.createElement("div", {
1357
+ dangerouslySetInnerHTML: {
1358
+ __html: sanitizedHTML
1359
+ }
1360
+ });
1361
+ };
1362
+
1363
+ exports.default = HtmlRenderer;