@apple-pie/slice 0.1.30 → 0.1.31

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 (292) hide show
  1. package/README.md +10 -1
  2. package/dist/cjs/chunks/{AudioBubble-DisHuKIC.js → AudioBubble-k7qS53g6.js} +3 -5
  3. package/dist/cjs/chunks/Avatar-hP8GuwvD.js +82 -0
  4. package/dist/cjs/chunks/{AvatarGroup-DhGp_qLw.js → AvatarGroup-DMy34q7_.js} +1 -3
  5. package/dist/cjs/chunks/Badge-D2TbyfJS.js +22 -0
  6. package/dist/cjs/chunks/{Button-PsJx1WmV.js → Button-CTsHZBEB.js} +1 -3
  7. package/dist/cjs/chunks/{ButtonBar-8zm6a_h7.js → ButtonBar-BRb1PTmw.js} +1 -3
  8. package/dist/cjs/chunks/{Camera-zFyIXcge.js → Camera-CKv087kr.js} +3 -5
  9. package/dist/cjs/chunks/CheckBox-VRIL1FHh.js +51 -0
  10. package/dist/cjs/chunks/Chip-Dr3vKvRY.js +77 -0
  11. package/dist/cjs/chunks/{DivInput-2cMdJQ9U.js → DivInput-Ci0gaCWL.js} +1 -3
  12. package/dist/cjs/chunks/{Dot-fKIwhjYA.js → Dot-C0MvSJOl.js} +1 -3
  13. package/dist/cjs/chunks/{DrggablePanel-P7TgBI3j.js → DrggablePanel-DflouLUs.js} +3 -5
  14. package/dist/cjs/chunks/DropDown-BS1H62yj.js +104 -0
  15. package/dist/cjs/chunks/ErrorSummary-B3tof7ir.js +85 -0
  16. package/dist/cjs/chunks/{FileIcon-PuDoz0mF.js → FileIcon-Te8MaqTs.js} +2 -2
  17. package/dist/cjs/chunks/FileList-CDcfKIV6.js +222 -0
  18. package/dist/cjs/chunks/{FlexDiv-D4aSJC_G.js → FlexDiv-wO8IY0Zf.js} +2 -3
  19. package/dist/cjs/chunks/Grouper-DyGkzdvz.js +61 -0
  20. package/dist/cjs/chunks/{Icon-BtcHXeqE.js → Icon-BFZ_5Qv3.js} +4 -7
  21. package/dist/cjs/chunks/IconButton-CgsuJIuF.js +82 -0
  22. package/dist/cjs/chunks/{IndexedDB-BaVmQgkK.js → IndexedDB-Dgwal8na.js} +1 -1
  23. package/dist/cjs/chunks/Label-BuyhcJbF.js +102 -0
  24. package/dist/cjs/chunks/Modal-ByRyv3wy.js +101 -0
  25. package/dist/cjs/chunks/{ModalController-13xmvKnm.js → ModalController-xjflFsjF.js} +1 -3
  26. package/dist/cjs/chunks/{Overlay-GXu6nMnw.js → Overlay-FooE9M_s.js} +1 -3
  27. package/dist/cjs/chunks/Pager-B-cuwffo.js +36 -0
  28. package/dist/cjs/chunks/{ProgressIndicator-D06PqCQk.js → ProgressIndicator-ByZ_aYAZ.js} +2 -6
  29. package/dist/cjs/chunks/{PromptInput-DuE4vGxR.js → PromptInput--grtHPvy.js} +2 -4
  30. package/dist/cjs/chunks/RadioButton-DP2X1dA_.js +55 -0
  31. package/dist/cjs/chunks/{RadioButtonList-N7Fmvr5W.js → RadioButtonList-COGNW5y3.js} +1 -2
  32. package/dist/cjs/chunks/{Slider-BSy8xciG.js → Slider-G1a8UKef.js} +1 -3
  33. package/dist/cjs/chunks/{Spacer-CyZAUR5N.js → Spacer-CsRCleXv.js} +1 -1
  34. package/dist/cjs/chunks/{Switch-Crm-nHYI.js → Switch-OBVHKn_D.js} +1 -2
  35. package/dist/cjs/chunks/{TabBar-BtFfMwiB.js → TabBar-C1HkBaxE.js} +2 -4
  36. package/dist/cjs/chunks/TextArea-BEmNI_HZ.js +74 -0
  37. package/dist/cjs/chunks/{TextField-Bh2EA082.js → TextField-D9_COA9H.js} +3 -5
  38. package/dist/cjs/chunks/Tip-2W0u_oQN.js +88 -0
  39. package/dist/cjs/chunks/Toast-B9jX6ioq.js +177 -0
  40. package/dist/cjs/chunks/ToggleButton-C_Gu5dYR.js +39 -0
  41. package/dist/cjs/chunks/UploadArea-ENFAf4tE.js +127 -0
  42. package/dist/cjs/chunks/{WSConnection-DrOC8Z0R.js → WSConnection-CZ22tcLz.js} +1 -1
  43. package/dist/cjs/chunks/{localDBStore-zyDhaEiP.js → localDBStore-Ca73jeFf.js} +1 -1
  44. package/dist/cjs/chunks/{microphoneStore-D1fV_8QQ.js → microphoneStore-lxYIvhN8.js} +1 -1
  45. package/dist/cjs/chunks/{misc-QpU0XEOW.js → misc-DZAbObFp.js} +1 -1
  46. package/dist/cjs/chunks/{sseStore-1OeJ9TRP.js → sseStore-Bq7sVvyA.js} +2 -2
  47. package/dist/cjs/chunks/{uploads-worker-Az040BSN.js → uploads-worker-CD-annza.js} +1 -1
  48. package/dist/cjs/chunks/{uploadsStore-8mOTz0Qe.js → uploadsStore-CUeB10zx.js} +2 -2
  49. package/dist/cjs/chunks/{volumeStore-Pv23v12t.js → volumeStore-roYTyKJ2.js} +1 -1
  50. package/dist/cjs/chunks/{windowStore-CCxCOUqa.js → windowStore-BdJv-RF0.js} +1 -1
  51. package/dist/cjs/components/AudioBubble/index.js +7 -7
  52. package/dist/cjs/components/Avatar/index.js +3 -4
  53. package/dist/cjs/components/AvatarGroup/index.js +4 -4
  54. package/dist/cjs/components/Badge/index.js +3 -3
  55. package/dist/cjs/components/Button/index.js +7 -8
  56. package/dist/cjs/components/ButtonBar/index.js +7 -7
  57. package/dist/cjs/components/Camera/index.js +8 -8
  58. package/dist/cjs/components/CheckBox/index.js +7 -7
  59. package/dist/cjs/components/Chip/index.js +7 -8
  60. package/dist/cjs/components/DivInput/index.js +3 -4
  61. package/dist/cjs/components/Dot/index.js +3 -3
  62. package/dist/cjs/components/DraggablePanel/index.js +6 -6
  63. package/dist/cjs/components/DropDown/index.js +7 -7
  64. package/dist/cjs/components/ErrorSummary/index.js +6 -7
  65. package/dist/cjs/components/FileIcon/index.js +6 -7
  66. package/dist/cjs/components/FileList/index.js +7 -7
  67. package/dist/cjs/components/FlexDiv/index.js +3 -4
  68. package/dist/cjs/components/Grouper/index.js +7 -8
  69. package/dist/cjs/components/Icon/index.js +6 -7
  70. package/dist/cjs/components/IconButton/index.js +6 -7
  71. package/dist/cjs/components/Label/index.js +3 -4
  72. package/dist/cjs/components/Modal/index.js +7 -8
  73. package/dist/cjs/components/ModalController/index.js +4 -4
  74. package/dist/cjs/components/Overlay/index.js +3 -3
  75. package/dist/cjs/components/Pager/index.js +3 -4
  76. package/dist/cjs/components/Progress/index.js +5 -6
  77. package/dist/cjs/components/PromptInput/index.js +9 -10
  78. package/dist/cjs/components/RadioButton/index.js +7 -7
  79. package/dist/cjs/components/RadioButtonList/index.js +8 -8
  80. package/dist/cjs/components/Slider/index.js +4 -5
  81. package/dist/cjs/components/Spacer/index.js +2 -2
  82. package/dist/cjs/components/Switch/index.js +3 -3
  83. package/dist/cjs/components/TabBar/index.js +9 -9
  84. package/dist/cjs/components/TextArea/index.js +8 -8
  85. package/dist/cjs/components/Textfield/index.js +9 -9
  86. package/dist/cjs/components/Tip/index.js +3 -4
  87. package/dist/cjs/components/Toast/index.js +7 -8
  88. package/dist/cjs/components/ToggleButton/index.js +8 -8
  89. package/dist/cjs/components/UploadArea/index.js +7 -7
  90. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  91. package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
  92. package/dist/cjs/hooks/useMicrophone.js +1 -1
  93. package/dist/cjs/hooks/useObserveTheme.js +3 -3
  94. package/dist/cjs/hooks/useTheme.js +2 -3
  95. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  96. package/dist/cjs/hooks.js +3 -3
  97. package/dist/cjs/index.js +6 -6
  98. package/dist/cjs/providers/ThemeProvider.js +1 -13
  99. package/dist/cjs/providers.js +4 -5
  100. package/dist/cjs/stores/LocalDB.js +3 -3
  101. package/dist/cjs/stores/SSE.js +2 -2
  102. package/dist/cjs/stores/WS.js +2 -2
  103. package/dist/cjs/stores/microphone.js +2 -2
  104. package/dist/cjs/stores/modal.js +1 -1
  105. package/dist/cjs/stores/tip.js +1 -1
  106. package/dist/cjs/stores/toast.js +1 -1
  107. package/dist/cjs/stores/uploads.js +2 -2
  108. package/dist/cjs/stores/volume.js +2 -2
  109. package/dist/cjs/stores/window.js +2 -2
  110. package/dist/cjs/stores.js +4 -4
  111. package/dist/cjs/theme/type.js +1 -1
  112. package/dist/cjs/utils/index.js +2 -2
  113. package/dist/cjs/utils/objects/index.js +2 -2
  114. package/dist/cjs/workers/uploads/uploads.js +2 -2
  115. package/dist/esm/chunks/{AudioBubble-D052QyPH.mjs → AudioBubble-DfrxyTX_.mjs} +3 -7
  116. package/dist/esm/chunks/Avatar-pA41Pcyl.mjs +88 -0
  117. package/dist/esm/chunks/{AvatarGroup-C7YRtPmJ.mjs → AvatarGroup-CZBtWjnj.mjs} +2 -6
  118. package/dist/esm/chunks/Badge-pLwG0zm7.mjs +26 -0
  119. package/dist/esm/chunks/{Button-BQS3rwrS.mjs → Button-BJoMLZIs.mjs} +6 -10
  120. package/dist/esm/chunks/{ButtonBar-GLNRjmjv.mjs → ButtonBar-BO2RUJ8R.mjs} +3 -7
  121. package/dist/esm/chunks/{Camera-CAp0Y2gN.mjs → Camera-4MNA52HG.mjs} +5 -9
  122. package/dist/esm/chunks/CheckBox-7KAsvZld.mjs +61 -0
  123. package/dist/esm/chunks/Chip-BuGvCLLU.mjs +87 -0
  124. package/dist/esm/chunks/{DivInput-g6F1YWTo.mjs → DivInput-D0YzSWjJ.mjs} +2 -6
  125. package/dist/esm/chunks/{Dot-DZE134mJ.mjs → Dot-h26m47Z-.mjs} +1 -5
  126. package/dist/esm/chunks/{DrggablePanel-C0AmJy8g.mjs → DrggablePanel-Bh6HLPMX.mjs} +2 -6
  127. package/dist/esm/chunks/DropDown-NgMYjjXn.mjs +112 -0
  128. package/dist/esm/chunks/ErrorSummary-nNm9qymE.mjs +90 -0
  129. package/dist/esm/chunks/{FileIcon-BQ2zZIW5.mjs → FileIcon-BqyV1wut.mjs} +2 -2
  130. package/dist/esm/chunks/FileList-C1tOvoc0.mjs +230 -0
  131. package/dist/esm/chunks/{FlexDiv-DnY1_qk4.mjs → FlexDiv-CkK-DAyg.mjs} +3 -6
  132. package/dist/esm/chunks/Grouper-CyrOkuu2.mjs +73 -0
  133. package/dist/esm/chunks/{Icon--RjjODc9.mjs → Icon-DjW0Krm8.mjs} +3 -8
  134. package/dist/esm/chunks/IconButton-DdLhTUl0.mjs +96 -0
  135. package/dist/esm/chunks/{IndexedDB-Dk7a4fPS.mjs → IndexedDB-DVoDikoA.mjs} +1 -1
  136. package/dist/esm/chunks/Label-DhmJ_Sln.mjs +113 -0
  137. package/dist/esm/chunks/Modal-FztrJsQo.mjs +113 -0
  138. package/dist/esm/chunks/{ModalController-BO5FkAqu.mjs → ModalController-C1BnM5Dz.mjs} +2 -6
  139. package/dist/esm/chunks/{Overlay-sXM7cEYc.mjs → Overlay-Dsy55Bxm.mjs} +1 -5
  140. package/dist/esm/chunks/Pager-BqSdwL0L.mjs +42 -0
  141. package/dist/esm/chunks/{ProgressIndicator-B5oByN3i.mjs → ProgressIndicator-BnqZFATV.mjs} +2 -8
  142. package/dist/esm/chunks/{PromptInput-Cwd53ux7.mjs → PromptInput-CRkcPXJu.mjs} +3 -7
  143. package/dist/esm/chunks/RadioButton-DXq3yniV.mjs +63 -0
  144. package/dist/esm/chunks/{RadioButtonList-C_heuiis.mjs → RadioButtonList-BgOskHCP.mjs} +3 -6
  145. package/dist/esm/chunks/{Slider-XEV0D2Rd.mjs → Slider-DPOy9uNI.mjs} +3 -7
  146. package/dist/esm/chunks/{Spacer-C5651N0N.mjs → Spacer-BJd_D0Fn.mjs} +1 -1
  147. package/dist/esm/chunks/{Switch-RfA431T4.mjs → Switch-DHqlyizo.mjs} +1 -4
  148. package/dist/esm/chunks/{TabBar-kPZ6ZJxr.mjs → TabBar-RBXExqMK.mjs} +5 -9
  149. package/dist/esm/chunks/TextArea-CIlx_P26.mjs +80 -0
  150. package/dist/esm/chunks/{TextField-DwVKlLI_.mjs → TextField-CX72ybwH.mjs} +5 -9
  151. package/dist/esm/chunks/Tip-COBSyEjm.mjs +96 -0
  152. package/dist/esm/chunks/Toast-BTm3HxDD.mjs +189 -0
  153. package/dist/esm/chunks/ToggleButton-DujsCKF3.mjs +47 -0
  154. package/dist/esm/chunks/UploadArea-D--Nt8Ed.mjs +135 -0
  155. package/dist/esm/chunks/{WSConnection-DV7k84B4.mjs → WSConnection-BMXcuW3f.mjs} +1 -1
  156. package/dist/esm/chunks/{localDBStore-Dnpo5nSv.mjs → localDBStore-36E3160Z.mjs} +2 -2
  157. package/dist/esm/chunks/{microphoneStore-Dr3lxoWX.mjs → microphoneStore-Cexu82zH.mjs} +1 -1
  158. package/dist/esm/chunks/{misc-wS74txaa.mjs → misc-CTGTuM2J.mjs} +1 -1
  159. package/dist/esm/chunks/{sseStore-DjrfpNAS.mjs → sseStore-Dow4NXkZ.mjs} +2 -2
  160. package/dist/esm/chunks/{uploads-worker-CYp-F4dz.mjs → uploads-worker-Dhyp4ot3.mjs} +1 -1
  161. package/dist/esm/chunks/{uploadsStore-DeRMJ5c9.mjs → uploadsStore-DT4lFybE.mjs} +1 -1
  162. package/dist/esm/chunks/{volumeStore-BX7QcrL-.mjs → volumeStore-RAxdmQ60.mjs} +1 -1
  163. package/dist/esm/chunks/{windowStore-CAzx2-QV.mjs → windowStore-C4AZexIa.mjs} +1 -1
  164. package/dist/esm/components/AudioBubble/index.mjs +4 -6
  165. package/dist/esm/components/Avatar/index.mjs +3 -5
  166. package/dist/esm/components/AvatarGroup/index.mjs +4 -6
  167. package/dist/esm/components/Badge/index.mjs +2 -4
  168. package/dist/esm/components/Button/index.mjs +8 -10
  169. package/dist/esm/components/ButtonBar/index.mjs +4 -6
  170. package/dist/esm/components/Camera/index.mjs +6 -8
  171. package/dist/esm/components/CheckBox/index.mjs +4 -6
  172. package/dist/esm/components/Chip/index.mjs +5 -7
  173. package/dist/esm/components/DivInput/index.mjs +3 -5
  174. package/dist/esm/components/Dot/index.mjs +2 -4
  175. package/dist/esm/components/DraggablePanel/index.mjs +3 -5
  176. package/dist/esm/components/DropDown/index.mjs +4 -6
  177. package/dist/esm/components/ErrorSummary/index.mjs +3 -5
  178. package/dist/esm/components/FileIcon/index.mjs +3 -5
  179. package/dist/esm/components/FileList/index.mjs +6 -8
  180. package/dist/esm/components/FlexDiv/index.mjs +2 -4
  181. package/dist/esm/components/Grouper/index.mjs +5 -7
  182. package/dist/esm/components/Icon/index.mjs +4 -6
  183. package/dist/esm/components/IconButton/index.mjs +7 -9
  184. package/dist/esm/components/Label/index.mjs +3 -5
  185. package/dist/esm/components/Modal/index.mjs +10 -12
  186. package/dist/esm/components/ModalController/index.mjs +4 -6
  187. package/dist/esm/components/Overlay/index.mjs +2 -4
  188. package/dist/esm/components/Pager/index.mjs +3 -5
  189. package/dist/esm/components/Progress/index.mjs +4 -6
  190. package/dist/esm/components/PromptInput/index.mjs +11 -13
  191. package/dist/esm/components/RadioButton/index.mjs +4 -6
  192. package/dist/esm/components/RadioButtonList/index.mjs +5 -7
  193. package/dist/esm/components/Slider/index.mjs +4 -6
  194. package/dist/esm/components/Spacer/index.mjs +2 -2
  195. package/dist/esm/components/Switch/index.mjs +2 -4
  196. package/dist/esm/components/TabBar/index.mjs +8 -10
  197. package/dist/esm/components/TextArea/index.mjs +9 -11
  198. package/dist/esm/components/Textfield/index.mjs +10 -12
  199. package/dist/esm/components/Tip/index.mjs +3 -5
  200. package/dist/esm/components/Toast/index.mjs +5 -7
  201. package/dist/esm/components/ToggleButton/index.mjs +9 -11
  202. package/dist/esm/components/UploadArea/index.mjs +9 -11
  203. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  204. package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
  205. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  206. package/dist/esm/hooks/useObserveTheme.mjs +0 -2
  207. package/dist/esm/hooks/useTheme.mjs +0 -2
  208. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  209. package/dist/esm/hooks.mjs +2 -4
  210. package/dist/esm/index.mjs +48 -50
  211. package/dist/esm/providers/ThemeProvider.mjs +0 -14
  212. package/dist/esm/providers.mjs +0 -2
  213. package/dist/esm/stores/LocalDB.mjs +3 -3
  214. package/dist/esm/stores/SSE.mjs +3 -3
  215. package/dist/esm/stores/WS.mjs +2 -2
  216. package/dist/esm/stores/microphone.mjs +2 -2
  217. package/dist/esm/stores/modal.mjs +1 -1
  218. package/dist/esm/stores/tip.mjs +1 -1
  219. package/dist/esm/stores/toast.mjs +1 -1
  220. package/dist/esm/stores/uploads.mjs +3 -3
  221. package/dist/esm/stores/volume.mjs +2 -2
  222. package/dist/esm/stores/window.mjs +2 -2
  223. package/dist/esm/stores.mjs +13 -13
  224. package/dist/esm/theme/type.mjs +1 -1
  225. package/dist/esm/utils/index.mjs +9 -9
  226. package/dist/esm/utils/objects/index.mjs +6 -6
  227. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  228. package/dist/styles.css +8436 -0
  229. package/dist/types/components/Modal/_types.d.ts +1 -0
  230. package/dist/types/index.d.ts +1 -0
  231. package/dist/types/providers/ThemeProvider.d.ts +0 -6
  232. package/package.json +8 -3
  233. package/dist/cjs/chunks/Avatar-CqUSRzVd.js +0 -84
  234. package/dist/cjs/chunks/Badge-DjPJ_iJX.js +0 -24
  235. package/dist/cjs/chunks/CheckBox-Cbh6UK-7.js +0 -53
  236. package/dist/cjs/chunks/Chip-DcS8dtW2.js +0 -79
  237. package/dist/cjs/chunks/DropDown-B0970yVe.js +0 -105
  238. package/dist/cjs/chunks/ErrorSummary-K_rPxGWK.js +0 -87
  239. package/dist/cjs/chunks/FileList-sDq1jK0b.js +0 -225
  240. package/dist/cjs/chunks/Grouper-Ccd-x_Nb.js +0 -63
  241. package/dist/cjs/chunks/IconButton-CF4cR7Tr.js +0 -84
  242. package/dist/cjs/chunks/Label-htjXHiQ4.js +0 -103
  243. package/dist/cjs/chunks/Modal-C0Z59meI.js +0 -101
  244. package/dist/cjs/chunks/Pager-D2_fshTy.js +0 -38
  245. package/dist/cjs/chunks/RadioButton-DPB2ZGVf.js +0 -56
  246. package/dist/cjs/chunks/TextArea-CRiPRF8v.js +0 -76
  247. package/dist/cjs/chunks/Tip-C5keUoHx.js +0 -90
  248. package/dist/cjs/chunks/Toast-CyiFOsI3.js +0 -178
  249. package/dist/cjs/chunks/ToggleButton-D5_WnW0o.js +0 -40
  250. package/dist/cjs/chunks/UploadArea-KqES_OLl.js +0 -129
  251. package/dist/cjs/chunks/style-inject.es-CMuL-BfJ.js +0 -11
  252. package/dist/esm/chunks/Avatar-29zhNfxX.mjs +0 -92
  253. package/dist/esm/chunks/Badge-CC0zSLMf.mjs +0 -30
  254. package/dist/esm/chunks/CheckBox-7TiT2U47.mjs +0 -65
  255. package/dist/esm/chunks/Chip-CKsojimU.mjs +0 -91
  256. package/dist/esm/chunks/DropDown-mwo8fY7p.mjs +0 -115
  257. package/dist/esm/chunks/ErrorSummary-EzCqVifm.mjs +0 -94
  258. package/dist/esm/chunks/FileList-fh-x9Dzm.mjs +0 -235
  259. package/dist/esm/chunks/Grouper-naJMvpB9.mjs +0 -77
  260. package/dist/esm/chunks/IconButton-ByBYppAj.mjs +0 -100
  261. package/dist/esm/chunks/Label-C04tD7UZ.mjs +0 -116
  262. package/dist/esm/chunks/Modal-B9ad9OfJ.mjs +0 -115
  263. package/dist/esm/chunks/Pager-Bz0FpgO5.mjs +0 -46
  264. package/dist/esm/chunks/RadioButton-CLeRiZ8x.mjs +0 -66
  265. package/dist/esm/chunks/TextArea-CxscPLwN.mjs +0 -84
  266. package/dist/esm/chunks/Tip-C6EcX7_M.mjs +0 -100
  267. package/dist/esm/chunks/Toast-D4uMNvaa.mjs +0 -192
  268. package/dist/esm/chunks/ToggleButton-C0QIflzX.mjs +0 -51
  269. package/dist/esm/chunks/UploadArea-je-1NhGb.mjs +0 -139
  270. package/dist/esm/chunks/style-inject.es-D0BjEaN8.mjs +0 -11
  271. /package/dist/cjs/chunks/{MdStreamBuffer-CvLO7CVi.js → MdStreamBuffer-CbG_VeRI.js} +0 -0
  272. /package/dist/cjs/chunks/{SSEConnection-C-1OzEOp.js → SSEConnection-ACoOeeTO.js} +0 -0
  273. /package/dist/cjs/chunks/{_types-Bdqd2vHh.js → _types-k-3V1fz_.js} +0 -0
  274. /package/dist/cjs/chunks/{audioVisualizer-EIfIjWH7.js → audioVisualizer-MOSbvvnZ.js} +0 -0
  275. /package/dist/cjs/chunks/{colors-njquvHkx.js → colors-B0_3srZN.js} +0 -0
  276. /package/dist/cjs/chunks/{debounce-BF4i6uIC.js → debounce-CaoYvh12.js} +0 -0
  277. /package/dist/cjs/chunks/{modalStore-7VjHHM8X.js → modalStore-D4bOjuWd.js} +0 -0
  278. /package/dist/cjs/chunks/{sharedTypes-gCECyn2N.js → sharedTypes-CthHPjrO.js} +0 -0
  279. /package/dist/cjs/chunks/{tipStore-Ck4NLvml.js → tipStore-CPB7RHKY.js} +0 -0
  280. /package/dist/cjs/chunks/{toastStore-CSStgB9d.js → toastStore-6eHe6esp.js} +0 -0
  281. /package/dist/cjs/chunks/{tslib.es6-C8dZW5nY.js → tslib.es6-CzpRaW14.js} +0 -0
  282. /package/dist/esm/chunks/{MdStreamBuffer-By7pHJQL.mjs → MdStreamBuffer-4AJH8WaN.mjs} +0 -0
  283. /package/dist/esm/chunks/{SSEConnection-DcA3wFsO.mjs → SSEConnection-qNnkZUOe.mjs} +0 -0
  284. /package/dist/esm/chunks/{_types-BVrr_Khp.mjs → _types-CEStVWlB.mjs} +0 -0
  285. /package/dist/esm/chunks/{audioVisualizer-ZgT77nUw.mjs → audioVisualizer-BUNbarKP.mjs} +0 -0
  286. /package/dist/esm/chunks/{colors-FQ0uNQcW.mjs → colors-D-qeA9gU.mjs} +0 -0
  287. /package/dist/esm/chunks/{debounce-Bst1jxMS.mjs → debounce-D5b6tZ5a.mjs} +0 -0
  288. /package/dist/esm/chunks/{modalStore-BpWnLtOF.mjs → modalStore-Crg_QmSJ.mjs} +0 -0
  289. /package/dist/esm/chunks/{sharedTypes-tn9-uJvb.mjs → sharedTypes-U5H1I85x.mjs} +0 -0
  290. /package/dist/esm/chunks/{tipStore-CL5a95Bl.mjs → tipStore-pvswaezx.mjs} +0 -0
  291. /package/dist/esm/chunks/{toastStore-D2PEIqCo.mjs → toastStore-80oOTYsj.mjs} +0 -0
  292. /package/dist/esm/chunks/{tslib.es6-C-olHjXV.mjs → tslib.es6-BX2F90pK.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -7,16 +7,12 @@ import React, { useRef, useState, useMemo, useCallback, useEffect } from "react"
7
7
 
8
8
  import { useObserveResize } from "../hooks/useObserveResize.mjs";
9
9
 
10
- import { p as pointerPosition } from "./misc-wS74txaa.mjs";
10
+ import { p as pointerPosition } from "./misc-CTGTuM2J.mjs";
11
11
 
12
- import { d as debounce } from "./debounce-Bst1jxMS.mjs";
13
-
14
- import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
12
+ import { d as debounce } from "./debounce-D5b6tZ5a.mjs";
15
13
 
16
14
  var css_wrapper = "Slider-module_wrapper__KCCs1", css_trackBg = "Slider-module_trackBg__7zfqm flexBox-module_rowStart__4tcxS", css_track = "Slider-module_track__kaJkL flexBox-module_rowStart__4tcxS", css_trackHead = "Slider-module_trackHead__W-UdG", css_trackWrapper = "Slider-module_trackWrapper__Ot0Wh flexBox-module_rowStart__4tcxS";
17
15
 
18
- styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.Slider-module_wrapper__KCCs1 {\n\tposition: relative;\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0 var(--slider-padding);\n\tmargin: 0;\n\twidth: var(--slider-width);\n\theight: auto;\n\tmin-height: var(--slider-touch-height);\n\tcursor: var(--slider-cursor);\n\topacity: var(--slider-opacity);\n\tbackground: transparent;\n}\n\n.Slider-module_trackBg__7zfqm {\n\tposition: relative;\n\twidth: 100%;\n\theight: var(--slider-height);\n\tbackground-color: var(--slider-track-color);\n\toverflow: hidden;\n\tborder-radius: 100px;\n}\n\n.Slider-module_track__kaJkL {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\twidth: 0;\n\tbackground-color: var(--slider-progress-color);\n\toverflow: visible;\n\tborder-radius: 100px;\n}\n\n.Slider-module_trackHead__W-UdG {\n\tposition: absolute;\n\tdisplay: var(--slider-head-display);\n\tbackground-color: var(--slider-head-color);\n\tborder: var(--slider-track-head-border);\n\tborder-radius: var(--slider-head-radius);\n\tmax-width: var(--slider-head-width);\n\tmax-height: var(--slider-head-size);\n\tmin-width: var(--slider-head-width);\n\tmin-height: var(--slider-head-size);\n\ttop: 50%;\n\ttransform: translateY(-50%) translateX(-50%);\n}\n\n.Slider-module_trackWrapper__Ot0Wh {\n\tposition: relative;\n\twidth: 100%;\n\theight: var(--slider-height);\n\tmin-height: var(--slider-touch-height);\n\tbackground-color: transparent;\n\tborder-radius: 4px;\n\toverflow: visible;\n\toutline: none;\n}\n\n.Slider-module_trackWrapper__Ot0Wh:focus-visible {\n\toutline: 2px solid var(--core-link-primary);\n\toutline-offset: 2px;\n}\n");
19
-
20
16
  const Slider = React.memo(props => {
21
17
  const {value: value = 25, scaleMin: scaleMin = 0, scaleMax: scaleMax = 100, width: width, height: height = 2, touchHeight: touchHeight = 24, trackHeadSize: trackHeadSize = 7, step: step, disabled: disabled = !1, disabledOpacity: disabledOpacity = .5, cursor: cursor = "default", headColor: headColor = "var(--core-text-light)", trackColor: trackColor = "var(--core-surface-secondary)", progressColor: progressColor = "var(--core-text-tertiary)", trackHeadBorderSize: trackHeadBorderSize = 1, trackHeadBorderColor: trackHeadBorderColor = "var(--core-outline-secondary)", onChange: onChange = () => null, onDragChange: onDragChange = () => null} = props, divAttributes = __rest(props, [ "value", "scaleMin", "scaleMax", "width", "height", "touchHeight", "trackHeadSize", "step", "disabled", "disabledOpacity", "cursor", "headColor", "trackColor", "progressColor", "trackHeadBorderSize", "trackHeadBorderColor", "onChange", "onDragChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = useRef(null), track = useRef(null), head = useRef(null), [currentValue, setCurrentValue] = useState(value), absProgressRef = useRef(value), relativeProgressRef = useRef(0), didMount = useRef(!1), size = useObserveResize(ref, {
22
18
  ignore: "height"
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
3
 
4
4
  import { jsx } from "react/jsx-runtime";
5
5
 
@@ -7,8 +7,6 @@ import { motion } from "motion/react";
7
7
 
8
8
  import React, { useState, useEffect, useCallback, useMemo } from "react";
9
9
 
10
- import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
11
-
12
10
  var css_wrapper = "Switch-module_wrapper__kudO9 flexBox-module_row__z24tF", css_knob = "Switch-module_knob__vKNOc flexBox-module_row__z24tF";
13
11
 
14
12
  function SwitchComponent(props) {
@@ -45,7 +43,6 @@ function SwitchComponent(props) {
45
43
  }));
46
44
  }
47
45
 
48
- styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}\n\n.Switch-module_wrapper__kudO9 {\n\tpadding: var(--switch-padding) !important;\n\twidth: var(--switch-width);\n\theight: var(--switch-height);\n\tborder-radius: 100px;\n\tcursor: pointer;\n\tbackground: var(--switch-bg-color);\n\ttransition: background var(--motion-water-duration) var(--motion-water) 0s;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tborder: 0;\n\toutline: none;\n}\n\n.Switch-module_knob__vKNOc {\n\twidth: var(--switch-knob-size);\n\theight: var(--switch-knob-size);\n\tbackground: var(--switch-knob-color);\n\tborder-radius: 100%;\n}\n"),
49
46
  SwitchComponent.displayName = "Switch";
50
47
 
51
48
  const Switch = React.memo(SwitchComponent);
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
3
 
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -11,20 +11,16 @@ import "../theme/colors.mjs";
11
11
 
12
12
  import "../hooks/useWindow.mjs";
13
13
 
14
- import { B as Badge } from "./Badge-CC0zSLMf.mjs";
14
+ import { B as Badge } from "./Badge-pLwG0zm7.mjs";
15
15
 
16
- import { I as Icon } from "./Icon--RjjODc9.mjs";
16
+ import { I as Icon } from "./Icon-DjW0Krm8.mjs";
17
17
 
18
- import { I as IconButton } from "./IconButton-ByBYppAj.mjs";
18
+ import { I as IconButton } from "./IconButton-DdLhTUl0.mjs";
19
19
 
20
- import { T as ToolTipType } from "./sharedTypes-tn9-uJvb.mjs";
21
-
22
- import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
20
+ import { T as ToolTipType } from "./sharedTypes-U5H1I85x.mjs";
23
21
 
24
22
  var css_wrapper = "TabBar-module_wrapper__cyOR1 flexBox-module_rowStart__4tcxS", css_option = "TabBar-module_option__gYjDf flexBox-module_row__z24tF type-module_body-m-regular__LuQBA", css_icon = "TabBar-module_icon__JDgG3 flexBox-module_row__z24tF", css_close = "TabBar-module_close__bvSBh flexBox-module_row__z24tF";
25
23
 
26
- styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TabBar-module_wrapper__cyOR1 {\n\tgap: var(--tab-bar-gap);\n\tborder-bottom: var(--tab-bar-border-bottom) solid var(--core-outline-primary);\n\theight: var(--tab-bar-height);\n\twidth: var(--tab-bar-width);\n\tcursor: pointer;\n}\n\n.TabBar-module_option__gYjDf {\n\tgap: var(--tab-bar-option-gap);\n\tcolor: var(--tab-bar-option-color);\n\tpadding: var(--tab-bar-option-padding) !important;\n\theight: 100%;\n\twidth: var(--tab-bar-option-width);\n\tflex: var(--tab-bar-option-flex);\n\twhite-space: nowrap;\n\tbox-shadow: 0 var(--tab-bar-option-border) 0 0 var(--core-text-special);\n\tcursor: var(--tab-bar-option-cursor);\n\t-webkit-user-select: none;\n\tuser-select: none;\n\tappearance: none;\n\t-webkit-appearance: none;\n\tbackground-image: none;\n\tbackground-color: transparent;\n\tborder: 0;\n\toutline: none;\n\ttext-align: left;\n}\n\n.TabBar-module_icon__JDgG3 {\n\tmax-height: var(--tab-bar-icon-size);\n\tmin-height: var(--tab-bar-icon-size);\n\tmax-width: var(--tab-bar-icon-size);\n\tmin-width: var(--tab-bar-icon-size);\n}\n\n.TabBar-module_close__bvSBh {\n\theight: 100%;\n\tpadding: var(--tab-bar-close-padding) !important;\n\tborder-left: 1px solid var(--core-outline-primary);\n\twidth: min-content;\n}\n");
27
-
28
24
  const placeholderOptions = [ {
29
25
  name: "Light",
30
26
  value: "Option 1",
@@ -0,0 +1,80 @@
1
+ 'use client';
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
+
4
+ import { jsxs, jsx } from "react/jsx-runtime";
5
+
6
+ import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
7
+
8
+ import { B as Button } from "./Button-BJoMLZIs.mjs";
9
+
10
+ var css_wrapper = "TextArea-module_wrapper__O0sWP flexBox-module_columnStart__C7P44", css_textarea = "TextArea-module_textarea__-R2n0", css_send = "TextArea-module_send__Cub13", css_xs = "TextArea-module_xs__5e748 type-module_body-xs-regular__ZAFft", css_s = "TextArea-module_s__Ac-fq type-module_body-s-regular__vRHSP", css_m = "TextArea-module_m__dod4R type-module_body-m-regular__LuQBA", css_l = "TextArea-module_l__-uLCG type-module_body-l-regular__lOYbg";
11
+
12
+ const TextArea = React.memo(props => {
13
+ const {value: value = "", name: name = "text_area", width: width = "100%", focused: focused = !1, placeholder: placeholder = "Enter text here...", rows: rows = 6, border: border = !0, borderRadius: borderRadius = 4, padding: padding = "16px 4px 16px 16px", error: error = !1, resizable: resizable = !0, hasSend: hasSend = !1, sendOffset: sendOffset = {
14
+ bottom: 10,
15
+ right: 10
16
+ }, sendSize: sendSize = 36, returnSubmits: returnSubmits = !1, backgroundColor: backgroundColor, bgColor: bgColor, minWidth: minWidth, textSize: textSize = "m", disabled: disabled = !1, submitClears: submitClears = !0, onChange: onChange = () => null, onFocus: onFocus = () => null, onBlur: onBlur = () => null, onSubmit: onSubmit = () => null, onKeyDown: onKeyDown = () => null} = props, divAttributes = __rest(props, [ "value", "name", "width", "focused", "placeholder", "rows", "border", "borderRadius", "padding", "error", "resizable", "hasSend", "sendOffset", "sendSize", "returnSubmits", "backgroundColor", "bgColor", "minWidth", "textSize", "disabled", "submitClears", "onChange", "onFocus", "onBlur", "onSubmit", "onKeyDown" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, [isFocused, setIsFocused] = useState(focused), [text, setText] = useState(value), ref = useRef(null), handleResize = useCallback(() => {
17
+ (null == ref ? void 0 : ref.current) && (ref.current.style.height = "auto", ref.current.style.height = `${ref.current.scrollHeight}px`);
18
+ }, []);
19
+ useEffect(() => {
20
+ (null == ref ? void 0 : ref.current) && (focused ? ref.current.focus() : ref.current.blur(),
21
+ setIsFocused(focused));
22
+ }, [ focused ]), useEffect(() => setText(value), [ value ]), useEffect(() => handleResize(), [ rows ]);
23
+ const handleChange = useCallback(content => {
24
+ onChange(content), setText(content);
25
+ }, [ onChange ]), handleFocus = useCallback(() => {
26
+ var _a, _b;
27
+ (null == ref ? void 0 : ref.current) && ref.current.focus(), setIsFocused(!0), onFocus(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
28
+ }, [ onFocus ]), handleBlur = useCallback(() => {
29
+ var _a, _b;
30
+ setIsFocused(!1), onBlur(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
31
+ }, [ onBlur ]), handleSubmit = useCallback(e => {
32
+ null == e || e.preventDefault(), handleFocus(), onSubmit(text), submitClears && setText(""),
33
+ (null == ref ? void 0 : ref.current) && (ref.current.value = ""), handleResize();
34
+ }, [ handleFocus, onSubmit, text, submitClears, handleResize ]), handleKeyDownWrapper = useCallback(e => {
35
+ returnSubmits && "Enter" === e.key && (e.preventDefault(), e.stopPropagation(),
36
+ handleSubmit(void 0)), onKeyDown(e);
37
+ }, [ returnSubmits, handleSubmit, onKeyDown ]), setStyleValue = useCallback(value => "string" == typeof value ? value : `${value}px`, []), setBorderColor = useMemo(() => border && isFocused ? "var(--core-link-primary)" : border && error ? "var(--feedback-warning)" : border ? "var(--core-outline-primary)" : "transparent", [ isFocused, error, border ]), textClassName = useMemo(() => "xs" === textSize ? css_xs : "l" === textSize ? css_l : "m" === textSize ? css_m : css_s, [ textSize ]), cssVars = useMemo(() => ({
38
+ "--ta-border-radius": `${borderRadius}px`,
39
+ "--ta-width": `${setStyleValue(width)}`,
40
+ "--ta-min-width": minWidth ? `${minWidth}px` : "unset",
41
+ "--ta-bg-color": null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)",
42
+ "--ta-border-color": setBorderColor,
43
+ "--ta-padding": `${setStyleValue(padding)}`,
44
+ "--ta-send-icon-offset-bottom": `${sendOffset.bottom}px`,
45
+ "--ta-send-icon-offset-right": `${sendOffset.right}px`,
46
+ "--ta-send-icon-size": `${sendSize}px`,
47
+ "--ta-resize": resizable ? "vertical" : "none"
48
+ }), [ width, minWidth, resolvedBackgroundColor, setBorderColor, padding, sendOffset, sendSize, setStyleValue, borderRadius, resizable ]);
49
+ return jsxs("div", Object.assign({
50
+ id: divId,
51
+ className: `${css_wrapper}${divClass}`,
52
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
53
+ onBlur: () => handleBlur(),
54
+ onFocus: () => handleFocus()
55
+ }, rest, {
56
+ children: [ hasSend && jsx("div", {
57
+ className: css_send,
58
+ onMouseDown: e => handleSubmit(e),
59
+ children: jsx(Button, {
60
+ iconLeft: "arrow up",
61
+ size: "medium",
62
+ variant: "solid",
63
+ round: !0
64
+ })
65
+ }), jsx("textarea", {
66
+ className: `${css_textarea} ${textClassName}`,
67
+ ref: ref,
68
+ name: name,
69
+ value: text,
70
+ placeholder: placeholder,
71
+ rows: rows,
72
+ disabled: disabled,
73
+ onChange: e => handleChange(e.target.value),
74
+ onInput: () => handleResize(),
75
+ onKeyDown: e => handleKeyDownWrapper(e)
76
+ }) ]
77
+ }));
78
+ });
79
+
80
+ export { TextArea as T };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { a as __rest } from "./tslib.es6-C-olHjXV.mjs";
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
3
 
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
 
@@ -11,17 +11,15 @@ import { useTheme } from "../hooks/useTheme.mjs";
11
11
 
12
12
  import "../theme/colors.mjs";
13
13
 
14
- import { s as setStyle } from "./misc-wS74txaa.mjs";
14
+ import { s as setStyle } from "./misc-CTGTuM2J.mjs";
15
15
 
16
16
  import "../hooks/useWindow.mjs";
17
17
 
18
- import { B as Button } from "./Button-BQS3rwrS.mjs";
18
+ import { B as Button } from "./Button-BJoMLZIs.mjs";
19
19
 
20
- import { I as Icon } from "./Icon--RjjODc9.mjs";
20
+ import { I as Icon } from "./Icon-DjW0Krm8.mjs";
21
21
 
22
- import { I as IconButton } from "./IconButton-ByBYppAj.mjs";
23
-
24
- import { s as styleInject } from "./style-inject.es-D0BjEaN8.mjs";
22
+ import { I as IconButton } from "./IconButton-DdLhTUl0.mjs";
25
23
 
26
24
  var css = {
27
25
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
@@ -36,8 +34,6 @@ var css = {
36
34
  l: "TextField-module_l__gbNRz type-module_body-l-regular__lOYbg"
37
35
  };
38
36
 
39
- styleInject(".flexBox-module_row__z24tF {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowBetween__5FEvi {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowStart__4tcxS {\n\tdisplay: flex;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_rowEnd__rVdVm {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_column__ezvMq {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStart__C7P44 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: flex-start;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnStartCenter__PKcrG {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-start;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnBetween__ERfp7 {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\talign-items: center;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.flexBox-module_columnEnd__lLJuc {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\tbox-sizing: border-box;\n\tpadding: 0;\n\tmargin: 0;\n}.type-module_body-xs-regular__ZAFft {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-medium__s3KvF {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-xs-bold__Lhqqq {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xs);\n\tline-height: 133.33%;\n\ttext-decoration: none;\n\tletter-spacing: 0.25px;\n}.type-module_body-s-regular__vRHSP {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-medium__tjdFc {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-s-bold__Iy-VX {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-s);\n\tline-height: 142.86%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-m-regular__LuQBA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-medium__uW1on {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-m-bold__UBcvQ {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-m);\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_body-l-regular__lOYbg {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-medium__BqRC7 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-l-bold__Fh2dt {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-l);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_body-xl-regular__pF2kC {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-regular);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-medium__BeyrH {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-medium);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.1px;\n}.type-module_body-xl-bold__Ruknj {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: var(--font-weight-bold);\n\tfont-size: var(--font-size-xl);\n\tline-height: 162.5%;\n\ttext-decoration: none;\n\tletter-spacing: 0.15px;\n}.type-module_heading-s-medium__z8L3G {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-s-bold__0O3g6 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 20px;\n\tline-height: 140%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-bold__KXxEB {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-m-medium__cJeEA {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 24px;\n\tline-height: 116.67%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-medium__eRe05 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-l-bold__Xmwtf {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 30px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-medium__5q1m3 {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 500;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}.type-module_heading-xl-bold__k9VFV {\n\tfont-family: var(--font-family), sans-serif;\n\tfont-weight: 600;\n\tfont-size: 36px;\n\tline-height: 128.57%;\n\ttext-decoration: none;\n\tletter-spacing: 0.2px;\n}\n\n.TextField-module_wrapper__qZ-p- {\n\tposition: relative;\n\tpadding: var(--tf-padding) !important;\n\tpadding-right: var(--tf-padding-right) !important;\n\tgap: 8px;\n\toverflow: visible;\n\twidth: var(--tf-width);\n\theight: var(--tf-height);\n\tborder-radius: var(--tf-border-radius);\n\tbackground: var(--tf-bg-color);\n\tbox-shadow: var(--tf-box-shadow);\n\ttransition: all var(--motion-water-duration) var(--motion-water) 0s;\n}\n\n.TextField-module_container__5U9yK {\n\tflex: 1;\n\theight: 100%;\n\tgap: 8px;\n}\n\n.TextField-module_label__jD8MR {\n\tcolor: var(--tf-label-color);\n\theight: auto;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.TextField-module_input__AkWBQ {\n\tcolor: var(--tf-text-color);\n\tbackground-color: transparent;\n\tbox-sizing: border-box;\n\toutline: none;\n\tborder: 0;\n\tpadding: 0;\n\theight: 100%;\n\twidth: var(--tf-input-width);\n\tfield-sizing: var(--tf-field-size);\n\ttext-align: var(--tf-text-align);\n\t&::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:focus::placeholder {\n\t\tcolor: var(--tf-placeholder-color);\n\t}\n\t&:disabled {\n\t\tcolor: var(--core-text-disabled);\n\t}\n\t&:-webkit-autofill,\n\t&:-webkit-autofill:hover,\n\t&:-webkit-autofill:focus,\n\t&:-webkit-autofill:active {\n\t\tbox-shadow: 0 0 0 50px var(--core-button-disabled) inset !important;\n\t\t-webkit-text-fill-color: var(--core-text-primary);\n\t}\n}\n\n.TextField-module_showPassword__4Ecfo {\n\tmin-height: 18px;\n\tmin-width: 18px;\n\tmax-height: 18px;\n\tmax-width: 18px;\n\topacity: var(--tf-show-opacity);\n\t&:hover {\n\t\topacity: var(--tf-show-opacity-hover);\n\t}\n}\n\n.TextField-module_clearButton__O9ed3 {\n\tborder: 0;\n\tbackground: transparent;\n\tappearance: none;\n\t-webkit-appearance: none;\n\toutline: none;\n\tcursor: pointer;\n}\n\n.TextField-module_xs__vyt2t {\n}\n\n.TextField-module_s__0qm83 {\n}\n\n.TextField-module_m__M-tLl {\n}\n\n.TextField-module_l__gbNRz {\n}\n");
40
-
41
37
  const MOTION_CONFIG = {
42
38
  variants: {
43
39
  initial: {
@@ -0,0 +1,96 @@
1
+ 'use client';
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
+
4
+ import { jsx } from "react/jsx-runtime";
5
+
6
+ import { motion } from "motion/react";
7
+
8
+ import React, { useState, useRef, useEffect, useMemo } from "react";
9
+
10
+ import { f as filterClasses } from "./misc-CTGTuM2J.mjs";
11
+
12
+ var css = {
13
+ wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
14
+ xs: "Tip-module_xs__wsz9y type-module_body-xs-regular__ZAFft",
15
+ s: "Tip-module_s__Wvz3q type-module_body-s-regular__vRHSP",
16
+ m: "Tip-module_m__9qJbB type-module_body-m-regular__LuQBA",
17
+ l: "Tip-module_l__OdNuh type-module_body-l-regular__lOYbg"
18
+ };
19
+
20
+ const tipBasePos = {
21
+ left: 0,
22
+ top: 0
23
+ }, TipBase = React.forwardRef((props, ref) => {
24
+ var _a;
25
+ const {tip: tip, size: size = "s", backgroundColor: backgroundColor, bgColor: bgColor, textColor: textColor, color: color, border: border = !0, borderColor: borderColor, padding: padding, borderRadius: borderRadius, radius: radius, coords: coords, showDelay: showDelay = 500, hideDelay: hideDelay = 2500} = props, divAttributes = __rest(props, [ "tip", "size", "backgroundColor", "bgColor", "textColor", "color", "border", "borderColor", "padding", "borderRadius", "radius", "coords", "showDelay", "hideDelay" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [pos, setPos] = useState(tipBasePos), [ready, setReady] = useState(!1), [animate, setAnimate] = useState(!1), timer = useRef(null), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedTextColor = null != textColor ? textColor : color, resolvedBorderRadius = null != borderRadius ? borderRadius : radius;
26
+ useEffect(() => {
27
+ timer.current && clearTimeout(timer.current);
28
+ const {x: x, y: y} = null != coords ? coords : {
29
+ x: 0,
30
+ y: 0
31
+ };
32
+ return x > 0 && y > 0 ? timer.current = setTimeout(() => {
33
+ var _a, _b;
34
+ setPos({
35
+ left: null !== (_a = null == coords ? void 0 : coords.x) && void 0 !== _a ? _a : 0,
36
+ top: null !== (_b = null == coords ? void 0 : coords.y) && void 0 !== _b ? _b : 0
37
+ }), setReady(!0), timer.current && clearTimeout(timer.current), timer.current = setTimeout(() => {
38
+ setReady(!1), setPos({
39
+ left: 0,
40
+ top: 0
41
+ });
42
+ }, hideDelay);
43
+ }, showDelay) : (setReady(!1), setPos({
44
+ left: 0,
45
+ top: 0
46
+ })), () => {
47
+ timer.current && clearTimeout(timer.current);
48
+ };
49
+ }, [ coords, showDelay, hideDelay ]), useEffect(() => setAnimate(ready), [ ready ]);
50
+ const cssVars = useMemo(() => ({
51
+ "--tooltip-padding": null != padding ? padding : "3px 6px",
52
+ "--tooltip-background": null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)",
53
+ "--tooltip-color": null != resolvedTextColor ? resolvedTextColor : "var(--core-text-primary)",
54
+ "--tooltip-border": border ? `1px solid ${null != borderColor ? borderColor : "var(--core-outline-primary)"}` : "unset",
55
+ "--tooltip-border-radius": null != resolvedBorderRadius ? resolvedBorderRadius : "4px"
56
+ }), [ padding, resolvedBackgroundColor, resolvedTextColor, border, borderColor, resolvedBorderRadius ]), coordStyle = useMemo(() => {
57
+ const {left: left, top: top} = pos;
58
+ return {
59
+ left: `${null != left ? left : 0}px`,
60
+ top: `${null != top ? top : 0}px`
61
+ };
62
+ }, [ pos ]), classNames = useMemo(() => filterClasses([ css.wrapper, css[size], divClass ]), [ size, divClass ]);
63
+ return jsx(motion.div, Object.assign({
64
+ ref: ref,
65
+ id: divId,
66
+ className: classNames,
67
+ onKeyDown: () => null,
68
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), coordStyle), {
69
+ visibility: ready ? "visible" : "hidden"
70
+ }),
71
+ initial: {
72
+ opacity: 0
73
+ },
74
+ animate: animate ? {
75
+ opacity: 1,
76
+ transition: {
77
+ ease: "easeInOut",
78
+ duration: .25
79
+ }
80
+ } : void 0,
81
+ exit: {
82
+ opacity: 0,
83
+ transition: {
84
+ duration: 0
85
+ }
86
+ }
87
+ }, rest, {
88
+ children: null === (_a = null == tip ? void 0 : tip.payload) || void 0 === _a ? void 0 : _a.label
89
+ }));
90
+ });
91
+
92
+ TipBase.displayName = "Tip";
93
+
94
+ const Tip = React.memo(TipBase);
95
+
96
+ export { Tip as T };
@@ -0,0 +1,189 @@
1
+ 'use client';
2
+ import { a as __rest } from "./tslib.es6-BX2F90pK.mjs";
3
+
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+
6
+ import { AnimatePresence, motion } from "motion/react";
7
+
8
+ import React, { useState, useRef, useEffect, useMemo, useCallback } from "react";
9
+
10
+ import { useTheme } from "../hooks/useTheme.mjs";
11
+
12
+ import "../theme/colors.mjs";
13
+
14
+ import { s as setStyle, f as filterClasses, a as accessibleKeyDown } from "./misc-CTGTuM2J.mjs";
15
+
16
+ import "../hooks/useWindow.mjs";
17
+
18
+ import { I as Icon } from "./Icon-DjW0Krm8.mjs";
19
+
20
+ import { P as ProgressIndicator } from "./ProgressIndicator-BnqZFATV.mjs";
21
+
22
+ var ToastType, css = {
23
+ wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
24
+ close: "Toast-module_close__i10-s flexBox-module_row__z24tF",
25
+ message: "Toast-module_message__3dP0P flexBox-module_rowStart__4tcxS",
26
+ progress: "Toast-module_progress__SWsbA flexBox-module_row__z24tF",
27
+ s: "Toast-module_s__kc5Ef type-module_body-s-regular__vRHSP",
28
+ m: "Toast-module_m__JtmLz type-module_body-m-regular__LuQBA",
29
+ l: "Toast-module_l__-W0PD type-module_body-l-regular__lOYbg"
30
+ };
31
+
32
+ !function(ToastType) {
33
+ ToastType.Success = "success", ToastType.Error = "error", ToastType.Warning = "warning",
34
+ ToastType.Info = "info";
35
+ }(ToastType || (ToastType = {}));
36
+
37
+ const ToastBase = React.forwardRef((props, ref) => {
38
+ const {message: message = null, size: size = "m", border: border = !0, padding: padding, radius: radius = 8, container: container = "window", showDelay: showDelay = 0, duration: duration = 5e3, position: position = "bottom", offset: offset = 24, close: close = !0, progress: progress, type: type = ToastType.Info, didHide: didHide = () => null} = props, divAttributes = __rest(props, [ "message", "size", "border", "padding", "radius", "container", "showDelay", "duration", "position", "offset", "close", "progress", "type", "didHide" ]), theme = useTheme(), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [ready, setReady] = useState(!1), [content, setContent] = useState(null), timer = useRef(null);
39
+ useEffect(() => {
40
+ timer.current && clearTimeout(timer.current);
41
+ return message && message.length > 0 ? timer.current = setTimeout(() => {
42
+ setContent(message), timer.current && clearTimeout(timer.current), "Infinite" !== duration && (timer.current = setTimeout(() => {
43
+ setReady(!1);
44
+ }, duration));
45
+ }, showDelay) : setContent(null), () => {
46
+ timer.current && clearTimeout(timer.current);
47
+ };
48
+ }, [ message, showDelay, duration ]), useEffect(() => setReady(null !== content), [ content ]);
49
+ const defaultPadding = useMemo(() => close ? "10px 12px 10px 16px" : "10px 16px", [ close ]), colorScheme = useMemo(() => {
50
+ switch (type) {
51
+ case "success":
52
+ return {
53
+ border: "var(--array-land-label)",
54
+ bg: "var(--array-land)",
55
+ text: "var(--array-land-label)"
56
+ };
57
+
58
+ case "warning":
59
+ return {
60
+ border: "var(--array-orange-label)",
61
+ bg: "var(--array-orange)",
62
+ text: "var(--array-orange-label)"
63
+ };
64
+
65
+ case "error":
66
+ return {
67
+ border: "var(--feedback-warning)",
68
+ bg: "var(--array-magenta)",
69
+ text: "var(--feedback-warning)"
70
+ };
71
+
72
+ default:
73
+ return {
74
+ border: "var(--core-outline-primary)",
75
+ bg: "var(--core-surface-secondary)",
76
+ text: "var(--core-text-primary)"
77
+ };
78
+ }
79
+ }, [ type ]), cssVars = useMemo(() => ({
80
+ "--toast-padding": setStyle(padding, defaultPadding),
81
+ "--toast-background": colorScheme.bg,
82
+ "--toast-color": colorScheme.text,
83
+ "--toast-border": border ? `1px solid ${colorScheme.border}` : "unset",
84
+ "--toast-border-radius": setStyle(radius, 4),
85
+ "--toast-position": "window" === container ? "fixed" : "absolute"
86
+ }), [ padding, border, colorScheme, radius, defaultPadding, container ]), variants = useMemo(() => {
87
+ const positionShow = "bottom" === position ? {
88
+ bottom: offset
89
+ } : {
90
+ top: offset
91
+ }, positionHide = "bottom" === position ? {
92
+ bottom: -offset
93
+ } : {
94
+ top: -offset
95
+ }, transition = {
96
+ ease: "easeInOut",
97
+ duration: .25
98
+ };
99
+ return {
100
+ initial: Object.assign({
101
+ opacity: 0
102
+ }, positionHide),
103
+ animate: Object.assign(Object.assign({
104
+ opacity: 1
105
+ }, positionShow), {
106
+ transition: transition
107
+ }),
108
+ exit: Object.assign(Object.assign({
109
+ opacity: 0
110
+ }, positionHide), {
111
+ transition: transition
112
+ })
113
+ };
114
+ }, [ position, offset ]), classNames = useMemo(() => filterClasses([ css.wrapper, css[size], divClass ]), [ size, divClass ]), handleClose = useCallback(() => {
115
+ setReady(!1);
116
+ }, []), handleMouseOver = useCallback(() => {
117
+ timer.current && clearTimeout(timer.current);
118
+ }, []), handleMouseOut = useCallback(() => {
119
+ timer.current && clearTimeout(timer.current), "Infinite" !== duration && (timer.current = setTimeout(() => {
120
+ setContent(null);
121
+ }, duration));
122
+ }, [ duration ]), showProgress = useMemo(() => void 0 !== progress ? progress : "Infinite" === duration, [ progress, duration ]), iconColor = useMemo(() => {
123
+ switch (type) {
124
+ case ToastType.Error:
125
+ return theme.current.colors["feedback-warning"];
126
+
127
+ case ToastType.Success:
128
+ return theme.current.colors["array-land-label"];
129
+
130
+ case ToastType.Warning:
131
+ return theme.current.colors["array-orange-label"];
132
+
133
+ default:
134
+ return theme.current.colors["core-text-primary"];
135
+ }
136
+ }, [ type, theme ]);
137
+ return jsx(AnimatePresence, {
138
+ onExitComplete: () => didHide(),
139
+ initial: !1,
140
+ children: ready && jsxs(motion.div, Object.assign({
141
+ ref: ref,
142
+ id: divId,
143
+ className: classNames
144
+ }, rest, {
145
+ onMouseEnter: handleMouseOver,
146
+ onMouseLeave: handleMouseOut,
147
+ onFocus: handleMouseOver,
148
+ onBlur: handleMouseOut,
149
+ style: Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), {
150
+ visibility: ready ? "visible" : "hidden"
151
+ }),
152
+ variants: variants,
153
+ initial: "initial",
154
+ animate: "animate",
155
+ exit: "exit",
156
+ children: [ jsxs("div", {
157
+ role: "status",
158
+ "aria-live": "polite",
159
+ className: css.message,
160
+ children: [ showProgress && jsx("div", {
161
+ className: css.progress,
162
+ children: jsx(ProgressIndicator, {
163
+ show: !0,
164
+ inline: !0,
165
+ color: iconColor
166
+ })
167
+ }), content ]
168
+ }), ("Infinite" === duration || close) && jsx("div", {
169
+ className: css.close,
170
+ tabIndex: 0,
171
+ role: "button",
172
+ "aria-label": "dismiss message",
173
+ onKeyDown: e => accessibleKeyDown(e, handleClose),
174
+ onClick: handleClose,
175
+ children: jsx(Icon, {
176
+ name: "x",
177
+ size: 20,
178
+ strokeColor: iconColor
179
+ })
180
+ }) ]
181
+ }))
182
+ });
183
+ });
184
+
185
+ ToastBase.displayName = "Toast";
186
+
187
+ const Toast = React.memo(ToastBase);
188
+
189
+ export { Toast as T, ToastType as a };
@@ -0,0 +1,47 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+
3
+ import { useMemo } from "react";
4
+
5
+ import { I as IconButton } from "./IconButton-DdLhTUl0.mjs";
6
+
7
+ import { L as Label } from "./Label-DhmJ_Sln.mjs";
8
+
9
+ var css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
10
+
11
+ function ToggleButton(props) {
12
+ const {label: label, textSize: textSize, icon: icon, selected: selected = !1, iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-surface-primary)", bgColor: bgColor = "var(--core-surface-secondary)", bgColorOn: bgColorOn = "var(--core-text-special)", iconSize: iconSize = 20, buttonSize: buttonSize = "m", tooltip: tooltip, gap: gap = 4, unselect: unselect = !0, fill: fill = !1, disabled: disabled = !1, onChange: onChange, onSelect: onSelect, onToolTip: onToolTip, children: children} = props, handleClick = () => {
13
+ if (!unselect && selected) return;
14
+ const newState = !selected;
15
+ null == onChange || onChange(newState), newState && (null == onSelect || onSelect());
16
+ }, cssVars = useMemo(() => ({
17
+ "--tb-gap": `${gap}px`
18
+ }), [ gap ]);
19
+ return jsxs("div", {
20
+ className: css_toggleButton,
21
+ style: cssVars,
22
+ children: [ icon && jsx(IconButton, {
23
+ icon: icon,
24
+ buttonSize: buttonSize,
25
+ tooltip: tooltip,
26
+ toggle: !selected,
27
+ isToggled: selected,
28
+ bgColorOn: bgColorOn,
29
+ bgColor: bgColor,
30
+ iconColor: iconColor,
31
+ iconColorOn: iconColorOn,
32
+ onClick: handleClick,
33
+ iconSize: iconSize,
34
+ iconFill: fill,
35
+ disabled: disabled,
36
+ onToolTip: onToolTip
37
+ }), (children || label) && jsx(Label, {
38
+ textSize: textSize,
39
+ borderSize: 0,
40
+ padding: 0,
41
+ onClick: handleClick,
42
+ children: null != children ? children : label
43
+ }) ]
44
+ });
45
+ }
46
+
47
+ export { ToggleButton as T };