@apple-pie/slice 0.1.29 → 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 (312) hide show
  1. package/README.md +174 -4
  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-DYN73N5x.js → AvatarGroup-DMy34q7_.js} +1 -3
  5. package/dist/cjs/chunks/Badge-D2TbyfJS.js +22 -0
  6. package/dist/cjs/chunks/{Button-B1qbfQgN.js → Button-CTsHZBEB.js} +1 -3
  7. package/dist/cjs/chunks/{ButtonBar-zpC3sClM.js → ButtonBar-BRb1PTmw.js} +1 -3
  8. package/dist/cjs/chunks/{Camera-CCzynmXT.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-932r3bvF.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-u8C-Y4dA.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-Dxn9OL10.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-BFiN8Wzm.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-xjflFsjF.js +68 -0
  26. package/dist/cjs/chunks/Overlay-FooE9M_s.js +41 -0
  27. package/dist/cjs/chunks/Pager-B-cuwffo.js +36 -0
  28. package/dist/cjs/chunks/ProgressIndicator-ByZ_aYAZ.js +138 -0
  29. package/dist/cjs/chunks/{PromptInput-C8-V67sS.js → PromptInput--grtHPvy.js} +2 -4
  30. package/dist/cjs/chunks/RadioButton-DP2X1dA_.js +55 -0
  31. package/dist/cjs/chunks/{RadioButtonList-DvJV6Qdg.js → RadioButtonList-COGNW5y3.js} +1 -2
  32. package/dist/cjs/chunks/{Slider-D8OYGFsN.js → Slider-G1a8UKef.js} +2 -6
  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-VzxuAesC.js → TabBar-C1HkBaxE.js} +2 -4
  36. package/dist/cjs/chunks/TextArea-BEmNI_HZ.js +74 -0
  37. package/dist/cjs/chunks/{TextField-BpoLF6pZ.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-CTl4GDxI.js → misc-DZAbObFp.js} +16 -19
  46. package/dist/cjs/chunks/modalStore-D4bOjuWd.js +70 -0
  47. package/dist/cjs/chunks/{sseStore-1OeJ9TRP.js → sseStore-Bq7sVvyA.js} +2 -2
  48. package/dist/cjs/chunks/{uploads-worker-mD8pcsGP.js → uploads-worker-CD-annza.js} +2 -2
  49. package/dist/cjs/chunks/{uploadsStore-CxWIctvI.js → uploadsStore-CUeB10zx.js} +2 -2
  50. package/dist/cjs/chunks/{volumeStore-oYwlRVN0.js → volumeStore-roYTyKJ2.js} +3 -3
  51. package/dist/cjs/chunks/{windowStore-CCxCOUqa.js → windowStore-BdJv-RF0.js} +1 -1
  52. package/dist/cjs/components/AudioBubble/index.js +7 -7
  53. package/dist/cjs/components/Avatar/index.js +3 -4
  54. package/dist/cjs/components/AvatarGroup/index.js +4 -4
  55. package/dist/cjs/components/Badge/index.js +3 -3
  56. package/dist/cjs/components/Button/index.js +7 -8
  57. package/dist/cjs/components/ButtonBar/index.js +7 -7
  58. package/dist/cjs/components/Camera/index.js +8 -8
  59. package/dist/cjs/components/CheckBox/index.js +7 -7
  60. package/dist/cjs/components/Chip/index.js +7 -8
  61. package/dist/cjs/components/DivInput/index.js +3 -4
  62. package/dist/cjs/components/Dot/index.js +3 -3
  63. package/dist/cjs/components/DraggablePanel/index.js +6 -6
  64. package/dist/cjs/components/DropDown/index.js +7 -7
  65. package/dist/cjs/components/ErrorSummary/index.js +6 -7
  66. package/dist/cjs/components/FileIcon/index.js +6 -7
  67. package/dist/cjs/components/FileList/index.js +7 -7
  68. package/dist/cjs/components/FlexDiv/index.js +3 -4
  69. package/dist/cjs/components/Grouper/index.js +7 -8
  70. package/dist/cjs/components/Icon/index.js +6 -7
  71. package/dist/cjs/components/IconButton/index.js +6 -7
  72. package/dist/cjs/components/Label/index.js +3 -4
  73. package/dist/cjs/components/Modal/index.js +13 -0
  74. package/dist/cjs/components/ModalController/index.js +7 -0
  75. package/dist/cjs/components/Overlay/index.js +3 -3
  76. package/dist/cjs/components/Pager/index.js +3 -4
  77. package/dist/cjs/components/Progress/index.js +5 -6
  78. package/dist/cjs/components/PromptInput/index.js +9 -10
  79. package/dist/cjs/components/RadioButton/index.js +7 -7
  80. package/dist/cjs/components/RadioButtonList/index.js +8 -8
  81. package/dist/cjs/components/Slider/index.js +4 -5
  82. package/dist/cjs/components/Spacer/index.js +2 -2
  83. package/dist/cjs/components/Switch/index.js +3 -3
  84. package/dist/cjs/components/TabBar/index.js +9 -9
  85. package/dist/cjs/components/TextArea/index.js +8 -8
  86. package/dist/cjs/components/Textfield/index.js +9 -9
  87. package/dist/cjs/components/Tip/index.js +3 -4
  88. package/dist/cjs/components/Toast/index.js +6 -6
  89. package/dist/cjs/components/ToggleButton/index.js +8 -8
  90. package/dist/cjs/components/UploadArea/index.js +7 -7
  91. package/dist/cjs/hooks/useAudioRecorder.js +4 -5
  92. package/dist/cjs/hooks/useLocalStore.js +3 -9
  93. package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
  94. package/dist/cjs/hooks/useMicrophone.js +7 -11
  95. package/dist/cjs/hooks/useObserveTheme.js +3 -3
  96. package/dist/cjs/hooks/useTheme.js +2 -3
  97. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  98. package/dist/cjs/hooks.js +3 -3
  99. package/dist/cjs/index.js +9 -7
  100. package/dist/cjs/providers/ThemeProvider.js +1 -13
  101. package/dist/cjs/providers.js +4 -5
  102. package/dist/cjs/stores/LocalDB.js +3 -3
  103. package/dist/cjs/stores/SSE.js +2 -2
  104. package/dist/cjs/stores/WS.js +2 -2
  105. package/dist/cjs/stores/microphone.js +2 -2
  106. package/dist/cjs/stores/modal.js +7 -0
  107. package/dist/cjs/stores/tip.js +1 -1
  108. package/dist/cjs/stores/toast.js +1 -1
  109. package/dist/cjs/stores/uploads.js +2 -2
  110. package/dist/cjs/stores/volume.js +2 -2
  111. package/dist/cjs/stores/window.js +2 -2
  112. package/dist/cjs/stores.js +18 -15
  113. package/dist/cjs/theme/colors.js +1 -1
  114. package/dist/cjs/theme/type.js +1 -1
  115. package/dist/cjs/utils/index.js +2 -2
  116. package/dist/cjs/utils/objects/index.js +2 -2
  117. package/dist/cjs/workers/uploads/uploads.js +2 -2
  118. package/dist/esm/chunks/{AudioBubble-D052QyPH.mjs → AudioBubble-DfrxyTX_.mjs} +3 -7
  119. package/dist/esm/chunks/Avatar-pA41Pcyl.mjs +88 -0
  120. package/dist/esm/chunks/{AvatarGroup-CBGi99eo.mjs → AvatarGroup-CZBtWjnj.mjs} +2 -6
  121. package/dist/esm/chunks/Badge-pLwG0zm7.mjs +26 -0
  122. package/dist/esm/chunks/{Button-CYFpitCp.mjs → Button-BJoMLZIs.mjs} +6 -10
  123. package/dist/esm/chunks/{ButtonBar-ieMA0SHi.mjs → ButtonBar-BO2RUJ8R.mjs} +3 -7
  124. package/dist/esm/chunks/{Camera-jn9CcaD0.mjs → Camera-4MNA52HG.mjs} +5 -9
  125. package/dist/esm/chunks/CheckBox-7KAsvZld.mjs +61 -0
  126. package/dist/esm/chunks/Chip-BuGvCLLU.mjs +87 -0
  127. package/dist/esm/chunks/{DivInput-BVhcU0y0.mjs → DivInput-D0YzSWjJ.mjs} +2 -6
  128. package/dist/esm/chunks/{Dot-DZE134mJ.mjs → Dot-h26m47Z-.mjs} +1 -5
  129. package/dist/esm/chunks/{DrggablePanel-G5HHlntD.mjs → DrggablePanel-Bh6HLPMX.mjs} +2 -6
  130. package/dist/esm/chunks/DropDown-NgMYjjXn.mjs +112 -0
  131. package/dist/esm/chunks/ErrorSummary-nNm9qymE.mjs +90 -0
  132. package/dist/esm/chunks/{FileIcon-fJV_Cl6v.mjs → FileIcon-BqyV1wut.mjs} +2 -2
  133. package/dist/esm/chunks/FileList-C1tOvoc0.mjs +230 -0
  134. package/dist/esm/chunks/{FlexDiv-DnY1_qk4.mjs → FlexDiv-CkK-DAyg.mjs} +3 -6
  135. package/dist/esm/chunks/Grouper-CyrOkuu2.mjs +73 -0
  136. package/dist/esm/chunks/{Icon-BOJAk-hM.mjs → Icon-DjW0Krm8.mjs} +3 -8
  137. package/dist/esm/chunks/IconButton-DdLhTUl0.mjs +96 -0
  138. package/dist/esm/chunks/{IndexedDB-Dk7a4fPS.mjs → IndexedDB-DVoDikoA.mjs} +1 -1
  139. package/dist/esm/chunks/Label-DhmJ_Sln.mjs +113 -0
  140. package/dist/esm/chunks/Modal-FztrJsQo.mjs +113 -0
  141. package/dist/esm/chunks/ModalController-C1BnM5Dz.mjs +76 -0
  142. package/dist/esm/chunks/Overlay-Dsy55Bxm.mjs +47 -0
  143. package/dist/esm/chunks/Pager-BqSdwL0L.mjs +42 -0
  144. package/dist/esm/chunks/ProgressIndicator-BnqZFATV.mjs +146 -0
  145. package/dist/esm/chunks/{PromptInput-COJnOFZf.mjs → PromptInput-CRkcPXJu.mjs} +3 -7
  146. package/dist/esm/chunks/RadioButton-DXq3yniV.mjs +63 -0
  147. package/dist/esm/chunks/{RadioButtonList-XqlqadYn.mjs → RadioButtonList-BgOskHCP.mjs} +3 -6
  148. package/dist/esm/chunks/{Slider-CU0Zdlpu.mjs → Slider-DPOy9uNI.mjs} +4 -10
  149. package/dist/esm/chunks/{Spacer-C5651N0N.mjs → Spacer-BJd_D0Fn.mjs} +1 -1
  150. package/dist/esm/chunks/{Switch-RfA431T4.mjs → Switch-DHqlyizo.mjs} +1 -4
  151. package/dist/esm/chunks/{TabBar-v8Dp4dr-.mjs → TabBar-RBXExqMK.mjs} +5 -9
  152. package/dist/esm/chunks/TextArea-CIlx_P26.mjs +80 -0
  153. package/dist/esm/chunks/{TextField-j4q0RUzH.mjs → TextField-CX72ybwH.mjs} +5 -9
  154. package/dist/esm/chunks/Tip-COBSyEjm.mjs +96 -0
  155. package/dist/esm/chunks/Toast-BTm3HxDD.mjs +189 -0
  156. package/dist/esm/chunks/ToggleButton-DujsCKF3.mjs +47 -0
  157. package/dist/esm/chunks/UploadArea-D--Nt8Ed.mjs +135 -0
  158. package/dist/esm/chunks/{WSConnection-DV7k84B4.mjs → WSConnection-BMXcuW3f.mjs} +1 -1
  159. package/dist/esm/chunks/{localDBStore-Dnpo5nSv.mjs → localDBStore-36E3160Z.mjs} +2 -2
  160. package/dist/esm/chunks/{microphoneStore-Dr3lxoWX.mjs → microphoneStore-Cexu82zH.mjs} +1 -1
  161. package/dist/esm/chunks/{misc-Bjbro8Xe.mjs → misc-CTGTuM2J.mjs} +16 -19
  162. package/dist/esm/chunks/modalStore-Crg_QmSJ.mjs +68 -0
  163. package/dist/esm/chunks/{sseStore-DjrfpNAS.mjs → sseStore-Dow4NXkZ.mjs} +2 -2
  164. package/dist/esm/chunks/{uploads-worker-7X9EwX9N.mjs → uploads-worker-Dhyp4ot3.mjs} +2 -2
  165. package/dist/esm/chunks/{uploadsStore-B7VECR5Q.mjs → uploadsStore-DT4lFybE.mjs} +1 -1
  166. package/dist/esm/chunks/{volumeStore-GZnCDBMU.mjs → volumeStore-RAxdmQ60.mjs} +3 -3
  167. package/dist/esm/chunks/{windowStore-CAzx2-QV.mjs → windowStore-C4AZexIa.mjs} +1 -1
  168. package/dist/esm/components/AudioBubble/index.mjs +4 -6
  169. package/dist/esm/components/Avatar/index.mjs +3 -5
  170. package/dist/esm/components/AvatarGroup/index.mjs +4 -6
  171. package/dist/esm/components/Badge/index.mjs +2 -4
  172. package/dist/esm/components/Button/index.mjs +8 -10
  173. package/dist/esm/components/ButtonBar/index.mjs +4 -6
  174. package/dist/esm/components/Camera/index.mjs +6 -8
  175. package/dist/esm/components/CheckBox/index.mjs +4 -6
  176. package/dist/esm/components/Chip/index.mjs +5 -7
  177. package/dist/esm/components/DivInput/index.mjs +3 -5
  178. package/dist/esm/components/Dot/index.mjs +2 -4
  179. package/dist/esm/components/DraggablePanel/index.mjs +3 -5
  180. package/dist/esm/components/DropDown/index.mjs +4 -6
  181. package/dist/esm/components/ErrorSummary/index.mjs +3 -5
  182. package/dist/esm/components/FileIcon/index.mjs +3 -5
  183. package/dist/esm/components/FileList/index.mjs +6 -8
  184. package/dist/esm/components/FlexDiv/index.mjs +2 -4
  185. package/dist/esm/components/Grouper/index.mjs +5 -7
  186. package/dist/esm/components/Icon/index.mjs +4 -6
  187. package/dist/esm/components/IconButton/index.mjs +7 -9
  188. package/dist/esm/components/Label/index.mjs +3 -5
  189. package/dist/esm/components/Modal/index.mjs +45 -0
  190. package/dist/esm/components/ModalController/index.mjs +15 -0
  191. package/dist/esm/components/Overlay/index.mjs +2 -4
  192. package/dist/esm/components/Pager/index.mjs +3 -5
  193. package/dist/esm/components/Progress/index.mjs +4 -6
  194. package/dist/esm/components/PromptInput/index.mjs +11 -13
  195. package/dist/esm/components/RadioButton/index.mjs +4 -6
  196. package/dist/esm/components/RadioButtonList/index.mjs +5 -7
  197. package/dist/esm/components/Slider/index.mjs +4 -6
  198. package/dist/esm/components/Spacer/index.mjs +2 -2
  199. package/dist/esm/components/Switch/index.mjs +2 -4
  200. package/dist/esm/components/TabBar/index.mjs +8 -10
  201. package/dist/esm/components/TextArea/index.mjs +9 -11
  202. package/dist/esm/components/Textfield/index.mjs +10 -12
  203. package/dist/esm/components/Tip/index.mjs +3 -5
  204. package/dist/esm/components/Toast/index.mjs +6 -6
  205. package/dist/esm/components/ToggleButton/index.mjs +9 -11
  206. package/dist/esm/components/UploadArea/index.mjs +9 -11
  207. package/dist/esm/hooks/useAudioRecorder.mjs +4 -5
  208. package/dist/esm/hooks/useLocalStore.mjs +3 -9
  209. package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
  210. package/dist/esm/hooks/useMicrophone.mjs +7 -11
  211. package/dist/esm/hooks/useObserveTheme.mjs +0 -2
  212. package/dist/esm/hooks/useTheme.mjs +0 -2
  213. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  214. package/dist/esm/hooks.mjs +2 -4
  215. package/dist/esm/index.mjs +53 -47
  216. package/dist/esm/providers/ThemeProvider.mjs +0 -14
  217. package/dist/esm/providers.mjs +0 -2
  218. package/dist/esm/stores/LocalDB.mjs +3 -3
  219. package/dist/esm/stores/SSE.mjs +3 -3
  220. package/dist/esm/stores/WS.mjs +2 -2
  221. package/dist/esm/stores/microphone.mjs +2 -2
  222. package/dist/esm/stores/modal.mjs +3 -0
  223. package/dist/esm/stores/tip.mjs +1 -1
  224. package/dist/esm/stores/toast.mjs +1 -1
  225. package/dist/esm/stores/uploads.mjs +3 -3
  226. package/dist/esm/stores/volume.mjs +2 -2
  227. package/dist/esm/stores/window.mjs +2 -2
  228. package/dist/esm/stores.mjs +14 -12
  229. package/dist/esm/theme/colors.mjs +1 -1
  230. package/dist/esm/theme/type.mjs +1 -1
  231. package/dist/esm/utils/index.mjs +9 -9
  232. package/dist/esm/utils/objects/index.mjs +6 -6
  233. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  234. package/dist/styles.css +8436 -0
  235. package/dist/types/components/Modal/Modal.d.ts +3 -0
  236. package/dist/types/components/Modal/_types.d.ts +46 -0
  237. package/dist/types/components/Modal/index.d.ts +2 -0
  238. package/dist/types/components/ModalController/ModalController.d.ts +2 -0
  239. package/dist/types/components/ModalController/_types.d.ts +13 -0
  240. package/dist/types/components/ModalController/index.d.ts +2 -0
  241. package/dist/types/components/Overlay/_types.d.ts +4 -0
  242. package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  243. package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +2 -1
  244. package/dist/types/components/Toast/_types.d.ts +2 -0
  245. package/dist/types/index.d.ts +5 -0
  246. package/dist/types/providers/ThemeProvider.d.ts +0 -6
  247. package/dist/types/stores/index.d.ts +1 -0
  248. package/dist/types/stores/modal/_types.d.ts +27 -0
  249. package/dist/types/stores/modal/index.d.ts +2 -0
  250. package/dist/types/stores/modal/modalStore.d.ts +20 -0
  251. package/dist/types/stores/toast/_types.d.ts +3 -1
  252. package/package.json +8 -3
  253. package/dist/cjs/chunks/Avatar-vIquH-Uk.js +0 -84
  254. package/dist/cjs/chunks/Badge-DjPJ_iJX.js +0 -24
  255. package/dist/cjs/chunks/CheckBox-DNctUlTA.js +0 -53
  256. package/dist/cjs/chunks/Chip-BN4qBz6w.js +0 -79
  257. package/dist/cjs/chunks/DropDown-BZbrZOkx.js +0 -105
  258. package/dist/cjs/chunks/ErrorSummary-K_rPxGWK.js +0 -87
  259. package/dist/cjs/chunks/FileList-D5_igVaC.js +0 -225
  260. package/dist/cjs/chunks/Grouper-D6rSl9nK.js +0 -63
  261. package/dist/cjs/chunks/IconButton-Cv-po19M.js +0 -84
  262. package/dist/cjs/chunks/Label-BQ6flU4-.js +0 -103
  263. package/dist/cjs/chunks/Overlay-DDOvMM6L.js +0 -37
  264. package/dist/cjs/chunks/Pager-GH2y7l5h.js +0 -38
  265. package/dist/cjs/chunks/ProgressIndicator-7pLk4Dvn.js +0 -138
  266. package/dist/cjs/chunks/RadioButton-3CzhKBn6.js +0 -56
  267. package/dist/cjs/chunks/TextArea-CBNHvcK3.js +0 -76
  268. package/dist/cjs/chunks/Tip-CUKFhP9K.js +0 -90
  269. package/dist/cjs/chunks/Toast-CKqGjsEk.js +0 -169
  270. package/dist/cjs/chunks/ToggleButton-BdCsChJM.js +0 -40
  271. package/dist/cjs/chunks/UploadArea-M9oc-No2.js +0 -129
  272. package/dist/cjs/chunks/style-inject.es-CMuL-BfJ.js +0 -11
  273. package/dist/esm/chunks/Avatar-Ds6MWC2c.mjs +0 -92
  274. package/dist/esm/chunks/Badge-CC0zSLMf.mjs +0 -30
  275. package/dist/esm/chunks/CheckBox-CoOmnGWD.mjs +0 -65
  276. package/dist/esm/chunks/Chip-ClG6cUX0.mjs +0 -91
  277. package/dist/esm/chunks/DropDown-AuQW_DWv.mjs +0 -115
  278. package/dist/esm/chunks/ErrorSummary-EzCqVifm.mjs +0 -94
  279. package/dist/esm/chunks/FileList-CxHaEEUi.mjs +0 -235
  280. package/dist/esm/chunks/Grouper-CyWZ8tfm.mjs +0 -77
  281. package/dist/esm/chunks/IconButton-Ck0IMn4i.mjs +0 -100
  282. package/dist/esm/chunks/Label-DSfCcKtQ.mjs +0 -116
  283. package/dist/esm/chunks/Overlay-DiSvgIQP.mjs +0 -45
  284. package/dist/esm/chunks/Pager-ByJ2Cr0n.mjs +0 -46
  285. package/dist/esm/chunks/ProgressIndicator-d2JGUDW_.mjs +0 -148
  286. package/dist/esm/chunks/RadioButton-BB73OY2a.mjs +0 -66
  287. package/dist/esm/chunks/TextArea-DGF43RON.mjs +0 -84
  288. package/dist/esm/chunks/Tip-Bj9d-230.mjs +0 -100
  289. package/dist/esm/chunks/Toast-CoioLlEG.mjs +0 -181
  290. package/dist/esm/chunks/ToggleButton-CwTm8Yx0.mjs +0 -51
  291. package/dist/esm/chunks/UploadArea-DAwoJxtr.mjs +0 -139
  292. package/dist/esm/chunks/style-inject.es-D0BjEaN8.mjs +0 -11
  293. /package/dist/cjs/chunks/{MdStreamBuffer-CvLO7CVi.js → MdStreamBuffer-CbG_VeRI.js} +0 -0
  294. /package/dist/cjs/chunks/{SSEConnection-C-1OzEOp.js → SSEConnection-ACoOeeTO.js} +0 -0
  295. /package/dist/cjs/chunks/{_types-Bdqd2vHh.js → _types-k-3V1fz_.js} +0 -0
  296. /package/dist/cjs/chunks/{audioVisualizer-EIfIjWH7.js → audioVisualizer-MOSbvvnZ.js} +0 -0
  297. /package/dist/cjs/chunks/{colors-njquvHkx.js → colors-B0_3srZN.js} +0 -0
  298. /package/dist/cjs/chunks/{debounce-BF4i6uIC.js → debounce-CaoYvh12.js} +0 -0
  299. /package/dist/cjs/chunks/{sharedTypes-gCECyn2N.js → sharedTypes-CthHPjrO.js} +0 -0
  300. /package/dist/cjs/chunks/{tipStore-Ck4NLvml.js → tipStore-CPB7RHKY.js} +0 -0
  301. /package/dist/cjs/chunks/{toastStore-CSStgB9d.js → toastStore-6eHe6esp.js} +0 -0
  302. /package/dist/cjs/chunks/{tslib.es6-C8dZW5nY.js → tslib.es6-CzpRaW14.js} +0 -0
  303. /package/dist/esm/chunks/{MdStreamBuffer-By7pHJQL.mjs → MdStreamBuffer-4AJH8WaN.mjs} +0 -0
  304. /package/dist/esm/chunks/{SSEConnection-DcA3wFsO.mjs → SSEConnection-qNnkZUOe.mjs} +0 -0
  305. /package/dist/esm/chunks/{_types-BVrr_Khp.mjs → _types-CEStVWlB.mjs} +0 -0
  306. /package/dist/esm/chunks/{audioVisualizer-ZgT77nUw.mjs → audioVisualizer-BUNbarKP.mjs} +0 -0
  307. /package/dist/esm/chunks/{colors-FQ0uNQcW.mjs → colors-D-qeA9gU.mjs} +0 -0
  308. /package/dist/esm/chunks/{debounce-Bst1jxMS.mjs → debounce-D5b6tZ5a.mjs} +0 -0
  309. /package/dist/esm/chunks/{sharedTypes-tn9-uJvb.mjs → sharedTypes-U5H1I85x.mjs} +0 -0
  310. /package/dist/esm/chunks/{tipStore-CL5a95Bl.mjs → tipStore-pvswaezx.mjs} +0 -0
  311. /package/dist/esm/chunks/{toastStore-D2PEIqCo.mjs → toastStore-80oOTYsj.mjs} +0 -0
  312. /package/dist/esm/chunks/{tslib.es6-C-olHjXV.mjs → tslib.es6-BX2F90pK.mjs} +0 -0
