@vritti/quantum-ui 0.2.9 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (976) hide show
  1. package/dist/Alert.js +8 -31
  2. package/dist/Alert.js.map +1 -1
  3. package/dist/AppSelector.js +37 -0
  4. package/dist/AppSelector.js.map +1 -0
  5. package/dist/Avatar.js +5 -5
  6. package/dist/Avatar.js.map +1 -1
  7. package/dist/Badge.js +2 -28
  8. package/dist/Badge.js.map +1 -1
  9. package/dist/Badge2.js +30 -0
  10. package/dist/Badge2.js.map +1 -0
  11. package/dist/Breadcrumb.js +125 -0
  12. package/dist/Breadcrumb.js.map +1 -0
  13. package/dist/Button.js +8 -4
  14. package/dist/Button.js.map +1 -1
  15. package/dist/Button2.js +34 -15
  16. package/dist/Button2.js.map +1 -1
  17. package/dist/CardSkeleton.js +17 -0
  18. package/dist/CardSkeleton.js.map +1 -0
  19. package/dist/Chart.js +6195 -6401
  20. package/dist/Chart.js.map +1 -1
  21. package/dist/Checkbox.js +2 -289
  22. package/dist/Checkbox.js.map +1 -1
  23. package/dist/Checkbox2.js +293 -0
  24. package/dist/Checkbox2.js.map +1 -0
  25. package/dist/CheckboxGroup.js +74 -0
  26. package/dist/CheckboxGroup.js.map +1 -0
  27. package/dist/CloudProviderSelector.js +37 -0
  28. package/dist/CloudProviderSelector.js.map +1 -0
  29. package/dist/Collapsible.js +8 -0
  30. package/dist/Collapsible.js.map +1 -0
  31. package/dist/Combination.js +10 -2509
  32. package/dist/Combination.js.map +1 -1
  33. package/dist/ConfirmContext.js +75 -0
  34. package/dist/ConfirmContext.js.map +1 -0
  35. package/dist/CurrencySelector.js +194 -0
  36. package/dist/CurrencySelector.js.map +1 -0
  37. package/dist/DangerZoneSkeleton.js +52 -0
  38. package/dist/DangerZoneSkeleton.js.map +1 -0
  39. package/dist/DatePicker.js +36 -340
  40. package/dist/DatePicker.js.map +1 -1
  41. package/dist/DeploymentSelector.js +37 -0
  42. package/dist/DeploymentSelector.js.map +1 -0
  43. package/dist/Dialog.js +159 -0
  44. package/dist/Dialog.js.map +1 -0
  45. package/dist/DropdownMenu.js +66 -1423
  46. package/dist/DropdownMenu.js.map +1 -1
  47. package/dist/Empty.js +49 -0
  48. package/dist/Empty.js.map +1 -0
  49. package/dist/ErrorBoundary.js +255 -0
  50. package/dist/ErrorBoundary.js.map +1 -0
  51. package/dist/FeatureSelector.js +37 -0
  52. package/dist/FeatureSelector.js.map +1 -0
  53. package/dist/FilePreview.js +194 -0
  54. package/dist/FilePreview.js.map +1 -0
  55. package/dist/Form.js +1938 -19
  56. package/dist/Form.js.map +1 -1
  57. package/dist/HierarchyGraph.js +10729 -0
  58. package/dist/HierarchyGraph.js.map +1 -0
  59. package/dist/IndustrySelector.js +37 -0
  60. package/dist/IndustrySelector.js.map +1 -0
  61. package/dist/Input.js +22 -0
  62. package/dist/Input.js.map +1 -0
  63. package/dist/Label.js +1 -21
  64. package/dist/Label.js.map +1 -1
  65. package/dist/LocaleSelector.js +111 -0
  66. package/dist/LocaleSelector.js.map +1 -0
  67. package/dist/MicrofrontendSelector.js +19 -0
  68. package/dist/MicrofrontendSelector.js.map +1 -0
  69. package/dist/OTPField.js +28 -26
  70. package/dist/OTPField.js.map +1 -1
  71. package/dist/PageHeaderSkeleton.js +35 -0
  72. package/dist/PageHeaderSkeleton.js.map +1 -0
  73. package/dist/PasswordField.js +1 -49
  74. package/dist/PasswordField.js.map +1 -1
  75. package/dist/PhoneField.js +11 -16
  76. package/dist/PhoneField.js.map +1 -1
  77. package/dist/PlanSelector.js +37 -0
  78. package/dist/PlanSelector.js.map +1 -0
  79. package/dist/Progress.js +4 -3
  80. package/dist/Progress.js.map +1 -1
  81. package/dist/RadioGroup.js +392 -0
  82. package/dist/RadioGroup.js.map +1 -0
  83. package/dist/RegionSelector.js +37 -0
  84. package/dist/RegionSelector.js.map +1 -0
  85. package/dist/Select.js +780 -0
  86. package/dist/Select.js.map +1 -0
  87. package/dist/SelectFilter.js +387 -0
  88. package/dist/SelectFilter.js.map +1 -0
  89. package/dist/Sidebar.js +616 -0
  90. package/dist/Sidebar.js.map +1 -0
  91. package/dist/SingleSelect.js +429 -0
  92. package/dist/SingleSelect.js.map +1 -0
  93. package/dist/Sonner.js +6 -1135
  94. package/dist/Sonner.js.map +1 -1
  95. package/dist/Sortable.js +4517 -0
  96. package/dist/Sortable.js.map +1 -0
  97. package/dist/StepProgressIndicator.js +42 -0
  98. package/dist/StepProgressIndicator.js.map +1 -0
  99. package/dist/Switch.js +15 -15
  100. package/dist/Switch.js.map +1 -1
  101. package/dist/TabsSkeleton.js +188 -0
  102. package/dist/TabsSkeleton.js.map +1 -0
  103. package/dist/TextArea.js +16 -19
  104. package/dist/TextArea.js.map +1 -1
  105. package/dist/TextField.js +5 -20
  106. package/dist/TextField.js.map +1 -1
  107. package/dist/ThemeContext.js +2 -8
  108. package/dist/ThemeContext.js.map +1 -1
  109. package/dist/TimezoneSelector.js +144 -0
  110. package/dist/TimezoneSelector.js.map +1 -0
  111. package/dist/Toggle.js +2 -32
  112. package/dist/Toggle.js.map +1 -1
  113. package/dist/UploadFile.js +232 -0
  114. package/dist/UploadFile.js.map +1 -0
  115. package/dist/ValueFilter.js +123 -0
  116. package/dist/ValueFilter.js.map +1 -0
  117. package/dist/ViewTabs.js +218 -0
  118. package/dist/ViewTabs.js.map +1 -0
  119. package/dist/_commonjsHelpers.js +3 -1
  120. package/dist/_commonjsHelpers.js.map +1 -1
  121. package/dist/assets/quantum-ui.css +827 -57
  122. package/dist/axios.js +1239 -892
  123. package/dist/axios.js.map +1 -1
  124. package/dist/{chevron-down.js → chevron-left.js} +4 -4
  125. package/dist/chevron-left.js.map +1 -0
  126. package/dist/circle-alert.js +19 -0
  127. package/dist/circle-alert.js.map +1 -0
  128. package/dist/circle-check.js +18 -0
  129. package/dist/circle-check.js.map +1 -0
  130. package/dist/collapsible2.js +154 -0
  131. package/dist/collapsible2.js.map +1 -0
  132. package/dist/components/Badge.js +2 -1
  133. package/dist/components/Badge.js.map +1 -1
  134. package/dist/components/Breadcrumb.js +2 -0
  135. package/dist/components/Breadcrumb.js.map +1 -0
  136. package/dist/components/Card.js +1 -0
  137. package/dist/components/Card.js.map +1 -1
  138. package/dist/components/CheckboxGroup.js +2 -0
  139. package/dist/components/CheckboxGroup.js.map +1 -0
  140. package/dist/components/Collapsible.js +2 -0
  141. package/dist/components/Collapsible.js.map +1 -0
  142. package/dist/components/DangerZone.js +2 -0
  143. package/dist/components/DangerZone.js.map +1 -0
  144. package/dist/components/DataTable.js +2 -0
  145. package/dist/components/DataTable.js.map +1 -0
  146. package/dist/components/Dialog.js +2 -0
  147. package/dist/components/Dialog.js.map +1 -0
  148. package/dist/components/DropdownMenu.js +1 -1
  149. package/dist/components/Empty.js +2 -0
  150. package/dist/components/Empty.js.map +1 -0
  151. package/dist/components/ErrorBoundary.js +2 -0
  152. package/dist/components/ErrorBoundary.js.map +1 -0
  153. package/dist/components/FilePreview.js +2 -0
  154. package/dist/components/FilePreview.js.map +1 -0
  155. package/dist/components/HierarchyGraph.js +2 -0
  156. package/dist/components/HierarchyGraph.js.map +1 -0
  157. package/dist/components/PageHeader.js +2 -0
  158. package/dist/components/PageHeader.js.map +1 -0
  159. package/dist/components/RadioGroup.js +2 -0
  160. package/dist/components/RadioGroup.js.map +1 -0
  161. package/dist/components/RichTextEditor.js +4 -0
  162. package/dist/components/RichTextEditor.js.map +1 -0
  163. package/dist/components/Select.js +29 -0
  164. package/dist/components/Select.js.map +1 -0
  165. package/dist/components/Sidebar.js +2 -0
  166. package/dist/components/Sidebar.js.map +1 -0
  167. package/dist/components/Sortable.js +2 -0
  168. package/dist/components/Sortable.js.map +1 -0
  169. package/dist/components/StepProgressIndicator.js +2 -0
  170. package/dist/components/StepProgressIndicator.js.map +1 -0
  171. package/dist/components/Tabs.js +2 -0
  172. package/dist/components/Tabs.js.map +1 -0
  173. package/dist/components/UploadFile.js +2 -0
  174. package/dist/components/UploadFile.js.map +1 -0
  175. package/dist/components/ValueFilter.js +2 -0
  176. package/dist/components/ValueFilter.js.map +1 -0
  177. package/dist/components/ViewTabs.js +2 -0
  178. package/dist/components/ViewTabs.js.map +1 -0
  179. package/dist/context/index.js +1 -0
  180. package/dist/context/index.js.map +1 -1
  181. package/dist/dropdown-menu.js +1209 -0
  182. package/dist/dropdown-menu.js.map +1 -0
  183. package/dist/ellipsis.js +19 -0
  184. package/dist/ellipsis.js.map +1 -0
  185. package/dist/eye.js +52 -0
  186. package/dist/eye.js.map +1 -0
  187. package/dist/field.js +1 -1
  188. package/dist/file-text.js +27 -0
  189. package/dist/file-text.js.map +1 -0
  190. package/dist/grip-vertical.js +22 -0
  191. package/dist/grip-vertical.js.map +1 -0
  192. package/dist/hooks/index.js +3 -0
  193. package/dist/hooks/index.js.map +1 -1
  194. package/dist/image-component.js +614 -0
  195. package/dist/image-component.js.map +1 -0
  196. package/dist/index.js +49 -9
  197. package/dist/index.js.map +1 -1
  198. package/dist/index10.js +175 -94
  199. package/dist/index10.js.map +1 -1
  200. package/dist/index11.js +202 -67
  201. package/dist/index11.js.map +1 -1
  202. package/dist/index12.js +17 -38
  203. package/dist/index12.js.map +1 -1
  204. package/dist/index13.js +204 -188
  205. package/dist/index13.js.map +1 -1
  206. package/dist/index14.js +124 -192
  207. package/dist/index14.js.map +1 -1
  208. package/dist/index15.js +79 -0
  209. package/dist/index15.js.map +1 -0
  210. package/dist/index16.js +16 -0
  211. package/dist/index16.js.map +1 -0
  212. package/dist/index17.js +1137 -0
  213. package/dist/index17.js.map +1 -0
  214. package/dist/index18.js +41 -0
  215. package/dist/index18.js.map +1 -0
  216. package/dist/index19.js +314 -0
  217. package/dist/index19.js.map +1 -0
  218. package/dist/index2.js +54033 -55
  219. package/dist/index2.js.map +1 -1
  220. package/dist/index20.js +488 -0
  221. package/dist/index20.js.map +1 -0
  222. package/dist/index21.js +2540 -0
  223. package/dist/index21.js.map +1 -0
  224. package/dist/index22.js +36 -0
  225. package/dist/index22.js.map +1 -0
  226. package/dist/index23.js +13 -0
  227. package/dist/index23.js.map +1 -0
  228. package/dist/index24.js +8 -0
  229. package/dist/index24.js.map +1 -0
  230. package/dist/index25.js +35 -0
  231. package/dist/index25.js.map +1 -0
  232. package/dist/index26.js +65 -0
  233. package/dist/index26.js.map +1 -0
  234. package/dist/index27.js +16 -0
  235. package/dist/index27.js.map +1 -0
  236. package/dist/index28.js +41 -0
  237. package/dist/index28.js.map +1 -0
  238. package/dist/index29.js +84 -0
  239. package/dist/index29.js.map +1 -0
  240. package/dist/index3.js +42 -10
  241. package/dist/index3.js.map +1 -1
  242. package/dist/index30.js +199 -0
  243. package/dist/index30.js.map +1 -0
  244. package/dist/index4.js +290 -118
  245. package/dist/index4.js.map +1 -1
  246. package/dist/index5.js +96 -31
  247. package/dist/index5.js.map +1 -1
  248. package/dist/index6.js +36 -4
  249. package/dist/index6.js.map +1 -1
  250. package/dist/index7.js +1157 -11
  251. package/dist/index7.js.map +1 -1
  252. package/dist/index8.js +22 -42
  253. package/dist/index8.js.map +1 -1
  254. package/dist/index9.js +25 -35
  255. package/dist/index9.js.map +1 -1
  256. package/dist/lib/components/Alert/Alert.d.ts +2 -1
  257. package/dist/lib/components/Alert/Alert.d.ts.map +1 -1
  258. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +17 -0
  259. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  260. package/dist/lib/components/Breadcrumb/index.d.ts +4 -0
  261. package/dist/lib/components/Breadcrumb/index.d.ts.map +1 -0
  262. package/dist/lib/components/Button/Button.d.ts +3 -1
  263. package/dist/lib/components/Button/Button.d.ts.map +1 -1
  264. package/dist/lib/components/Card/CardSkeleton.d.ts +9 -0
  265. package/dist/lib/components/Card/CardSkeleton.d.ts.map +1 -0
  266. package/dist/lib/components/Card/index.d.ts +1 -0
  267. package/dist/lib/components/Card/index.d.ts.map +1 -1
  268. package/dist/lib/components/Chart/Chart.d.ts +1 -1
  269. package/dist/lib/components/Chart/Chart.d.ts.map +1 -1
  270. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +24 -0
  271. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts.map +1 -0
  272. package/dist/lib/components/CheckboxGroup/index.d.ts +3 -0
  273. package/dist/lib/components/CheckboxGroup/index.d.ts.map +1 -0
  274. package/dist/lib/components/Collapsible/Collapsible.d.ts +5 -0
  275. package/dist/lib/components/Collapsible/Collapsible.d.ts.map +1 -0
  276. package/dist/lib/components/Collapsible/index.d.ts +2 -0
  277. package/dist/lib/components/Collapsible/index.d.ts.map +1 -0
  278. package/dist/lib/components/DangerZone/DangerZone.d.ts +13 -0
  279. package/dist/lib/components/DangerZone/DangerZone.d.ts.map +1 -0
  280. package/dist/lib/components/DangerZone/DangerZoneSkeleton.d.ts +9 -0
  281. package/dist/lib/components/DangerZone/DangerZoneSkeleton.d.ts.map +1 -0
  282. package/dist/lib/components/DangerZone/index.d.ts +4 -0
  283. package/dist/lib/components/DangerZone/index.d.ts.map +1 -0
  284. package/dist/lib/components/DataTable/DataTable.d.ts +6 -0
  285. package/dist/lib/components/DataTable/DataTable.d.ts.map +1 -0
  286. package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts +12 -0
  287. package/dist/lib/components/DataTable/components/DataTableColumnHeader.d.ts.map +1 -0
  288. package/dist/lib/components/DataTable/components/DataTableEmpty.d.ts +13 -0
  289. package/dist/lib/components/DataTable/components/DataTableEmpty.d.ts.map +1 -0
  290. package/dist/lib/components/DataTable/components/DataTableFilters.d.ts +11 -0
  291. package/dist/lib/components/DataTable/components/DataTableFilters.d.ts.map +1 -0
  292. package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts +16 -0
  293. package/dist/lib/components/DataTable/components/DataTableImportDialog.d.ts.map +1 -0
  294. package/dist/lib/components/DataTable/components/DataTablePagination.d.ts +12 -0
  295. package/dist/lib/components/DataTable/components/DataTablePagination.d.ts.map +1 -0
  296. package/dist/lib/components/DataTable/components/DataTableRowDensity.d.ts +11 -0
  297. package/dist/lib/components/DataTable/components/DataTableRowDensity.d.ts.map +1 -0
  298. package/dist/lib/components/DataTable/components/DataTableSearch.d.ts +14 -0
  299. package/dist/lib/components/DataTable/components/DataTableSearch.d.ts.map +1 -0
  300. package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts +14 -0
  301. package/dist/lib/components/DataTable/components/DataTableSelectionBar.d.ts.map +1 -0
  302. package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts +11 -0
  303. package/dist/lib/components/DataTable/components/DataTableViewOptions.d.ts.map +1 -0
  304. package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts +7 -0
  305. package/dist/lib/components/DataTable/components/DataTableViewTabs.d.ts.map +1 -0
  306. package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts +14 -0
  307. package/dist/lib/components/DataTable/components/DataTableViewsMenu.d.ts.map +1 -0
  308. package/dist/lib/components/DataTable/components/FilterWrapper.d.ts +21 -0
  309. package/dist/lib/components/DataTable/components/FilterWrapper.d.ts.map +1 -0
  310. package/dist/lib/components/DataTable/components/RowActions.d.ts +20 -0
  311. package/dist/lib/components/DataTable/components/RowActions.d.ts.map +1 -0
  312. package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts +3 -0
  313. package/dist/lib/components/DataTable/hooks/useAutoUpsert.d.ts.map +1 -0
  314. package/dist/lib/components/DataTable/hooks/useDataTable.d.ts +25 -0
  315. package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -0
  316. package/dist/lib/components/DataTable/index.d.ts +18 -0
  317. package/dist/lib/components/DataTable/index.d.ts.map +1 -0
  318. package/dist/lib/components/DataTable/store/store.d.ts +28 -0
  319. package/dist/lib/components/DataTable/store/store.d.ts.map +1 -0
  320. package/dist/lib/components/DataTable/store/useTableSlice.d.ts +18 -0
  321. package/dist/lib/components/DataTable/store/useTableSlice.d.ts.map +1 -0
  322. package/dist/lib/components/DataTable/types.d.ts +66 -0
  323. package/dist/lib/components/DataTable/types.d.ts.map +1 -0
  324. package/dist/lib/components/DataTable/utils.d.ts +10 -0
  325. package/dist/lib/components/DataTable/utils.d.ts.map +1 -0
  326. package/dist/lib/components/DatePicker/DatePicker.d.ts +1 -1
  327. package/dist/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
  328. package/dist/lib/components/Dialog/Dialog.d.ts +31 -0
  329. package/dist/lib/components/Dialog/Dialog.d.ts.map +1 -0
  330. package/dist/lib/components/Dialog/index.d.ts +3 -0
  331. package/dist/lib/components/Dialog/index.d.ts.map +1 -0
  332. package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts +1 -1
  333. package/dist/lib/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
  334. package/dist/lib/components/DropdownMenu/types.d.ts +10 -1
  335. package/dist/lib/components/DropdownMenu/types.d.ts.map +1 -1
  336. package/dist/lib/components/Editor/context/editor-config-context.d.ts +9 -0
  337. package/dist/lib/components/Editor/context/editor-config-context.d.ts.map +1 -0
  338. package/dist/lib/components/Editor/context/toolbar-context.d.ts +18 -0
  339. package/dist/lib/components/Editor/context/toolbar-context.d.ts.map +1 -0
  340. package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts +2 -0
  341. package/dist/lib/components/Editor/editor-hooks/use-debounce.d.ts.map +1 -0
  342. package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts +6 -0
  343. package/dist/lib/components/Editor/editor-hooks/use-modal.d.ts.map +1 -0
  344. package/dist/lib/components/Editor/editor-hooks/use-report.d.ts +2 -0
  345. package/dist/lib/components/Editor/editor-hooks/use-report.d.ts.map +1 -0
  346. package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts +3 -0
  347. package/dist/lib/components/Editor/editor-hooks/use-update-toolbar.d.ts.map +1 -0
  348. package/dist/lib/components/Editor/editor-ui/button-group.d.ts +12 -0
  349. package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -0
  350. package/dist/lib/components/Editor/editor-ui/button.d.ts +11 -0
  351. package/dist/lib/components/Editor/editor-ui/button.d.ts.map +1 -0
  352. package/dist/lib/components/Editor/editor-ui/code-button.d.ts +8 -0
  353. package/dist/lib/components/Editor/editor-ui/code-button.d.ts.map +1 -0
  354. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts +92 -0
  355. package/dist/lib/components/Editor/editor-ui/color-picker.d.ts.map +1 -0
  356. package/dist/lib/components/Editor/editor-ui/command.d.ts +19 -0
  357. package/dist/lib/components/Editor/editor-ui/command.d.ts.map +1 -0
  358. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts +9 -0
  359. package/dist/lib/components/Editor/editor-ui/content-editable.d.ts.map +1 -0
  360. package/dist/lib/components/Editor/editor-ui/dialog.d.ts +16 -0
  361. package/dist/lib/components/Editor/editor-ui/dialog.d.ts.map +1 -0
  362. package/dist/lib/components/Editor/editor-ui/image-component.d.ts +16 -0
  363. package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -0
  364. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts +18 -0
  365. package/dist/lib/components/Editor/editor-ui/image-resizer.d.ts.map +1 -0
  366. package/dist/lib/components/Editor/editor-ui/input.d.ts +4 -0
  367. package/dist/lib/components/Editor/editor-ui/input.d.ts.map +1 -0
  368. package/dist/lib/components/Editor/editor-ui/label.d.ts +5 -0
  369. package/dist/lib/components/Editor/editor-ui/label.d.ts.map +1 -0
  370. package/dist/lib/components/Editor/editor-ui/popover.d.ts +8 -0
  371. package/dist/lib/components/Editor/editor-ui/popover.d.ts.map +1 -0
  372. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts +6 -0
  373. package/dist/lib/components/Editor/editor-ui/scroll-area.d.ts.map +1 -0
  374. package/dist/lib/components/Editor/editor-ui/select.d.ts +16 -0
  375. package/dist/lib/components/Editor/editor-ui/select.d.ts.map +1 -0
  376. package/dist/lib/components/Editor/editor-ui/separator.d.ts +5 -0
  377. package/dist/lib/components/Editor/editor-ui/separator.d.ts.map +1 -0
  378. package/dist/lib/components/Editor/editor-ui/tabs.d.ts +8 -0
  379. package/dist/lib/components/Editor/editor-ui/tabs.d.ts.map +1 -0
  380. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts +8 -0
  381. package/dist/lib/components/Editor/editor-ui/toggle-group.d.ts.map +1 -0
  382. package/dist/lib/components/Editor/editor-ui/toggle.d.ts +10 -0
  383. package/dist/lib/components/Editor/editor-ui/toggle.d.ts.map +1 -0
  384. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts +8 -0
  385. package/dist/lib/components/Editor/editor-ui/tooltip.d.ts.map +1 -0
  386. package/dist/lib/components/Editor/index.d.ts +4 -0
  387. package/dist/lib/components/Editor/index.d.ts.map +1 -0
  388. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts +19 -0
  389. package/dist/lib/components/Editor/nodes/autocomplete-node.d.ts.map +1 -0
  390. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts +22 -0
  391. package/dist/lib/components/Editor/nodes/embeds/tweet-node.d.ts.map +1 -0
  392. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts +23 -0
  393. package/dist/lib/components/Editor/nodes/embeds/youtube-node.d.ts.map +1 -0
  394. package/dist/lib/components/Editor/nodes/emoji-node.d.ts +18 -0
  395. package/dist/lib/components/Editor/nodes/emoji-node.d.ts.map +1 -0
  396. package/dist/lib/components/Editor/nodes/image-node.d.ts +49 -0
  397. package/dist/lib/components/Editor/nodes/image-node.d.ts.map +1 -0
  398. package/dist/lib/components/Editor/nodes/keyword-node.d.ts +15 -0
  399. package/dist/lib/components/Editor/nodes/keyword-node.d.ts.map +1 -0
  400. package/dist/lib/components/Editor/nodes/layout-container-node.d.ts +23 -0
  401. package/dist/lib/components/Editor/nodes/layout-container-node.d.ts.map +1 -0
  402. package/dist/lib/components/Editor/nodes/layout-item-node.d.ts +15 -0
  403. package/dist/lib/components/Editor/nodes/layout-item-node.d.ts.map +1 -0
  404. package/dist/lib/components/Editor/nodes/mention-node.d.ts +21 -0
  405. package/dist/lib/components/Editor/nodes/mention-node.d.ts.map +1 -0
  406. package/dist/lib/components/Editor/nodes/nodes.d.ts +3 -0
  407. package/dist/lib/components/Editor/nodes/nodes.d.ts.map +1 -0
  408. package/dist/lib/components/Editor/nodes.d.ts +2 -0
  409. package/dist/lib/components/Editor/nodes.d.ts.map +1 -0
  410. package/dist/lib/components/Editor/plugins/actions/actions-plugin.d.ts +4 -0
  411. package/dist/lib/components/Editor/plugins/actions/actions-plugin.d.ts.map +1 -0
  412. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts +5 -0
  413. package/dist/lib/components/Editor/plugins/actions/character-limit-plugin.d.ts.map +1 -0
  414. package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts +2 -0
  415. package/dist/lib/components/Editor/plugins/actions/clear-editor-plugin.d.ts.map +1 -0
  416. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts +6 -0
  417. package/dist/lib/components/Editor/plugins/actions/counter-character-plugin.d.ts.map +1 -0
  418. package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts +2 -0
  419. package/dist/lib/components/Editor/plugins/actions/edit-mode-toggle-plugin.d.ts.map +1 -0
  420. package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts +2 -0
  421. package/dist/lib/components/Editor/plugins/actions/import-export-plugin.d.ts.map +1 -0
  422. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts +6 -0
  423. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -0
  424. package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts +4 -0
  425. package/dist/lib/components/Editor/plugins/actions/max-length-plugin.d.ts.map +1 -0
  426. package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts +2 -0
  427. package/dist/lib/components/Editor/plugins/actions/share-content-plugin.d.ts.map +1 -0
  428. package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts +7 -0
  429. package/dist/lib/components/Editor/plugins/actions/speech-to-text-plugin.d.ts.map +1 -0
  430. package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts +3 -0
  431. package/dist/lib/components/Editor/plugins/actions/tree-view-plugin.d.ts.map +1 -0
  432. package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts +3 -0
  433. package/dist/lib/components/Editor/plugins/auto-link-plugin.d.ts.map +1 -0
  434. package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts +11 -0
  435. package/dist/lib/components/Editor/plugins/autocomplete-plugin.d.ts.map +1 -0
  436. package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts +4 -0
  437. package/dist/lib/components/Editor/plugins/code-action-menu-plugin.d.ts.map +1 -0
  438. package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts +3 -0
  439. package/dist/lib/components/Editor/plugins/code-highlight-plugin.d.ts.map +1 -0
  440. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts +9 -0
  441. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -0
  442. package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts +3 -0
  443. package/dist/lib/components/Editor/plugins/context-menu-plugin.d.ts.map +1 -0
  444. package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts +2 -0
  445. package/dist/lib/components/Editor/plugins/drag-drop-paste-plugin.d.ts.map +1 -0
  446. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts +5 -0
  447. package/dist/lib/components/Editor/plugins/draggable-block-plugin.d.ts.map +1 -0
  448. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts +18 -0
  449. package/dist/lib/components/Editor/plugins/embeds/auto-embed-plugin.d.ts.map +1 -0
  450. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts +5 -0
  451. package/dist/lib/components/Editor/plugins/embeds/twitter-plugin.d.ts.map +1 -0
  452. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts +5 -0
  453. package/dist/lib/components/Editor/plugins/embeds/youtube-plugin.d.ts.map +1 -0
  454. package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts +2 -0
  455. package/dist/lib/components/Editor/plugins/emoji-picker-plugin.d.ts.map +1 -0
  456. package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts +3 -0
  457. package/dist/lib/components/Editor/plugins/emojis-plugin.d.ts.map +1 -0
  458. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts +7 -0
  459. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -0
  460. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts +7 -0
  461. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -0
  462. package/dist/lib/components/Editor/plugins/images-plugin.d.ts +25 -0
  463. package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -0
  464. package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts +3 -0
  465. package/dist/lib/components/Editor/plugins/keywords-plugin.d.ts.map +1 -0
  466. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts +13 -0
  467. package/dist/lib/components/Editor/plugins/layout-plugin.d.ts.map +1 -0
  468. package/dist/lib/components/Editor/plugins/link-plugin.d.ts +3 -0
  469. package/dist/lib/components/Editor/plugins/link-plugin.d.ts.map +1 -0
  470. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts +4 -0
  471. package/dist/lib/components/Editor/plugins/list-max-indent-level-plugin.d.ts.map +1 -0
  472. package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts +3 -0
  473. package/dist/lib/components/Editor/plugins/mentions-plugin.d.ts.map +1 -0
  474. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts +5 -0
  475. package/dist/lib/components/Editor/plugins/picker/alignment-picker-plugin.d.ts.map +1 -0
  476. package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts +3 -0
  477. package/dist/lib/components/Editor/plugins/picker/bulleted-list-picker-plugin.d.ts.map +1 -0
  478. package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts +3 -0
  479. package/dist/lib/components/Editor/plugins/picker/check-list-picker-plugin.d.ts.map +1 -0
  480. package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts +3 -0
  481. package/dist/lib/components/Editor/plugins/picker/code-picker-plugin.d.ts.map +1 -0
  482. package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts +3 -0
  483. package/dist/lib/components/Editor/plugins/picker/columns-layout-picker-plugin.d.ts.map +1 -0
  484. package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts +2 -0
  485. package/dist/lib/components/Editor/plugins/picker/component-picker-menu-plugin.d.ts.map +1 -0
  486. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts +17 -0
  487. package/dist/lib/components/Editor/plugins/picker/component-picker-option.d.ts.map +1 -0
  488. package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts +3 -0
  489. package/dist/lib/components/Editor/plugins/picker/divider-picker-plugin.d.ts.map +1 -0
  490. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts +5 -0
  491. package/dist/lib/components/Editor/plugins/picker/embeds-picker-plugin.d.ts.map +1 -0
  492. package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts +5 -0
  493. package/dist/lib/components/Editor/plugins/picker/heading-picker-plugin.d.ts.map +1 -0
  494. package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts +3 -0
  495. package/dist/lib/components/Editor/plugins/picker/image-picker-plugin.d.ts.map +1 -0
  496. package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts +3 -0
  497. package/dist/lib/components/Editor/plugins/picker/numbered-list-picker-plugin.d.ts.map +1 -0
  498. package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts +3 -0
  499. package/dist/lib/components/Editor/plugins/picker/paragraph-picker-plugin.d.ts.map +1 -0
  500. package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts +3 -0
  501. package/dist/lib/components/Editor/plugins/picker/quote-picker-plugin.d.ts.map +1 -0
  502. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts +6 -0
  503. package/dist/lib/components/Editor/plugins/picker/table-picker-plugin.d.ts.map +1 -0
  504. package/dist/lib/components/Editor/plugins/plugins.d.ts +2 -0
  505. package/dist/lib/components/Editor/plugins/plugins.d.ts.map +1 -0
  506. package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts +2 -0
  507. package/dist/lib/components/Editor/plugins/tab-focus-plugin.d.ts.map +1 -0
  508. package/dist/lib/components/Editor/plugins/table-plugin.d.ts +34 -0
  509. package/dist/lib/components/Editor/plugins/table-plugin.d.ts.map +1 -0
  510. package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts +5 -0
  511. package/dist/lib/components/Editor/plugins/toolbar/block-format/block-format-data.d.ts.map +1 -0
  512. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-bulleted-list.d.ts +2 -0
  513. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-bulleted-list.d.ts.map +1 -0
  514. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-check-list.d.ts +2 -0
  515. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-check-list.d.ts.map +1 -0
  516. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-code-block.d.ts +2 -0
  517. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-code-block.d.ts.map +1 -0
  518. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts +5 -0
  519. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-heading.d.ts.map +1 -0
  520. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-numbered-list.d.ts +2 -0
  521. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-numbered-list.d.ts.map +1 -0
  522. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-paragraph.d.ts +2 -0
  523. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-paragraph.d.ts.map +1 -0
  524. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-quote.d.ts +2 -0
  525. package/dist/lib/components/Editor/plugins/toolbar/block-format/format-quote.d.ts.map +1 -0
  526. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts +4 -0
  527. package/dist/lib/components/Editor/plugins/toolbar/block-format-toolbar-plugin.d.ts.map +1 -0
  528. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-columns-layout.d.ts +2 -0
  529. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-columns-layout.d.ts.map +1 -0
  530. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-embeds.d.ts +2 -0
  531. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-embeds.d.ts.map +1 -0
  532. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts +2 -0
  533. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-horizontal-rule.d.ts.map +1 -0
  534. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts +2 -0
  535. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-image.d.ts.map +1 -0
  536. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts +2 -0
  537. package/dist/lib/components/Editor/plugins/toolbar/block-insert/insert-table.d.ts.map +1 -0
  538. package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts +4 -0
  539. package/dist/lib/components/Editor/plugins/toolbar/block-insert-plugin.d.ts.map +1 -0
  540. package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts +2 -0
  541. package/dist/lib/components/Editor/plugins/toolbar/clear-formatting-toolbar-plugin.d.ts.map +1 -0
  542. package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts +2 -0
  543. package/dist/lib/components/Editor/plugins/toolbar/code-language-toolbar-plugin.d.ts.map +1 -0
  544. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts +4 -0
  545. package/dist/lib/components/Editor/plugins/toolbar/element-format-toolbar-plugin.d.ts.map +1 -0
  546. package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts +2 -0
  547. package/dist/lib/components/Editor/plugins/toolbar/font-background-toolbar-plugin.d.ts.map +1 -0
  548. package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts +2 -0
  549. package/dist/lib/components/Editor/plugins/toolbar/font-color-toolbar-plugin.d.ts.map +1 -0
  550. package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts +2 -0
  551. package/dist/lib/components/Editor/plugins/toolbar/font-family-toolbar-plugin.d.ts.map +1 -0
  552. package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts +2 -0
  553. package/dist/lib/components/Editor/plugins/toolbar/font-format-toolbar-plugin.d.ts.map +1 -0
  554. package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts +2 -0
  555. package/dist/lib/components/Editor/plugins/toolbar/font-size-toolbar-plugin.d.ts.map +1 -0
  556. package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts +2 -0
  557. package/dist/lib/components/Editor/plugins/toolbar/history-toolbar-plugin.d.ts.map +1 -0
  558. package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts +2 -0
  559. package/dist/lib/components/Editor/plugins/toolbar/horizontal-rule-toolbar-plugin.d.ts.map +1 -0
  560. package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts +2 -0
  561. package/dist/lib/components/Editor/plugins/toolbar/image-toolbar-plugin.d.ts.map +1 -0
  562. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts +4 -0
  563. package/dist/lib/components/Editor/plugins/toolbar/link-toolbar-plugin.d.ts.map +1 -0
  564. package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts +2 -0
  565. package/dist/lib/components/Editor/plugins/toolbar/subsuper-toolbar-plugin.d.ts.map +1 -0
  566. package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts +2 -0
  567. package/dist/lib/components/Editor/plugins/toolbar/table-toolbar-plugin.d.ts.map +1 -0
  568. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts +6 -0
  569. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -0
  570. package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts +4 -0
  571. package/dist/lib/components/Editor/plugins/typing-pref-plugin.d.ts.map +1 -0
  572. package/dist/lib/components/Editor/plugins.d.ts +2 -0
  573. package/dist/lib/components/Editor/plugins.d.ts.map +1 -0
  574. package/dist/lib/components/Editor/shared/can-use-dom.d.ts +2 -0
  575. package/dist/lib/components/Editor/shared/can-use-dom.d.ts.map +1 -0
  576. package/dist/lib/components/Editor/shared/caret-from-point.d.ts +5 -0
  577. package/dist/lib/components/Editor/shared/caret-from-point.d.ts.map +1 -0
  578. package/dist/lib/components/Editor/shared/environment.d.ts +18 -0
  579. package/dist/lib/components/Editor/shared/environment.d.ts.map +1 -0
  580. package/dist/lib/components/Editor/shared/invariant.d.ts +2 -0
  581. package/dist/lib/components/Editor/shared/invariant.d.ts.map +1 -0
  582. package/dist/lib/components/Editor/shared/normalize-class-names.d.ts +2 -0
  583. package/dist/lib/components/Editor/shared/normalize-class-names.d.ts.map +1 -0
  584. package/dist/lib/components/Editor/shared/react-patches.d.ts +2 -0
  585. package/dist/lib/components/Editor/shared/react-patches.d.ts.map +1 -0
  586. package/dist/lib/components/Editor/shared/react-test-utils.d.ts +3 -0
  587. package/dist/lib/components/Editor/shared/react-test-utils.d.ts.map +1 -0
  588. package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts +6 -0
  589. package/dist/lib/components/Editor/shared/simple-diff-with-cursor.d.ts.map +1 -0
  590. package/dist/lib/components/Editor/shared/use-layout-effect.d.ts +4 -0
  591. package/dist/lib/components/Editor/shared/use-layout-effect.d.ts.map +1 -0
  592. package/dist/lib/components/Editor/shared/warn-only-once.d.ts +2 -0
  593. package/dist/lib/components/Editor/shared/warn-only-once.d.ts.map +1 -0
  594. package/dist/lib/components/Editor/themes/editor-theme.d.ts +3 -0
  595. package/dist/lib/components/Editor/themes/editor-theme.d.ts.map +1 -0
  596. package/dist/lib/components/Editor/transformers/index.d.ts +16 -0
  597. package/dist/lib/components/Editor/transformers/index.d.ts.map +1 -0
  598. package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts +3 -0
  599. package/dist/lib/components/Editor/transformers/markdown-emoji-transformer.d.ts.map +1 -0
  600. package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts +3 -0
  601. package/dist/lib/components/Editor/transformers/markdown-hr-transformer.d.ts.map +1 -0
  602. package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts +3 -0
  603. package/dist/lib/components/Editor/transformers/markdown-image-transformer.d.ts.map +1 -0
  604. package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts +3 -0
  605. package/dist/lib/components/Editor/transformers/markdown-table-transformer.d.ts.map +1 -0
  606. package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts +3 -0
  607. package/dist/lib/components/Editor/transformers/markdown-tweet-transformer.d.ts.map +1 -0
  608. package/dist/lib/components/Editor/types.d.ts +23 -0
  609. package/dist/lib/components/Editor/types.d.ts.map +1 -0
  610. package/dist/lib/components/Editor/utils/can-use-dom.d.ts +2 -0
  611. package/dist/lib/components/Editor/utils/can-use-dom.d.ts.map +1 -0
  612. package/dist/lib/components/Editor/utils/collapsible.d.ts +3 -0
  613. package/dist/lib/components/Editor/utils/collapsible.d.ts.map +1 -0
  614. package/dist/lib/components/Editor/utils/doc-serialization.d.ts +4 -0
  615. package/dist/lib/components/Editor/utils/doc-serialization.d.ts.map +1 -0
  616. package/dist/lib/components/Editor/utils/emoji-list.d.ts +21 -0
  617. package/dist/lib/components/Editor/utils/emoji-list.d.ts.map +1 -0
  618. package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts +2 -0
  619. package/dist/lib/components/Editor/utils/get-dom-range-rect.d.ts.map +1 -0
  620. package/dist/lib/components/Editor/utils/get-selected-node.d.ts +3 -0
  621. package/dist/lib/components/Editor/utils/get-selected-node.d.ts.map +1 -0
  622. package/dist/lib/components/Editor/utils/guard.d.ts +2 -0
  623. package/dist/lib/components/Editor/utils/guard.d.ts.map +1 -0
  624. package/dist/lib/components/Editor/utils/is-mobile-width.d.ts +2 -0
  625. package/dist/lib/components/Editor/utils/is-mobile-width.d.ts.map +1 -0
  626. package/dist/lib/components/Editor/utils/set-floating-elem-position-for-link-editor.d.ts +2 -0
  627. package/dist/lib/components/Editor/utils/set-floating-elem-position-for-link-editor.d.ts.map +1 -0
  628. package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts +2 -0
  629. package/dist/lib/components/Editor/utils/set-floating-elem-position.d.ts.map +1 -0
  630. package/dist/lib/components/Editor/utils/swipe.d.ts +5 -0
  631. package/dist/lib/components/Editor/utils/swipe.d.ts.map +1 -0
  632. package/dist/lib/components/Editor/utils/url.d.ts +3 -0
  633. package/dist/lib/components/Editor/utils/url.d.ts.map +1 -0
  634. package/dist/lib/components/Empty/Empty.d.ts +12 -0
  635. package/dist/lib/components/Empty/Empty.d.ts.map +1 -0
  636. package/dist/lib/components/Empty/index.d.ts +3 -0
  637. package/dist/lib/components/Empty/index.d.ts.map +1 -0
  638. package/dist/lib/components/ErrorBoundary/ErrorBoundary.d.ts +7 -0
  639. package/dist/lib/components/ErrorBoundary/ErrorBoundary.d.ts.map +1 -0
  640. package/dist/lib/components/ErrorBoundary/ErrorPage.d.ts +38 -0
  641. package/dist/lib/components/ErrorBoundary/ErrorPage.d.ts.map +1 -0
  642. package/dist/lib/components/ErrorBoundary/index.d.ts +3 -0
  643. package/dist/lib/components/ErrorBoundary/index.d.ts.map +1 -0
  644. package/dist/lib/components/FilePreview/FilePreview.d.ts +8 -0
  645. package/dist/lib/components/FilePreview/FilePreview.d.ts.map +1 -0
  646. package/dist/lib/components/FilePreview/index.d.ts +2 -0
  647. package/dist/lib/components/FilePreview/index.d.ts.map +1 -0
  648. package/dist/lib/components/Form/Form.d.ts +6 -3
  649. package/dist/lib/components/Form/Form.d.ts.map +1 -1
  650. package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts +24 -0
  651. package/dist/lib/components/HierarchyGraph/HierarchyGraph.d.ts.map +1 -0
  652. package/dist/lib/components/HierarchyGraph/index.d.ts +5 -0
  653. package/dist/lib/components/HierarchyGraph/index.d.ts.map +1 -0
  654. package/dist/lib/components/PageHeader/PageHeader.d.ts +8 -0
  655. package/dist/lib/components/PageHeader/PageHeader.d.ts.map +1 -0
  656. package/dist/lib/components/PageHeader/PageHeaderSkeleton.d.ts +10 -0
  657. package/dist/lib/components/PageHeader/PageHeaderSkeleton.d.ts.map +1 -0
  658. package/dist/lib/components/PageHeader/index.d.ts +3 -0
  659. package/dist/lib/components/PageHeader/index.d.ts.map +1 -0
  660. package/dist/lib/components/PhoneField/PhoneField.d.ts +1 -0
  661. package/dist/lib/components/PhoneField/PhoneField.d.ts.map +1 -1
  662. package/dist/lib/components/RadioGroup/RadioGroup.d.ts +23 -0
  663. package/dist/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -0
  664. package/dist/lib/components/RadioGroup/index.d.ts +3 -0
  665. package/dist/lib/components/RadioGroup/index.d.ts.map +1 -0
  666. package/dist/lib/components/Select/Select.d.ts +21 -0
  667. package/dist/lib/components/Select/Select.d.ts.map +1 -0
  668. package/dist/lib/components/Select/SelectFilter.d.ts +20 -0
  669. package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -0
  670. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts +27 -0
  671. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -0
  672. package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts +28 -0
  673. package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -0
  674. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +41 -0
  675. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -0
  676. package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts +28 -0
  677. package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts.map +1 -0
  678. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +33 -0
  679. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -0
  680. package/dist/lib/components/Select/hooks/useSelect.d.ts +25 -0
  681. package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -0
  682. package/dist/lib/components/Select/hooks/useSingleSelect.d.ts +31 -0
  683. package/dist/lib/components/Select/hooks/useSingleSelect.d.ts.map +1 -0
  684. package/dist/lib/components/Select/index.d.ts +40 -0
  685. package/dist/lib/components/Select/index.d.ts.map +1 -0
  686. package/dist/lib/components/Select/types.d.ts +38 -0
  687. package/dist/lib/components/Select/types.d.ts.map +1 -0
  688. package/dist/lib/components/Sidebar/Sidebar.d.ts +24 -0
  689. package/dist/lib/components/Sidebar/Sidebar.d.ts.map +1 -0
  690. package/dist/lib/components/Sidebar/index.d.ts +2 -0
  691. package/dist/lib/components/Sidebar/index.d.ts.map +1 -0
  692. package/dist/lib/components/Sortable/Sortable.d.ts +39 -0
  693. package/dist/lib/components/Sortable/Sortable.d.ts.map +1 -0
  694. package/dist/lib/components/Sortable/index.d.ts +3 -0
  695. package/dist/lib/components/Sortable/index.d.ts.map +1 -0
  696. package/dist/lib/components/StepProgressIndicator/StepProgressIndicator.d.ts +12 -0
  697. package/dist/lib/components/StepProgressIndicator/StepProgressIndicator.d.ts.map +1 -0
  698. package/dist/lib/components/StepProgressIndicator/index.d.ts +3 -0
  699. package/dist/lib/components/StepProgressIndicator/index.d.ts.map +1 -0
  700. package/dist/lib/components/Switch/Switch.d.ts.map +1 -1
  701. package/dist/lib/components/Tabs/Tabs.d.ts +27 -0
  702. package/dist/lib/components/Tabs/Tabs.d.ts.map +1 -0
  703. package/dist/lib/components/Tabs/TabsSkeleton.d.ts +11 -0
  704. package/dist/lib/components/Tabs/TabsSkeleton.d.ts.map +1 -0
  705. package/dist/lib/components/Tabs/index.d.ts +3 -0
  706. package/dist/lib/components/Tabs/index.d.ts.map +1 -0
  707. package/dist/lib/components/TextArea/TextArea.d.ts.map +1 -1
  708. package/dist/lib/components/TextField/TextField.d.ts.map +1 -1
  709. package/dist/lib/components/UploadFile/UploadFile.d.ts +26 -0
  710. package/dist/lib/components/UploadFile/UploadFile.d.ts.map +1 -0
  711. package/dist/lib/components/UploadFile/index.d.ts +2 -0
  712. package/dist/lib/components/UploadFile/index.d.ts.map +1 -0
  713. package/dist/lib/components/ValueFilter/ValueFilter.d.ts +11 -0
  714. package/dist/lib/components/ValueFilter/ValueFilter.d.ts.map +1 -0
  715. package/dist/lib/components/ValueFilter/index.d.ts +3 -0
  716. package/dist/lib/components/ValueFilter/index.d.ts.map +1 -0
  717. package/dist/lib/components/ViewTabs/ViewTabs.d.ts +23 -0
  718. package/dist/lib/components/ViewTabs/ViewTabs.d.ts.map +1 -0
  719. package/dist/lib/components/ViewTabs/index.d.ts +3 -0
  720. package/dist/lib/components/ViewTabs/index.d.ts.map +1 -0
  721. package/dist/lib/components/index.d.ts +21 -1
  722. package/dist/lib/components/index.d.ts.map +1 -1
  723. package/dist/lib/config/index.d.ts +6 -0
  724. package/dist/lib/config/index.d.ts.map +1 -1
  725. package/dist/lib/context/ConfirmContext.d.ts +21 -0
  726. package/dist/lib/context/ConfirmContext.d.ts.map +1 -0
  727. package/dist/lib/context/ThemeContext.d.ts +1 -1
  728. package/dist/lib/context/ThemeContext.d.ts.map +1 -1
  729. package/dist/lib/context/index.d.ts +2 -1
  730. package/dist/lib/context/index.d.ts.map +1 -1
  731. package/dist/lib/hooks/index.d.ts +7 -1
  732. package/dist/lib/hooks/index.d.ts.map +1 -1
  733. package/dist/lib/hooks/useConfirm.d.ts +4 -0
  734. package/dist/lib/hooks/useConfirm.d.ts.map +1 -0
  735. package/dist/lib/hooks/useDialog.d.ts +11 -0
  736. package/dist/lib/hooks/useDialog.d.ts.map +1 -0
  737. package/dist/lib/hooks/useIsMobile.d.ts +2 -0
  738. package/dist/lib/hooks/useIsMobile.d.ts.map +1 -0
  739. package/dist/lib/hooks/useSSE.d.ts +21 -0
  740. package/dist/lib/hooks/useSSE.d.ts.map +1 -0
  741. package/dist/lib/hooks/useSlugParams.d.ts +12 -0
  742. package/dist/lib/hooks/useSlugParams.d.ts.map +1 -0
  743. package/dist/lib/hooks/useTimer.d.ts +6 -0
  744. package/dist/lib/hooks/useTimer.d.ts.map +1 -0
  745. package/dist/lib/index.d.ts +3 -2
  746. package/dist/lib/index.d.ts.map +1 -1
  747. package/dist/lib/selects/app/AppFilter.d.ts +11 -0
  748. package/dist/lib/selects/app/AppFilter.d.ts.map +1 -0
  749. package/dist/lib/selects/app/AppSelector.d.ts +4 -0
  750. package/dist/lib/selects/app/AppSelector.d.ts.map +1 -0
  751. package/dist/lib/selects/app/index.d.ts +3 -0
  752. package/dist/lib/selects/app/index.d.ts.map +1 -0
  753. package/dist/lib/selects/app-code/AppCodeFilter.d.ts +11 -0
  754. package/dist/lib/selects/app-code/AppCodeFilter.d.ts.map +1 -0
  755. package/dist/lib/selects/app-code/AppCodeSelector.d.ts +4 -0
  756. package/dist/lib/selects/app-code/AppCodeSelector.d.ts.map +1 -0
  757. package/dist/lib/selects/app-code/index.d.ts +3 -0
  758. package/dist/lib/selects/app-code/index.d.ts.map +1 -0
  759. package/dist/lib/selects/cloud-provider/CloudProviderFilter.d.ts +11 -0
  760. package/dist/lib/selects/cloud-provider/CloudProviderFilter.d.ts.map +1 -0
  761. package/dist/lib/selects/cloud-provider/CloudProviderSelector.d.ts +4 -0
  762. package/dist/lib/selects/cloud-provider/CloudProviderSelector.d.ts.map +1 -0
  763. package/dist/lib/selects/cloud-provider/index.d.ts +3 -0
  764. package/dist/lib/selects/cloud-provider/index.d.ts.map +1 -0
  765. package/dist/lib/selects/currency/CurrencyFilter.d.ts +11 -0
  766. package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -0
  767. package/dist/lib/selects/currency/CurrencySelector.d.ts +4 -0
  768. package/dist/lib/selects/currency/CurrencySelector.d.ts.map +1 -0
  769. package/dist/lib/selects/currency/currencies.d.ts +3 -0
  770. package/dist/lib/selects/currency/currencies.d.ts.map +1 -0
  771. package/dist/lib/selects/currency/index.d.ts +3 -0
  772. package/dist/lib/selects/currency/index.d.ts.map +1 -0
  773. package/dist/lib/selects/deployment/DeploymentFilter.d.ts +11 -0
  774. package/dist/lib/selects/deployment/DeploymentFilter.d.ts.map +1 -0
  775. package/dist/lib/selects/deployment/DeploymentSelector.d.ts +4 -0
  776. package/dist/lib/selects/deployment/DeploymentSelector.d.ts.map +1 -0
  777. package/dist/lib/selects/deployment/index.d.ts +3 -0
  778. package/dist/lib/selects/deployment/index.d.ts.map +1 -0
  779. package/dist/lib/selects/feature/FeatureFilter.d.ts +11 -0
  780. package/dist/lib/selects/feature/FeatureFilter.d.ts.map +1 -0
  781. package/dist/lib/selects/feature/FeatureSelector.d.ts +4 -0
  782. package/dist/lib/selects/feature/FeatureSelector.d.ts.map +1 -0
  783. package/dist/lib/selects/feature/index.d.ts +3 -0
  784. package/dist/lib/selects/feature/index.d.ts.map +1 -0
  785. package/dist/lib/selects/index.d.ts +12 -0
  786. package/dist/lib/selects/index.d.ts.map +1 -0
  787. package/dist/lib/selects/industry/IndustryFilter.d.ts +11 -0
  788. package/dist/lib/selects/industry/IndustryFilter.d.ts.map +1 -0
  789. package/dist/lib/selects/industry/IndustrySelector.d.ts +4 -0
  790. package/dist/lib/selects/industry/IndustrySelector.d.ts.map +1 -0
  791. package/dist/lib/selects/industry/index.d.ts +3 -0
  792. package/dist/lib/selects/industry/index.d.ts.map +1 -0
  793. package/dist/lib/selects/locale/LocaleFilter.d.ts +11 -0
  794. package/dist/lib/selects/locale/LocaleFilter.d.ts.map +1 -0
  795. package/dist/lib/selects/locale/LocaleSelector.d.ts +4 -0
  796. package/dist/lib/selects/locale/LocaleSelector.d.ts.map +1 -0
  797. package/dist/lib/selects/locale/index.d.ts +3 -0
  798. package/dist/lib/selects/locale/index.d.ts.map +1 -0
  799. package/dist/lib/selects/locale/locales.d.ts +3 -0
  800. package/dist/lib/selects/locale/locales.d.ts.map +1 -0
  801. package/dist/lib/selects/microfrontend/MicrofrontendSelector.d.ts +4 -0
  802. package/dist/lib/selects/microfrontend/MicrofrontendSelector.d.ts.map +1 -0
  803. package/dist/lib/selects/microfrontend/index.d.ts +2 -0
  804. package/dist/lib/selects/microfrontend/index.d.ts.map +1 -0
  805. package/dist/lib/selects/plan/PlanFilter.d.ts +11 -0
  806. package/dist/lib/selects/plan/PlanFilter.d.ts.map +1 -0
  807. package/dist/lib/selects/plan/PlanSelector.d.ts +4 -0
  808. package/dist/lib/selects/plan/PlanSelector.d.ts.map +1 -0
  809. package/dist/lib/selects/plan/index.d.ts +3 -0
  810. package/dist/lib/selects/plan/index.d.ts.map +1 -0
  811. package/dist/lib/selects/region/RegionFilter.d.ts +11 -0
  812. package/dist/lib/selects/region/RegionFilter.d.ts.map +1 -0
  813. package/dist/lib/selects/region/RegionSelector.d.ts +4 -0
  814. package/dist/lib/selects/region/RegionSelector.d.ts.map +1 -0
  815. package/dist/lib/selects/region/index.d.ts +3 -0
  816. package/dist/lib/selects/region/index.d.ts.map +1 -0
  817. package/dist/lib/selects/timezone/TimezoneFilter.d.ts +11 -0
  818. package/dist/lib/selects/timezone/TimezoneFilter.d.ts.map +1 -0
  819. package/dist/lib/selects/timezone/TimezoneSelector.d.ts +4 -0
  820. package/dist/lib/selects/timezone/TimezoneSelector.d.ts.map +1 -0
  821. package/dist/lib/selects/timezone/index.d.ts +3 -0
  822. package/dist/lib/selects/timezone/index.d.ts.map +1 -0
  823. package/dist/lib/selects/timezone/timezones.d.ts +3 -0
  824. package/dist/lib/selects/timezone/timezones.d.ts.map +1 -0
  825. package/dist/lib/services/table-views.service.d.ts +25 -0
  826. package/dist/lib/services/table-views.service.d.ts.map +1 -0
  827. package/dist/lib/types/api-response.d.ts +21 -0
  828. package/dist/lib/types/api-response.d.ts.map +1 -0
  829. package/dist/lib/types/table-filter.d.ts +41 -0
  830. package/dist/lib/types/table-filter.d.ts.map +1 -0
  831. package/dist/lib/utils/axios.d.ts.map +1 -1
  832. package/dist/lib/utils/index.d.ts +1 -0
  833. package/dist/lib/utils/index.d.ts.map +1 -1
  834. package/dist/lib/utils/motion.d.ts +2 -0
  835. package/dist/lib/utils/motion.d.ts.map +1 -0
  836. package/dist/lib/utils/slug.d.ts +7 -0
  837. package/dist/lib/utils/slug.d.ts.map +1 -0
  838. package/dist/plus.js +18 -0
  839. package/dist/plus.js.map +1 -0
  840. package/dist/popover.js +33 -0
  841. package/dist/popover.js.map +1 -0
  842. package/dist/proxy.js +11392 -0
  843. package/dist/proxy.js.map +1 -0
  844. package/dist/react-error-boundary.js +67 -0
  845. package/dist/react-error-boundary.js.map +1 -0
  846. package/dist/select2.js +116 -0
  847. package/dist/select2.js.map +1 -0
  848. package/dist/selects/app-code.js +37 -0
  849. package/dist/selects/app-code.js.map +1 -0
  850. package/dist/selects/app.js +2 -0
  851. package/dist/selects/app.js.map +1 -0
  852. package/dist/selects/cloud-provider.js +2 -0
  853. package/dist/selects/cloud-provider.js.map +1 -0
  854. package/dist/selects/currency.js +2 -0
  855. package/dist/selects/currency.js.map +1 -0
  856. package/dist/selects/deployment.js +2 -0
  857. package/dist/selects/deployment.js.map +1 -0
  858. package/dist/selects/feature.js +2 -0
  859. package/dist/selects/feature.js.map +1 -0
  860. package/dist/selects/industry.js +2 -0
  861. package/dist/selects/industry.js.map +1 -0
  862. package/dist/selects/locale.js +2 -0
  863. package/dist/selects/locale.js.map +1 -0
  864. package/dist/selects/microfrontend.js +2 -0
  865. package/dist/selects/microfrontend.js.map +1 -0
  866. package/dist/selects/plan.js +2 -0
  867. package/dist/selects/plan.js.map +1 -0
  868. package/dist/selects/region.js +2 -0
  869. package/dist/selects/region.js.map +1 -0
  870. package/dist/selects/timezone.js +2 -0
  871. package/dist/selects/timezone.js.map +1 -0
  872. package/dist/separator2.js +1 -27
  873. package/dist/separator2.js.map +1 -1
  874. package/dist/shadcn/index.d.ts +2 -0
  875. package/dist/shadcn/index.d.ts.map +1 -1
  876. package/dist/shadcn/shadcnAlert/alert.d.ts.map +1 -1
  877. package/dist/shadcn/shadcnAlert/index.d.ts +1 -1
  878. package/dist/shadcn/shadcnAlert/index.d.ts.map +1 -1
  879. package/dist/shadcn/shadcnBadge/Badge.d.ts +1 -1
  880. package/dist/shadcn/shadcnBreadcrumb/breadcrumb.d.ts +18 -0
  881. package/dist/shadcn/shadcnBreadcrumb/breadcrumb.d.ts.map +1 -0
  882. package/dist/shadcn/shadcnBreadcrumb/index.d.ts +2 -0
  883. package/dist/shadcn/shadcnBreadcrumb/index.d.ts.map +1 -0
  884. package/dist/shadcn/shadcnButton/Button.d.ts +2 -2
  885. package/dist/shadcn/shadcnButton/Button.d.ts.map +1 -1
  886. package/dist/shadcn/shadcnCalendar/calendar.d.ts +1 -1
  887. package/dist/shadcn/shadcnCalendar/calendar.d.ts.map +1 -1
  888. package/dist/shadcn/shadcnChart/Chart.d.ts +2 -2
  889. package/dist/shadcn/shadcnChart/Chart.d.ts.map +1 -1
  890. package/dist/shadcn/shadcnCollapsible/collapsible.d.ts +7 -0
  891. package/dist/shadcn/shadcnCollapsible/collapsible.d.ts.map +1 -0
  892. package/dist/shadcn/shadcnCollapsible/index.d.ts +2 -0
  893. package/dist/shadcn/shadcnCollapsible/index.d.ts.map +1 -0
  894. package/dist/shadcn/shadcnDialog/dialog.d.ts +20 -0
  895. package/dist/shadcn/shadcnDialog/dialog.d.ts.map +1 -0
  896. package/dist/shadcn/shadcnDialog/index.d.ts +2 -0
  897. package/dist/shadcn/shadcnDialog/index.d.ts.map +1 -0
  898. package/dist/shadcn/shadcnDropdownMenu/dropdown-menu.d.ts +1 -1
  899. package/dist/shadcn/shadcnDropdownMenu/dropdown-menu.d.ts.map +1 -1
  900. package/dist/shadcn/shadcnForm/form.d.ts +1 -1
  901. package/dist/shadcn/shadcnForm/form.d.ts.map +1 -1
  902. package/dist/shadcn/shadcnInputOTP/InputOTP.d.ts +3 -3
  903. package/dist/shadcn/shadcnInputOTP/InputOTP.d.ts.map +1 -1
  904. package/dist/shadcn/shadcnMultiSelect/index.d.ts +3 -0
  905. package/dist/shadcn/shadcnMultiSelect/index.d.ts.map +1 -0
  906. package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts +61 -0
  907. package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -0
  908. package/dist/shadcn/shadcnProgress/Progress.d.ts +1 -1
  909. package/dist/shadcn/shadcnProgress/Progress.d.ts.map +1 -1
  910. package/dist/shadcn/shadcnRadioGroup/RadioGroup.d.ts +6 -0
  911. package/dist/shadcn/shadcnRadioGroup/RadioGroup.d.ts.map +1 -0
  912. package/dist/shadcn/shadcnRadioGroup/index.d.ts +2 -0
  913. package/dist/shadcn/shadcnRadioGroup/index.d.ts.map +1 -0
  914. package/dist/shadcn/shadcnSheet/sheet.d.ts +1 -1
  915. package/dist/shadcn/shadcnSheet/sheet.d.ts.map +1 -1
  916. package/dist/shadcn/shadcnSidebar/index.d.ts +2 -0
  917. package/dist/shadcn/shadcnSidebar/index.d.ts.map +1 -0
  918. package/dist/shadcn/shadcnSidebar/sidebar.d.ts +86 -0
  919. package/dist/shadcn/shadcnSidebar/sidebar.d.ts.map +1 -0
  920. package/dist/shadcn/shadcnSingleSelect/index.d.ts +3 -0
  921. package/dist/shadcn/shadcnSingleSelect/index.d.ts.map +1 -0
  922. package/dist/shadcn/shadcnSingleSelect/single-select.d.ts +61 -0
  923. package/dist/shadcn/shadcnSingleSelect/single-select.d.ts.map +1 -0
  924. package/dist/shadcn/shadcnSonner/sonner.d.ts +1 -1
  925. package/dist/shadcn/shadcnSonner/sonner.d.ts.map +1 -1
  926. package/dist/shadcn/shadcnSwitch/Switch.d.ts.map +1 -1
  927. package/dist/shadcn/shadcnTable/table.d.ts +1 -1
  928. package/dist/shadcn/shadcnTable/table.d.ts.map +1 -1
  929. package/dist/shadcn/shadcnTabs/index.d.ts +2 -0
  930. package/dist/shadcn/shadcnTabs/index.d.ts.map +1 -0
  931. package/dist/shadcn/shadcnTabs/tabs.d.ts +8 -0
  932. package/dist/shadcn/shadcnTabs/tabs.d.ts.map +1 -0
  933. package/dist/shadcn/shadcnTooltip/tooltip.d.ts +1 -1
  934. package/dist/shadcn/shadcnTooltip/tooltip.d.ts.map +1 -1
  935. package/dist/share-2.js +42 -0
  936. package/dist/share-2.js.map +1 -0
  937. package/dist/text-align-justify.js +34 -0
  938. package/dist/text-align-justify.js.map +1 -0
  939. package/dist/trash-2.js +55 -0
  940. package/dist/trash-2.js.map +1 -0
  941. package/dist/types/api-response.js +2 -0
  942. package/dist/types/api-response.js.map +1 -0
  943. package/dist/types/table-filter.js +17 -0
  944. package/dist/types/table-filter.js.map +1 -0
  945. package/dist/upload.js +19 -0
  946. package/dist/upload.js.map +1 -0
  947. package/dist/useConfirm.js +37 -0
  948. package/dist/useConfirm.js.map +1 -0
  949. package/dist/useDataTable.js +26545 -0
  950. package/dist/useDataTable.js.map +1 -0
  951. package/dist/useIsMobile.js +19 -0
  952. package/dist/useIsMobile.js.map +1 -0
  953. package/dist/useTheme.js.map +1 -1
  954. package/dist/useTimer.js +112 -0
  955. package/dist/useTimer.js.map +1 -0
  956. package/dist/utils/axios.js +1 -1
  957. package/dist/utils/motion.js +4425 -0
  958. package/dist/utils/motion.js.map +1 -0
  959. package/dist/utils/slug.js +15 -0
  960. package/dist/utils/slug.js.map +1 -0
  961. package/dist/utils.js +204 -39
  962. package/dist/utils.js.map +1 -1
  963. package/dist/value.js +820 -0
  964. package/dist/value.js.map +1 -0
  965. package/dist/x.js +18 -0
  966. package/dist/x.js.map +1 -0
  967. package/package.json +196 -7
  968. package/dist/SelectField.js +0 -1351
  969. package/dist/SelectField.js.map +0 -1
  970. package/dist/chevron-down.js.map +0 -1
  971. package/dist/components/SelectField.js +0 -2
  972. package/dist/components/SelectField.js.map +0 -1
  973. package/dist/lib/components/SelectField/SelectField.d.ts +0 -24
  974. package/dist/lib/components/SelectField/SelectField.d.ts.map +0 -1
  975. package/dist/lib/components/SelectField/index.d.ts +0 -3
  976. package/dist/lib/components/SelectField/index.d.ts.map +0 -1
