@apple-pie/slice 0.1.57 → 0.1.59

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 (314) hide show
  1. package/dist/cjs/chunks/{AudioBubble-Spg7xqc9.js → AudioBubble-DAtkPfFK.js} +4 -4
  2. package/dist/cjs/chunks/{Avatar-BdhreiVP.js → Avatar-BI8Gvsp7.js} +2 -2
  3. package/dist/cjs/chunks/{AvatarGroup-BD69pplN.js → AvatarGroup-1IxbG6-D.js} +1 -1
  4. package/dist/cjs/chunks/{Badge-C_sva3jT.js → Badge-DMey3Pf3.js} +1 -1
  5. package/dist/cjs/chunks/{Button-C8hlMST5.js → Button-BjmkIu7l.js} +5 -6
  6. package/dist/cjs/chunks/{ButtonBar-1Qjuyr2U.js → ButtonBar-BxA8GQPM.js} +1 -1
  7. package/dist/cjs/chunks/{Camera-CXQLHtv8.js → Camera-ByjATQDE.js} +5 -5
  8. package/dist/cjs/chunks/{CheckBox-Bp4HCEp5.js → CheckBox-DZng-9wI.js} +1 -1
  9. package/dist/cjs/chunks/{Chip-D8k22_F8.js → Chip-CqUDN_QK.js} +7 -5
  10. package/dist/cjs/chunks/{DivInput-BXFPO-Mi.js → DivInput-GYDtuy4a.js} +2 -2
  11. package/dist/cjs/chunks/{Dot-BkFz2bG3.js → Dot-BgyxIyrr.js} +2 -2
  12. package/dist/cjs/chunks/{DrggablePanel-EJYkjSuq.js → DrggablePanel-BjOFnl0l.js} +11 -7
  13. package/dist/cjs/chunks/{DropDown-DcrJTYel.js → DropDown-C0vZNCK4.js} +4 -4
  14. package/dist/cjs/chunks/{ErrorSummary-FYhQ8A2g.js → ErrorSummary-CVzk_ASK.js} +5 -5
  15. package/dist/cjs/chunks/{FileIcon-DdKRzIde.js → FileIcon-63XvrV1q.js} +4 -4
  16. package/dist/cjs/chunks/{FileList-CBR3uaXM.js → FileList-6qXKA_Ux.js} +6 -5
  17. package/dist/cjs/chunks/{FlexDiv-DRaTYgR_.js → FlexDiv-LwjVh6ls.js} +4 -4
  18. package/dist/cjs/chunks/{Grouper-k1wtUJlG.js → Grouper-BlWyuh_b.js} +5 -5
  19. package/dist/cjs/chunks/{Icon-aBLPfZrD.js → Icon-BTjtQLNe.js} +10 -5
  20. package/dist/cjs/chunks/{IconButton-CbGXfBLK.js → IconButton-C0yNYhI6.js} +2 -2
  21. package/dist/cjs/chunks/{IndexedDB-BcDtqygg.js → IndexedDB-ClIpb2ob.js} +1 -1
  22. package/dist/cjs/chunks/{Label-Coei_F3_.js → Label-DsMFZd91.js} +5 -2
  23. package/dist/cjs/chunks/{Level-DpYVX9KZ.js → Level-VKdsTW_-.js} +2 -2
  24. package/dist/cjs/chunks/{Modal-IDb_E4Uj.js → Modal-Dp5Wg1Bw.js} +3 -3
  25. package/dist/cjs/chunks/{ModalController-D0Rk-7xK.js → ModalController-Cb2_7DtS.js} +3 -3
  26. package/dist/cjs/chunks/{Overlay-CTRJWWlC.js → Overlay-hOm9sYjr.js} +1 -1
  27. package/dist/cjs/chunks/{Pager-CjgU7xRP.js → Pager-CPhi9uyP.js} +1 -1
  28. package/dist/cjs/chunks/{ProgressIndicator-Dn_SVbK5.js → ProgressIndicator-CMsc_Npc.js} +5 -5
  29. package/dist/cjs/chunks/{PromptInput-DrqqeB7q.js → PromptInput-6eDiLG4g.js} +9 -10
  30. package/dist/cjs/chunks/{RadioButton-Bc7LvS17.js → RadioButton-DMxqwM6_.js} +3 -3
  31. package/dist/cjs/chunks/{RadioButtonList-Bl6hPvsZ.js → RadioButtonList-kG_Y1d4X.js} +1 -1
  32. package/dist/cjs/chunks/{Slider-BAR_f1bT.js → Slider-DGJomZGG.js} +4 -4
  33. package/dist/cjs/chunks/Spacer-Z97EoNtJ.js +26 -0
  34. package/dist/cjs/chunks/{Switch-CuK0xq85.js → Switch-CfzJd19R.js} +4 -4
  35. package/dist/cjs/chunks/{TabBar-DE-0fmd_.js → TabBar-C2aNS0Sd.js} +9 -9
  36. package/dist/cjs/chunks/{TextArea-CTDhSMbI.js → TextArea-G_MUJAHw.js} +3 -3
  37. package/dist/cjs/chunks/{TextField-BocVz2FD.js → TextField-CWIGERkd.js} +13 -18
  38. package/dist/cjs/chunks/{Tip-C7hgfkbD.js → Tip-B7RF879X.js} +3 -3
  39. package/dist/cjs/chunks/{Toast-CUtUp1H3.js → Toast-pkSkNuZo.js} +14 -10
  40. package/dist/cjs/chunks/{ToggleButton-BEw8y4n6.js → ToggleButton-DPc2x2EV.js} +1 -1
  41. package/dist/cjs/chunks/{UploadArea-cmzfjkdq.js → UploadArea-DyVGwChS.js} +8 -4
  42. package/dist/cjs/chunks/{Video-Cqyh2uqE.js → Video-Dh-_ouTP.js} +3 -3
  43. package/dist/cjs/chunks/{VideoController-cgbR4TCM.js → VideoController-CVm1CtaE.js} +6 -6
  44. package/dist/cjs/chunks/{WSConnection-lb-L_wl2.js → WSConnection-CDWOkk8n.js} +1 -1
  45. package/dist/cjs/chunks/{WebRTCConnection-C9wlDCWJ.js → WebRTCConnection-b8jZNRYr.js} +1 -1
  46. package/dist/cjs/chunks/{_types-xGDmxITu.js → _types-DxINS-ge.js} +2 -1
  47. package/dist/cjs/chunks/{browserChannelsStore-DzmDF2aJ.js → browserChannelsStore-PGtTaJyY.js} +2 -2
  48. package/dist/cjs/chunks/{localDBStore-Bo66OkHk.js → localDBStore-BRd0iQuq.js} +2 -2
  49. package/dist/cjs/chunks/{microphoneStore-D0ussh7L.js → microphoneStore-DljI0Zpj.js} +1 -1
  50. package/dist/cjs/chunks/{misc-DzYz4zh5.js → misc-BallZ366.js} +1 -1
  51. package/dist/cjs/chunks/{sseStore-B-0NYziZ.js → sseStore-cSWpKohM.js} +3 -3
  52. package/dist/cjs/chunks/{uploads-worker-wiEYAP3-.js → uploads-worker-DzrC-YiR.js} +1 -1
  53. package/dist/cjs/chunks/{uploadsStore-DiER7z5_.js → uploadsStore-BajO-auR.js} +2 -2
  54. package/dist/cjs/chunks/{viewState-ktYEaZW2.js → viewState-BVtEQ4sR.js} +8 -8
  55. package/dist/cjs/chunks/{volumeStore-Dez02JPh.js → volumeStore-DzgmrI6q.js} +1 -1
  56. package/dist/cjs/chunks/{webRTCStore-CAt0Ly4R.js → webRTCStore-BXHg9abP.js} +2 -2
  57. package/dist/cjs/chunks/{windowStore-BYkEn0kO.js → windowStore-DpNMptuw.js} +1 -1
  58. package/dist/cjs/components/AudioBubble/index.js +6 -6
  59. package/dist/cjs/components/Avatar/index.js +3 -3
  60. package/dist/cjs/components/AvatarGroup/index.js +3 -3
  61. package/dist/cjs/components/Badge/index.js +2 -2
  62. package/dist/cjs/components/Button/index.js +9 -9
  63. package/dist/cjs/components/ButtonBar/index.js +6 -6
  64. package/dist/cjs/components/Camera/index.js +8 -8
  65. package/dist/cjs/components/CheckBox/index.js +6 -6
  66. package/dist/cjs/components/Chip/index.js +7 -7
  67. package/dist/cjs/components/DataTable/index.js +7 -7
  68. package/dist/cjs/components/DivInput/index.js +3 -3
  69. package/dist/cjs/components/Dot/index.js +2 -2
  70. package/dist/cjs/components/DraggablePanel/index.js +6 -6
  71. package/dist/cjs/components/DropDown/index.js +6 -6
  72. package/dist/cjs/components/ErrorSummary/index.js +6 -6
  73. package/dist/cjs/components/FileIcon/index.js +6 -6
  74. package/dist/cjs/components/FileList/index.js +7 -7
  75. package/dist/cjs/components/FlexDiv/index.js +4 -3
  76. package/dist/cjs/components/Grouper/index.js +7 -7
  77. package/dist/cjs/components/Icon/index.js +6 -6
  78. package/dist/cjs/components/IconButton/index.js +9 -10
  79. package/dist/cjs/components/Label/index.js +3 -3
  80. package/dist/cjs/components/Level/index.js +4 -4
  81. package/dist/cjs/components/Modal/index.js +10 -10
  82. package/dist/cjs/components/ModalController/index.js +6 -6
  83. package/dist/cjs/components/Overlay/index.js +2 -2
  84. package/dist/cjs/components/Pager/index.js +3 -3
  85. package/dist/cjs/components/Progress/index.js +6 -6
  86. package/dist/cjs/components/PromptInput/index.js +10 -10
  87. package/dist/cjs/components/RadioButton/index.js +6 -6
  88. package/dist/cjs/components/RadioButtonList/index.js +7 -7
  89. package/dist/cjs/components/Slider/index.js +6 -6
  90. package/dist/cjs/components/Spacer/index.js +2 -2
  91. package/dist/cjs/components/Switch/index.js +2 -2
  92. package/dist/cjs/components/TabBar/index.js +9 -9
  93. package/dist/cjs/components/TextArea/index.js +10 -10
  94. package/dist/cjs/components/Textfield/index.js +10 -10
  95. package/dist/cjs/components/Tip/index.js +3 -3
  96. package/dist/cjs/components/Toast/index.js +7 -7
  97. package/dist/cjs/components/ToggleButton/index.js +10 -10
  98. package/dist/cjs/components/UploadArea/index.js +9 -9
  99. package/dist/cjs/components/Video/index.js +12 -13
  100. package/dist/cjs/components/VideoController/index.js +10 -10
  101. package/dist/cjs/hooks/useAudioRecorder.js +1 -1
  102. package/dist/cjs/hooks/useBindWebRTC.js +2 -2
  103. package/dist/cjs/hooks/useClipboard.js +2 -2
  104. package/dist/cjs/hooks/useInfiniteScroll.js +1 -1
  105. package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
  106. package/dist/cjs/hooks/useMicrophone.js +1 -1
  107. package/dist/cjs/hooks/useTrackRenders.js +2 -2
  108. package/dist/cjs/hooks.js +4 -4
  109. package/dist/cjs/index.js +10 -10
  110. package/dist/cjs/providers/themeServer.test.js +137 -78
  111. package/dist/cjs/stores/LocalDB.js +3 -3
  112. package/dist/cjs/stores/SSE.js +3 -3
  113. package/dist/cjs/stores/WS.js +3 -3
  114. package/dist/cjs/stores/WebRTC.js +3 -3
  115. package/dist/cjs/stores/activeTab.js +1 -1
  116. package/dist/cjs/stores/browserChannel.js +2 -2
  117. package/dist/cjs/stores/microphone.js +2 -2
  118. package/dist/cjs/stores/modal.js +1 -1
  119. package/dist/cjs/stores/tip.js +1 -1
  120. package/dist/cjs/stores/toast.js +1 -1
  121. package/dist/cjs/stores/uploads.js +2 -2
  122. package/dist/cjs/stores/video.js +1 -1
  123. package/dist/cjs/stores/volume.js +2 -2
  124. package/dist/cjs/stores/window.js +2 -2
  125. package/dist/cjs/stores.js +5 -5
  126. package/dist/cjs/theme/themes.js +13 -2
  127. package/dist/cjs/theme.js +2 -2
  128. package/dist/cjs/utils/index.js +2 -2
  129. package/dist/cjs/utils/objects/index.js +2 -2
  130. package/dist/cjs/workers/uploads/uploads.js +2 -2
  131. package/dist/esm/chunks/{AudioBubble-ck1gSxtM.mjs → AudioBubble-B8vlO9fq.mjs} +7 -7
  132. package/dist/esm/chunks/{Avatar-vhBRrvQP.mjs → Avatar-BMHnrzr3.mjs} +3 -3
  133. package/dist/esm/chunks/{AvatarGroup-DDPn1trz.mjs → AvatarGroup-BoBXPEbH.mjs} +2 -2
  134. package/dist/esm/chunks/{Badge-CntS4K1P.mjs → Badge-C7xDwrvC.mjs} +1 -1
  135. package/dist/esm/chunks/{Button-DVVXYB5E.mjs → Button-C6sTA1hG.mjs} +10 -11
  136. package/dist/esm/chunks/{ButtonBar-NduUKEhd.mjs → ButtonBar-Bh3-UpMU.mjs} +3 -3
  137. package/dist/esm/chunks/{Camera-Cofsfiqg.mjs → Camera-BXSLetAD.mjs} +9 -9
  138. package/dist/esm/chunks/{CheckBox-Du4u1Eva.mjs → CheckBox-DkXJwLeU.mjs} +3 -3
  139. package/dist/esm/chunks/{Chip-stmVXz5P.mjs → Chip-XTbAoiHl.mjs} +10 -8
  140. package/dist/esm/chunks/{DivInput-CGAqMs0y.mjs → DivInput-TsyOx4x2.mjs} +3 -3
  141. package/dist/esm/chunks/{Dot-CExdhu0z.mjs → Dot-D0NtTwqi.mjs} +2 -2
  142. package/dist/esm/chunks/{DrggablePanel-CCZWzCE4.mjs → DrggablePanel-BK9ukIbF.mjs} +10 -8
  143. package/dist/esm/chunks/{DropDown-REkWym1V.mjs → DropDown-F7yIB6EJ.mjs} +6 -6
  144. package/dist/esm/chunks/{ErrorSummary-CnApLAG8.mjs → ErrorSummary-SseJ5z1U.mjs} +7 -7
  145. package/dist/esm/chunks/{FileIcon-CJa41GGE.mjs → FileIcon-B7_cbtHF.mjs} +6 -6
  146. package/dist/esm/chunks/{FileList-CtPtwFg0.mjs → FileList-Bv9yn2QS.mjs} +10 -9
  147. package/dist/esm/chunks/{FlexDiv-DfCUyRsq.mjs → FlexDiv-3OxQ9y_1.mjs} +6 -4
  148. package/dist/esm/chunks/{Grouper-C2ekOKk-.mjs → Grouper-BcrjlgM-.mjs} +7 -7
  149. package/dist/esm/chunks/{Icon-DYv9sj3v.mjs → Icon-He4S-Q8N.mjs} +13 -8
  150. package/dist/esm/chunks/{IconButton-DUz8Pz1Z.mjs → IconButton-BGL-_8VW.mjs} +8 -6
  151. package/dist/esm/chunks/{IndexedDB-CO2IHWQq.mjs → IndexedDB-CB92RX6-.mjs} +1 -1
  152. package/dist/esm/chunks/{Label-osW2bH9O.mjs → Label-BouM6sY2.mjs} +6 -3
  153. package/dist/esm/chunks/{Level-DbvGSfLq.mjs → Level-CTkhQuiZ.mjs} +4 -4
  154. package/dist/esm/chunks/{Modal-Be3CsAWQ.mjs → Modal-BnbUOsKH.mjs} +7 -7
  155. package/dist/esm/chunks/{ModalController-DcZ5fgr-.mjs → ModalController-Dk2VZcXW.mjs} +5 -5
  156. package/dist/esm/chunks/{Overlay-B8l0rD6j.mjs → Overlay-D5cMQSvL.mjs} +1 -1
  157. package/dist/esm/chunks/{Pager-BkWiP2if.mjs → Pager-4-2T_ZbJ.mjs} +2 -2
  158. package/dist/esm/chunks/{ProgressIndicator-DPfGlu5w.mjs → ProgressIndicator-DBf_bLtr.mjs} +7 -7
  159. package/dist/esm/chunks/{PromptInput-Dn2jmUeX.mjs → PromptInput-I10dUhFO.mjs} +12 -13
  160. package/dist/esm/chunks/{RadioButton-DsZpFQlj.mjs → RadioButton-ZD7w9pql.mjs} +5 -5
  161. package/dist/esm/chunks/{RadioButtonList-3SGXzY-l.mjs → RadioButtonList-h2_5VM4X.mjs} +3 -3
  162. package/dist/esm/chunks/{Slider-bAlRcnr5.mjs → Slider-2Q6yVb8H.mjs} +7 -7
  163. package/dist/esm/chunks/Spacer-Rj8PKnt3.mjs +28 -0
  164. package/dist/esm/chunks/{Switch-YtBkB2gF.mjs → Switch-C4zkPOMU.mjs} +4 -4
  165. package/dist/esm/chunks/{TabBar-Bk1kOBSG.mjs → TabBar-bYgmIa-q.mjs} +14 -14
  166. package/dist/esm/chunks/{TextArea-DYim_fwG.mjs → TextArea-BS0Iu1RB.mjs} +6 -4
  167. package/dist/esm/chunks/{TextField-CuUvgXoc.mjs → TextField-BT1quQpj.mjs} +17 -22
  168. package/dist/esm/chunks/{Tip-CO5yFUi-.mjs → Tip-B4Tg6gIC.mjs} +4 -4
  169. package/dist/esm/chunks/{Toast-jV_6b03p.mjs → Toast-DWHhX64K.mjs} +14 -12
  170. package/dist/esm/chunks/{ToggleButton-CZbTyzZ7.mjs → ToggleButton-KAplYW5q.mjs} +2 -2
  171. package/dist/esm/chunks/{UploadArea-BjSr0-kl.mjs → UploadArea-D_ytxxSf.mjs} +11 -7
  172. package/dist/esm/chunks/{Video-D5owl4GM.mjs → Video-BHSzz3Wx.mjs} +10 -8
  173. package/dist/esm/chunks/{VideoController-BMm4f486.mjs → VideoController-D9ihYFYq.mjs} +10 -10
  174. package/dist/esm/chunks/{WSConnection-BkG6pECQ.mjs → WSConnection-BENe51Ue.mjs} +1 -1
  175. package/dist/esm/chunks/{WebRTCConnection-BMc3ILmW.mjs → WebRTCConnection-Cwx1C6Ta.mjs} +1 -1
  176. package/dist/esm/chunks/{_types-DBTuETEQ.mjs → _types-FIe85AYv.mjs} +2 -1
  177. package/dist/esm/chunks/{browserChannelsStore-BBnRAxaL.mjs → browserChannelsStore-oGeBSxAT.mjs} +2 -2
  178. package/dist/esm/chunks/{localDBStore-ChLj2J2R.mjs → localDBStore-ZwQD3ino.mjs} +3 -3
  179. package/dist/esm/chunks/{microphoneStore-CKLPc5zm.mjs → microphoneStore-D8VxjdFZ.mjs} +1 -1
  180. package/dist/esm/chunks/{misc-Vjo15VLp.mjs → misc-DBIXjc2Q.mjs} +1 -1
  181. package/dist/esm/chunks/{sseStore-C0XwLPfn.mjs → sseStore-CZqJmpUR.mjs} +3 -3
  182. package/dist/esm/chunks/{uploads-worker-DV0Cm3VQ.mjs → uploads-worker-DuyqBeHz.mjs} +1 -1
  183. package/dist/esm/chunks/{uploadsStore-DyYma52Z.mjs → uploadsStore-D9Ftk4Ke.mjs} +1 -1
  184. package/dist/esm/chunks/{viewState-y3yZZZDC.mjs → viewState-BdLOLJlv.mjs} +11 -11
  185. package/dist/esm/chunks/{volumeStore-CicDxCvO.mjs → volumeStore-hrteUkB-.mjs} +1 -1
  186. package/dist/esm/chunks/{webRTCStore-Dr5M8DFU.mjs → webRTCStore-B2ri-_li.mjs} +3 -3
  187. package/dist/esm/chunks/{windowStore-OW9W5zAw.mjs → windowStore-DIdy_IoC.mjs} +1 -1
  188. package/dist/esm/components/AudioBubble/index.mjs +9 -9
  189. package/dist/esm/components/Avatar/index.mjs +3 -3
  190. package/dist/esm/components/AvatarGroup/index.mjs +4 -4
  191. package/dist/esm/components/Badge/index.mjs +2 -2
  192. package/dist/esm/components/Button/index.mjs +13 -13
  193. package/dist/esm/components/ButtonBar/index.mjs +9 -9
  194. package/dist/esm/components/Camera/index.mjs +11 -11
  195. package/dist/esm/components/CheckBox/index.mjs +9 -9
  196. package/dist/esm/components/Chip/index.mjs +10 -10
  197. package/dist/esm/components/DataTable/index.mjs +10 -10
  198. package/dist/esm/components/DivInput/index.mjs +3 -3
  199. package/dist/esm/components/Dot/index.mjs +2 -2
  200. package/dist/esm/components/DraggablePanel/index.mjs +8 -8
  201. package/dist/esm/components/DropDown/index.mjs +9 -9
  202. package/dist/esm/components/ErrorSummary/index.mjs +8 -8
  203. package/dist/esm/components/FileIcon/index.mjs +8 -8
  204. package/dist/esm/components/FileList/index.mjs +11 -11
  205. package/dist/esm/components/FlexDiv/index.mjs +4 -2
  206. package/dist/esm/components/Grouper/index.mjs +10 -10
  207. package/dist/esm/components/Icon/index.mjs +9 -9
  208. package/dist/esm/components/IconButton/index.mjs +13 -13
  209. package/dist/esm/components/Label/index.mjs +3 -3
  210. package/dist/esm/components/Level/index.mjs +5 -5
  211. package/dist/esm/components/Modal/index.mjs +15 -15
  212. package/dist/esm/components/ModalController/index.mjs +9 -9
  213. package/dist/esm/components/Overlay/index.mjs +2 -2
  214. package/dist/esm/components/Pager/index.mjs +3 -3
  215. package/dist/esm/components/Progress/index.mjs +9 -9
  216. package/dist/esm/components/PromptInput/index.mjs +16 -16
  217. package/dist/esm/components/RadioButton/index.mjs +9 -9
  218. package/dist/esm/components/RadioButtonList/index.mjs +10 -10
  219. package/dist/esm/components/Slider/index.mjs +9 -9
  220. package/dist/esm/components/Spacer/index.mjs +2 -2
  221. package/dist/esm/components/Switch/index.mjs +2 -2
  222. package/dist/esm/components/TabBar/index.mjs +13 -13
  223. package/dist/esm/components/TextArea/index.mjs +15 -15
  224. package/dist/esm/components/Textfield/index.mjs +15 -15
  225. package/dist/esm/components/Tip/index.mjs +3 -3
  226. package/dist/esm/components/Toast/index.mjs +10 -10
  227. package/dist/esm/components/ToggleButton/index.mjs +15 -15
  228. package/dist/esm/components/UploadArea/index.mjs +14 -14
  229. package/dist/esm/components/Video/index.mjs +20 -20
  230. package/dist/esm/components/VideoController/index.mjs +15 -15
  231. package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
  232. package/dist/esm/hooks/useBindWebRTC.mjs +6 -6
  233. package/dist/esm/hooks/useClipboard.mjs +3 -3
  234. package/dist/esm/hooks/useInfiniteScroll.mjs +1 -1
  235. package/dist/esm/hooks/useMdStreamBuffer.mjs +3 -3
  236. package/dist/esm/hooks/useMicrophone.mjs +1 -1
  237. package/dist/esm/hooks/useTrackRenders.mjs +2 -2
  238. package/dist/esm/hooks.mjs +8 -8
  239. package/dist/esm/index.mjs +59 -59
  240. package/dist/esm/providers/themeServer.test.mjs +137 -78
  241. package/dist/esm/stores/LocalDB.mjs +4 -4
  242. package/dist/esm/stores/SSE.mjs +4 -4
  243. package/dist/esm/stores/WS.mjs +3 -3
  244. package/dist/esm/stores/WebRTC.mjs +4 -4
  245. package/dist/esm/stores/activeTab.mjs +1 -1
  246. package/dist/esm/stores/browserChannel.mjs +3 -3
  247. package/dist/esm/stores/microphone.mjs +2 -2
  248. package/dist/esm/stores/modal.mjs +1 -1
  249. package/dist/esm/stores/tip.mjs +1 -1
  250. package/dist/esm/stores/toast.mjs +1 -1
  251. package/dist/esm/stores/uploads.mjs +3 -3
  252. package/dist/esm/stores/video.mjs +1 -1
  253. package/dist/esm/stores/volume.mjs +2 -2
  254. package/dist/esm/stores/window.mjs +2 -2
  255. package/dist/esm/stores.mjs +19 -19
  256. package/dist/esm/theme/themes.mjs +13 -2
  257. package/dist/esm/theme.mjs +1 -1
  258. package/dist/esm/utils/index.mjs +12 -12
  259. package/dist/esm/utils/objects/index.mjs +8 -8
  260. package/dist/esm/workers/uploads/uploads.mjs +2 -2
  261. package/dist/styles.css +1814 -1797
  262. package/dist/types/components/Button/Button.d.ts +2 -2
  263. package/dist/types/components/Button/_types.d.ts +1 -1
  264. package/dist/types/components/Chip/_types.d.ts +1 -1
  265. package/dist/types/components/DivInput/_types.d.ts +2 -2
  266. package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +1 -1
  267. package/dist/types/components/DropDown/_types.d.ts +1 -1
  268. package/dist/types/components/FlexDiv/FlexDiv.d.ts +2 -2
  269. package/dist/types/components/FlexDiv/_types.d.ts +1 -1
  270. package/dist/types/components/Icon/_types.d.ts +1 -0
  271. package/dist/types/components/IconButton/_types.d.ts +1 -1
  272. package/dist/types/components/Label/_types.d.ts +1 -1
  273. package/dist/types/components/PromptInput/PromptInput.d.ts +2 -2
  274. package/dist/types/components/PromptInput/_types.d.ts +1 -1
  275. package/dist/types/components/Spacer/_types.d.ts +2 -1
  276. package/dist/types/components/TextArea/_types.d.ts +1 -1
  277. package/dist/types/components/Tip/_types.d.ts +2 -2
  278. package/dist/types/theme/index.d.ts +2 -0
  279. package/dist/types/theme/spacing/_types.d.ts +10 -0
  280. package/dist/types/theme/spacing/spacing.d.ts +2 -0
  281. package/dist/types/theme/themes.d.ts +2 -0
  282. package/package.json +25 -19
  283. package/dist/cjs/chunks/Spacer-ByFg1uI8.js +0 -19
  284. package/dist/esm/chunks/Spacer-Dw1R_QS-.mjs +0 -21
  285. /package/dist/cjs/chunks/{MdStreamBuffer-pKVX0tZt.js → MdStreamBuffer-DiL2zm2P.js} +0 -0
  286. /package/dist/cjs/chunks/{SSEConnection-cJuY1bye.js → SSEConnection-CTxnFASS.js} +0 -0
  287. /package/dist/cjs/chunks/{activeTabStore-DIGbK-zT.js → activeTabStore-C8afog5l.js} +0 -0
  288. /package/dist/cjs/chunks/{audioVisualizer-CLqdv2K-.js → audioVisualizer-C74sRH6D.js} +0 -0
  289. /package/dist/cjs/chunks/{broadcastChannel-Bf-u0RnC.js → broadcastChannel-DLSijpj_.js} +0 -0
  290. /package/dist/cjs/chunks/{colors-Yb-BONG0.js → colors-BDwwQ2Y3.js} +0 -0
  291. /package/dist/cjs/chunks/{debounce-B1046f-_.js → debounce-Bi3gt_i6.js} +0 -0
  292. /package/dist/cjs/chunks/{magic-string.es-CR7TWHhS.js → magic-string.es-DRDyITUv.js} +0 -0
  293. /package/dist/cjs/chunks/{modalStore-DwgyWAOV.js → modalStore-BexwvT-T.js} +0 -0
  294. /package/dist/cjs/chunks/{rafThrottle-68q3wWGh.js → rafThrottle-DdNEpMIw.js} +0 -0
  295. /package/dist/cjs/chunks/{sharedTypes-CKKHnYKP.js → sharedTypes-XAbs742N.js} +0 -0
  296. /package/dist/cjs/chunks/{tipStore-CZDr2c8Z.js → tipStore-BKFK6F3e.js} +0 -0
  297. /package/dist/cjs/chunks/{toastStore-CJJRSAs2.js → toastStore-Bwus7v5O.js} +0 -0
  298. /package/dist/cjs/chunks/{tslib.es6-CxZHzsEo.js → tslib.es6-B2uEaXWi.js} +0 -0
  299. /package/dist/cjs/chunks/{videoStore-CG5H5-lr.js → videoStore-BYmE3fJZ.js} +0 -0
  300. /package/dist/esm/chunks/{MdStreamBuffer-ZUWjyTTg.mjs → MdStreamBuffer-D2Yh0SCY.mjs} +0 -0
  301. /package/dist/esm/chunks/{SSEConnection-3DCZcriT.mjs → SSEConnection-B3iPwyF_.mjs} +0 -0
  302. /package/dist/esm/chunks/{activeTabStore-DR2HKd1h.mjs → activeTabStore-BsoH1tFV.mjs} +0 -0
  303. /package/dist/esm/chunks/{audioVisualizer-BxszDYyy.mjs → audioVisualizer-BiB7Hun_.mjs} +0 -0
  304. /package/dist/esm/chunks/{broadcastChannel-_Q346Oc1.mjs → broadcastChannel-DahousoM.mjs} +0 -0
  305. /package/dist/esm/chunks/{colors-Cpt08T7U.mjs → colors-DAIBQReF.mjs} +0 -0
  306. /package/dist/esm/chunks/{debounce-D_IO1tKP.mjs → debounce-BPsURiHk.mjs} +0 -0
  307. /package/dist/esm/chunks/{magic-string.es-LOpujL9L.mjs → magic-string.es-DOKITkor.mjs} +0 -0
  308. /package/dist/esm/chunks/{modalStore-CMO5OJNA.mjs → modalStore-GWNWh1tE.mjs} +0 -0
  309. /package/dist/esm/chunks/{rafThrottle-BMAGudCU.mjs → rafThrottle-BX9f7-D1.mjs} +0 -0
  310. /package/dist/esm/chunks/{sharedTypes-DRYdKvBH.mjs → sharedTypes-DdC4rvjp.mjs} +0 -0
  311. /package/dist/esm/chunks/{tipStore-C2MdlITu.mjs → tipStore-CF42G3w9.mjs} +0 -0
  312. /package/dist/esm/chunks/{toastStore-bClN8hti.mjs → toastStore-CRMyZAzS.mjs} +0 -0
  313. /package/dist/esm/chunks/{tslib.es6-UNsbHCvA.mjs → tslib.es6-DatKI43-.mjs} +0 -0
  314. /package/dist/esm/chunks/{videoStore-DbLjS_2T.mjs → videoStore-CiDDAB4E.mjs} +0 -0
