@apple-pie/slice 0.1.56 → 0.1.58
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.
- package/dist/cjs/chunks/{AudioBubble-2DmGApzQ.js → AudioBubble-BQzb7t1F.js} +4 -4
- package/dist/cjs/chunks/{Avatar-CC0ALePu.js → Avatar-CUFzge9h.js} +2 -2
- package/dist/cjs/chunks/{AvatarGroup-DEbpNjLc.js → AvatarGroup-D5g7PFO9.js} +1 -1
- package/dist/cjs/chunks/{Badge-ZjDd3Ix8.js → Badge-xNdezdPp.js} +1 -1
- package/dist/cjs/chunks/{Button-DnB85xYG.js → Button-CyXJ9uG3.js} +5 -6
- package/dist/cjs/chunks/{ButtonBar-DWDhGpwi.js → ButtonBar-B-RVcWNo.js} +1 -1
- package/dist/cjs/chunks/{Camera-CbB_z0BT.js → Camera-CAzaOB4G.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-CCG8Zu0n.js → CheckBox-YiVx5dkX.js} +1 -1
- package/dist/cjs/chunks/{Chip-D1-XUhlH.js → Chip-BChy87kf.js} +7 -5
- package/dist/cjs/chunks/{DivInput-BRgfHVdj.js → DivInput-DfAONl7x.js} +2 -2
- package/dist/cjs/chunks/{Dot-3F2j3xqG.js → Dot-D2xmxQUt.js} +2 -2
- package/dist/cjs/chunks/{DrggablePanel-DLPTTF0x.js → DrggablePanel-D2BEKaM_.js} +11 -7
- package/dist/cjs/chunks/{DropDown-DczcOKT4.js → DropDown-Cj-GZmDN.js} +4 -4
- package/dist/cjs/chunks/{ErrorSummary-CmloSFWV.js → ErrorSummary-DlrxXxZG.js} +5 -5
- package/dist/cjs/chunks/{FileIcon-C0WnFj_a.js → FileIcon-BUW6exKf.js} +4 -4
- package/dist/cjs/chunks/{FileList-BR5tak9p.js → FileList-DqMJ-CdS.js} +6 -5
- package/dist/cjs/chunks/{FlexDiv-B-9oOJ0q.js → FlexDiv-CkjovMfE.js} +4 -4
- package/dist/cjs/chunks/{Grouper-CVLQb1M8.js → Grouper-Dw7b-rKO.js} +5 -5
- package/dist/cjs/chunks/{Icon-L-KOi8gd.js → Icon-QCkWofx3.js} +4 -4
- package/dist/cjs/chunks/{IconButton-CRlg14ov.js → IconButton-pfCyM8tf.js} +2 -2
- package/dist/cjs/chunks/{IndexedDB-BnRfQTQM.js → IndexedDB-B8x-Lb5K.js} +1 -1
- package/dist/cjs/chunks/{Label-DMWLMm8u.js → Label-CYFeaNz2.js} +5 -2
- package/dist/cjs/chunks/{Level-DFMbJLwo.js → Level-1-42wEEw.js} +2 -2
- package/dist/cjs/chunks/{Modal-3nJMxtM5.js → Modal-mzZbLdRN.js} +3 -3
- package/dist/cjs/chunks/{ModalController-BYbWwA2c.js → ModalController-D4miiECK.js} +3 -3
- package/dist/cjs/chunks/{Overlay-CcLSSVas.js → Overlay-CCoJ_1nO.js} +1 -1
- package/dist/cjs/chunks/{Pager-EnPvzs7I.js → Pager-Bxyv-Mrf.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-D4QBeeJ7.js → ProgressIndicator-DwhhhQU7.js} +5 -5
- package/dist/cjs/chunks/{PromptInput-DOG6-tSs.js → PromptInput-B9paGcxy.js} +9 -10
- package/dist/cjs/chunks/{RadioButton-Dv1UMrmC.js → RadioButton-B9TJk2Mo.js} +3 -3
- package/dist/cjs/chunks/{RadioButtonList-QQsLvc6S.js → RadioButtonList-BNoRk_XR.js} +1 -1
- package/dist/cjs/chunks/{Slider-BPbnMJvK.js → Slider-UfrORkxH.js} +4 -4
- package/dist/cjs/chunks/Spacer-C7IiQxXF.js +26 -0
- package/dist/cjs/chunks/{Switch-BDbPgMBM.js → Switch-hhn2FD0T.js} +4 -4
- package/dist/cjs/chunks/{TabBar-D30fnZts.js → TabBar-DIQKTsGM.js} +9 -9
- package/dist/cjs/chunks/{TextArea-7Ae7ObSp.js → TextArea-BOj9zhbi.js} +3 -3
- package/dist/cjs/chunks/{TextField-DyczwDLg.js → TextField-DJYu-9le.js} +13 -18
- package/dist/cjs/chunks/{Tip-DYMB02-A.js → Tip-99AK0nJF.js} +3 -3
- package/dist/cjs/chunks/{Toast-DCBurEYu.js → Toast-Bff0E9cy.js} +14 -10
- package/dist/cjs/chunks/{ToggleButton-B_C5et_m.js → ToggleButton-rE3hAk9Y.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-CSPRt0Mq.js → UploadArea-8TC2vEKQ.js} +8 -4
- package/dist/cjs/chunks/{Video-C7llXaDv.js → Video-RCjV8YIl.js} +3 -3
- package/dist/cjs/chunks/{VideoController-O-BsyFnJ.js → VideoController-DELbuJN3.js} +6 -6
- package/dist/cjs/chunks/{WSConnection-Dypd3e4R.js → WSConnection-CO9eOg8Z.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-BBxaTTbD.js → WebRTCConnection-CRVE6lTu.js} +1 -1
- package/dist/cjs/chunks/{browserChannelsStore-Y7zsrnV8.js → browserChannelsStore-BV2uJVeI.js} +2 -2
- package/dist/cjs/chunks/{localDBStore-LWl68wGD.js → localDBStore-BR-2nDv_.js} +2 -2
- package/dist/cjs/chunks/{microphoneStore-Bf3gZQQR.js → microphoneStore-C1Zp6UiP.js} +1 -1
- package/dist/cjs/chunks/{misc-BO_-R1om.js → misc-CmImf5jl.js} +1 -1
- package/dist/cjs/chunks/{sseStore-DDlXJ2mc.js → sseStore-CnQU9zYi.js} +3 -3
- package/dist/cjs/chunks/{uploads-worker-BMHcg5-W.js → uploads-worker-hKMYFfkr.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-D3RnoU3L.js → uploadsStore-D8GRqXd4.js} +2 -2
- package/dist/cjs/chunks/{viewState-D2U_fJaY.js → viewState-CcBwTZn8.js} +8 -8
- package/dist/cjs/chunks/{volumeStore-BWzyOw8D.js → volumeStore-DofQKsQb.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-BXp7R6oE.js → webRTCStore-CjsjPMWU.js} +2 -2
- package/dist/cjs/chunks/{windowStore-BYb1L705.js → windowStore-DmMud6Ne.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -6
- package/dist/cjs/components/Avatar/index.js +3 -3
- package/dist/cjs/components/AvatarGroup/index.js +3 -3
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Button/index.js +9 -9
- package/dist/cjs/components/ButtonBar/index.js +6 -6
- package/dist/cjs/components/Camera/index.js +8 -8
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +7 -7
- package/dist/cjs/components/DataTable/index.js +7 -7
- package/dist/cjs/components/DivInput/index.js +3 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +6 -6
- package/dist/cjs/components/DropDown/index.js +6 -6
- package/dist/cjs/components/ErrorSummary/index.js +6 -6
- package/dist/cjs/components/FileIcon/index.js +6 -6
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +4 -3
- package/dist/cjs/components/Grouper/index.js +7 -7
- package/dist/cjs/components/Icon/index.js +6 -6
- package/dist/cjs/components/IconButton/index.js +9 -10
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +4 -4
- package/dist/cjs/components/Modal/index.js +10 -10
- package/dist/cjs/components/ModalController/index.js +6 -6
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +6 -6
- package/dist/cjs/components/PromptInput/index.js +10 -10
- package/dist/cjs/components/RadioButton/index.js +6 -6
- package/dist/cjs/components/RadioButtonList/index.js +7 -7
- package/dist/cjs/components/Slider/index.js +6 -6
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +9 -9
- package/dist/cjs/components/TextArea/index.js +10 -10
- package/dist/cjs/components/Textfield/index.js +10 -10
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +7 -7
- package/dist/cjs/components/ToggleButton/index.js +10 -10
- package/dist/cjs/components/UploadArea/index.js +8 -8
- package/dist/cjs/components/Video/index.js +12 -13
- package/dist/cjs/components/VideoController/index.js +10 -10
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useClipboard.js +2 -2
- package/dist/cjs/hooks/useInfiniteScroll.js +85 -0
- package/dist/cjs/hooks/useMdStreamBuffer.js +2 -2
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +7 -6
- package/dist/cjs/index.js +13 -12
- package/dist/cjs/providers/themeServer.test.js +1 -1
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +3 -3
- package/dist/cjs/stores/WS.js +3 -3
- package/dist/cjs/stores/WebRTC.js +3 -3
- package/dist/cjs/stores/activeTab.js +1 -1
- package/dist/cjs/stores/browserChannel.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/video.js +1 -1
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +5 -5
- package/dist/cjs/theme/themes.js +13 -2
- package/dist/cjs/theme.js +2 -2
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-BMvVC5-0.mjs → AudioBubble-DwE50YGL.mjs} +7 -7
- package/dist/esm/chunks/{Avatar-Ce0nIuFe.mjs → Avatar-BdjtrRLS.mjs} +3 -3
- package/dist/esm/chunks/{AvatarGroup-DLqBXeB9.mjs → AvatarGroup-BM-jh9BQ.mjs} +2 -2
- package/dist/esm/chunks/{Badge-DKkqjW28.mjs → Badge-CHPL-h3Z.mjs} +1 -1
- package/dist/esm/chunks/{Button-Bq4xhoet.mjs → Button-YmXPZrPL.mjs} +10 -11
- package/dist/esm/chunks/{ButtonBar-BAqLCnso.mjs → ButtonBar-CKagtnCT.mjs} +3 -3
- package/dist/esm/chunks/{Camera-DJhp-3_t.mjs → Camera-CRDO4oL5.mjs} +9 -9
- package/dist/esm/chunks/{CheckBox-CL37t7_J.mjs → CheckBox-B-vtYku8.mjs} +3 -3
- package/dist/esm/chunks/{Chip-Bjg-ONP_.mjs → Chip-BUJmKr_n.mjs} +10 -8
- package/dist/esm/chunks/{DivInput-D6kq1bR0.mjs → DivInput-BQMy-OA9.mjs} +3 -3
- package/dist/esm/chunks/{Dot-D6uHXyGY.mjs → Dot-Bfl1kBUQ.mjs} +2 -2
- package/dist/esm/chunks/{DrggablePanel-25Wjbf_y.mjs → DrggablePanel-BuMnBc3u.mjs} +10 -8
- package/dist/esm/chunks/{DropDown-BiwdsV6m.mjs → DropDown-BsSvP2ji.mjs} +6 -6
- package/dist/esm/chunks/{ErrorSummary-BODIGAst.mjs → ErrorSummary-DMOWFhAu.mjs} +7 -7
- package/dist/esm/chunks/{FileIcon-CfS-TY-S.mjs → FileIcon-k4eYnLQv.mjs} +6 -6
- package/dist/esm/chunks/{FileList-DYvUHXyd.mjs → FileList-DeuwRbr1.mjs} +10 -9
- package/dist/esm/chunks/{FlexDiv-DIb3pmFo.mjs → FlexDiv-DODEbrMI.mjs} +6 -4
- package/dist/esm/chunks/{Grouper-CL5-Dk2U.mjs → Grouper-BPVjNabz.mjs} +7 -7
- package/dist/esm/chunks/{Icon-h1sVmLvI.mjs → Icon-BlQAJ0NV.mjs} +6 -6
- package/dist/esm/chunks/{IconButton-D9y0_8qs.mjs → IconButton-byqDhHLo.mjs} +8 -6
- package/dist/esm/chunks/{IndexedDB-DcKlcEts.mjs → IndexedDB-DUCWUJdN.mjs} +1 -1
- package/dist/esm/chunks/{Label-Cb1TNTGX.mjs → Label-DnHSkAZF.mjs} +6 -3
- package/dist/esm/chunks/{Level-Ce3F5ITs.mjs → Level-CV1kvx1V.mjs} +4 -4
- package/dist/esm/chunks/{Modal-uAJiitWq.mjs → Modal-CzxOSxwR.mjs} +7 -7
- package/dist/esm/chunks/{ModalController-CviD29p4.mjs → ModalController-C6P18AFg.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-je9uxyF7.mjs → Overlay-CXGkHAtm.mjs} +1 -1
- package/dist/esm/chunks/{Pager-mEoJq77o.mjs → Pager-B5dbPb9x.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-CklbjFdQ.mjs → ProgressIndicator-DvrIrgxu.mjs} +7 -7
- package/dist/esm/chunks/{PromptInput-B93xY5vK.mjs → PromptInput-BAyomDiu.mjs} +12 -13
- package/dist/esm/chunks/{RadioButton-n6q2k-ia.mjs → RadioButton-D6pFBLOS.mjs} +5 -5
- package/dist/esm/chunks/{RadioButtonList-CAJPqSTC.mjs → RadioButtonList-BpT9OaB1.mjs} +3 -3
- package/dist/esm/chunks/{Slider-By-9skcp.mjs → Slider-5sz0qeXF.mjs} +7 -7
- package/dist/esm/chunks/Spacer-gFflabIn.mjs +28 -0
- package/dist/esm/chunks/{Switch-DDyRtDnU.mjs → Switch-SXASJgaA.mjs} +4 -4
- package/dist/esm/chunks/{TabBar-BushFhfl.mjs → TabBar-BIuiRmrm.mjs} +14 -14
- package/dist/esm/chunks/{TextArea-BLum6rgj.mjs → TextArea-DbGoSQVo.mjs} +6 -4
- package/dist/esm/chunks/{TextField-C0V-4Lg1.mjs → TextField-BtrrxNNH.mjs} +17 -22
- package/dist/esm/chunks/{Tip-CCrn5riH.mjs → Tip-CNKUHvPz.mjs} +4 -4
- package/dist/esm/chunks/{Toast-DWhivCO9.mjs → Toast-udN4QBvW.mjs} +14 -12
- package/dist/esm/chunks/{ToggleButton-C_52LsVX.mjs → ToggleButton-Bu0h-627.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-DJxjadCV.mjs → UploadArea-CkF7ubsS.mjs} +11 -7
- package/dist/esm/chunks/{Video-DiuWxBAM.mjs → Video-CeHfRclT.mjs} +10 -8
- package/dist/esm/chunks/{VideoController-BWvCRNoR.mjs → VideoController-D0EXRyjT.mjs} +10 -10
- package/dist/esm/chunks/{WSConnection-nyuthu2w.mjs → WSConnection-n1TRftv9.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-9m7x937g.mjs → WebRTCConnection-tvD_P75V.mjs} +1 -1
- package/dist/esm/chunks/{browserChannelsStore-smRS4Hid.mjs → browserChannelsStore-B-xC9TOO.mjs} +2 -2
- package/dist/esm/chunks/{localDBStore-ONbAby1P.mjs → localDBStore-CZslfcnT.mjs} +3 -3
- package/dist/esm/chunks/{microphoneStore-6qsb6eV0.mjs → microphoneStore-DkUZbjQU.mjs} +1 -1
- package/dist/esm/chunks/{misc-_71JTGbu.mjs → misc-DtngeJIC.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-Cqbsz4ER.mjs → sseStore-D45Ex3w6.mjs} +3 -3
- package/dist/esm/chunks/{uploads-worker-D3JPUPSZ.mjs → uploads-worker-BuH0JRF9.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DE-A-CML.mjs → uploadsStore-BkOKmrJc.mjs} +1 -1
- package/dist/esm/chunks/{viewState-C34wAgGX.mjs → viewState-uX0vekU4.mjs} +11 -11
- package/dist/esm/chunks/{volumeStore-Bchda99E.mjs → volumeStore-CWqS-X0g.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-0Fv3Wnrg.mjs → webRTCStore-BmyEouBv.mjs} +3 -3
- package/dist/esm/chunks/{windowStore-DcPWzksH.mjs → windowStore-Da3BCfMQ.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +9 -9
- package/dist/esm/components/Avatar/index.mjs +3 -3
- package/dist/esm/components/AvatarGroup/index.mjs +4 -4
- package/dist/esm/components/Badge/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +13 -13
- package/dist/esm/components/ButtonBar/index.mjs +9 -9
- package/dist/esm/components/Camera/index.mjs +11 -11
- package/dist/esm/components/CheckBox/index.mjs +9 -9
- package/dist/esm/components/Chip/index.mjs +10 -10
- package/dist/esm/components/DataTable/index.mjs +10 -10
- package/dist/esm/components/DivInput/index.mjs +3 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +8 -8
- package/dist/esm/components/DropDown/index.mjs +9 -9
- package/dist/esm/components/ErrorSummary/index.mjs +8 -8
- package/dist/esm/components/FileIcon/index.mjs +8 -8
- package/dist/esm/components/FileList/index.mjs +11 -11
- package/dist/esm/components/FlexDiv/index.mjs +4 -2
- package/dist/esm/components/Grouper/index.mjs +10 -10
- package/dist/esm/components/Icon/index.mjs +9 -9
- package/dist/esm/components/IconButton/index.mjs +13 -13
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +5 -5
- package/dist/esm/components/Modal/index.mjs +15 -15
- package/dist/esm/components/ModalController/index.mjs +9 -9
- package/dist/esm/components/Overlay/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +3 -3
- package/dist/esm/components/Progress/index.mjs +9 -9
- package/dist/esm/components/PromptInput/index.mjs +16 -16
- package/dist/esm/components/RadioButton/index.mjs +9 -9
- package/dist/esm/components/RadioButtonList/index.mjs +10 -10
- package/dist/esm/components/Slider/index.mjs +9 -9
- package/dist/esm/components/Spacer/index.mjs +2 -2
- package/dist/esm/components/Switch/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +13 -13
- package/dist/esm/components/TextArea/index.mjs +15 -15
- package/dist/esm/components/Textfield/index.mjs +15 -15
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +10 -10
- package/dist/esm/components/ToggleButton/index.mjs +15 -15
- package/dist/esm/components/UploadArea/index.mjs +12 -12
- package/dist/esm/components/Video/index.mjs +20 -20
- package/dist/esm/components/VideoController/index.mjs +15 -15
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +6 -6
- package/dist/esm/hooks/useClipboard.mjs +3 -3
- package/dist/esm/hooks/useInfiniteScroll.mjs +86 -0
- package/dist/esm/hooks/useMdStreamBuffer.mjs +3 -3
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +10 -8
- package/dist/esm/index.mjs +61 -59
- package/dist/esm/providers/themeServer.test.mjs +1 -1
- package/dist/esm/stores/LocalDB.mjs +4 -4
- package/dist/esm/stores/SSE.mjs +4 -4
- package/dist/esm/stores/WS.mjs +3 -3
- package/dist/esm/stores/WebRTC.mjs +4 -4
- package/dist/esm/stores/activeTab.mjs +1 -1
- package/dist/esm/stores/browserChannel.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/video.mjs +1 -1
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +19 -19
- package/dist/esm/theme/themes.mjs +13 -2
- package/dist/esm/theme.mjs +1 -1
- package/dist/esm/utils/index.mjs +12 -12
- package/dist/esm/utils/objects/index.mjs +8 -8
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +2020 -2003
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/Button/_types.d.ts +1 -1
- package/dist/types/components/Chip/_types.d.ts +1 -1
- package/dist/types/components/DivInput/_types.d.ts +2 -2
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +1 -1
- package/dist/types/components/DropDown/_types.d.ts +1 -1
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +2 -2
- package/dist/types/components/FlexDiv/_types.d.ts +1 -1
- package/dist/types/components/IconButton/_types.d.ts +1 -1
- package/dist/types/components/Label/_types.d.ts +1 -1
- package/dist/types/components/PromptInput/PromptInput.d.ts +2 -2
- package/dist/types/components/PromptInput/_types.d.ts +1 -1
- package/dist/types/components/Spacer/_types.d.ts +2 -1
- package/dist/types/components/TextArea/_types.d.ts +1 -1
- package/dist/types/components/Tip/_types.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +25 -0
- package/dist/types/hooks/useInfiniteScroll/useInfiniteScroll.test.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/theme/index.d.ts +2 -0
- package/dist/types/theme/spacing/_types.d.ts +10 -0
- package/dist/types/theme/spacing/spacing.d.ts +2 -0
- package/dist/types/theme/themes.d.ts +2 -0
- package/package.json +5 -4
- package/dist/cjs/chunks/Spacer-FeOx0maU.js +0 -19
- package/dist/esm/chunks/Spacer-BalkC0Ns.mjs +0 -21
- /package/dist/cjs/chunks/{MdStreamBuffer-C6Mzzrho.js → MdStreamBuffer-_OrgRfVG.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-DEaAZZK4.js → SSEConnection-CbOe_JNB.js} +0 -0
- /package/dist/cjs/chunks/{_types-C_ivnCLo.js → _types-wkoWD0Y3.js} +0 -0
- /package/dist/cjs/chunks/{activeTabStore-DGx1oDlt.js → activeTabStore-CGvD6cav.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-CWwGpDKy.js → audioVisualizer-C-MOIbKC.js} +0 -0
- /package/dist/cjs/chunks/{broadcastChannel-DsiOkXOS.js → broadcastChannel-CweolKkH.js} +0 -0
- /package/dist/cjs/chunks/{colors-8UgFzWG3.js → colors-CmnEtiBL.js} +0 -0
- /package/dist/cjs/chunks/{debounce-WThsNCy_.js → debounce-BZaLjB2V.js} +0 -0
- /package/dist/cjs/chunks/{magic-string.es-BJ7Aj4k6.js → magic-string.es-CSldRwCx.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-Cf7zIYDq.js → modalStore-cZUYwRGj.js} +0 -0
- /package/dist/cjs/chunks/{rafThrottle-Bz-dXvba.js → rafThrottle-BOry0ZTC.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-CfscXKNK.js → sharedTypes-0pou-NPE.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-NsUC8M9o.js → tipStore-CuYu0vqF.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-QggWGMbD.js → toastStore-C13kXzXk.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-DJn-UVEV.js → tslib.es6-71Jftlb2.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-KWc_xF8H.js → videoStore-EhK3IQSb.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-RTcKc6kb.mjs → MdStreamBuffer-C3dFJJ3U.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-5K8PW_M0.mjs → SSEConnection-DkGC07fu.mjs} +0 -0
- /package/dist/esm/chunks/{_types-BcB7rRaG.mjs → _types-DP1g8sZi.mjs} +0 -0
- /package/dist/esm/chunks/{activeTabStore-J_rS7nDK.mjs → activeTabStore-aDjOVZ_V.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-B-dLbWMF.mjs → audioVisualizer-BwIDqL-t.mjs} +0 -0
- /package/dist/esm/chunks/{broadcastChannel-B-jhrR3a.mjs → broadcastChannel-QIWda6rB.mjs} +0 -0
- /package/dist/esm/chunks/{colors-BX0EXrOS.mjs → colors-B_YmJkkL.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-B79xfyrw.mjs → debounce-CuT6TUcG.mjs} +0 -0
- /package/dist/esm/chunks/{magic-string.es-9DU4z85h.mjs → magic-string.es-ya4sZF4A.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-BsEzx_f6.mjs → modalStore-BloNa5y6.mjs} +0 -0
- /package/dist/esm/chunks/{rafThrottle-D2dyeVut.mjs → rafThrottle-CA0kPebe.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-CmJ2hQtY.mjs → sharedTypes-BFgEbKnN.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-SYcEa33e.mjs → tipStore-DnHV2nLl.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-CX52_jj2.mjs → toastStore-DURM_fWk.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-CE_8mdQi.mjs → tslib.es6-CV__4jU7.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-CBfvbDcQ.mjs → videoStore-DzD6pFQl.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;
|
|
@@ -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;
|
|
@@ -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>>;
|
|
@@ -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';
|
|
@@ -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?:
|
|
4
|
+
size?: keyof SpacingGrid;
|
|
4
5
|
};
|
|
5
6
|
export type SpacerProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof SpacerBaseProps> & SpacerBaseProps;
|
|
6
7
|
export {};
|
|
@@ -16,3 +16,4 @@ export { useObserveResize } from './useObserveResize/useObserveResize';
|
|
|
16
16
|
export { useIntersecting, type IntersectContainer, type IntersectEntry, type IntersectMargin, type IntersectOptions, type IntersectResult, type IntersectResultList, type ResolvedEntries, defaultOptions as defaultIntersectingOptions, } from './useIntersecting/useIntersecting';
|
|
17
17
|
export { useClipboard, type ClipboardPermissionState, type ClipboardPasteResult, type UseClipboardOptions, type UseClipboardReturn, type UseClipboardTarget, } from './useClipboard/useClipboard';
|
|
18
18
|
export { useActiveTab, type UseActiveTabReturn } from './useActiveTab/useActiveTab';
|
|
19
|
+
export { useInfiniteScroll, type InfiniteScrollLoader, type UseInfiniteScrollOptions, type UseInfiniteScrollReturn, } from './useInfiniteScroll/useInfiniteScroll';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefCallback } from 'react';
|
|
2
|
+
export type InfiniteScrollLoader<T> = () => Promise<T[]>;
|
|
3
|
+
export type UseInfiniteScrollOptions = {
|
|
4
|
+
/** Controlled by the caller; false prevents further requests. */
|
|
5
|
+
hasMore: boolean;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/** Change this value when filters or the underlying dataset change. */
|
|
8
|
+
resetKey?: unknown;
|
|
9
|
+
/** Scroll container for the intersection observer; null uses the browser viewport. */
|
|
10
|
+
root?: Element | Document | null;
|
|
11
|
+
/** Observer margin. Defaults to '0px'; use a positive bottom margin to prefetch. */
|
|
12
|
+
rootMargin?: string;
|
|
13
|
+
};
|
|
14
|
+
export type UseInfiniteScrollReturn<T> = {
|
|
15
|
+
items: T[];
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
error: Error | null;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
sentinelRef: RefCallback<HTMLElement>;
|
|
20
|
+
loadMore: () => Promise<void>;
|
|
21
|
+
retry: () => Promise<void>;
|
|
22
|
+
reset: () => void;
|
|
23
|
+
};
|
|
24
|
+
/** Loads immediately, then appends pages as the sentinel approaches the viewport. */
|
|
25
|
+
export declare function useInfiniteScroll<T>(loader: InfiniteScrollLoader<T>, options: UseInfiniteScrollOptions): UseInfiniteScrollReturn<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -92,3 +92,4 @@ export { DataTable } from './components/DataTable';
|
|
|
92
92
|
export type { DataTableProps, ColumnDefinition, CellContext, HeaderContext, SortKey, } from './components/DataTable';
|
|
93
93
|
export { createColumnHelper, applyDataTableViewState, createDefaultViewState, resolveSortFromViewState, captureSortToViewState, } from './components/DataTable';
|
|
94
94
|
export type { DataTableViewState } from './components/DataTable';
|
|
95
|
+
export { useInfiniteScroll, type InfiniteScrollLoader, type UseInfiniteScrollOptions, type UseInfiniteScrollReturn, } from './hooks/useInfiniteScroll/useInfiniteScroll';
|
|
@@ -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';
|
|
@@ -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.
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -100,9 +100,10 @@
|
|
|
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
108
|
"test": "vitest",
|
|
108
109
|
"test:ui": "vitest --ui",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
var tslib_es6 = require("./tslib.es6-DJn-UVEV.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-CE_8mdQi.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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|