@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
@@ -0,0 +1,85 @@
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 colors = require("./colors-B0_3srZN.js");
9
+
10
+ require("../hooks/useWindow.js");
11
+
12
+ var css = {
13
+ errorBox: "ErrorSummary-module_errorBox__hjY50 flexBox-module_columnStart__C7P44",
14
+ error: "ErrorSummary-module_error__QX1mr flexBox-module_columnStart__C7P44",
15
+ p: "ErrorSummary-module_p__N-2Po",
16
+ ul: "ErrorSummary-module_ul__Xv0K7",
17
+ li: "ErrorSummary-module_li__0ciEx",
18
+ xs: "ErrorSummary-module_xs__pTqMn type-module_body-xs-regular__ZAFft",
19
+ s: "ErrorSummary-module_s__u2sIP type-module_body-s-regular__vRHSP",
20
+ m: "ErrorSummary-module_m__-QyP- type-module_body-m-regular__LuQBA",
21
+ l: "ErrorSummary-module_l__bb1xZ type-module_body-l-regular__lOYbg"
22
+ };
23
+
24
+ const ErrorSummary = React.memo(props => {
25
+ const {current: current} = hooks_useTheme.useTheme(), warning = current.colors["feedback-warning"], bg = colors.addOpacity(warning, .1), {entries: entries, textSize: textSize = "m", textColor: textColor = warning, backgroundColor: backgroundColor, bgColor: bgColor = bg, autoNumber: autoNumber = !0} = props, divAttributes = tslib_es6.__rest(props, [ "entries", "textSize", "textColor", "backgroundColor", "bgColor", "autoNumber" ]), {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, variants = React.useMemo(() => ({
26
+ enter: {
27
+ opacity: 0,
28
+ maxHeight: 0
29
+ },
30
+ animate: {
31
+ opacity: 1,
32
+ maxHeight: 500
33
+ },
34
+ exit: {
35
+ opacity: 0,
36
+ maxHeight: 0
37
+ }
38
+ }), []), transition = React.useMemo(() => ({
39
+ ease: "easeInOut",
40
+ duration: .25
41
+ }), []), renderMessages = React.useCallback(messages => messages ? messages.map(message => jsxRuntime.jsx("li", {
42
+ className: `${css.li} ${css[textSize]}`,
43
+ children: message
44
+ }, message)) : null, [ textSize ]), renderedErrors = React.useMemo(() => {
45
+ if (!entries) return null;
46
+ const addNumbers = autoNumber && entries.length > 1;
47
+ return entries.map((error, index) => {
48
+ let messages;
49
+ error.message && (messages = Array.isArray(error.message) ? error.message : [ error.message ]);
50
+ const number = addNumbers ? `${index + 1}. ` : "";
51
+ return jsxRuntime.jsxs("div", {
52
+ className: css.error,
53
+ children: [ jsxRuntime.jsx("p", {
54
+ className: `${css.p} ${css[textSize]}`,
55
+ children: jsxRuntime.jsx("strong", {
56
+ children: `${number}${error.title}`
57
+ })
58
+ }), messages && jsxRuntime.jsx("ul", {
59
+ className: css.ul,
60
+ children: renderMessages(messages)
61
+ }) ]
62
+ }, `${error.title}_${index}`);
63
+ });
64
+ }, [ entries, autoNumber, renderMessages, textSize ]), cssVars = React.useMemo(() => ({
65
+ "--error-text-color": textColor,
66
+ "--error-bg-color": resolvedBackgroundColor
67
+ }), [ textColor, resolvedBackgroundColor ]);
68
+ return jsxRuntime.jsx(react.AnimatePresence, {
69
+ initial: !1,
70
+ children: entries && entries.length > 0 && jsxRuntime.jsx(react.motion.div, Object.assign({
71
+ id: divId,
72
+ className: `${css.errorBox}${divClass}`,
73
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
74
+ initial: "enter",
75
+ animate: "animate",
76
+ exit: "exit",
77
+ variants: variants,
78
+ transition: transition
79
+ }, rest, {
80
+ children: renderedErrors
81
+ }))
82
+ });
83
+ });
84
+
85
+ exports.ErrorSummary = ErrorSummary;
@@ -1,11 +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");
7
7
 
8
- var FileIconNames, misc = require("./misc-QpU0XEOW.js");
8
+ var FileIconNames, misc = require("./misc-DZAbObFp.js");
9
9
 
10
10
  require("../hooks/useWindow.js"), exports.FileIconNames = void 0, (FileIconNames = exports.FileIconNames || (exports.FileIconNames = {})).pdf = "pdf",
11
11
  FileIconNames.text = "text", FileIconNames.sheet = "sheet", FileIconNames.preso = "preso",
@@ -0,0 +1,222 @@
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"), FileIcon = require("./FileIcon-Te8MaqTs.js"), Icon = require("./Icon-BFZ_5Qv3.js"), ProgressIndicator = require("./ProgressIndicator-ByZ_aYAZ.js");
5
+
6
+ var css = {
7
+ wrapper: "FileList-module_wrapper__9-rrl flexBox-module_rowStart__4tcxS",
8
+ file: "FileList-module_file__61dkh flexBox-module_rowStart__4tcxS",
9
+ fileName: "FileList-module_fileName__amame flexBox-module_row__z24tF",
10
+ meta: "FileList-module_meta__unbpG flexBox-module_columnStart__C7P44",
11
+ status: "FileList-module_status__H1s6f type-module_body-xs-regular__ZAFft",
12
+ error: "FileList-module_error__UZ4-T",
13
+ fileIcon: "FileList-module_fileIcon__xDWW8 flexBox-module_row__z24tF",
14
+ icon: "FileList-module_icon__JR0HE flexBox-module_row__z24tF",
15
+ xs: "FileList-module_xs__i2S-5 type-module_body-xs-regular__ZAFft",
16
+ s: "FileList-module_s__4q0ae type-module_body-s-regular__vRHSP",
17
+ m: "FileList-module_m__hWqBx type-module_body-m-regular__LuQBA",
18
+ l: "FileList-module_l__tHDNp type-module_body-l-regular__lOYbg",
19
+ xl: "FileList-module_xl__fxW11 type-module_body-xl-regular__pF2kC"
20
+ };
21
+
22
+ /**
23
+ * utility get file name from file item
24
+ */
25
+ /**
26
+ * display the remove button if not uploading
27
+ */
28
+ function displayClose(uploading) {
29
+ return uploading ? {
30
+ display: "none"
31
+ } : {
32
+ display: "flex"
33
+ };
34
+ }
35
+
36
+ const FileList = React.memo(props => {
37
+ const {files: files = [], onChange: onChange, onToolTip: onToolTip, maxWidth: maxWidth, minWidth: minWidth, direction: direction = "row", padding: padding, gap: gap = 10, size: size = "s", iconSize: iconSize = 24, backgroundColor: backgroundColor, bgColor: bgColor, canRemove: canRemove = !0} = props, divAttributes = tslib_es6.__rest(props, [ "files", "onChange", "onToolTip", "maxWidth", "minWidth", "direction", "padding", "gap", "size", "iconSize", "backgroundColor", "bgColor", "canRemove" ]), {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, fileNameToFileItem = React.useCallback(fileName => {
38
+ const {ext: ext, name: name} =
39
+ /**
40
+ * Split a file name into its display name and extension.
41
+ */
42
+ function(fileName) {
43
+ var _a;
44
+ const ext = null !== (_a = fileName.split(".").pop()) && void 0 !== _a ? _a : "unknown";
45
+ return {
46
+ name: fileName,
47
+ ext: ext
48
+ };
49
+ }
50
+ /**
51
+ * Map a file extension to the corresponding file icon name.
52
+ */ (fileName);
53
+ return {
54
+ name: name,
55
+ ext: ext,
56
+ icon: function(extension) {
57
+ switch (extension) {
58
+ case "png":
59
+ case "jpeg":
60
+ case "jpg":
61
+ case "gif":
62
+ case "heic":
63
+ return "image";
64
+
65
+ case "docx":
66
+ case "doc":
67
+ case "txt":
68
+ return "text";
69
+
70
+ case "md":
71
+ return "md";
72
+
73
+ case "html":
74
+ case "js":
75
+ case "ts":
76
+ case "tsx":
77
+ case "json":
78
+ case "py":
79
+ return "code";
80
+
81
+ case "xls":
82
+ case "xlsx":
83
+ case "csv":
84
+ return "sheet";
85
+
86
+ case "ppt":
87
+ case "pptx":
88
+ return "preso";
89
+
90
+ case "pdf":
91
+ return "pdf";
92
+
93
+ case "mp3":
94
+ case "aif":
95
+ case "wav":
96
+ return "audio";
97
+
98
+ case "mp4":
99
+ case "mov":
100
+ return "video";
101
+
102
+ case "clipboard":
103
+ return "clipboard";
104
+
105
+ default:
106
+ return "other";
107
+ }
108
+ }(ext)
109
+ };
110
+ }, []), displayList = React.useMemo(() => files.map((item, index) => {
111
+ var _a;
112
+ const fileName = function(item) {
113
+ return "string" == typeof item.file ? item.file : item.file.name;
114
+ }
115
+ /**
116
+ * cal progress as a percentage string
117
+ */ (item), fileMeta = fileNameToFileItem(fileName), progress = function(uploading, progress) {
118
+ if (void 0 === progress || Number.isNaN(progress)) return uploading ? "0%" : "100%";
119
+ const percent = progress <= 1 ? 100 * progress : progress, clamped = Math.max(0, Math.min(100, percent));
120
+ return `${Math.round(clamped)}%`;
121
+ }
122
+ /**
123
+ * display the progress indicator if uploading
124
+ */ (item.uploading, item.progress);
125
+ return Object.assign(Object.assign({}, fileMeta), {
126
+ key: `${fileMeta.name}-${index}`,
127
+ index: index,
128
+ uploading: null !== (_a = item.uploading) && void 0 !== _a && _a,
129
+ progress: progress,
130
+ error: item.error
131
+ });
132
+ }), [ files, fileNameToFileItem ]), handleRemove = React.useCallback(index => {
133
+ const updated = files.filter((_, itemIndex) => itemIndex !== index);
134
+ null == onChange || onChange(updated);
135
+ }, [ files, onChange ]), handleMouseOver = React.useCallback(e => {
136
+ const toolTip = {
137
+ payload: {
138
+ label: "Remove file"
139
+ },
140
+ ref: {
141
+ current: e.currentTarget
142
+ }
143
+ };
144
+ null == onToolTip || onToolTip(toolTip);
145
+ }, [ onToolTip ]), handleMouseOut = React.useCallback(() => {
146
+ null == onToolTip || onToolTip(null);
147
+ }, [ onToolTip ]), cssVars = React.useMemo(() => ({
148
+ "--file-max-width": "column" === direction ? "100%" : misc.setStyle(maxWidth),
149
+ "--file-min-width": "column" !== direction || minWidth ? misc.setStyle(minWidth) : "100%",
150
+ "--file-gap": misc.setStyle(gap),
151
+ "--file-direction": direction,
152
+ "--file-wrap": "column" === direction ? "nowrap" : "wrap",
153
+ "--file-padding": padding ? misc.setStyle(padding) : "4px 4px 4px 2px",
154
+ "--file-icon-size": misc.setStyle(iconSize),
155
+ "--file-overflow": "column" === direction ? "unset" : "hidden",
156
+ "--file-bg-color": null != resolvedBackgroundColor ? resolvedBackgroundColor : "var(--core-surface-secondary)"
157
+ }), [ maxWidth, gap, direction, minWidth, padding, iconSize, resolvedBackgroundColor ]), fileCSSVars = React.useCallback((progress, error) => ({
158
+ "--file-progress": `${progress}`,
159
+ "--file-border-color": error ? "var(--feedback-warning)" : "var(--core-outline-primary)"
160
+ }), []);
161
+ return jsxRuntime.jsx("div", Object.assign({
162
+ className: `${css.wrapper}${divClass}`,
163
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
164
+ id: divId
165
+ }, rest, {
166
+ children: displayList.map(i => {
167
+ return jsxRuntime.jsxs("div", {
168
+ className: `${css.file} ${css[size]}`,
169
+ style: fileCSSVars(i.progress, i.error),
170
+ children: [ jsxRuntime.jsx("div", {
171
+ className: css.fileIcon,
172
+ children: jsxRuntime.jsx(FileIcon.FileIcon, {
173
+ name: i.icon,
174
+ size: iconSize
175
+ })
176
+ }), jsxRuntime.jsxs("div", {
177
+ className: css.meta,
178
+ children: [ jsxRuntime.jsx("div", {
179
+ className: css.fileName,
180
+ children: i.name
181
+ }), i.error && jsxRuntime.jsx("div", {
182
+ className: `${css.status} ${i.error ? css.error : ""}`,
183
+ children: i.error
184
+ }) ]
185
+ }), jsxRuntime.jsx("div", {
186
+ className: css.icon,
187
+ style: (uploading = i.uploading, uploading ? {
188
+ display: "flex"
189
+ } : {
190
+ display: "none"
191
+ }),
192
+ children: jsxRuntime.jsx(ProgressIndicator.ProgressIndicator, {
193
+ inline: !0,
194
+ size: 20,
195
+ show: i.uploading
196
+ })
197
+ }), canRemove && jsxRuntime.jsx("div", {
198
+ className: css.icon,
199
+ style: displayClose(i.uploading),
200
+ role: "button",
201
+ "aria-label": "remove file",
202
+ onMouseOver: handleMouseOver,
203
+ onMouseOut: handleMouseOut,
204
+ onFocus: handleMouseOver,
205
+ onBlur: handleMouseOut,
206
+ onClick: () => handleRemove(i.index),
207
+ onKeyDown: e => misc.accessibleKeyDown(e, () => handleRemove(i.index)),
208
+ tabIndex: 0,
209
+ children: jsxRuntime.jsx(Icon.Icon, {
210
+ name: "x",
211
+ style: {
212
+ pointerEvents: "none"
213
+ }
214
+ })
215
+ }) ]
216
+ }, i.key);
217
+ var uploading;
218
+ })
219
+ }));
220
+ });
221
+
222
+ exports.FileList = FileList;
@@ -1,9 +1,8 @@
1
1
  'use client';
2
2
  "use strict";
3
3
 
4
- var Size, Preset, 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_flexDiv = "FlexDiv-module_flexDiv__EY5A- type-module_body-m-regular__LuQBA";
4
+ var Size, Preset, tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), react = require("motion/react"), React = require("react"), css_flexDiv = "FlexDiv-module_flexDiv__EY5A- type-module_body-m-regular__LuQBA";
5
5
 
6
- styleInject_es.styleInject(".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}.FlexDiv-module_flexDiv__EY5A- {\n\t&::-webkit-scrollbar {\n\t\tbackground-color: var(--flex-div-bg);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-track {\n\t\tbackground-color: var(--flex-div-bg);\n\t\twidth: 6px;\n\t}\n\n\t&::-webkit-scrollbar-thumb {\n\t\tbackground-color: var(--flex-div-scroll-handle);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--flex-div-bg);\n\t}\n\n\t&::-webkit-scrollbar-thumb:hover {\n\t\tbackground-color: var(--flex-div-scroll-handle-hover);\n\t\tborder-radius: 20px;\n\t\tborder: 1px solid var(--flex-div-bg);\n\t}\n}\n"),
7
6
  exports.Size = void 0, (Size = exports.Size || (exports.Size = {})).Grow = "grow",
8
7
  Size.Fill = "fill", Size.Fit = "fit", Size.Viewport = "viewport", Size.Auto = "auto",
9
8
  exports.Preset = void 0, (Preset = exports.Preset || (exports.Preset = {})).FillScroll = "fill-scroll",
@@ -165,7 +164,7 @@ const FlexDiv = React.memo(React.forwardRef((props, ref) => {
165
164
  id: divId,
166
165
  ref: ref,
167
166
  className: `${css_flexDiv} ${null != className ? className : ""}`,
168
- style: Object.assign(Object.assign({}, wrapperStyle), style),
167
+ style: Object.assign(Object.assign({}, style), wrapperStyle),
169
168
  transition: transition,
170
169
  variants: variants,
171
170
  initial: enter,
@@ -0,0 +1,61 @@
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"), require("../hooks/useWindow.js");
7
+
8
+ var Badge = require("./Badge-D2TbyfJS.js"), Icon = require("./Icon-BFZ_5Qv3.js"), css_header = "Grouper-module_header__D5fV0 flexBox-module_rowBetween__5FEvi", css_title = "Grouper-module_title__ZKqTP flexBox-module_rowBetween__5FEvi type-module_body-m-regular__LuQBA", css_content = "Grouper-module_content__Mof50 flexBox-module_rowBetween__5FEvi", css_icon = "Grouper-module_icon__14Jis flexBox-module_row__z24tF";
9
+
10
+ const Grouper = React.memo(props => {
11
+ const theme = hooks_useTheme.useTheme(), {title: title = "Group Title", toggle: toggle = !0, open: open = !0, hasIcon: hasIcon = !0, iconName: iconName = "chevron down", iconSize: iconSize = 18, frameSize: frameSize = 64, border: border = 0, count: count = 0, unframed: unframed = !1, hideNull: hideNull = !0, showFilterBadge: showFilterBadge = !1, onChange: onChange = () => null, onClick: onClick = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "title", "toggle", "open", "hasIcon", "iconName", "iconSize", "frameSize", "border", "count", "unframed", "hideNull", "showFilterBadge", "onChange", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", [state, setState] = React.useState(open), [icon, animateIcon] = react.useAnimate();
12
+ React.useEffect(() => setState(open), [ open ]);
13
+ const animate = React.useCallback(state => {
14
+ const animation = {
15
+ rotate: state ? 0 : 180
16
+ };
17
+ animateIcon(icon.current, Object.assign({}, animation), {
18
+ ease: "easeInOut",
19
+ duration: .25
20
+ });
21
+ }, [ animateIcon, icon ]), handleToggle = React.useCallback(() => {
22
+ toggle && (onClick(), onChange(!state), animate(!state), setState(!state));
23
+ }, [ toggle, onClick, onChange, state, animate ]), cssVars = React.useMemo(() => ({
24
+ "--grouper-height": unframed ? "auto" : `${frameSize}px`,
25
+ "--grouper-border": border ? `${border}px` : "0",
26
+ "--grouper-icon-size": `${iconSize}px`
27
+ }), [ frameSize, iconSize, border, unframed ]);
28
+ return jsxRuntime.jsx("button", Object.assign({
29
+ id: divId,
30
+ type: "button",
31
+ className: `${css_header}${divClass}`,
32
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
33
+ onClick: handleToggle,
34
+ "aria-expanded": state
35
+ }, rest, {
36
+ children: jsxRuntime.jsxs("div", {
37
+ className: css_content,
38
+ children: [ jsxRuntime.jsxs("div", {
39
+ className: css_title,
40
+ children: [ title, jsxRuntime.jsx(Badge.Badge, {
41
+ hideNull: hideNull,
42
+ count: count,
43
+ variant: "light"
44
+ }), showFilterBadge && jsxRuntime.jsx(Icon.Icon, {
45
+ name: "filter",
46
+ size: 16,
47
+ strokeColor: theme.current.colors["core-text-disabled"]
48
+ }) ]
49
+ }), hasIcon && jsxRuntime.jsx("div", {
50
+ ref: icon,
51
+ className: css_icon,
52
+ children: jsxRuntime.jsx(Icon.Icon, {
53
+ name: iconName,
54
+ size: iconSize
55
+ })
56
+ }) ]
57
+ })
58
+ }));
59
+ });
60
+
61
+ exports.Grouper = Grouper;
@@ -1,23 +1,20 @@
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");
7
7
 
8
- var misc = require("./misc-QpU0XEOW.js");
8
+ var misc = require("./misc-DZAbObFp.js");
9
9
 
10
10
  require("../hooks/useWindow.js");
11
11
 
12
- var styleInject_es = require("./style-inject.es-CMuL-BfJ.js"), css_icon = "Icon-module_icon__szG-X";
13
-
14
- styleInject_es.styleInject(".Icon-module_icon__szG-X {\n\tcursor: var(--cursor);\n\tuser-select: none;\n\tpointer-events: var(--pointer-events);\n\t--webkit-user-select: none;\n\t-webkit-tap-highlight-color: transparent;\n\toutline: none;\n\tborder: 0;\n\ttransition: stroke, fill var(--motion-water-duration) var(--motion-water);\n}\n\npath,\ncircle,\nrect,\npolyline,\npolygon,\nline {\n\ttransition: stroke, fill var(--motion-water-duration) var(--motion-water);\n}\n");
12
+ var css_icon = "Icon-module_icon__szG-X";
15
13
 
16
14
  /**
17
15
  * Static icon registry created once at module load.
18
16
  * Each entry stores only icon line content renderers.
19
- */
20
- const STATIC_ICON_REGISTRY = new Map([ [ "talk", {
17
+ */ const STATIC_ICON_REGISTRY = new Map([ [ "talk", {
21
18
  line: ({strokeColor: strokeColor, fillColor: fillColor}) => jsxRuntime.jsxs(jsxRuntime.Fragment, {
22
19
  children: [ jsxRuntime.jsx("path", {
23
20
  d: "M10,2.5c4.14,0,7.5,3.36,7.5,7.5s-3.36,7.5-7.5,7.5-7.5-3.36-7.5-7.5,3.36-7.5,7.5-7.5M10,1C5.03,1,1,5.03,1,10s4.03,9,9,9,9-4.03,9-9S14.97,1,10,1h0Z",
@@ -0,0 +1,82 @@
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"), Badge = require("./Badge-D2TbyfJS.js"), Dot = require("./Dot-C0MvSJOl.js"), Icon = require("./Icon-BFZ_5Qv3.js"), sharedTypes = require("./sharedTypes-CthHPjrO.js"), css_button = "IconButton-module_button__rziqa flexBox-module_row__z24tF", css_label = "IconButton-module_label__qWGFD flexBox-module_row__z24tF type-module_body-l-regular__lOYbg", css_icon = "IconButton-module_icon__2DDWy flexBox-module_row__z24tF", css_count = "IconButton-module_count__6r373 flexBox-module_row__z24tF";
5
+
6
+ const IconButton = React.memo(props => {
7
+ const {frameSize: frameSize = 36, iconSize: iconSize = 20, round: round = !0, icon: icon = "more", borderRadius: borderRadius = 4, border: border = !1, tooltip: tooltip, color: color, colorOn: colorOn, iconFill: iconFill = !1, bgColor: bgColor = "var(--core-surface-secondary)", bgColorHover: bgColorHover = "var(--core-outline-primary)", bgColorOn: bgColorOn = "var(--core-outline-primary)", iconColor: iconColor = "var(--core-text-primary)", iconColorOn: iconColorOn = "var(--core-text-primary)", iconColorHover: iconColorHover = "var(--core-text-primary)", transition: transition, variants: variants, initial: initial, animate: animate, exit: exit, fillColor: fillColor, label: label, hover: hover = !0, count: count = 0, toggle: toggle = !1, toggleIcon: toggleIcon = !1, isToggled: isToggled = !1, disabled: disabled = !1, showDot: showDot = !1, buttonSize: buttonSize = "m", onClick: onClick = () => null, onToolTip: onToolTip = () => null} = props, divAttributes = tslib_es6.__rest(props, [ "frameSize", "iconSize", "round", "icon", "borderRadius", "border", "tooltip", "color", "colorOn", "iconFill", "bgColor", "bgColorHover", "bgColorOn", "iconColor", "iconColorOn", "iconColorHover", "transition", "variants", "initial", "animate", "exit", "fillColor", "label", "hover", "count", "toggle", "toggleIcon", "isToggled", "disabled", "showDot", "buttonSize", "onClick", "onToolTip" ]), {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), [on, setOn] = React.useState(isToggled), [hovered, setHovered] = React.useState(!1);
8
+ React.useEffect(() => setOn(isToggled), [ isToggled ]);
9
+ const handleClick = React.useCallback(e => {
10
+ disabled || (tooltip && onToolTip(null), toggle && setOn(!on), onClick(e));
11
+ }, [ disabled, tooltip, onToolTip, on, onClick, toggle ]), handleMouseEnter = React.useCallback(e => {
12
+ if (setHovered(!0), !(null == ref ? void 0 : ref.current) || !tooltip) return;
13
+ const tip = {
14
+ type: sharedTypes.ToolTipType.button,
15
+ payload: {
16
+ label: tooltip
17
+ },
18
+ event: e,
19
+ ref: ref
20
+ };
21
+ onToolTip(tip);
22
+ }, [ tooltip, onToolTip ]), handleMouseLeave = React.useCallback(() => {
23
+ setHovered(!1), tooltip && onToolTip(null);
24
+ }, [ tooltip, onToolTip ]), bgColorNormal = React.useMemo(() => on ? bgColorOn : null != bgColor ? bgColor : "var(--core-surface-secondary)", [ bgColorOn, bgColor, on ]), bgHoverColor = React.useMemo(() => hover && on ? bgColorOn : hover ? bgColorHover : null != bgColor ? bgColor : "transparent", [ hover, bgColor, bgColorOn, bgColorHover, on ]), textColor = React.useMemo(() => on ? colorOn : null != color ? color : "var(--core-text-primary)", [ on, colorOn, color ]), setIconColor = React.useMemo(() => on ? iconColorOn : hovered ? iconColorHover : null != iconColor ? iconColor : "var(--core-text-primary)", [ on, iconColorOn, iconColor, iconColorHover, hovered ]), size = React.useMemo(() => buttonSize ? "s" === buttonSize ? 24 : "m" === buttonSize ? 36 : "l" === buttonSize ? 44 : "xl" === buttonSize ? 56 : void 0 : frameSize, [ frameSize, buttonSize ]), cssVars = React.useMemo(() => ({
25
+ "--ib-bg-color": bgColorNormal,
26
+ "--ib-bg-color-hover": disabled ? bgColorNormal : bgHoverColor,
27
+ "--ib-icon-size": `${null != iconSize ? iconSize : 0}px`,
28
+ "--ib-button-size": `${null != size ? size : 0}px`,
29
+ "--ib-border-radius": round ? "100%" : `${null != borderRadius ? borderRadius : 0}px`,
30
+ "--ib-border": border ? "1px" : 0,
31
+ "--ib-color": textColor,
32
+ "--ib-cursor": disabled ? "default" : "pointer"
33
+ }), [ bgColorNormal, bgHoverColor, textColor, border, size, borderRadius, iconSize, round, disabled ]);
34
+ return jsxRuntime.jsxs(react.motion.button, Object.assign({
35
+ id: divId,
36
+ type: "button",
37
+ className: `${css_button}${divClass}`,
38
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
39
+ onClick: e => handleClick(e),
40
+ onMouseOutCapture: handleMouseLeave,
41
+ onMouseOverCapture: handleMouseEnter,
42
+ transition: transition,
43
+ variants: variants,
44
+ initial: initial,
45
+ animate: animate,
46
+ exit: exit,
47
+ disabled: disabled,
48
+ "aria-disabled": disabled,
49
+ ref: ref
50
+ }, rest, {
51
+ children: [ jsxRuntime.jsx("div", {
52
+ className: css_icon,
53
+ style: {
54
+ opacity: disabled ? .3 : 1
55
+ },
56
+ children: jsxRuntime.jsx(Icon.Icon, {
57
+ name: icon,
58
+ strokeColor: setIconColor,
59
+ fillColor: fillColor,
60
+ disabled: disabled,
61
+ size: iconSize,
62
+ fill: iconFill,
63
+ toggle: !!toggleIcon && on,
64
+ pointer: !0
65
+ })
66
+ }), label && jsxRuntime.jsx("div", {
67
+ className: css_label,
68
+ children: label
69
+ }), jsxRuntime.jsx(Dot.Dot, {
70
+ show: showDot
71
+ }), 0 !== count && jsxRuntime.jsx("div", {
72
+ className: css_count,
73
+ children: jsxRuntime.jsx(Badge.Badge, {
74
+ variant: "light",
75
+ count: count,
76
+ hideNull: !0
77
+ })
78
+ }) ]
79
+ }));
80
+ });
81
+
82
+ exports.IconButton = IconButton;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var tslib_es6 = require("./tslib.es6-C8dZW5nY.js");
3
+ var tslib_es6 = require("./tslib.es6-CzpRaW14.js");
4
4
 
5
5
  exports.IndexedDB = class {
6
6
  constructor(storeName, options = {}) {
@@ -0,0 +1,102 @@
1
+ 'use client';
2
+ "use strict";
3
+
4
+ var LabelBackground, tslib_es6 = require("./tslib.es6-CzpRaW14.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react"), misc = require("./misc-DZAbObFp.js"), css = {
5
+ label: "Label-module_label__RaRvM",
6
+ button: "Label-module_button__N8bcQ type-module_body-m-regular__LuQBA",
7
+ xs: "Label-module_xs__K9Ai6 type-module_body-xs-regular__ZAFft",
8
+ s: "Label-module_s__Zh8Gp type-module_body-s-regular__vRHSP",
9
+ m: "Label-module_m__BJtGL type-module_body-m-regular__LuQBA",
10
+ l: "Label-module_l__t70tt type-module_body-l-regular__lOYbg"
11
+ };
12
+
13
+ function resolveSemanticBackground(backgroundColor) {
14
+ if (!backgroundColor || "string" != typeof backgroundColor) return;
15
+ const semanticKey = backgroundColor;
16
+ return exports.LabelBackground[semanticKey] ? exports.LabelBackground[semanticKey] : Object.values(exports.LabelBackground).find(value => value === backgroundColor);
17
+ }
18
+
19
+ exports.LabelBackground = void 0, (LabelBackground = exports.LabelBackground || (exports.LabelBackground = {})).red = "red",
20
+ LabelBackground.yellow = "yellow", LabelBackground.green = "green", LabelBackground.blue = "blue",
21
+ LabelBackground.grey = "grey", LabelBackground.lightGrey = "lightGrey", LabelBackground.white = "white",
22
+ exports.Label = function(props) {
23
+ const {children: children, label: label, backgroundColor: backgroundColor, borderWidth: borderWidth, borderSize: borderSize = 1, borderColor: borderColor = "var(--core-outline-primary)", bgColor: bgColor = "transparent", borderRadius: borderRadius = 4, padding: padding, textColor: textColor = "var(--core-text-primary)", textSize: textSize = "s", onClick: onClick} = props, divAttributes = tslib_es6.__rest(props, [ "children", "label", "backgroundColor", "borderWidth", "borderSize", "borderColor", "bgColor", "borderRadius", "padding", "textColor", "textSize", "onClick" ]), {id: divId, className: className, style: style} = divAttributes, rest = tslib_es6.__rest(divAttributes, [ "id", "className", "style" ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "", isInteractive = Boolean(onClick), resolvedBackgroundColor = null != backgroundColor ? backgroundColor : bgColor, resolvedBorderWidth = null != borderWidth ? borderWidth : borderSize, handleClick = React.useCallback(e => {
24
+ isInteractive && (null == onClick || onClick(e));
25
+ }, [ isInteractive, onClick ]), setBgColor = React.useMemo(() => {
26
+ if (!resolvedBackgroundColor) return "transparent";
27
+ const fill = resolveSemanticBackground(resolvedBackgroundColor);
28
+ if (!fill) return resolvedBackgroundColor;
29
+ switch (fill) {
30
+ case "red":
31
+ return "var(--feedback-warning)";
32
+
33
+ case "green":
34
+ return "var(--feedback-positive)";
35
+
36
+ case "yellow":
37
+ return "var(--array-yellow)";
38
+
39
+ case "grey":
40
+ case "white":
41
+ return "var(--core-surface-secondary)";
42
+
43
+ case "lightGrey":
44
+ return "var(--core-button-disabled)";
45
+
46
+ case "blue":
47
+ return "var(--core-button-primary)";
48
+
49
+ default:
50
+ return "var(--core-surface-primary)";
51
+ }
52
+ }, [ resolvedBackgroundColor ]), setBorderColor = React.useMemo(() => {
53
+ if (!resolvedBackgroundColor) return borderColor;
54
+ const fill = resolveSemanticBackground(resolvedBackgroundColor);
55
+ if (!fill) return borderColor;
56
+ switch (fill) {
57
+ case "red":
58
+ return "var(--feedback-warning)";
59
+
60
+ case "green":
61
+ return "var(--feedback-positive)";
62
+
63
+ case "yellow":
64
+ return "var(--array-yellow-label)";
65
+
66
+ case "grey":
67
+ case "lightGrey":
68
+ case "white":
69
+ return "var(--core-outline-primary)";
70
+
71
+ case "blue":
72
+ return "var(--core-button-primary)";
73
+
74
+ default:
75
+ return "var(--core-surface-primary)";
76
+ }
77
+ }, [ resolvedBackgroundColor, borderColor ]), setPadding = React.useMemo(() => padding ? misc.setStyle(padding) : "2px 4px", [ padding ]), cssVars = React.useMemo(() => ({
78
+ "--label-padding": setPadding,
79
+ "--label-border-radius": misc.setStyle(borderRadius),
80
+ "--label-cursor": onClick ? "pointer" : "default",
81
+ "--label-color": textColor,
82
+ "--label-bg-color": setBgColor,
83
+ "--label-border-size": misc.setStyle(resolvedBorderWidth),
84
+ "--label-border-color": setBorderColor
85
+ }), [ setPadding, borderRadius, onClick, textColor, setBorderColor, setBgColor, resolvedBorderWidth ]);
86
+ return isInteractive ? jsxRuntime.jsx("button", Object.assign({
87
+ id: divId,
88
+ type: "button",
89
+ className: `${css.button} ${css[textSize]}${divClass}`,
90
+ style: Object.assign(Object.assign({}, divStyle), cssVars),
91
+ "aria-label": "Label button",
92
+ onClick: e => handleClick(e)
93
+ }, rest, {
94
+ children: null != children ? children : label
95
+ })) : jsxRuntime.jsx("span", Object.assign({
96
+ id: divId,
97
+ className: `${css.label} ${css[textSize]}${divClass}`,
98
+ style: Object.assign(Object.assign({}, divStyle), cssVars)
99
+ }, rest, {
100
+ children: null != children ? children : label
101
+ }));
102
+ };