@@ -0,0 +1,55 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), Icon = require("./Icon-BFZ_5Qv3.js"), css_wrapper = "RadioButton-module_wrapper__-pWRe flexBox-module_row__z24tF", css_radioIcon = "RadioButton-module_radioIcon__I27Xv flexBox-module_column__ezvMq", css_radioTitle = "RadioButton-module_radioTitle__zCQII flexBox-module_rowStart__4tcxS type-module_body-m-regular__LuQBA", css_radioContent = "RadioButton-module_radioContent__38xVx flexBox-module_columnStart__C7P44";
5
+
6
+ function RadioButtonComponent(props) {
7
+ const {label: label, children: children, fieldName: fieldName, value: value, selected: selected = !1, controlType: controlType = "radio", deselect: deselect = !0, tabIndex: tabIndex = 0, wrap: wrap = !1, list: list = !1, hideRadio: hideRadio = !1, noFrame: noFrame = !0, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconColor: iconColor, gap: gap = 6, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "label", "children", "fieldName", "value", "selected", "controlType", "deselect", "tabIndex", "wrap", "list", "hideRadio", "noFrame", "icon", "checkedIcon", "iconColor", "gap", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [isSelected, setIsSelected] = React.useState(selected);
8
+ React.useEffect(() => setIsSelected(selected), [ selected ]);
9
+ const handleChange = React.useCallback(() => {
10
+ isSelected && !deselect || (setIsSelected(!isSelected), onChange({
11
+ fieldName: fieldName,
12
+ label: label,
13
+ value: value
14
+ }, !isSelected));
15
+ }, [ isSelected, deselect, onChange, fieldName, label, value ]), setAriaLabel = React.useMemo(() => label || (children && "string" == typeof children ? children : "Radio Button"), [ label, children ]), setIconColor = React.useMemo(() => iconColor || "var(--core-text-primary)", [ iconColor ]), iconName = React.useMemo(() => isSelected ? checkedIcon : icon, [ isSelected, checkedIcon, icon ]), setFlex = React.useMemo(() => list ? "unset" : wrap ? "40%" : "1", [ list, wrap ]), cssVars = React.useMemo(() => ({
16
+ "--rb-max-width": wrap ? "50%" : "100%",
17
+ "--rb-flex": setFlex,
18
+ "--rb-padding": noFrame ? "0" : "8px 16px 8px 10px",
19
+ "--rb-bg": !noFrame && isSelected ? "var(--core-surface-secondary)" : "transparent",
20
+ "--rb-border": noFrame ? "none" : "1px solid var(--core-outline-primary)",
21
+ "--rb-gap": misc.setStyle(gap)
22
+ }), [ setFlex, isSelected, wrap, noFrame, gap ]);
23
+ return jsxRuntime.jsxs("button", Object.assign({
24
+ id: divId,
25
+ type: "button",
26
+ className: `${css_wrapper}${divClass}`,
27
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
28
+ onClick: handleChange,
29
+ role: controlType,
30
+ tabIndex: tabIndex,
31
+ "aria-label": setAriaLabel,
32
+ "aria-checked": isSelected
33
+ }, rest, {
34
+ children: [ !hideRadio && jsxRuntime.jsx("div", {
35
+ className: css_radioIcon,
36
+ children: jsxRuntime.jsx(Icon.Icon, {
37
+ name: iconName,
38
+ strokeColor: setIconColor,
39
+ size: 20
40
+ })
41
+ }), jsxRuntime.jsx("div", {
42
+ className: css_radioContent,
43
+ children: jsxRuntime.jsx("div", {
44
+ className: css_radioTitle,
45
+ children: null != label ? label : children
46
+ })
47
+ }) ]
48
+ }));
49
+ }
50
+
51
+ RadioButtonComponent.displayName = "RadioButton";
52
+
53
+ const RadioButton = React.memo(RadioButtonComponent);
54
+
55
+ exports.RadioButton = RadioButton;
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-CTl4GDxI.js"), RadioButton = require("./RadioButton-3CzhKBn6.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), RadioButton = require("./RadioButton-DP2X1dA_.js"), css_wrapper = "RadioButtonList-module_wrapper__wnq1-", css_column = "RadioButtonList-module_column__Bq16e flexBox-module_columnStart__C7P44", css_row = "RadioButtonList-module_row__D3szq flexBox-module_rowStart__4tcxS";
5
5
 