@@ -17,7 +17,7 @@ export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAtt
17
17
  round?: boolean;
18
18
  tooltip?: string;
19
19
  iconSize?: number;
20
- borderRadius?: number;
20
+ borderRadius?: number | string;
21
21
  iconColor?: string;
22
22
  backgroundColor?: string;
23
23
  backgroundColorDisabled?: string;
@@ -56,7 +56,7 @@ export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAtt
56
56
  round?: boolean;
57
57
  tooltip?: string;
58
58
  iconSize?: number;
59
- borderRadius?: number;
59
+ borderRadius?: number | string;
60
60
  iconColor?: string;
61
61
  backgroundColor?: string;
62
62
  backgroundColorDisabled?: string;
@@ -17,7 +17,7 @@ type ButtonBaseProps = {
17
17
  round?: boolean;
18
18
  tooltip?: string;
19
19
  iconSize?: number;
20
- borderRadius?: number;
20
+ borderRadius?: number | string;
21
21
  iconColor?: string;
22
22
  backgroundColor?: string;
23
23
  backgroundColorDisabled?: string;
@@ -21,7 +21,7 @@ type ChipBaseProps = {
21
21
  borderColor?: string;
22
22
  borderColorHover?: string;
23
23
  borderColorDisabled?: string;
24
- borderRadius?: number;
24
+ borderRadius?: number | string;
25
25
  gap?: number;
26
26
  paddingTop?: number;
27
27
  paddingTops?: number;
@@ -16,8 +16,8 @@ type DivInputBaseProps = {
16
16
  textAlign?: 'left' | 'center' | 'right';
17
17
  clamp?: number;
18
18
  padding?: string;
19
- borderRadius?: number;
20
- radius?: number;
19
+ borderRadius?: number | string;
20
+ radius?: number | string;
21
21
  backgroundColor?: string;
22
22
  };
23
23
  export type DivInputProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DivInputBaseProps> & DivInputBaseProps;
@@ -46,7 +46,7 @@ export declare const DraggablePanel: React.MemoExoticComponent<(props: Draggable
46
46
  export type DragHandleProps = {
47
47
  width?: number;
48
48
  height?: number;
49
- radius?: number;
49
+ radius?: number | string;
50
50
  stroke?: number;
51
51
  strokeColor?: string;
52
52
  color?: string;
@@ -13,7 +13,7 @@ type DropDownBaseProps<T = string> = {
13
13
  selectedValue?: T;
14
14
  valueKey?: string;
15
15
  placeholder?: boolean;
16
- borderRadius?: number;
16
+ borderRadius?: number | string;
17
17
  borderStyle?: 'bottom' | 'box' | 'none';
18
18
  validate?: boolean;
19
19
  iconColor?: string;
@@ -27,7 +27,7 @@ export declare const FlexDiv: React.NamedExoticComponent<Omit<React.HTMLAttribut
27
27
  transition?: import("motion-dom").Transition;
28
28
  variants?: any;
29
29
  gap?: number;
30
- borderRadius?: number;
30
+ borderRadius?: number | string;
31
31
  scrollHandle?: string;
32
32
  scrollHandleHover?: string;
33
33
  }> & {
@@ -58,7 +58,7 @@ export declare const FlexDiv: React.NamedExoticComponent<Omit<React.HTMLAttribut
58
58
  transition?: import("motion-dom").Transition;
59
59
  variants?: any;
60
60
  gap?: number;
61
- borderRadius?: number;
61
+ borderRadius?: number | string;
62
62
  scrollHandle?: string;
63
63
  scrollHandleHover?: string;
64
64
  } & React.RefAttributes<HTMLDivElement>>;
@@ -138,7 +138,7 @@ type FlexDivBaseProps = {
138
138
  transition?: Transition;
139
139
  variants?: any;
140
140
  gap?: number;
141
- borderRadius?: number;
141
+ borderRadius?: number | string;
142
142
  scrollHandle?: string;
143
143
  scrollHandleHover?: string;
144
144
  };
@@ -43,6 +43,7 @@ export declare const SliceIcons: {
43
43
  readonly inbox: "inbox";
44
44
  readonly like: "like";
45
45
  readonly unlike: "unlike";
46
+ readonly at: "@";
46
47
  };
47
48
  readonly media: {
48
49
  readonly camera: "camera";
@@ -75,7 +75,7 @@ type IconButtonBaseProps = {
75
75
  initial?: string;
76
76
  animate?: string;
77
77
  exit?: string;
78
- borderRadius?: number;
78
+ borderRadius?: number | string;
79
79
  onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
80
80
  onToolTip?: (tip: ToolTip | null) => void;
81
81
  buttonSize?: 's' | 'm' | 'l' | 'xl';
@@ -15,7 +15,7 @@ type LabelBaseProps = {
15
15
  borderWidth?: number;
16
16
  borderSize?: number;
17
17
  borderColor?: string;
18
- borderRadius?: number;
18
+ borderRadius?: number | string;
19
19
  padding?: number | string;
20
20
  textColor?: string;
21
21
  textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
@@ -14,7 +14,7 @@ export declare const PromptInput: React.NamedExoticComponent<Omit<React.HTMLAttr
14
14
  borderColor?: string | number;
15
15
  borderColorOn?: string | number;
16
16
  borderAnimate?: boolean;
17
- borderRadius?: number;
17
+ borderRadius?: number | string;
18
18
  placeholder?: string;
19
19
  placeholderWorking?: string;
20
20
  focused?: boolean;
@@ -48,7 +48,7 @@ export declare const PromptInput: React.NamedExoticComponent<Omit<React.HTMLAttr
48
48
  borderColor?: string | number;
49
49
  borderColorOn?: string | number;
50
50
  borderAnimate?: boolean;
51
- borderRadius?: number;
51
+ borderRadius?: number | string;
52
52
  placeholder?: string;
53
53
  placeholderWorking?: string;
54
54
  focused?: boolean;
@@ -14,7 +14,7 @@ type BasePromptProps = {
14
14
  borderColor?: string | number;
15
15
  borderColorOn?: string | number;
16
16
  borderAnimate?: boolean;
17
- borderRadius?: number;
17
+ borderRadius?: number | string;
18
18
  placeholder?: string;
19
19
  placeholderWorking?: string;
20
20
  focused?: boolean;
@@ -1,6 +1,7 @@
1
1
  import type React from 'react';
2
+ import type { SpacingGrid } from '../../theme/spacing/_types';
2
3
  type SpacerBaseProps = {
3
- size?: number;
4
+ size?: keyof SpacingGrid;
4
5
  };
5
6
  export type SpacerProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof SpacerBaseProps> & SpacerBaseProps;
6
7
  export {};
@@ -19,7 +19,7 @@ type TextAreaBaseProps = {
19
19
  };
20
20
  sendSize?: number;
21
21
  backgroundColor?: string;
22
- borderRadius?: number;
22
+ borderRadius?: number | string;
23
23
  returnSubmits?: boolean;
24
24
  textSize?: 'xs' | 's' | 'm' | 'l' | 'xl';
25
25
  disabled?: boolean;
@@ -17,8 +17,8 @@ type ToolTipBaseProps = {
17
17
  border?: boolean;
18
18
  borderColor?: string;
19
19
  padding?: number | string;
20
- borderRadius?: number;
21
- radius?: number;
20
+ borderRadius?: number | string;
21
+ radius?: number | string;
22
22
  coords?: {
23
23
  x: number;
24
24
  y: number;
@@ -4,6 +4,8 @@ export type { Type } from './type/types';
4
4
  export type { Corners } from './corners/types';
5
5
  export type { Elevations } from './elevations/_types';
6
6
  export type { SliceMotion } from './motion/_types';
7
+ export type { SpacingGrid } from './spacing/_types';
7
8
  export { light, dark } from './colors/colors';
8
9
  export { elevations, elevations as Elevation } from './elevations/elevations';
9
10
  export { motion } from './motion/motion';
11
+ export { spacing } from './spacing/spacing';
@@ -0,0 +1,10 @@
1
+ export type SpacingGrid = {
2
+ xxs: number;
3
+ xs: number;
4
+ s: number;
5
+ m: number;
6
+ l: number;
7
+ xl: number;
8
+ xxl: number;
9
+ h: number;
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { SpacingGrid } from './_types';
2
+ export declare const spacing: SpacingGrid;
@@ -2,6 +2,7 @@ import type { Colors, CoreColors } from './colors/types';
2
2
  import type { Corners } from './corners/types';
3
3
  import type { Elevations } from './elevations/_types';
4
4
  import type { SliceMotion } from './motion/_types';
5
+ import type { SpacingGrid } from './spacing/_types';
5
6
  import type { Type } from './type/types';
6
7
  export type SliceTheme = {
7
8
  name: string;
@@ -10,6 +11,7 @@ export type SliceTheme = {
10
11
  type: Type;
11
12
  corners: Corners;
12
13
  elevations: Elevations;
14
+ spacing: SpacingGrid;
13
15
  motion: SliceMotion;
14
16
  };
15
17
  export declare const lightTheme: SliceTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apple-pie/slice",
3
- "version": "0.1.57",
3
+ "version": "0.1.59",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {
@@ -100,12 +100,13 @@
100
100
  "files": ["dist", "README.md", "scripts/copy-assets.mjs"],
101
101
  "sideEffects": ["**/*.css"],
102
102
  "scripts": {
103
- "lint": "biome format --write . && biome check .",
104
- "lint:fix": "biome format --write . && biome check --write .",
105
- "lint:ci": "biome ci .",
103
+ "lint": "biome format --write . && biome check . && npm run typecheck",
104
+ "lint:fix": "biome format --write . && biome check --write . && npm run typecheck",
105
+ "lint:ci": "biome ci . && npm run typecheck",
106
+ "typecheck": "tsc --noEmit -p tsconfig.json",
106
107
  "format": "biome format --write .",
107
- "test": "vitest",
108
- "test:ui": "vitest --ui",
108
+ "test": "vitest --project unit --project storybook",
109
+ "test:ui": "vitest --ui --project unit --project storybook",
109
110
  "benchmark": "vitest run --project benchmarks benchmarks/run-with-report.bench.ts",
110
111
  "benchmark:raw": "vitest bench --project benchmarks --run",
111
112
  "benchmark:watch": "vitest bench --project benchmarks",
@@ -137,12 +138,12 @@
137
138
  "@rollup/plugin-terser": "^1.0.0",
138
139
  "@rollup/plugin-typescript": "^12.1.2",
139
140
  "@rollup/plugin-url": "^8.0.2",
140
- "@storybook/addon-a11y": "^10.2.12",
141
- "@storybook/addon-docs": "^10.2.13",
142
- "@storybook/addon-onboarding": "^10.2.9",
143
- "@storybook/addon-vitest": "^10.2.12",
144
- "@storybook/react": "^10.2.9",
145
- "@storybook/react-vite": "^10.2.9",
141
+ "@storybook/addon-a11y": "^10.6.3",
142
+ "@storybook/addon-docs": "^10.6.3",
143
+ "@storybook/addon-onboarding": "^10.6.3",
144
+ "@storybook/addon-vitest": "^10.6.3",
145
+ "@storybook/react": "^10.6.3",
146
+ "@storybook/react-vite": "^10.6.3",
146
147
  "@svgr/rollup": "^8.1.0",
147
148
  "@testing-library/react": "^16.3.2",
148
149
  "@testing-library/user-event": "^14.6.1",
@@ -150,16 +151,16 @@
150
151
  "@types/react": "^19.0.7",
151
152
  "@types/react-dom": "^19.0.3",
152
153
  "@vitejs/plugin-react": "^4.3.4",
153
- "@vitest/browser-playwright": "^4.0.18",
154
- "@vitest/coverage-v8": "^4.0.18",
155
- "@vitest/ui": "^4.0.18",
154
+ "@vitest/browser-playwright": "^4.1.12",
155
+ "@vitest/coverage-v8": "^4.1.12",
156
+ "@vitest/ui": "^4.1.12",
156
157
  "fake-indexeddb": "^6.2.5",
157
- "happy-dom": "^20.7.0",
158
+ "happy-dom": "^21.0.4",
158
159
  "jsdom": "^28.1.0",
159
160
  "playwright": "^1.58.2",
160
161
  "postcss-custom-media": "^11.0.6",
161
162
  "postcss-import": "^16.1.1",
162
- "postcss-nested": "^6.2.0",
163
+ "postcss-nested": "^9.0.0",
163
164
  "rollup": "^4.32.0",
164
165
  "rollup-plugin-json": "^4.0.0",
165
166
  "rollup-plugin-peer-deps-external": "^2.2.4",
@@ -167,14 +168,19 @@
167
168
  "rollup-plugin-strip-code": "^0.2.8",
168
169
  "rollup-plugin-visualizer": "^7.0.1",
169
170
  "rollup-preserve-directives": "^1.1.3",
170
- "storybook": "^10.2.9",
171
+ "storybook": "^10.6.3",
171
172
  "tsx": "^4.21.0",
172
173
  "typescript": "^5.7.3",
173
174
  "vite": "^6.0.11",
174
175
  "vite-plugin-svgr": "^4.3.0",
175
- "vitest": "^4.0.18",
176
+ "vitest": "^4.1.12",
176
177
  "zustand": "^5.0.0"
177
178
  },
179
+ "overrides": {
180
+ "rollup-plugin-postcss": {
181
+ "postcss-selector-parser": "^7.1.6"
182
+ }
183
+ },
178
184
  "peerDependencies": {
179
185
  "motion": "^11.0.0 || ^12.0.0",
180
186
  "react": "^18.0.0 || ^19.0.0",
@@ -1,19 +0,0 @@
1
- 'use client';
2
- "use strict";
3
-
4
- var tslib_es6 = require("./tslib.es6-CxZHzsEo.js"), jsxRuntime = require("react/jsx-runtime"), React = require("react");
5
-
6
- const Spacer = React.memo(props => {
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(() => ({
8
- height: size,
9
- minHeight: size,
10
- maxHeight: size
11
- }), [ size ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "";
12
- return jsxRuntime.jsx("div", Object.assign({
13
- id: divId,
14
- className: divClass.trim(),
15
- style: Object.assign(Object.assign({}, divStyle), spacerStyle)
16
- }, rest));
17
- });
18
-
19
- exports.Spacer = Spacer;
@@ -1,21 +0,0 @@
1
- 'use client';
2
- import { a as __rest } from "./tslib.es6-UNsbHCvA.mjs";
3
-
4
- import { jsx } from "react/jsx-runtime";
5
-
6
- import React, { useMemo } from "react";
7
-
8
- const Spacer = React.memo(props => {
9
- const {size: size = 8} = props, divAttributes = __rest(props, [ "size" ]), {id: divId, className: className, style: style} = divAttributes, rest = __rest(divAttributes, [ "id", "className", "style" ]), spacerStyle = useMemo(() => ({
10
- height: size,
11
- minHeight: size,
12
- maxHeight: size
13
- }), [ size ]), divStyle = null != style ? style : {}, divClass = className ? ` ${className}` : "";
14
- return jsx("div", Object.assign({
15
- id: divId,
16
- className: divClass.trim(),
17
- style: Object.assign(Object.assign({}, divStyle), spacerStyle)
18
- }, rest));
19
- });
20
-
21
- export { Spacer as S };