package/dist/Sonner.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import React__default, { useEffect } from 'react';
3
- import ReactDOM__default from 'react-dom';
2
+ import { useEffect } from 'react';
3
+ import { T as Toaster$2, t as toast } from './index17.js';
4
4
  import { T as TOAST_EVENT } from './toast.js';
5
+ import { u as useTheme } from './useTheme.js';
5
6
  import { L as LoaderCircle } from './loader-circle.js';
6
7
  import { I as Info, T as TriangleAlert } from './triangle-alert.js';
7
8
  import { c as createLucideIcon } from './createLucideIcon.js';
@@ -22,1142 +23,12 @@ const __iconNode = [
22
23
  ];
23
24
  const CircleX = createLucideIcon("circle-x", __iconNode);
24
25
 
25
- function __insertCSS(code) {
26
- if (typeof document == 'undefined') return
27
- let head = document.head || document.getElementsByTagName('head')[0];
28
- let style = document.createElement('style');
29
- style.type = 'text/css';
30
- head.appendChild(style)
31
- ;style.styleSheet ? (style.styleSheet.cssText = code) : style.appendChild(document.createTextNode(code));
32
- }
33
-
34
- const getAsset = (type)=>{
35
- switch(type){
36
- case 'success':
37
- return SuccessIcon;
38
- case 'info':
39
- return InfoIcon;
40
- case 'warning':
41
- return WarningIcon;
42
- case 'error':
43
- return ErrorIcon;
44
- default:
45
- return null;
46
- }
47
- };
48
- const bars = Array(12).fill(0);
49
- const Loader = ({ visible, className })=>{
50
- return /*#__PURE__*/ React__default.createElement("div", {
51
- className: [
52
- 'sonner-loading-wrapper',
53
- className
54
- ].filter(Boolean).join(' '),
55
- "data-visible": visible
56
- }, /*#__PURE__*/ React__default.createElement("div", {
57
- className: "sonner-spinner"
58
- }, bars.map((_, i)=>/*#__PURE__*/ React__default.createElement("div", {
59
- className: "sonner-loading-bar",
60
- key: `spinner-bar-${i}`
61
- }))));
62
- };
63
- const SuccessIcon = /*#__PURE__*/ React__default.createElement("svg", {
64
- xmlns: "http://www.w3.org/2000/svg",
65
- viewBox: "0 0 20 20",
66
- fill: "currentColor",
67
- height: "20",
68
- width: "20"
69
- }, /*#__PURE__*/ React__default.createElement("path", {
70
- fillRule: "evenodd",
71
- d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
72
- clipRule: "evenodd"
73
- }));
74
- const WarningIcon = /*#__PURE__*/ React__default.createElement("svg", {
75
- xmlns: "http://www.w3.org/2000/svg",
76
- viewBox: "0 0 24 24",
77
- fill: "currentColor",
78
- height: "20",
79
- width: "20"
80
- }, /*#__PURE__*/ React__default.createElement("path", {
81
- fillRule: "evenodd",
82
- d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
83
- clipRule: "evenodd"
84
- }));
85
- const InfoIcon = /*#__PURE__*/ React__default.createElement("svg", {
86
- xmlns: "http://www.w3.org/2000/svg",
87
- viewBox: "0 0 20 20",
88
- fill: "currentColor",
89
- height: "20",
90
- width: "20"
91
- }, /*#__PURE__*/ React__default.createElement("path", {
92
- fillRule: "evenodd",
93
- d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
94
- clipRule: "evenodd"
95
- }));
96
- const ErrorIcon = /*#__PURE__*/ React__default.createElement("svg", {
97
- xmlns: "http://www.w3.org/2000/svg",
98
- viewBox: "0 0 20 20",
99
- fill: "currentColor",
100
- height: "20",
101
- width: "20"
102
- }, /*#__PURE__*/ React__default.createElement("path", {
103
- fillRule: "evenodd",
104
- d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
105
- clipRule: "evenodd"
106
- }));
107
- const CloseIcon = /*#__PURE__*/ React__default.createElement("svg", {
108
- xmlns: "http://www.w3.org/2000/svg",
109
- width: "12",
110
- height: "12",
111
- viewBox: "0 0 24 24",
112
- fill: "none",
113
- stroke: "currentColor",
114
- strokeWidth: "1.5",
115
- strokeLinecap: "round",
116
- strokeLinejoin: "round"
117
- }, /*#__PURE__*/ React__default.createElement("line", {
118
- x1: "18",
119
- y1: "6",
120
- x2: "6",
121
- y2: "18"
122
- }), /*#__PURE__*/ React__default.createElement("line", {
123
- x1: "6",
124
- y1: "6",
125
- x2: "18",
126
- y2: "18"
127
- }));
128
-
129
- const useIsDocumentHidden = ()=>{
130
- const [isDocumentHidden, setIsDocumentHidden] = React__default.useState(document.hidden);
131
- React__default.useEffect(()=>{
132
- const callback = ()=>{
133
- setIsDocumentHidden(document.hidden);
134
- };
135
- document.addEventListener('visibilitychange', callback);
136
- return ()=>window.removeEventListener('visibilitychange', callback);
137
- }, []);
138
- return isDocumentHidden;
139
- };
140
-
141
- let toastsCounter = 1;
142
- class Observer {
143
- constructor(){
144
- // We use arrow functions to maintain the correct `this` reference
145
- this.subscribe = (subscriber)=>{
146
- this.subscribers.push(subscriber);
147
- return ()=>{
148
- const index = this.subscribers.indexOf(subscriber);
149
- this.subscribers.splice(index, 1);
150
- };
151
- };
152
- this.publish = (data)=>{
153
- this.subscribers.forEach((subscriber)=>subscriber(data));
154
- };
155
- this.addToast = (data)=>{
156
- this.publish(data);
157
- this.toasts = [
158
- ...this.toasts,
159
- data
160
- ];
161
- };
162
- this.create = (data)=>{
163
- var _data_id;
164
- const { message, ...rest } = data;
165
- const id = typeof (data == null ? void 0 : data.id) === 'number' || ((_data_id = data.id) == null ? void 0 : _data_id.length) > 0 ? data.id : toastsCounter++;
166
- const alreadyExists = this.toasts.find((toast)=>{
167
- return toast.id === id;
168
- });
169
- const dismissible = data.dismissible === undefined ? true : data.dismissible;
170
- if (this.dismissedToasts.has(id)) {
171
- this.dismissedToasts.delete(id);
172
- }
173
- if (alreadyExists) {
174
- this.toasts = this.toasts.map((toast)=>{
175
- if (toast.id === id) {
176
- this.publish({
177
- ...toast,
178
- ...data,
179
- id,
180
- title: message
181
- });
182
- return {
183
- ...toast,
184
- ...data,
185
- id,
186
- dismissible,
187
- title: message
188
- };
189
- }
190
- return toast;
191
- });
192
- } else {
193
- this.addToast({
194
- title: message,
195
- ...rest,
196
- dismissible,
197
- id
198
- });
199
- }
200
- return id;
201
- };
202
- this.dismiss = (id)=>{
203
- if (id) {
204
- this.dismissedToasts.add(id);
205
- requestAnimationFrame(()=>this.subscribers.forEach((subscriber)=>subscriber({
206
- id,
207
- dismiss: true
208
- })));
209
- } else {
210
- this.toasts.forEach((toast)=>{
211
- this.subscribers.forEach((subscriber)=>subscriber({
212
- id: toast.id,
213
- dismiss: true
214
- }));
215
- });
216
- }
217
- return id;
218
- };
219
- this.message = (message, data)=>{
220
- return this.create({
221
- ...data,
222
- message
223
- });
224
- };
225
- this.error = (message, data)=>{
226
- return this.create({
227
- ...data,
228
- message,
229
- type: 'error'
230
- });
231
- };
232
- this.success = (message, data)=>{
233
- return this.create({
234
- ...data,
235
- type: 'success',
236
- message
237
- });
238
- };
239
- this.info = (message, data)=>{
240
- return this.create({
241
- ...data,
242
- type: 'info',
243
- message
244
- });
245
- };
246
- this.warning = (message, data)=>{
247
- return this.create({
248
- ...data,
249
- type: 'warning',
250
- message
251
- });
252
- };
253
- this.loading = (message, data)=>{
254
- return this.create({
255
- ...data,
256
- type: 'loading',
257
- message
258
- });
259
- };
260
- this.promise = (promise, data)=>{
261
- if (!data) {
262
- // Nothing to show
263
- return;
264
- }
265
- let id = undefined;
266
- if (data.loading !== undefined) {
267
- id = this.create({
268
- ...data,
269
- promise,
270
- type: 'loading',
271
- message: data.loading,
272
- description: typeof data.description !== 'function' ? data.description : undefined
273
- });
274
- }
275
- const p = Promise.resolve(promise instanceof Function ? promise() : promise);
276
- let shouldDismiss = id !== undefined;
277
- let result;
278
- const originalPromise = p.then(async (response)=>{
279
- result = [
280
- 'resolve',
281
- response
282
- ];
283
- const isReactElementResponse = React__default.isValidElement(response);
284
- if (isReactElementResponse) {
285
- shouldDismiss = false;
286
- this.create({
287
- id,
288
- type: 'default',
289
- message: response
290
- });
291
- } else if (isHttpResponse(response) && !response.ok) {
292
- shouldDismiss = false;
293
- const promiseData = typeof data.error === 'function' ? await data.error(`HTTP error! status: ${response.status}`) : data.error;
294
- const description = typeof data.description === 'function' ? await data.description(`HTTP error! status: ${response.status}`) : data.description;
295
- const isExtendedResult = typeof promiseData === 'object' && !React__default.isValidElement(promiseData);
296
- const toastSettings = isExtendedResult ? promiseData : {
297
- message: promiseData
298
- };
299
- this.create({
300
- id,
301
- type: 'error',
302
- description,
303
- ...toastSettings
304
- });
305
- } else if (response instanceof Error) {
306
- shouldDismiss = false;
307
- const promiseData = typeof data.error === 'function' ? await data.error(response) : data.error;
308
- const description = typeof data.description === 'function' ? await data.description(response) : data.description;
309
- const isExtendedResult = typeof promiseData === 'object' && !React__default.isValidElement(promiseData);
310
- const toastSettings = isExtendedResult ? promiseData : {
311
- message: promiseData
312
- };
313
- this.create({
314
- id,
315
- type: 'error',
316
- description,
317
- ...toastSettings
318
- });
319
- } else if (data.success !== undefined) {
320
- shouldDismiss = false;
321
- const promiseData = typeof data.success === 'function' ? await data.success(response) : data.success;
322
- const description = typeof data.description === 'function' ? await data.description(response) : data.description;
323
- const isExtendedResult = typeof promiseData === 'object' && !React__default.isValidElement(promiseData);
324
- const toastSettings = isExtendedResult ? promiseData : {
325
- message: promiseData
326
- };
327
- this.create({
328
- id,
329
- type: 'success',
330
- description,
331
- ...toastSettings
332
- });
333
- }
334
- }).catch(async (error)=>{
335
- result = [
336
- 'reject',
337
- error
338
- ];
339
- if (data.error !== undefined) {
340
- shouldDismiss = false;
341
- const promiseData = typeof data.error === 'function' ? await data.error(error) : data.error;
342
- const description = typeof data.description === 'function' ? await data.description(error) : data.description;
343
- const isExtendedResult = typeof promiseData === 'object' && !React__default.isValidElement(promiseData);
344
- const toastSettings = isExtendedResult ? promiseData : {
345
- message: promiseData
346
- };
347
- this.create({
348
- id,
349
- type: 'error',
350
- description,
351
- ...toastSettings
352
- });
353
- }
354
- }).finally(()=>{
355
- if (shouldDismiss) {
356
- // Toast is still in load state (and will be indefinitely — dismiss it)
357
- this.dismiss(id);
358
- id = undefined;
359
- }
360
- data.finally == null ? void 0 : data.finally.call(data);
361
- });
362
- const unwrap = ()=>new Promise((resolve, reject)=>originalPromise.then(()=>result[0] === 'reject' ? reject(result[1]) : resolve(result[1])).catch(reject));
363
- if (typeof id !== 'string' && typeof id !== 'number') {
364
- // cannot Object.assign on undefined
365
- return {
366
- unwrap
367
- };
368
- } else {
369
- return Object.assign(id, {
370
- unwrap
371
- });
372
- }
373
- };
374
- this.custom = (jsx, data)=>{
375
- const id = (data == null ? void 0 : data.id) || toastsCounter++;
376
- this.create({
377
- jsx: jsx(id),
378
- id,
379
- ...data
380
- });
381
- return id;
382
- };
383
- this.getActiveToasts = ()=>{
384
- return this.toasts.filter((toast)=>!this.dismissedToasts.has(toast.id));
385
- };
386
- this.subscribers = [];
387
- this.toasts = [];
388
- this.dismissedToasts = new Set();
389
- }
390
- }
391
- const ToastState = new Observer();
392
- // bind this to the toast function
393
- const toastFunction = (message, data)=>{
394
- const id = (data == null ? void 0 : data.id) || toastsCounter++;
395
- ToastState.addToast({
396
- title: message,
397
- ...data,
398
- id
399
- });
400
- return id;
401
- };
402
- const isHttpResponse = (data)=>{
403
- return data && typeof data === 'object' && 'ok' in data && typeof data.ok === 'boolean' && 'status' in data && typeof data.status === 'number';
404
- };
405
- const basicToast = toastFunction;
406
- const getHistory = ()=>ToastState.toasts;
407
- const getToasts = ()=>ToastState.getActiveToasts();
408
- // We use `Object.assign` to maintain the correct types as we would lose them otherwise
409
- const toast = Object.assign(basicToast, {
410
- success: ToastState.success,
411
- info: ToastState.info,
412
- warning: ToastState.warning,
413
- error: ToastState.error,
414
- custom: ToastState.custom,
415
- message: ToastState.message,
416
- promise: ToastState.promise,
417
- dismiss: ToastState.dismiss,
418
- loading: ToastState.loading
419
- }, {
420
- getHistory,
421
- getToasts
422
- });
423
-
424
- __insertCSS("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
425
-
426
- function isAction(action) {
427
- return action.label !== undefined;
428
- }
429
-
430
- // Visible toasts amount
431
- const VISIBLE_TOASTS_AMOUNT = 3;
432
- // Viewport padding
433
- const VIEWPORT_OFFSET = '24px';
434
- // Mobile viewport padding
435
- const MOBILE_VIEWPORT_OFFSET = '16px';
436
- // Default lifetime of a toasts (in ms)
437
- const TOAST_LIFETIME = 4000;
438
- // Default toast width
439
- const TOAST_WIDTH = 356;
440
- // Default gap between toasts
441
- const GAP = 14;
442
- // Threshold to dismiss a toast
443
- const SWIPE_THRESHOLD = 45;
444
- // Equal to exit animation duration
445
- const TIME_BEFORE_UNMOUNT = 200;
446
- function cn(...classes) {
447
- return classes.filter(Boolean).join(' ');
448
- }
449
- function getDefaultSwipeDirections(position) {
450
- const [y, x] = position.split('-');
451
- const directions = [];
452
- if (y) {
453
- directions.push(y);
454
- }
455
- if (x) {
456
- directions.push(x);
457
- }
458
- return directions;
459
- }
460
- const Toast = (props)=>{
461
- var _toast_classNames, _toast_classNames1, _toast_classNames2, _toast_classNames3, _toast_classNames4, _toast_classNames5, _toast_classNames6, _toast_classNames7, _toast_classNames8;
462
- const { invert: ToasterInvert, toast, unstyled, interacting, setHeights, visibleToasts, heights, index, toasts, expanded, removeToast, defaultRichColors, closeButton: closeButtonFromToaster, style, cancelButtonStyle, actionButtonStyle, className = '', descriptionClassName = '', duration: durationFromToaster, position, gap, expandByDefault, classNames, icons, closeButtonAriaLabel = 'Close toast' } = props;
463
- const [swipeDirection, setSwipeDirection] = React__default.useState(null);
464
- const [swipeOutDirection, setSwipeOutDirection] = React__default.useState(null);
465
- const [mounted, setMounted] = React__default.useState(false);
466
- const [removed, setRemoved] = React__default.useState(false);
467
- const [swiping, setSwiping] = React__default.useState(false);
468
- const [swipeOut, setSwipeOut] = React__default.useState(false);
469
- const [isSwiped, setIsSwiped] = React__default.useState(false);
470
- const [offsetBeforeRemove, setOffsetBeforeRemove] = React__default.useState(0);
471
- const [initialHeight, setInitialHeight] = React__default.useState(0);
472
- const remainingTime = React__default.useRef(toast.duration || durationFromToaster || TOAST_LIFETIME);
473
- const dragStartTime = React__default.useRef(null);
474
- const toastRef = React__default.useRef(null);
475
- const isFront = index === 0;
476
- const isVisible = index + 1 <= visibleToasts;
477
- const toastType = toast.type;
478
- const dismissible = toast.dismissible !== false;
479
- const toastClassname = toast.className || '';
480
- const toastDescriptionClassname = toast.descriptionClassName || '';
481
- // Height index is used to calculate the offset as it gets updated before the toast array, which means we can calculate the new layout faster.
482
- const heightIndex = React__default.useMemo(()=>heights.findIndex((height)=>height.toastId === toast.id) || 0, [
483
- heights,
484
- toast.id
485
- ]);
486
- const closeButton = React__default.useMemo(()=>{
487
- var _toast_closeButton;
488
- return (_toast_closeButton = toast.closeButton) != null ? _toast_closeButton : closeButtonFromToaster;
489
- }, [
490
- toast.closeButton,
491
- closeButtonFromToaster
492
- ]);
493
- const duration = React__default.useMemo(()=>toast.duration || durationFromToaster || TOAST_LIFETIME, [
494
- toast.duration,
495
- durationFromToaster
496
- ]);
497
- const closeTimerStartTimeRef = React__default.useRef(0);
498
- const offset = React__default.useRef(0);
499
- const lastCloseTimerStartTimeRef = React__default.useRef(0);
500
- const pointerStartRef = React__default.useRef(null);
501
- const [y, x] = position.split('-');
502
- const toastsHeightBefore = React__default.useMemo(()=>{
503
- return heights.reduce((prev, curr, reducerIndex)=>{
504
- // Calculate offset up until current toast
505
- if (reducerIndex >= heightIndex) {
506
- return prev;
507
- }
508
- return prev + curr.height;
509
- }, 0);
510
- }, [
511
- heights,
512
- heightIndex
513
- ]);
514
- const isDocumentHidden = useIsDocumentHidden();
515
- const invert = toast.invert || ToasterInvert;
516
- const disabled = toastType === 'loading';
517
- offset.current = React__default.useMemo(()=>heightIndex * gap + toastsHeightBefore, [
518
- heightIndex,
519
- toastsHeightBefore
520
- ]);
521
- React__default.useEffect(()=>{
522
- remainingTime.current = duration;
523
- }, [
524
- duration
525
- ]);
526
- React__default.useEffect(()=>{
527
- // Trigger enter animation without using CSS animation
528
- setMounted(true);
529
- }, []);
530
- React__default.useEffect(()=>{
531
- const toastNode = toastRef.current;
532
- if (toastNode) {
533
- const height = toastNode.getBoundingClientRect().height;
534
- // Add toast height to heights array after the toast is mounted
535
- setInitialHeight(height);
536
- setHeights((h)=>[
537
- {
538
- toastId: toast.id,
539
- height,
540
- position: toast.position
541
- },
542
- ...h
543
- ]);
544
- return ()=>setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));
545
- }
546
- }, [
547
- setHeights,
548
- toast.id
549
- ]);
550
- React__default.useLayoutEffect(()=>{
551
- // Keep height up to date with the content in case it updates
552
- if (!mounted) return;
553
- const toastNode = toastRef.current;
554
- const originalHeight = toastNode.style.height;
555
- toastNode.style.height = 'auto';
556
- const newHeight = toastNode.getBoundingClientRect().height;
557
- toastNode.style.height = originalHeight;
558
- setInitialHeight(newHeight);
559
- setHeights((heights)=>{
560
- const alreadyExists = heights.find((height)=>height.toastId === toast.id);
561
- if (!alreadyExists) {
562
- return [
563
- {
564
- toastId: toast.id,
565
- height: newHeight,
566
- position: toast.position
567
- },
568
- ...heights
569
- ];
570
- } else {
571
- return heights.map((height)=>height.toastId === toast.id ? {
572
- ...height,
573
- height: newHeight
574
- } : height);
575
- }
576
- });
577
- }, [
578
- mounted,
579
- toast.title,
580
- toast.description,
581
- setHeights,
582
- toast.id,
583
- toast.jsx,
584
- toast.action,
585
- toast.cancel
586
- ]);
587
- const deleteToast = React__default.useCallback(()=>{
588
- // Save the offset for the exit swipe animation
589
- setRemoved(true);
590
- setOffsetBeforeRemove(offset.current);
591
- setHeights((h)=>h.filter((height)=>height.toastId !== toast.id));
592
- setTimeout(()=>{
593
- removeToast(toast);
594
- }, TIME_BEFORE_UNMOUNT);
595
- }, [
596
- toast,
597
- removeToast,
598
- setHeights,
599
- offset
600
- ]);
601
- React__default.useEffect(()=>{
602
- if (toast.promise && toastType === 'loading' || toast.duration === Infinity || toast.type === 'loading') return;
603
- let timeoutId;
604
- // Pause the timer on each hover
605
- const pauseTimer = ()=>{
606
- if (lastCloseTimerStartTimeRef.current < closeTimerStartTimeRef.current) {
607
- // Get the elapsed time since the timer started
608
- const elapsedTime = new Date().getTime() - closeTimerStartTimeRef.current;
609
- remainingTime.current = remainingTime.current - elapsedTime;
610
- }
611
- lastCloseTimerStartTimeRef.current = new Date().getTime();
612
- };
613
- const startTimer = ()=>{
614
- // setTimeout(, Infinity) behaves as if the delay is 0.
615
- // As a result, the toast would be closed immediately, giving the appearance that it was never rendered.
616
- // See: https://github.com/denysdovhan/wtfjs?tab=readme-ov-file#an-infinite-timeout
617
- if (remainingTime.current === Infinity) return;
618
- closeTimerStartTimeRef.current = new Date().getTime();
619
- // Let the toast know it has started
620
- timeoutId = setTimeout(()=>{
621
- toast.onAutoClose == null ? void 0 : toast.onAutoClose.call(toast, toast);
622
- deleteToast();
623
- }, remainingTime.current);
624
- };
625
- if (expanded || interacting || isDocumentHidden) {
626
- pauseTimer();
627
- } else {
628
- startTimer();
629
- }
630
- return ()=>clearTimeout(timeoutId);
631
- }, [
632
- expanded,
633
- interacting,
634
- toast,
635
- toastType,
636
- isDocumentHidden,
637
- deleteToast
638
- ]);
639
- React__default.useEffect(()=>{
640
- if (toast.delete) {
641
- deleteToast();
642
- toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);
643
- }
644
- }, [
645
- deleteToast,
646
- toast.delete
647
- ]);
648
- function getLoadingIcon() {
649
- var _toast_classNames;
650
- if (icons == null ? void 0 : icons.loading) {
651
- var _toast_classNames1;
652
- return /*#__PURE__*/ React__default.createElement("div", {
653
- className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1.loader, 'sonner-loader'),
654
- "data-visible": toastType === 'loading'
655
- }, icons.loading);
656
- }
657
- return /*#__PURE__*/ React__default.createElement(Loader, {
658
- className: cn(classNames == null ? void 0 : classNames.loader, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.loader),
659
- visible: toastType === 'loading'
660
- });
661
- }
662
- const icon = toast.icon || (icons == null ? void 0 : icons[toastType]) || getAsset(toastType);
663
- var _toast_richColors, _icons_close;
664
- return /*#__PURE__*/ React__default.createElement("li", {
665
- tabIndex: 0,
666
- ref: toastRef,
667
- className: cn(className, toastClassname, classNames == null ? void 0 : classNames.toast, toast == null ? void 0 : (_toast_classNames = toast.classNames) == null ? void 0 : _toast_classNames.toast, classNames == null ? void 0 : classNames.default, classNames == null ? void 0 : classNames[toastType], toast == null ? void 0 : (_toast_classNames1 = toast.classNames) == null ? void 0 : _toast_classNames1[toastType]),
668
- "data-sonner-toast": "",
669
- "data-rich-colors": (_toast_richColors = toast.richColors) != null ? _toast_richColors : defaultRichColors,
670
- "data-styled": !Boolean(toast.jsx || toast.unstyled || unstyled),
671
- "data-mounted": mounted,
672
- "data-promise": Boolean(toast.promise),
673
- "data-swiped": isSwiped,
674
- "data-removed": removed,
675
- "data-visible": isVisible,
676
- "data-y-position": y,
677
- "data-x-position": x,
678
- "data-index": index,
679
- "data-front": isFront,
680
- "data-swiping": swiping,
681
- "data-dismissible": dismissible,
682
- "data-type": toastType,
683
- "data-invert": invert,
684
- "data-swipe-out": swipeOut,
685
- "data-swipe-direction": swipeOutDirection,
686
- "data-expanded": Boolean(expanded || expandByDefault && mounted),
687
- "data-testid": toast.testId,
688
- style: {
689
- '--index': index,
690
- '--toasts-before': index,
691
- '--z-index': toasts.length - index,
692
- '--offset': `${removed ? offsetBeforeRemove : offset.current}px`,
693
- '--initial-height': expandByDefault ? 'auto' : `${initialHeight}px`,
694
- ...style,
695
- ...toast.style
696
- },
697
- onDragEnd: ()=>{
698
- setSwiping(false);
699
- setSwipeDirection(null);
700
- pointerStartRef.current = null;
701
- },
702
- onPointerDown: (event)=>{
703
- if (event.button === 2) return; // Return early on right click
704
- if (disabled || !dismissible) return;
705
- dragStartTime.current = new Date();
706
- setOffsetBeforeRemove(offset.current);
707
- // Ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)
708
- event.target.setPointerCapture(event.pointerId);
709
- if (event.target.tagName === 'BUTTON') return;
710
- setSwiping(true);
711
- pointerStartRef.current = {
712
- x: event.clientX,
713
- y: event.clientY
714
- };
715
- },
716
- onPointerUp: ()=>{
717
- var _toastRef_current, _toastRef_current1, _dragStartTime_current;
718
- if (swipeOut || !dismissible) return;
719
- pointerStartRef.current = null;
720
- const swipeAmountX = Number(((_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.getPropertyValue('--swipe-amount-x').replace('px', '')) || 0);
721
- const swipeAmountY = Number(((_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.getPropertyValue('--swipe-amount-y').replace('px', '')) || 0);
722
- const timeTaken = new Date().getTime() - ((_dragStartTime_current = dragStartTime.current) == null ? void 0 : _dragStartTime_current.getTime());
723
- const swipeAmount = swipeDirection === 'x' ? swipeAmountX : swipeAmountY;
724
- const velocity = Math.abs(swipeAmount) / timeTaken;
725
- if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {
726
- setOffsetBeforeRemove(offset.current);
727
- toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);
728
- if (swipeDirection === 'x') {
729
- setSwipeOutDirection(swipeAmountX > 0 ? 'right' : 'left');
730
- } else {
731
- setSwipeOutDirection(swipeAmountY > 0 ? 'down' : 'up');
732
- }
733
- deleteToast();
734
- setSwipeOut(true);
735
- return;
736
- } else {
737
- var _toastRef_current2, _toastRef_current3;
738
- (_toastRef_current2 = toastRef.current) == null ? void 0 : _toastRef_current2.style.setProperty('--swipe-amount-x', `0px`);
739
- (_toastRef_current3 = toastRef.current) == null ? void 0 : _toastRef_current3.style.setProperty('--swipe-amount-y', `0px`);
740
- }
741
- setIsSwiped(false);
742
- setSwiping(false);
743
- setSwipeDirection(null);
744
- },
745
- onPointerMove: (event)=>{
746
- var _window_getSelection, // Apply transform using both x and y values
747
- _toastRef_current, _toastRef_current1;
748
- if (!pointerStartRef.current || !dismissible) return;
749
- const isHighlighted = ((_window_getSelection = window.getSelection()) == null ? void 0 : _window_getSelection.toString().length) > 0;
750
- if (isHighlighted) return;
751
- const yDelta = event.clientY - pointerStartRef.current.y;
752
- const xDelta = event.clientX - pointerStartRef.current.x;
753
- var _props_swipeDirections;
754
- const swipeDirections = (_props_swipeDirections = props.swipeDirections) != null ? _props_swipeDirections : getDefaultSwipeDirections(position);
755
- // Determine swipe direction if not already locked
756
- if (!swipeDirection && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {
757
- setSwipeDirection(Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y');
758
- }
759
- let swipeAmount = {
760
- x: 0,
761
- y: 0
762
- };
763
- const getDampening = (delta)=>{
764
- const factor = Math.abs(delta) / 20;
765
- return 1 / (1.5 + factor);
766
- };
767
- // Only apply swipe in the locked direction
768
- if (swipeDirection === 'y') {
769
- // Handle vertical swipes
770
- if (swipeDirections.includes('top') || swipeDirections.includes('bottom')) {
771
- if (swipeDirections.includes('top') && yDelta < 0 || swipeDirections.includes('bottom') && yDelta > 0) {
772
- swipeAmount.y = yDelta;
773
- } else {
774
- // Smoothly transition to dampened movement
775
- const dampenedDelta = yDelta * getDampening(yDelta);
776
- // Ensure we don't jump when transitioning to dampened movement
777
- swipeAmount.y = Math.abs(dampenedDelta) < Math.abs(yDelta) ? dampenedDelta : yDelta;
778
- }
779
- }
780
- } else if (swipeDirection === 'x') {
781
- // Handle horizontal swipes
782
- if (swipeDirections.includes('left') || swipeDirections.includes('right')) {
783
- if (swipeDirections.includes('left') && xDelta < 0 || swipeDirections.includes('right') && xDelta > 0) {
784
- swipeAmount.x = xDelta;
785
- } else {
786
- // Smoothly transition to dampened movement
787
- const dampenedDelta = xDelta * getDampening(xDelta);
788
- // Ensure we don't jump when transitioning to dampened movement
789
- swipeAmount.x = Math.abs(dampenedDelta) < Math.abs(xDelta) ? dampenedDelta : xDelta;
790
- }
791
- }
792
- }
793
- if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {
794
- setIsSwiped(true);
795
- }
796
- (_toastRef_current = toastRef.current) == null ? void 0 : _toastRef_current.style.setProperty('--swipe-amount-x', `${swipeAmount.x}px`);
797
- (_toastRef_current1 = toastRef.current) == null ? void 0 : _toastRef_current1.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);
798
- }
799
- }, closeButton && !toast.jsx && toastType !== 'loading' ? /*#__PURE__*/ React__default.createElement("button", {
800
- "aria-label": closeButtonAriaLabel,
801
- "data-disabled": disabled,
802
- "data-close-button": true,
803
- onClick: disabled || !dismissible ? ()=>{} : ()=>{
804
- deleteToast();
805
- toast.onDismiss == null ? void 0 : toast.onDismiss.call(toast, toast);
806
- },
807
- className: cn(classNames == null ? void 0 : classNames.closeButton, toast == null ? void 0 : (_toast_classNames2 = toast.classNames) == null ? void 0 : _toast_classNames2.closeButton)
808
- }, (_icons_close = icons == null ? void 0 : icons.close) != null ? _icons_close : CloseIcon) : null, (toastType || toast.icon || toast.promise) && toast.icon !== null && ((icons == null ? void 0 : icons[toastType]) !== null || toast.icon) ? /*#__PURE__*/ React__default.createElement("div", {
809
- "data-icon": "",
810
- className: cn(classNames == null ? void 0 : classNames.icon, toast == null ? void 0 : (_toast_classNames3 = toast.classNames) == null ? void 0 : _toast_classNames3.icon)
811
- }, toast.promise || toast.type === 'loading' && !toast.icon ? toast.icon || getLoadingIcon() : null, toast.type !== 'loading' ? icon : null) : null, /*#__PURE__*/ React__default.createElement("div", {
812
- "data-content": "",
813
- className: cn(classNames == null ? void 0 : classNames.content, toast == null ? void 0 : (_toast_classNames4 = toast.classNames) == null ? void 0 : _toast_classNames4.content)
814
- }, /*#__PURE__*/ React__default.createElement("div", {
815
- "data-title": "",
816
- className: cn(classNames == null ? void 0 : classNames.title, toast == null ? void 0 : (_toast_classNames5 = toast.classNames) == null ? void 0 : _toast_classNames5.title)
817
- }, toast.jsx ? toast.jsx : typeof toast.title === 'function' ? toast.title() : toast.title), toast.description ? /*#__PURE__*/ React__default.createElement("div", {
818
- "data-description": "",
819
- className: cn(descriptionClassName, toastDescriptionClassname, classNames == null ? void 0 : classNames.description, toast == null ? void 0 : (_toast_classNames6 = toast.classNames) == null ? void 0 : _toast_classNames6.description)
820
- }, typeof toast.description === 'function' ? toast.description() : toast.description) : null), /*#__PURE__*/ React__default.isValidElement(toast.cancel) ? toast.cancel : toast.cancel && isAction(toast.cancel) ? /*#__PURE__*/ React__default.createElement("button", {
821
- "data-button": true,
822
- "data-cancel": true,
823
- style: toast.cancelButtonStyle || cancelButtonStyle,
824
- onClick: (event)=>{
825
- // We need to check twice because typescript
826
- if (!isAction(toast.cancel)) return;
827
- if (!dismissible) return;
828
- toast.cancel.onClick == null ? void 0 : toast.cancel.onClick.call(toast.cancel, event);
829
- deleteToast();
830
- },
831
- className: cn(classNames == null ? void 0 : classNames.cancelButton, toast == null ? void 0 : (_toast_classNames7 = toast.classNames) == null ? void 0 : _toast_classNames7.cancelButton)
832
- }, toast.cancel.label) : null, /*#__PURE__*/ React__default.isValidElement(toast.action) ? toast.action : toast.action && isAction(toast.action) ? /*#__PURE__*/ React__default.createElement("button", {
833
- "data-button": true,
834
- "data-action": true,
835
- style: toast.actionButtonStyle || actionButtonStyle,
836
- onClick: (event)=>{
837
- // We need to check twice because typescript
838
- if (!isAction(toast.action)) return;
839
- toast.action.onClick == null ? void 0 : toast.action.onClick.call(toast.action, event);
840
- if (event.defaultPrevented) return;
841
- deleteToast();
842
- },
843
- className: cn(classNames == null ? void 0 : classNames.actionButton, toast == null ? void 0 : (_toast_classNames8 = toast.classNames) == null ? void 0 : _toast_classNames8.actionButton)
844
- }, toast.action.label) : null);
845
- };
846
- function getDocumentDirection() {
847
- if (typeof window === 'undefined') return 'ltr';
848
- if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose
849
- const dirAttribute = document.documentElement.getAttribute('dir');
850
- if (dirAttribute === 'auto' || !dirAttribute) {
851
- return window.getComputedStyle(document.documentElement).direction;
852
- }
853
- return dirAttribute;
854
- }
855
- function assignOffset(defaultOffset, mobileOffset) {
856
- const styles = {};
857
- [
858
- defaultOffset,
859
- mobileOffset
860
- ].forEach((offset, index)=>{
861
- const isMobile = index === 1;
862
- const prefix = isMobile ? '--mobile-offset' : '--offset';
863
- const defaultValue = isMobile ? MOBILE_VIEWPORT_OFFSET : VIEWPORT_OFFSET;
864
- function assignAll(offset) {
865
- [
866
- 'top',
867
- 'right',
868
- 'bottom',
869
- 'left'
870
- ].forEach((key)=>{
871
- styles[`${prefix}-${key}`] = typeof offset === 'number' ? `${offset}px` : offset;
872
- });
873
- }
874
- if (typeof offset === 'number' || typeof offset === 'string') {
875
- assignAll(offset);
876
- } else if (typeof offset === 'object') {
877
- [
878
- 'top',
879
- 'right',
880
- 'bottom',
881
- 'left'
882
- ].forEach((key)=>{
883
- if (offset[key] === undefined) {
884
- styles[`${prefix}-${key}`] = defaultValue;
885
- } else {
886
- styles[`${prefix}-${key}`] = typeof offset[key] === 'number' ? `${offset[key]}px` : offset[key];
887
- }
888
- });
889
- } else {
890
- assignAll(defaultValue);
891
- }
892
- });
893
- return styles;
894
- }
895
- const Toaster$2 = /*#__PURE__*/ React__default.forwardRef(function Toaster(props, ref) {
896
- const { id, invert, position = 'bottom-right', hotkey = [
897
- 'altKey',
898
- 'KeyT'
899
- ], expand, closeButton, className, offset, mobileOffset, theme = 'light', richColors, duration, style, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions, dir = getDocumentDirection(), gap = GAP, icons, containerAriaLabel = 'Notifications' } = props;
900
- const [toasts, setToasts] = React__default.useState([]);
901
- const filteredToasts = React__default.useMemo(()=>{
902
- if (id) {
903
- return toasts.filter((toast)=>toast.toasterId === id);
904
- }
905
- return toasts.filter((toast)=>!toast.toasterId);
906
- }, [
907
- toasts,
908
- id
909
- ]);
910
- const possiblePositions = React__default.useMemo(()=>{
911
- return Array.from(new Set([
912
- position
913
- ].concat(filteredToasts.filter((toast)=>toast.position).map((toast)=>toast.position))));
914
- }, [
915
- filteredToasts,
916
- position
917
- ]);
918
- const [heights, setHeights] = React__default.useState([]);
919
- const [expanded, setExpanded] = React__default.useState(false);
920
- const [interacting, setInteracting] = React__default.useState(false);
921
- const [actualTheme, setActualTheme] = React__default.useState(theme !== 'system' ? theme : typeof window !== 'undefined' ? window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' : 'light');
922
- const listRef = React__default.useRef(null);
923
- const hotkeyLabel = hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, '');
924
- const lastFocusedElementRef = React__default.useRef(null);
925
- const isFocusWithinRef = React__default.useRef(false);
926
- const removeToast = React__default.useCallback((toastToRemove)=>{
927
- setToasts((toasts)=>{
928
- var _toasts_find;
929
- if (!((_toasts_find = toasts.find((toast)=>toast.id === toastToRemove.id)) == null ? void 0 : _toasts_find.delete)) {
930
- ToastState.dismiss(toastToRemove.id);
931
- }
932
- return toasts.filter(({ id })=>id !== toastToRemove.id);
933
- });
934
- }, []);
935
- React__default.useEffect(()=>{
936
- return ToastState.subscribe((toast)=>{
937
- if (toast.dismiss) {
938
- // Prevent batching of other state updates
939
- requestAnimationFrame(()=>{
940
- setToasts((toasts)=>toasts.map((t)=>t.id === toast.id ? {
941
- ...t,
942
- delete: true
943
- } : t));
944
- });
945
- return;
946
- }
947
- // Prevent batching, temp solution.
948
- setTimeout(()=>{
949
- ReactDOM__default.flushSync(()=>{
950
- setToasts((toasts)=>{
951
- const indexOfExistingToast = toasts.findIndex((t)=>t.id === toast.id);
952
- // Update the toast if it already exists
953
- if (indexOfExistingToast !== -1) {
954
- return [
955
- ...toasts.slice(0, indexOfExistingToast),
956
- {
957
- ...toasts[indexOfExistingToast],
958
- ...toast
959
- },
960
- ...toasts.slice(indexOfExistingToast + 1)
961
- ];
962
- }
963
- return [
964
- toast,
965
- ...toasts
966
- ];
967
- });
968
- });
969
- });
970
- });
971
- }, [
972
- toasts
973
- ]);
974
- React__default.useEffect(()=>{
975
- if (theme !== 'system') {
976
- setActualTheme(theme);
977
- return;
978
- }
979
- if (theme === 'system') {
980
- // check if current preference is dark
981
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
982
- // it's currently dark
983
- setActualTheme('dark');
984
- } else {
985
- // it's not dark
986
- setActualTheme('light');
987
- }
988
- }
989
- if (typeof window === 'undefined') return;
990
- const darkMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
991
- try {
992
- // Chrome & Firefox
993
- darkMediaQuery.addEventListener('change', ({ matches })=>{
994
- if (matches) {
995
- setActualTheme('dark');
996
- } else {
997
- setActualTheme('light');
998
- }
999
- });
1000
- } catch (error) {
1001
- // Safari < 14
1002
- darkMediaQuery.addListener(({ matches })=>{
1003
- try {
1004
- if (matches) {
1005
- setActualTheme('dark');
1006
- } else {
1007
- setActualTheme('light');
1008
- }
1009
- } catch (e) {
1010
- console.error(e);
1011
- }
1012
- });
1013
- }
1014
- }, [
1015
- theme
1016
- ]);
1017
- React__default.useEffect(()=>{
1018
- // Ensure expanded is always false when no toasts are present / only one left
1019
- if (toasts.length <= 1) {
1020
- setExpanded(false);
1021
- }
1022
- }, [
1023
- toasts
1024
- ]);
1025
- React__default.useEffect(()=>{
1026
- const handleKeyDown = (event)=>{
1027
- var _listRef_current;
1028
- const isHotkeyPressed = hotkey.every((key)=>event[key] || event.code === key);
1029
- if (isHotkeyPressed) {
1030
- var _listRef_current1;
1031
- setExpanded(true);
1032
- (_listRef_current1 = listRef.current) == null ? void 0 : _listRef_current1.focus();
1033
- }
1034
- if (event.code === 'Escape' && (document.activeElement === listRef.current || ((_listRef_current = listRef.current) == null ? void 0 : _listRef_current.contains(document.activeElement)))) {
1035
- setExpanded(false);
1036
- }
1037
- };
1038
- document.addEventListener('keydown', handleKeyDown);
1039
- return ()=>document.removeEventListener('keydown', handleKeyDown);
1040
- }, [
1041
- hotkey
1042
- ]);
1043
- React__default.useEffect(()=>{
1044
- if (listRef.current) {
1045
- return ()=>{
1046
- if (lastFocusedElementRef.current) {
1047
- lastFocusedElementRef.current.focus({
1048
- preventScroll: true
1049
- });
1050
- lastFocusedElementRef.current = null;
1051
- isFocusWithinRef.current = false;
1052
- }
1053
- };
1054
- }
1055
- }, [
1056
- listRef.current
1057
- ]);
1058
- return(// Remove item from normal navigation flow, only available via hotkey
1059
- /*#__PURE__*/ React__default.createElement("section", {
1060
- ref: ref,
1061
- "aria-label": `${containerAriaLabel} ${hotkeyLabel}`,
1062
- tabIndex: -1,
1063
- "aria-live": "polite",
1064
- "aria-relevant": "additions text",
1065
- "aria-atomic": "false",
1066
- suppressHydrationWarning: true
1067
- }, possiblePositions.map((position, index)=>{
1068
- var _heights_;
1069
- const [y, x] = position.split('-');
1070
- if (!filteredToasts.length) return null;
1071
- return /*#__PURE__*/ React__default.createElement("ol", {
1072
- key: position,
1073
- dir: dir === 'auto' ? getDocumentDirection() : dir,
1074
- tabIndex: -1,
1075
- ref: listRef,
1076
- className: className,
1077
- "data-sonner-toaster": true,
1078
- "data-sonner-theme": actualTheme,
1079
- "data-y-position": y,
1080
- "data-x-position": x,
1081
- style: {
1082
- '--front-toast-height': `${((_heights_ = heights[0]) == null ? void 0 : _heights_.height) || 0}px`,
1083
- '--width': `${TOAST_WIDTH}px`,
1084
- '--gap': `${gap}px`,
1085
- ...style,
1086
- ...assignOffset(offset, mobileOffset)
1087
- },
1088
- onBlur: (event)=>{
1089
- if (isFocusWithinRef.current && !event.currentTarget.contains(event.relatedTarget)) {
1090
- isFocusWithinRef.current = false;
1091
- if (lastFocusedElementRef.current) {
1092
- lastFocusedElementRef.current.focus({
1093
- preventScroll: true
1094
- });
1095
- lastFocusedElementRef.current = null;
1096
- }
1097
- }
1098
- },
1099
- onFocus: (event)=>{
1100
- const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';
1101
- if (isNotDismissible) return;
1102
- if (!isFocusWithinRef.current) {
1103
- isFocusWithinRef.current = true;
1104
- lastFocusedElementRef.current = event.relatedTarget;
1105
- }
1106
- },
1107
- onMouseEnter: ()=>setExpanded(true),
1108
- onMouseMove: ()=>setExpanded(true),
1109
- onMouseLeave: ()=>{
1110
- // Avoid setting expanded to false when interacting with a toast, e.g. swiping
1111
- if (!interacting) {
1112
- setExpanded(false);
1113
- }
1114
- },
1115
- onDragEnd: ()=>setExpanded(false),
1116
- onPointerDown: (event)=>{
1117
- const isNotDismissible = event.target instanceof HTMLElement && event.target.dataset.dismissible === 'false';
1118
- if (isNotDismissible) return;
1119
- setInteracting(true);
1120
- },
1121
- onPointerUp: ()=>setInteracting(false)
1122
- }, filteredToasts.filter((toast)=>!toast.position && index === 0 || toast.position === position).map((toast, index)=>{
1123
- var _toastOptions_duration, _toastOptions_closeButton;
1124
- return /*#__PURE__*/ React__default.createElement(Toast, {
1125
- key: toast.id,
1126
- icons: icons,
1127
- index: index,
1128
- toast: toast,
1129
- defaultRichColors: richColors,
1130
- duration: (_toastOptions_duration = toastOptions == null ? void 0 : toastOptions.duration) != null ? _toastOptions_duration : duration,
1131
- className: toastOptions == null ? void 0 : toastOptions.className,
1132
- descriptionClassName: toastOptions == null ? void 0 : toastOptions.descriptionClassName,
1133
- invert: invert,
1134
- visibleToasts: visibleToasts,
1135
- closeButton: (_toastOptions_closeButton = toastOptions == null ? void 0 : toastOptions.closeButton) != null ? _toastOptions_closeButton : closeButton,
1136
- interacting: interacting,
1137
- position: position,
1138
- style: toastOptions == null ? void 0 : toastOptions.style,
1139
- unstyled: toastOptions == null ? void 0 : toastOptions.unstyled,
1140
- classNames: toastOptions == null ? void 0 : toastOptions.classNames,
1141
- cancelButtonStyle: toastOptions == null ? void 0 : toastOptions.cancelButtonStyle,
1142
- actionButtonStyle: toastOptions == null ? void 0 : toastOptions.actionButtonStyle,
1143
- closeButtonAriaLabel: toastOptions == null ? void 0 : toastOptions.closeButtonAriaLabel,
1144
- removeToast: removeToast,
1145
- toasts: filteredToasts.filter((t)=>t.position == toast.position),
1146
- heights: heights.filter((h)=>h.position == toast.position),
1147
- setHeights: setHeights,
1148
- expandByDefault: expand,
1149
- gap: gap,
1150
- expanded: expanded,
1151
- swipeDirections: props.swipeDirections
1152
- });
1153
- }));
1154
- })));
1155
- });
1156
-
1157
- const Toaster$1 = ({ ...props }) => {
26
+ const Toaster$1 = ({ theme, ...props }) => {
27
+ const { theme: activeTheme } = useTheme();
1158
28
  return /* @__PURE__ */ jsx(
1159
29
  Toaster$2,
1160
30
  {
31
+ theme: theme ?? activeTheme,
1161
32
  className: "toaster group",
1162
33
  icons: {
1163
34
  success: /* @__PURE__ */ jsx(CircleCheckBig, { className: "size-4 text-success" }),