6
6
  function RadioButtonListComponent(props) {
7
7
  const {width: width = "min-content", options: options = [], selectedIndexes: selectedIndexes = null, selectedOptions: selectedOptions = null, label: label = null, deselect: deselect = !1, multiSelect: multiSelect = !1, wrap: wrap = !1, tabIndexSeed: tabIndexSeed = 0, spacer: spacer = "none", custom: custom = 0, gap: gap = 16, hideRadio: hideRadio = !1, noFrame: noFrame = !0, toggleIcon: toggleIcon = !0, iconColor: iconColor, icon: icon = "circle", checkedIcon: checkedIcon = "check circle", iconSelectedColor: iconSelectedColor, onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "width", "options", "selectedIndexes", "selectedOptions", "label", "deselect", "multiSelect", "wrap", "tabIndexSeed", "spacer", "custom", "gap", "hideRadio", "noFrame", "toggleIcon", "iconColor", "icon", "checkedIcon", "iconSelectedColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", labelId = React.useId(), [selected, setSelected] = React.useState(selectedIndexes);
@@ -66,7 +66,6 @@ function RadioButtonListComponent(props) {
66
66
  }));
67
67
  }
68
68
 
69
- styleInject_es.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.RadioButtonList-module_wrapper__wnq1- {\n\talign-items: flex-start;\n\twidth: var(--rb-list-width);\n\tflex-wrap: var(--rb-list-flex-wrap);\n\tmargin-bottom: var(--rb-list-margin-bottom);\n\tgap: var(--rb-gap);\n}\n\n.RadioButtonList-module_column__Bq16e {\n}\n\n.RadioButtonList-module_row__D3szq {\n}\n"),
70
69
  RadioButtonListComponent.displayName = "RadioButtonList";
71
70
 
72
71
  const RadioButtonList = React.memo(RadioButtonListComponent);
@@ -1,9 +1,7 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useObserveResize = require("../hooks/useObserveResize.js"), misc = require("./misc-CTl4GDxI.js"), debounce = require("./debounce-BF4i6uIC.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), 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";
5
-
6
- styleInject_es.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");
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useObserveResize = require("../hooks/useObserveResize.js"), misc = require("./misc-DZAbObFp.js"), debounce = require("./debounce-CaoYvh12.js"), 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";
7
5
 
8
6
  const Slider = React.memo(props => {
9
7
  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 = tslib_es6.__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 = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", ref = React.useRef(null), track = React.useRef(null), head = React.useRef(null), [currentValue, setCurrentValue] = React.useState(value), absProgressRef = React.useRef(value), relativeProgressRef = React.useRef(0), didMount = React.useRef(!1), size = hooks_useObserveResize.useObserveResize(ref, {
@@ -23,9 +21,7 @@ const Slider = React.memo(props => {
23
21
  didMount.current = !0;
24
22
  }, []), initialProgress = React.useCallback(current => {
25
23
  if (!(null == ref ? void 0 : ref.current)) return;
26
- const sliderWidth = ref.current.getBoundingClientRect().width, adjustedCurrent = clampValue(current);
27
- adjustedCurrent !== current && console.warn("Slider outside range. Adjusted to nearest bound.");
28
- const normalized = valueToPercent(adjustedCurrent), pixelPos = normalized * sliderWidth;
24
+ const sliderWidth = ref.current.getBoundingClientRect().width, adjustedCurrent = clampValue(current), normalized = valueToPercent(adjustedCurrent), pixelPos = normalized * sliderWidth;
29
25
  absProgressRef.current = adjustedCurrent, relativeProgressRef.current = normalized,
30
26
  setCurrentValue(adjustedCurrent), setTrackAndHead(pixelPos), didMount.current = !0;
31
27
  }, [ clampValue, valueToPercent, setTrackAndHead ]), progress = React.useCallback(posX => {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
5
5
 
6
6
  const Spacer = React.memo(props => {
7
7
  const {size: size = 8} = props, divAttributes = tslib_es6.__rest(props, [ "size" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), spacerStyle = React.useMemo(() => ({
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_wrapper = "Switch-module_wrapper__kudO9 flexBox-module_row__z24tF", css_knob = "Switch-module_knob__vKNOc flexBox-module_row__z24tF";
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_wrapper = "Switch-module_wrapper__kudO9 flexBox-module_row__z24tF", css_knob = "Switch-module_knob__vKNOc flexBox-module_row__z24tF";
5
5
 
6
6
  function SwitchComponent(props) {
7
7
  const {fieldName: fieldName, state: state = !1, value: value, height: height = 22, width: width = 44, padding: padding = 3, backgroundColorOn: backgroundColorOn, backgroundColorOff: backgroundColorOff, bgColorOn: bgColorOn = "var(--feedback-positive)", bgColorOff: bgColorOff = "var(--core-text-disabled)", knobColor: knobColor = "var(--core-surface-primary)", onChange: onChange = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "fieldName", "state", "value", "height", "width", "padding", "backgroundColorOn", "backgroundColorOff", "bgColorOn", "bgColorOff", "knobColor", "onChange" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [on, setOn] = React.useState(state), resolvedBackgroundColorOn = null != backgroundColorOn ? backgroundColorOn : bgColorOn, resolvedBackgroundColorOff = null != backgroundColorOff ? backgroundColorOff : bgColorOff;
@@ -37,7 +37,6 @@ function SwitchComponent(props) {
37
37
  }));
38
38
  }
39
39
 
40
- styleInject_es.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"),
41
40
  SwitchComponent.displayName = "Switch";
42
41
 
43
42
  const Switch = React.memo(SwitchComponent);
@@ -1,13 +1,11 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
5
5
 
6
6
  require("../theme/colors.js"), require("../hooks/useWindow.js");
7
7
 
8
- var Badge = require("./Badge-DjPJ_iJX.js"), Icon = require("./Icon-BFiN8Wzm.js"), IconButton = require("./IconButton-Cv-po19M.js"), sharedTypes = require("./sharedTypes-gCECyn2N.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), 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";
9
-
10
- styleInject_es.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");
8
+ var Badge = require("./Badge-D2TbyfJS.js"), Icon = require("./Icon-BFZ_5Qv3.js"), IconButton = require("./IconButton-CgsuJIuF.js"), sharedTypes = require("./sharedTypes-CthHPjrO.js"), 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";
11
9
 
12
10
  const placeholderOptions = [ {
13
11
  name: "Light",
@@ -0,0 +1,74 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), Button = require("./Button-CTsHZBEB.js"), 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";
5
+
6
+ const TextArea = React.memo(props => {
7
+ 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 = {
8
+ bottom: 10,
9
+ right: 10
10
+ }, 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 = tslib_es6.__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 = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, [isFocused, setIsFocused] = React.useState(focused), [text, setText] = React.useState(value), ref = React.useRef(null), handleResize = React.useCallback(() => {
11
+ (null == ref ? void 0 : ref.current) && (ref.current.style.height = "auto", ref.current.style.height = `${ref.current.scrollHeight}px`);
12
+ }, []);
13
+ React.useEffect(() => {
14
+ (null == ref ? void 0 : ref.current) && (focused ? ref.current.focus() : ref.current.blur(),
15
+ setIsFocused(focused));
16
+ }, [ focused ]), React.useEffect(() => setText(value), [ value ]), React.useEffect(() => handleResize(), [ rows ]);
17
+ const handleChange = React.useCallback(content => {
18
+ onChange(content), setText(content);
19
+ }, [ onChange ]), handleFocus = React.useCallback(() => {
20
+ var _a, _b;
21
+ (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 : "");
22
+ }, [ onFocus ]), handleBlur = React.useCallback(() => {
23
+ var _a, _b;
24
+ setIsFocused(!1), onBlur(null !== (_b = null === (_a = ref.current) || void 0 === _a ? void 0 : _a.value) && void 0 !== _b ? _b : "");
25
+ }, [ onBlur ]), handleSubmit = React.useCallback(e => {
26
+ null == e || e.preventDefault(), handleFocus(), onSubmit(text), submitClears && setText(""),
27
+ (null == ref ? void 0 : ref.current) && (ref.current.value = ""), handleResize();
28
+ }, [ handleFocus, onSubmit, text, submitClears, handleResize ]), handleKeyDownWrapper = React.useCallback(e => {
29
+ returnSubmits && "Enter" === e.key && (e.preventDefault(), e.stopPropagation(),
30
+ handleSubmit(void 0)), onKeyDown(e);
31
+ }, [ returnSubmits, handleSubmit, onKeyDown ]), setStyleValue = React.useCallback(value => "string" == typeof value ? value : `${value}px`, []), setBorderColor = React.useMemo(() => border && isFocused ? "var(--core-link-primary)" : border && error ? "var(--feedback-warning)" : border ? "var(--core-outline-primary)" : "transparent", [ isFocused, error, border ]), textClassName = React.useMemo(() => "xs" === textSize ? css_xs : "l" === textSize ? css_l : "m" === textSize ? css_m : css_s, [ textSize ]), cssVars = React.useMemo(() => ({
32
+ "--ta-border-radius": `${borderRadius}px`,
33
+ "--ta-width": `${setStyleValue(width)}`,
34
+ "--ta-min-width": minWidth ? `${minWidth}px` : "unset",
35
+ "--ta-bg-color": null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)",
36
+ "--ta-border-color": setBorderColor,
37
+ "--ta-padding": `${setStyleValue(padding)}`,
38
+ "--ta-send-icon-offset-bottom": `${sendOffset.bottom}px`,
39
+ "--ta-send-icon-offset-right": `${sendOffset.right}px`,
40
+ "--ta-send-icon-size": `${sendSize}px`,
41
+ "--ta-resize": resizable ? "vertical" : "none"
42
+ }), [ width, minWidth, resolvedBackgroundColor, setBorderColor, padding, sendOffset, sendSize, setStyleValue, borderRadius, resizable ]);
43
+ return jsxRuntime.jsxs("div", Object.assign({
44
+ id: divId,
45
+ className: `${css_wrapper}${divClass}`,
46
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
47
+ onBlur: () => handleBlur(),
48
+ onFocus: () => handleFocus()
49
+ }, rest, {
50
+ children: [ hasSend && jsxRuntime.jsx("div", {
51
+ className: css_send,
52
+ onMouseDown: e => handleSubmit(e),
53
+ children: jsxRuntime.jsx(Button.Button, {
54
+ iconLeft: "arrow up",
55
+ size: "medium",
56
+ variant: "solid",
57
+ round: !0
58
+ })
59
+ }), jsxRuntime.jsx("textarea", {
60
+ className: `${css_textarea} ${textClassName}`,
61
+ ref: ref,
62
+ name: name,
63
+ value: text,
64
+ placeholder: placeholder,
65
+ rows: rows,
66
+ disabled: disabled,
67
+ onChange: e => handleChange(e.target.value),
68
+ onInput: () => handleResize(),
69
+ onKeyDown: e => handleKeyDownWrapper(e)
70
+ }) ]
71
+ }));
72
+ });
73
+
74
+ exports.TextArea = TextArea;
@@ -1,15 +1,15 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
5
5
 
6
6
  require("../theme/colors.js");
7
7
 
8
- var misc = require("./misc-CTl4GDxI.js");
8
+ var misc = require("./misc-DZAbObFp.js");
9
9
 
10
10
  require("../hooks/useWindow.js");
11
11
 
12
- var Button = require("./Button-B1qbfQgN.js"), Icon = require("./Icon-BFiN8Wzm.js"), IconButton = require("./IconButton-Cv-po19M.js"), styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css = {
12
+ var Button = require("./Button-CTsHZBEB.js"), Icon = require("./Icon-BFZ_5Qv3.js"), IconButton = require("./IconButton-CgsuJIuF.js"), css = {
13
13
  wrapper: "TextField-module_wrapper__qZ-p- flexBox-module_rowStart__4tcxS",
14
14
  container: "TextField-module_container__5U9yK flexBox-module_rowStart__4tcxS",
15
15
  label: "TextField-module_label__jD8MR flexBox-module_rowStart__4tcxS",
@@ -22,8 +22,6 @@ var Button = require("./Button-B1qbfQgN.js"), Icon = require("./Icon-BFiN8Wzm.js
22
22
  l: "TextField-module_l__gbNRz type-module_body-l-regular__lOYbg"
23
23
  };
24
24
 
25
- styleInject_es.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");
26
-
27
25
  const MOTION_CONFIG = {
28
26
  variants: {
29
27
  initial: {
@@ -0,0 +1,88 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), misc = require("./misc-DZAbObFp.js"), css = {
5
+ wrapper: "Tip-module_wrapper__D7ACT flexBox-module_rowStart__4tcxS",
6
+ xs: "Tip-module_xs__wsz9y type-module_body-xs-regular__ZAFft",
7
+ s: "Tip-module_s__Wvz3q type-module_body-s-regular__vRHSP",
8
+ m: "Tip-module_m__9qJbB type-module_body-m-regular__LuQBA",
9
+ l: "Tip-module_l__OdNuh type-module_body-l-regular__lOYbg"
10
+ };
11
+
12
+ const tipBasePos = {
13
+ left: 0,
14
+ top: 0
15
+ }, TipBase = React.forwardRef((props, ref) => {
16
+ var _a;
17
+ 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 = tslib_es6.__rest(props, [ "tip", "size", "backgroundColor", "bgColor", "textColor", "color", "border", "borderColor", "padding", "borderRadius", "radius", "coords", "showDelay", "hideDelay" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [pos, setPos] = React.useState(tipBasePos), [ready, setReady] = React.useState(!1), [animate, setAnimate] = React.useState(!1), timer = React.useRef(null), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedTextColor = null != textColor ? textColor : color, resolvedBorderRadius = null != borderRadius ? borderRadius : radius;
18
+ React.useEffect(() => {
19
+ timer.current && clearTimeout(timer.current);
20
+ const {x: x, y: y} = null != coords ? coords : {
21
+ x: 0,
22
+ y: 0
23
+ };
24
+ return x > 0 && y > 0 ? timer.current = setTimeout(() => {
25
+ var _a, _b;
26
+ setPos({
27
+ left: null !== (_a = null == coords ? void 0 : coords.x) && void 0 !== _a ? _a : 0,
28
+ top: null !== (_b = null == coords ? void 0 : coords.y) && void 0 !== _b ? _b : 0
29
+ }), setReady(!0), timer.current && clearTimeout(timer.current), timer.current = setTimeout(() => {
30
+ setReady(!1), setPos({
31
+ left: 0,
32
+ top: 0
33
+ });
34
+ }, hideDelay);
35
+ }, showDelay) : (setReady(!1), setPos({
36
+ left: 0,
37
+ top: 0
38
+ })), () => {
39
+ timer.current && clearTimeout(timer.current);
40
+ };
41
+ }, [ coords, showDelay, hideDelay ]), React.useEffect(() => setAnimate(ready), [ ready ]);
42
+ const cssVars = React.useMemo(() => ({
43
+ "--tooltip-padding": null != padding ? padding : "3px 6px",
44
+ "--tooltip-background": null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)",
45
+ "--tooltip-color": null != resolvedTextColor ? resolvedTextColor : "var(--core-text-primary)",
46
+ "--tooltip-border": border ? `1px solid ${null != borderColor ? borderColor : "var(--core-outline-primary)"}` : "unset",
47
+ "--tooltip-border-radius": null != resolvedBorderRadius ? resolvedBorderRadius : "4px"
48
+ }), [ padding, resolvedBackgroundColor, resolvedTextColor, border, borderColor, resolvedBorderRadius ]), coordStyle = React.useMemo(() => {
49
+ const {left: left, top: top} = pos;
50
+ return {
51
+ left: `${null != left ? left : 0}px`,
52
+ top: `${null != top ? top : 0}px`
53
+ };
54
+ }, [ pos ]), classNames = React.useMemo(() => misc.filterClasses([ css.wrapper, css[size], divClass ]), [ size, divClass ]);
55
+ return jsxRuntime.jsx(react.motion.div, Object.assign({
56
+ ref: ref,
57
+ id: divId,
58
+ className: classNames,
59
+ onKeyDown: () => null,
60
+ style: Object.assign(Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), coordStyle), {
61
+ visibility: ready ? "visible" : "hidden"
62
+ }),
63
+ initial: {
64
+ opacity: 0
65
+ },
66
+ animate: animate ? {
67
+ opacity: 1,
68
+ transition: {
69
+ ease: "easeInOut",
70
+ duration: .25
71
+ }
72
+ } : void 0,
73
+ exit: {
74
+ opacity: 0,
75
+ transition: {
76
+ duration: 0
77
+ }
78
+ }
79
+ }, rest, {
80
+ children: null === (_a = null == tip ? void 0 : tip.payload) || void 0 === _a ? void 0 : _a.label
81
+ }));
82
+ });
83
+
84
+ TipBase.displayName = "Tip";
85
+
86
+ const Tip = React.memo(TipBase);
87
+
88
+ exports.Tip = Tip;
@@ -0,0 +1,177 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), hooks_useTheme = require("../hooks/useTheme.js");
5
+
6
+ require("../theme/colors.js");
7
+
8
+ var misc = require("./misc-DZAbObFp.js");
9
+
10
+ require("../hooks/useWindow.js");
11
+
12
+ var ToastType, Icon = require("./Icon-BFZ_5Qv3.js"), ProgressIndicator = require("./ProgressIndicator-ByZ_aYAZ.js"), css = {
13
+ wrapper: "Toast-module_wrapper__1uj9O flexBox-module_rowBetween__5FEvi",
14
+ close: "Toast-module_close__i10-s flexBox-module_row__z24tF",
15
+ message: "Toast-module_message__3dP0P flexBox-module_rowStart__4tcxS",
16
+ progress: "Toast-module_progress__SWsbA flexBox-module_row__z24tF",
17
+ s: "Toast-module_s__kc5Ef type-module_body-s-regular__vRHSP",
18
+ m: "Toast-module_m__JtmLz type-module_body-m-regular__LuQBA",
19
+ l: "Toast-module_l__-W0PD type-module_body-l-regular__lOYbg"
20
+ };
21
+
22
+ exports.ToastType = void 0, (ToastType = exports.ToastType || (exports.ToastType = {})).Success = "success",
23
+ ToastType.Error = "error", ToastType.Warning = "warning", ToastType.Info = "info";
24
+
25
+ const ToastBase = React.forwardRef((props, ref) => {
26
+ 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 = exports.ToastType.Info, didHide: didHide = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "message", "size", "border", "padding", "radius", "container", "showDelay", "duration", "position", "offset", "close", "progress", "type", "didHide" ]), theme = hooks_useTheme.useTheme(), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? `${className}` : "", [ready, setReady] = React.useState(!1), [content, setContent] = React.useState(null), timer = React.useRef(null);
27
+ React.useEffect(() => {
28
+ timer.current && clearTimeout(timer.current);
29
+ return message && message.length > 0 ? timer.current = setTimeout(() => {
30
+ setContent(message), timer.current && clearTimeout(timer.current), "Infinite" !== duration && (timer.current = setTimeout(() => {
31
+ setReady(!1);
32
+ }, duration));
33
+ }, showDelay) : setContent(null), () => {
34
+ timer.current && clearTimeout(timer.current);
35
+ };
36
+ }, [ message, showDelay, duration ]), React.useEffect(() => setReady(null !== content), [ content ]);
37
+ const defaultPadding = React.useMemo(() => close ? "10px 12px 10px 16px" : "10px 16px", [ close ]), colorScheme = React.useMemo(() => {
38
+ switch (type) {
39
+ case "success":
40
+ return {
41
+ border: "var(--array-land-label)",
42
+ bg: "var(--array-land)",
43
+ text: "var(--array-land-label)"
44
+ };
45
+
46
+ case "warning":
47
+ return {
48
+ border: "var(--array-orange-label)",
49
+ bg: "var(--array-orange)",
50
+ text: "var(--array-orange-label)"
51
+ };
52
+
53
+ case "error":
54
+ return {
55
+ border: "var(--feedback-warning)",
56
+ bg: "var(--array-magenta)",
57
+ text: "var(--feedback-warning)"
58
+ };
59
+
60
+ default:
61
+ return {
62
+ border: "var(--core-outline-primary)",
63
+ bg: "var(--core-surface-secondary)",
64
+ text: "var(--core-text-primary)"
65
+ };
66
+ }
67
+ }, [ type ]), cssVars = React.useMemo(() => ({
68
+ "--toast-padding": misc.setStyle(padding, defaultPadding),
69
+ "--toast-background": colorScheme.bg,
70
+ "--toast-color": colorScheme.text,
71
+ "--toast-border": border ? `1px solid ${colorScheme.border}` : "unset",
72
+ "--toast-border-radius": misc.setStyle(radius, 4),
73
+ "--toast-position": "window" === container ? "fixed" : "absolute"
74
+ }), [ padding, border, colorScheme, radius, defaultPadding, container ]), variants = React.useMemo(() => {
75
+ const positionShow = "bottom" === position ? {
76
+ bottom: offset
77
+ } : {
78
+ top: offset
79
+ }, positionHide = "bottom" === position ? {
80
+ bottom: -offset
81
+ } : {
82
+ top: -offset
83
+ }, transition = {
84
+ ease: "easeInOut",
85
+ duration: .25
86
+ };
87
+ return {
88
+ initial: Object.assign({
89
+ opacity: 0
90
+ }, positionHide),
91
+ animate: Object.assign(Object.assign({
92
+ opacity: 1
93
+ }, positionShow), {
94
+ transition: transition
95
+ }),
96
+ exit: Object.assign(Object.assign({
97
+ opacity: 0
98
+ }, positionHide), {
99
+ transition: transition
100
+ })
101
+ };
102
+ }, [ position, offset ]), classNames = React.useMemo(() => misc.filterClasses([ css.wrapper, css[size], divClass ]), [ size, divClass ]), handleClose = React.useCallback(() => {
103
+ setReady(!1);
104
+ }, []), handleMouseOver = React.useCallback(() => {
105
+ timer.current && clearTimeout(timer.current);
106
+ }, []), handleMouseOut = React.useCallback(() => {
107
+ timer.current && clearTimeout(timer.current), "Infinite" !== duration && (timer.current = setTimeout(() => {
108
+ setContent(null);
109
+ }, duration));
110
+ }, [ duration ]), showProgress = React.useMemo(() => void 0 !== progress ? progress : "Infinite" === duration, [ progress, duration ]), iconColor = React.useMemo(() => {
111
+ switch (type) {
112
+ case exports.ToastType.Error:
113
+ return theme.current.colors["feedback-warning"];
114
+
115
+ case exports.ToastType.Success:
116
+ return theme.current.colors["array-land-label"];
117
+
118
+ case exports.ToastType.Warning:
119
+ return theme.current.colors["array-orange-label"];
120
+
121
+ default:
122
+ return theme.current.colors["core-text-primary"];
123
+ }
124
+ }, [ type, theme ]);
125
+ return jsxRuntime.jsx(react.AnimatePresence, {
126
+ onExitComplete: () => didHide(),
127
+ initial: !1,
128
+ children: ready && jsxRuntime.jsxs(react.motion.div, Object.assign({
129
+ ref: ref,
130
+ id: divId,
131
+ className: classNames
132
+ }, rest, {
133
+ onMouseEnter: handleMouseOver,
134
+ onMouseLeave: handleMouseOut,
135
+ onFocus: handleMouseOver,
136
+ onBlur: handleMouseOut,
137
+ style: Object.assign(Object.assign(Object.assign({}, divStyle), cssVars), {
138
+ visibility: ready ? "visible" : "hidden"
139
+ }),
140
+ variants: variants,
141
+ initial: "initial",
142
+ animate: "animate",
143
+ exit: "exit",
144
+ children: [ jsxRuntime.jsxs("div", {
145
+ role: "status",
146
+ "aria-live": "polite",
147
+ className: css.message,
148
+ children: [ showProgress && jsxRuntime.jsx("div", {
149
+ className: css.progress,
150
+ children: jsxRuntime.jsx(ProgressIndicator.ProgressIndicator, {
151
+ show: !0,
152
+ inline: !0,
153
+ color: iconColor
154
+ })
155
+ }), content ]
156
+ }), ("Infinite" === duration || close) && jsxRuntime.jsx("div", {
157
+ className: css.close,
158
+ tabIndex: 0,
159
+ role: "button",
160
+ "aria-label": "dismiss message",
161
+ onKeyDown: e => misc.accessibleKeyDown(e, handleClose),
162
+ onClick: handleClose,
163
+ children: jsxRuntime.jsx(Icon.Icon, {
164
+ name: "x",
165
+ size: 20,
166
+ strokeColor: iconColor
167
+ })
168
+ }) ]
169
+ }))
170
+ });
171
+ });
172
+
173
+ ToastBase.displayName = "Toast";
174
+
175
+ const Toast = React.memo(ToastBase);
176
+
177
+ exports.Toast = Toast;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ var jsxRuntime = require("react/jsx-runtime"), React = require("react"), IconButton = require("./IconButton-CgsuJIuF.js"), Label = require("./Label-BuyhcJbF.js"), css_toggleButton = "ToggleButton-module_toggleButton__H7KgI flexBox-module_rowStart__4tcxS";
4
+
5
+ exports.ToggleButton = function(props) {
6
+ 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 = () => {
7
+ if (!unselect && selected) return;
8
+ const newState = !selected;
9
+ null == onChange || onChange(newState), newState && (null == onSelect || onSelect());
10
+ }, cssVars = React.useMemo(() => ({
11
+ "--tb-gap": `${gap}px`
12
+ }), [ gap ]);
13
+ return jsxRuntime.jsxs("div", {
14
+ className: css_toggleButton,
15
+ style: cssVars,
16
+ children: [ icon && jsxRuntime.jsx(IconButton.IconButton, {
17
+ icon: icon,
18
+ buttonSize: buttonSize,
19
+ tooltip: tooltip,
20
+ toggle: !selected,
21
+ isToggled: selected,
22
+ bgColorOn: bgColorOn,
23
+ bgColor: bgColor,
24
+ iconColor: iconColor,
25
+ iconColorOn: iconColorOn,
26
+ onClick: handleClick,
27
+ iconSize: iconSize,
28
+ iconFill: fill,
29
+ disabled: disabled,
30
+ onToolTip: onToolTip
31
+ }), (children || label) && jsxRuntime.jsx(Label.Label, {
32
+ textSize: textSize,
33
+ borderSize: 0,
34
+ padding: 0,
35
+ onClick: handleClick,
36
+ children: null != children ? children : label
37
+ }) ]
38
+ });
39
+ };