@apple-pie/slice 0.1.1 → 0.1.2
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/README.md +17 -4
- package/dist/cjs/chunks/{Avatar-zAhrTMO4.js → Avatar-YNcGDUzr.js} +27 -14
- package/dist/cjs/chunks/{AvatarGroup-qI2wNIKO.js → AvatarGroup-Dn5R1XIU.js} +2 -2
- package/dist/cjs/chunks/{Badge-Bv6c2YVC.js → Badge-CY_DG6cD.js} +2 -2
- package/dist/cjs/chunks/{Button-CNrcvIUu.js → Button-TfMwGVI5.js} +9 -9
- package/dist/cjs/chunks/{ButtonBar-CcL0wFXX.js → ButtonBar-BqGC6sad.js} +2 -2
- package/dist/cjs/chunks/Camera-om1AA2D0.js +347 -0
- package/dist/cjs/chunks/{Card-pxbzaSWm.js → Card-Ctwbhu26.js} +2 -2
- package/dist/cjs/chunks/{CheckBox-tcFDVDGG.js → CheckBox-CeDIiSvi.js} +2 -2
- package/dist/cjs/chunks/{Chip-DfMVpYjg.js → Chip-DdTtB57x.js} +7 -7
- package/dist/cjs/chunks/{DivInput-hHsbuscc.js → DivInput-C73sqUF3.js} +10 -10
- package/dist/cjs/chunks/{Dot-BSSClfHQ.js → Dot-_HCJ3qxd.js} +2 -2
- package/dist/cjs/chunks/{DrggablePanel-BbDhV-a9.js → DrggablePanel-BzvBBhS7.js} +4 -4
- package/dist/cjs/chunks/{DropDown-C0vV24pv.js → DropDown-CC90XfyD.js} +9 -9
- package/dist/cjs/chunks/{ErrorSummary-CIUqlSLC.js → ErrorSummary-By4CjJ9a.js} +2 -2
- package/dist/cjs/chunks/{FileIcon-DTQaXxfC.js → FileIcon-hYwcre20.js} +2 -2
- package/dist/cjs/chunks/{FileList-C8Aq-iCW.js → FileList-ClTfGKIL.js} +21 -21
- package/dist/cjs/chunks/{FlexDiv-CW5gSa4V.js → FlexDiv-B3q6j3W9.js} +2 -2
- package/dist/cjs/chunks/{Grouper-B16IH2YM.js → Grouper-jiYhVC82.js} +2 -2
- package/dist/cjs/chunks/{IconButton-BDKARPkc.js → IconButton-BiUfqoPb.js} +2 -2
- package/dist/cjs/chunks/{Label-ZlQVpETS.js → Label-D15cIroT.js} +22 -20
- package/dist/cjs/chunks/{Overlay-Bb2YoSKr.js → Overlay-DL0EJDyk.js} +2 -2
- package/dist/cjs/chunks/{Pager-Bp1rPImK.js → Pager-TUxcWbmn.js} +3 -3
- package/dist/cjs/chunks/{ProgressIndicator-Qx3jfv8r.js → ProgressIndicator-B3-OxGYF.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-7rftpDc1.js → PromptInput-Dsziepzs.js} +13 -13
- package/dist/cjs/chunks/{RadioButton-D5EJdMlL.js → RadioButton-i5n_nNV5.js} +3 -3
- package/dist/cjs/chunks/{RadioButtonList-DqsaDvEr.js → RadioButtonList-BCdk-5aD.js} +2 -2
- package/dist/cjs/chunks/{Slider-CZvCAodl.js → Slider-CrjpZooG.js} +4 -4
- package/dist/cjs/chunks/{Switch-C9UtaIAt.js → Switch-Xqf0vwul.js} +2 -2
- package/dist/cjs/chunks/{TabBar-DlhY_3G4.js → TabBar-BF5CvZ-v.js} +2 -2
- package/dist/cjs/chunks/{TextArea-D0i83Jjq.js → TextArea-BmOomEKp.js} +2 -2
- package/dist/cjs/chunks/{TextField-DRhQUqYA.js → TextField-CXMyCClp.js} +10 -10
- package/dist/cjs/chunks/{Tip-CjMHa-fD.js → Tip-ik8-p4_4.js} +7 -7
- package/dist/cjs/chunks/{Toast-BdrI0h64.js → Toast-CQ0-yuzl.js} +11 -11
- package/dist/cjs/chunks/{UploadArea-DBsMosuN.js → UploadArea-B5Xvp0H4.js} +15 -15
- package/dist/cjs/chunks/{_types-BMRxxH7h.js → _types-Cxk9tRiB.js} +94 -33
- package/dist/cjs/chunks/{utils-BsBHecUI.js → misc-C-M6KKsH.js} +27 -9
- package/dist/cjs/components/Avatar/index.js +7 -0
- package/dist/cjs/components/AvatarGroup/index.js +7 -0
- package/dist/cjs/{uikit → components}/Badge/index.js +1 -1
- package/dist/cjs/{uikit → components}/Button/index.js +4 -4
- package/dist/cjs/{uikit → components}/ButtonBar/index.js +4 -4
- package/dist/cjs/components/Camera/index.js +11 -0
- package/dist/cjs/{uikit → components}/Card/index.js +3 -3
- package/dist/cjs/{uikit → components}/CheckBox/index.js +3 -3
- package/dist/cjs/{uikit → components}/Chip/index.js +2 -2
- package/dist/cjs/components/DivInput/index.js +7 -0
- package/dist/cjs/{uikit → components}/Dot/index.js +1 -1
- package/dist/cjs/{uikit → components}/DraggablePanel/index.js +2 -2
- package/dist/cjs/{uikit → components}/DropDown/index.js +2 -2
- package/dist/cjs/{uikit → components}/ErrorSummary/index.js +1 -1
- package/dist/cjs/{uikit → components}/FileIcon/index.js +2 -2
- package/dist/cjs/{uikit → components}/FileList/index.js +4 -4
- package/dist/cjs/{uikit → components}/FlexDiv/index.js +1 -1
- package/dist/cjs/{uikit → components}/Grouper/index.js +4 -4
- package/dist/cjs/{uikit → components}/Icon/index.js +2 -2
- package/dist/cjs/{uikit → components}/IconButton/index.js +4 -4
- package/dist/cjs/{uikit → components}/Label/index.js +2 -2
- package/dist/cjs/{uikit → components}/Overlay/index.js +1 -1
- package/dist/cjs/components/Pager/index.js +7 -0
- package/dist/cjs/{uikit → components}/Progress/index.js +3 -3
- package/dist/cjs/{uikit → components}/PromptInput/index.js +7 -7
- package/dist/cjs/{uikit → components}/RadioButton/index.js +2 -2
- package/dist/cjs/{uikit → components}/RadioButtonList/index.js +3 -3
- package/dist/cjs/{uikit → components}/Slider/index.js +2 -2
- package/dist/cjs/{uikit → components}/Switch/index.js +1 -1
- package/dist/cjs/{uikit → components}/TabBar/index.js +4 -4
- package/dist/cjs/{uikit → components}/TextArea/index.js +5 -5
- package/dist/cjs/{uikit → components}/Textfield/index.js +6 -6
- package/dist/cjs/components/Tip/index.js +7 -0
- package/dist/cjs/{uikit → components}/Toast/index.js +4 -4
- package/dist/cjs/components/UploadArea/index.js +15 -0
- package/dist/cjs/hooks/useTrackRenders.js +3 -3
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/utils/index.js +29 -0
- package/dist/esm/chunks/{Avatar-D5mMmaIi.mjs → Avatar-BQT1r-Ge.mjs} +30 -15
- package/dist/esm/chunks/{AvatarGroup-B3_zWk_-.mjs → AvatarGroup-B787aNtD.mjs} +3 -3
- package/dist/esm/chunks/{Badge-BISGWj5-.mjs → Badge-DyICxZP2.mjs} +2 -2
- package/dist/esm/chunks/{Button-qeCEnTFJ.mjs → Button-1MgE-kl9.mjs} +12 -12
- package/dist/esm/chunks/{ButtonBar-jMNpQysA.mjs → ButtonBar-Eahfd-40.mjs} +3 -3
- package/dist/esm/chunks/Camera-Bvoug1KF.mjs +363 -0
- package/dist/esm/chunks/{Card-4u4hpBAM.mjs → Card-RSZhXncV.mjs} +3 -3
- package/dist/esm/chunks/{CheckBox-D2jWAviD.mjs → CheckBox-CfLedK0e.mjs} +3 -3
- package/dist/esm/chunks/{Chip-DnsTVVmp.mjs → Chip-Db4N0WVH.mjs} +7 -7
- package/dist/esm/chunks/{DivInput-B4ohgnLJ.mjs → DivInput-BEpjdfu4.mjs} +3 -3
- package/dist/esm/chunks/{Dot-C-Xu24wF.mjs → Dot-CLGwQu-i.mjs} +2 -2
- package/dist/esm/chunks/{DrggablePanel-CEg9sHHt.mjs → DrggablePanel-DJm1Mx5u.mjs} +3 -3
- package/dist/esm/chunks/{DropDown-CCePGFHd.mjs → DropDown-ryz3GK81.mjs} +9 -9
- package/dist/esm/chunks/{ErrorSummary-CZw06dSh.mjs → ErrorSummary-S0shes-m.mjs} +2 -2
- package/dist/esm/chunks/{FileIcon-BcIJzIwA.mjs → FileIcon-_mK2EcB2.mjs} +1 -1
- package/dist/esm/chunks/{FileList-db86wx1X.mjs → FileList-hCMTALyN.mjs} +18 -18
- package/dist/esm/chunks/{FlexDiv-BLYDgWu2.mjs → FlexDiv-LGEGGrT0.mjs} +2 -2
- package/dist/esm/chunks/{Grouper-D8mQt9_Q.mjs → Grouper-B1gjd3Sx.mjs} +4 -4
- package/dist/esm/chunks/{IconButton-DlgZO9hb.mjs → IconButton-SyRu990z.mjs} +5 -5
- package/dist/esm/chunks/{Label-Cj_LkQLx.mjs → Label-DGOkB_Px.mjs} +21 -19
- package/dist/esm/chunks/{Overlay-Bh0enFIe.mjs → Overlay-Cw9o1fHb.mjs} +2 -2
- package/dist/esm/chunks/{Pager-6mBRDV3D.mjs → Pager-BA0lD9mI.mjs} +3 -3
- package/dist/esm/chunks/{ProgressIndicator-DsN3c0J5.mjs → ProgressIndicator-BayyosKr.mjs} +7 -7
- package/dist/esm/chunks/{PromptInput-BGt0FgwF.mjs → PromptInput-CUXCuYVA.mjs} +15 -15
- package/dist/esm/chunks/{RadioButton-D9qz4XDZ.mjs → RadioButton-BRFSVtmm.mjs} +4 -4
- package/dist/esm/chunks/{RadioButtonList-DCaC7MnI.mjs → RadioButtonList-D6a_EcB6.mjs} +3 -3
- package/dist/esm/chunks/{Slider-C3A8GCfH.mjs → Slider-D2XVyi2g.mjs} +3 -3
- package/dist/esm/chunks/{Switch-Dt4ynf5r.mjs → Switch-nWg2Ykea.mjs} +2 -2
- package/dist/esm/chunks/{TabBar-CYGdcsab.mjs → TabBar-BqajqueL.mjs} +5 -5
- package/dist/esm/chunks/{TextArea-BWnMMBN0.mjs → TextArea-C5EbLAN1.mjs} +3 -3
- package/dist/esm/chunks/{TextField-D8j5hLhv.mjs → TextField-DnQxDxus.mjs} +12 -12
- package/dist/esm/chunks/{Tip-CHQh-Yq0.mjs → Tip-B64Pa9eq.mjs} +6 -6
- package/dist/esm/chunks/{Toast-MzHPO4x3.mjs → Toast-B3GgzcTW.mjs} +8 -8
- package/dist/esm/chunks/{UploadArea-DwGsYUhY.mjs → UploadArea-DpWT-5DA.mjs} +15 -15
- package/dist/esm/chunks/{_types-B0zIFpYY.mjs → _types-DGDKmYIh.mjs} +93 -32
- package/dist/esm/chunks/{utils-BQ1v7VE4.mjs → misc-Osk7tIah.mjs} +21 -2
- package/dist/esm/components/Avatar/index.mjs +11 -0
- package/dist/esm/components/AvatarGroup/index.mjs +13 -0
- package/dist/esm/{uikit → components}/Badge/index.mjs +1 -1
- package/dist/esm/{uikit → components}/Button/index.mjs +6 -6
- package/dist/esm/{uikit → components}/ButtonBar/index.mjs +6 -6
- package/dist/esm/components/Camera/index.mjs +35 -0
- package/dist/esm/{uikit → components}/Card/index.mjs +3 -3
- package/dist/esm/{uikit → components}/CheckBox/index.mjs +3 -3
- package/dist/esm/{uikit → components}/Chip/index.mjs +3 -3
- package/dist/esm/{uikit → components}/DivInput/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Dot/index.mjs +1 -1
- package/dist/esm/{uikit → components}/DraggablePanel/index.mjs +2 -2
- package/dist/esm/{uikit → components}/DropDown/index.mjs +3 -3
- package/dist/esm/{uikit → components}/ErrorSummary/index.mjs +1 -1
- package/dist/esm/{uikit → components}/FileIcon/index.mjs +2 -2
- package/dist/esm/{uikit → components}/FileList/index.mjs +5 -5
- package/dist/esm/{uikit → components}/FlexDiv/index.mjs +1 -1
- package/dist/esm/{uikit → components}/Grouper/index.mjs +4 -4
- package/dist/esm/{uikit → components}/Icon/index.mjs +2 -2
- package/dist/esm/{uikit → components}/IconButton/index.mjs +5 -5
- package/dist/esm/{uikit → components}/Label/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Overlay/index.mjs +1 -1
- package/dist/esm/components/Pager/index.mjs +11 -0
- package/dist/esm/{uikit → components}/Progress/index.mjs +4 -4
- package/dist/esm/{uikit → components}/PromptInput/index.mjs +9 -9
- package/dist/esm/{uikit → components}/RadioButton/index.mjs +3 -3
- package/dist/esm/{uikit → components}/RadioButtonList/index.mjs +4 -4
- package/dist/esm/{uikit → components}/Slider/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Switch/index.mjs +1 -1
- package/dist/esm/{uikit → components}/TabBar/index.mjs +6 -6
- package/dist/esm/{uikit → components}/TextArea/index.mjs +7 -7
- package/dist/esm/{uikit → components}/Textfield/index.mjs +8 -8
- package/dist/esm/{uikit → components}/Tip/index.mjs +2 -2
- package/dist/esm/{uikit → components}/Toast/index.mjs +3 -3
- package/dist/esm/{uikit → components}/UploadArea/index.mjs +8 -8
- package/dist/esm/hooks/useTrackRenders.mjs +1 -1
- package/dist/esm/index.mjs +39 -37
- package/dist/esm/utils/index.mjs +33 -0
- package/dist/types/{uikit → components}/Avatar/_types.d.ts +3 -3
- package/dist/types/components/Camera/Camera.d.ts +11 -0
- package/dist/types/components/Camera/_types.d.ts +77 -0
- package/dist/types/components/Camera/index.d.ts +2 -0
- package/dist/types/{uikit → components}/Icon/_types.d.ts +4 -0
- package/dist/types/{uikit → components}/Switch/Switch.stories.d.ts +1 -1
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +1 -1
- package/dist/types/index.d.ts +74 -74
- package/dist/types/stores/tip/_types.d.ts +1 -1
- package/dist/types/stores/toast/_types.d.ts +1 -1
- package/dist/types/utils/functions/colors.d.ts +8 -0
- package/dist/types/{util → utils/functions}/files.d.ts +1 -1
- package/dist/types/{util/utils.d.ts → utils/functions/misc.d.ts} +2 -2
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +10 -5
- package/dist/cjs/chunks/Logos-CAHU-eIP.js +0 -483
- package/dist/cjs/uikit/Avatar/index.js +0 -6
- package/dist/cjs/uikit/AvatarGroup/index.js +0 -7
- package/dist/cjs/uikit/DivInput/index.js +0 -7
- package/dist/cjs/uikit/Logos/index.js +0 -9
- package/dist/cjs/uikit/Pager/index.js +0 -7
- package/dist/cjs/uikit/Tip/index.js +0 -7
- package/dist/cjs/uikit/UploadArea/index.js +0 -16
- package/dist/esm/chunks/Logos-CpcaarOG.mjs +0 -493
- package/dist/esm/uikit/Avatar/index.mjs +0 -9
- package/dist/esm/uikit/AvatarGroup/index.mjs +0 -11
- package/dist/esm/uikit/Logos/index.mjs +0 -25
- package/dist/esm/uikit/Pager/index.mjs +0 -11
- package/dist/types/uikit/Logos/Logos.d.ts +0 -2
- package/dist/types/uikit/Logos/_types.d.ts +0 -9
- package/dist/types/uikit/Logos/index.d.ts +0 -2
- package/dist/types/util/flexBox.d.ts +0 -11
- package/dist/types/workers/uploads/uploads.runtime.d.ts +0 -1
- /package/dist/cjs/{uikit → components}/DocIcon/index.js +0 -0
- /package/dist/cjs/{uikit → components}/Spacer/index.js +0 -0
- /package/dist/esm/{uikit → components}/DocIcon/index.mjs +0 -0
- /package/dist/esm/{uikit → components}/Spacer/index.mjs +0 -0
- /package/dist/types/{uikit → components}/Avatar/Avatar.d.ts +0 -0
- /package/dist/types/{uikit → components}/Avatar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/AvatarGroup.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/AvatarGroup/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/Badge.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Badge/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/Button.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Button/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/ButtonBar.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/ButtonBar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/Card.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Card/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/CheckBox.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/CheckBox/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/Chip.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Chip/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/DivInput.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DivInput/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/DocIcons.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DocIcon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/Dot.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Dot/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/DrggablePanel.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DraggablePanel/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/DropDown.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/DropDown/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/ErrorSummary.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/ErrorSummary/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/FileIcon.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/fileIconRegistry.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileIcon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/FileList.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FileList/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/FlexDiv.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/FlexDiv/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/Grouper.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Grouper/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/Icon.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/iconRegistry.d.ts +0 -0
- /package/dist/types/{uikit → components}/Icon/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/IconButton.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/IconButton/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/Label.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Label/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/Overlay.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Overlay/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/Pager.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Pager/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/DoneCheck/DoneCheck.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/DoneCheck/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/ProgressIndicator/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Progress/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/PromptInput.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/PromptInput/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/RadioButton.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButton/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/RadioButtonList.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/RadioButtonList/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/Slider.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Slider/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/Spacer.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Spacer/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/Switch.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Switch/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/TabBar.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/TabBar/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/TextArea.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/TextArea/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/TextField.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Textfield/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/Tip.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Tip/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/Toast.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/Toast/index.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/UploadArea.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/_types.d.ts +0 -0
- /package/dist/types/{uikit → components}/UploadArea/index.d.ts +0 -0
- /package/dist/types/{stories → components}/playHelpers.d.ts +0 -0
- /package/dist/types/{uikit → components}/sharedTypes.d.ts +0 -0
- /package/dist/types/{util → utils/functions}/debounce.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CameraElement, DefaultNoVideoPosterProps, ToolbarButtonProps } from './_types';
|
|
3
|
+
export declare const Camera: React.NamedExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, keyof import("./_types").BaseCameraProps> & import("./_types").BaseCameraProps & React.RefAttributes<CameraElement>>;
|
|
4
|
+
/**
|
|
5
|
+
* Custom toolbar button with labels for controlling video / audio / etc.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ToolbarButton(props: Readonly<ToolbarButtonProps>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* the default poster image when no video is available
|
|
10
|
+
*/
|
|
11
|
+
export declare function DefaultNoVideoPoster(props: Readonly<DefaultNoVideoPosterProps>): string | import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface DefaultNoVideoPosterProps {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
user?: UserProfile;
|
|
5
|
+
message?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ToolbarButtonProps {
|
|
8
|
+
icon: string;
|
|
9
|
+
iconActive?: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
label?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface CameraElement {
|
|
16
|
+
container?: HTMLDivElement;
|
|
17
|
+
video?: HTMLVideoElement;
|
|
18
|
+
stream?: MediaStream;
|
|
19
|
+
videoTrack?: MediaStreamTrack;
|
|
20
|
+
audioTrack?: MediaStreamTrack;
|
|
21
|
+
snapshot?: (options?: CameraSnapshotOptions) => Blob | undefined;
|
|
22
|
+
startCamera?: () => Promise<MediaStream | Error>;
|
|
23
|
+
stopCamera?: () => Promise<boolean | Error>;
|
|
24
|
+
enableVideo?: () => MediaStream | Error;
|
|
25
|
+
disableVideo?: () => boolean | Error;
|
|
26
|
+
muteMic?: () => boolean | Error;
|
|
27
|
+
unmuteMic?: () => boolean | Error;
|
|
28
|
+
toggleVideo?: () => Promise<MediaStream | boolean | Error>;
|
|
29
|
+
toggleMic?: () => boolean | Error;
|
|
30
|
+
devices?: () => Promise<MediaDeviceInfo[] | Error>;
|
|
31
|
+
}
|
|
32
|
+
export interface CameraSnapshotOptions {
|
|
33
|
+
width?: number;
|
|
34
|
+
height?: number;
|
|
35
|
+
toggle?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface Controls {
|
|
38
|
+
mic?: boolean;
|
|
39
|
+
camera?: boolean;
|
|
40
|
+
play?: boolean;
|
|
41
|
+
stop?: boolean;
|
|
42
|
+
pause?: boolean;
|
|
43
|
+
videoDevices?: boolean;
|
|
44
|
+
audioDevices?: boolean;
|
|
45
|
+
flipCamera?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface UserProfile {
|
|
48
|
+
first?: string;
|
|
49
|
+
last?: string;
|
|
50
|
+
avatar?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface Settings {
|
|
53
|
+
micDeviceId?: string;
|
|
54
|
+
micVolume?: number;
|
|
55
|
+
videoDeviceId?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface BaseCameraProps {
|
|
58
|
+
width?: number | string;
|
|
59
|
+
height?: number | string;
|
|
60
|
+
noVideoPoster?: React.ReactNode;
|
|
61
|
+
videoFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
62
|
+
startCameraOff?: boolean;
|
|
63
|
+
startAudioMuted?: boolean;
|
|
64
|
+
userProfile?: UserProfile;
|
|
65
|
+
sessionSettings?: Settings;
|
|
66
|
+
onVideoStream?: (stream: MediaStream) => void;
|
|
67
|
+
onSnapshot?: (blob: Blob | undefined) => void;
|
|
68
|
+
onNoVideo?: (reason?: string | Error) => void;
|
|
69
|
+
onNoAudio?: (reason?: string | Error) => void;
|
|
70
|
+
onChangeProfile?: (profile?: UserProfile) => void;
|
|
71
|
+
onChangeSettings?: (settings?: Settings, devices?: MediaDeviceInfo[] | Error) => void;
|
|
72
|
+
showControlBar?: boolean;
|
|
73
|
+
autoHideControlBar?: boolean;
|
|
74
|
+
controls?: Controls;
|
|
75
|
+
pipSnapshot?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export type CameraProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof BaseCameraProps> & BaseCameraProps;
|
|
@@ -13,6 +13,10 @@ type IconBaseProps = {
|
|
|
13
13
|
};
|
|
14
14
|
export type IconProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof IconBaseProps> & IconBaseProps;
|
|
15
15
|
export declare enum IconNames {
|
|
16
|
+
video = "video",
|
|
17
|
+
mic = "mic",
|
|
18
|
+
micMuted = "mic muted",
|
|
19
|
+
camera = "camera",
|
|
16
20
|
home = "home",
|
|
17
21
|
inbox = "inbox",
|
|
18
22
|
sparkle = "sparkle",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Switch } from 'src/
|
|
2
|
+
import { Switch } from 'src/components/Switch';
|
|
3
3
|
declare const meta: Meta<typeof Switch>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Default: StoryObj<typeof Switch>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { ToolTip } from '../../
|
|
2
|
+
import type { ToolTip } from '../../components/sharedTypes';
|
|
3
3
|
export declare function useToolTip(toolTip: ToolTip | null, tipElement: React.RefObject<HTMLDivElement | null>): {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
export type { ToolTip, ToolTipInfo } from './
|
|
2
|
-
export { ToolTipType } from './
|
|
1
|
+
export type { ToolTip, ToolTipInfo } from './components/sharedTypes';
|
|
2
|
+
export { ToolTipType } from './components/sharedTypes';
|
|
3
3
|
export { light, dark, lightTheme, darkTheme, motion, elevations, Elevation, } from './theme';
|
|
4
4
|
export type { SliceTheme, Colors, Type, Corners, Elevations, } from './theme';
|
|
5
5
|
export { type KeyboardShortcut, type KeyboardShortcuts, type BreakPoints, useKeyboardShortcuts, useTheme, useObserveTheme, useToolTip, useLastUpdated, useLocalStore, useWindow, useDoubleClick, useObserveResize, } from './hooks';
|
|
6
|
-
export { Avatar } from './
|
|
7
|
-
export type { AvatarProps } from './
|
|
8
|
-
export { AvatarGroup } from './
|
|
9
|
-
export type { AvatarGroupProps, AvatarInfo } from './
|
|
10
|
-
export { Badge } from './
|
|
11
|
-
export type { BadgeProps } from './
|
|
12
|
-
export { IconButton } from './
|
|
13
|
-
export type { IconButtonProps } from './
|
|
14
|
-
export {
|
|
15
|
-
export type {
|
|
16
|
-
export {
|
|
17
|
-
export type {
|
|
18
|
-
export {
|
|
19
|
-
export type {
|
|
20
|
-
export {
|
|
21
|
-
export type {
|
|
22
|
-
export {
|
|
23
|
-
export type {
|
|
24
|
-
export {
|
|
25
|
-
export type {
|
|
26
|
-
export {
|
|
27
|
-
export type {
|
|
28
|
-
export {
|
|
29
|
-
export type {
|
|
30
|
-
export {
|
|
31
|
-
export type {
|
|
32
|
-
export { Overlay } from './
|
|
33
|
-
export type { OverlayProps } from './
|
|
34
|
-
export { FlexDiv } from './
|
|
35
|
-
export type { FlexDivProps } from './
|
|
36
|
-
export { Pager } from './
|
|
37
|
-
export type { PagerProps } from './
|
|
38
|
-
export { PromptInput } from './
|
|
39
|
-
export type { PromptProps } from './
|
|
40
|
-
export { DoneCheck, ProgressIndicator } from './
|
|
41
|
-
export type { DoneCheckProps, ProgressIndicatorProps } from './
|
|
42
|
-
export { RadioButton } from './
|
|
43
|
-
export type { RadioButtonProps, RadioButtonOption } from './
|
|
44
|
-
export { RadioButtonList } from './
|
|
45
|
-
export type { RadioButtonListProps } from './
|
|
46
|
-
export { Slider } from './
|
|
47
|
-
export type { SliderProps } from './
|
|
48
|
-
export { Spacer } from './
|
|
49
|
-
export { Switch } from './
|
|
50
|
-
export type { SwitchProps } from './
|
|
51
|
-
export { TabBar } from './
|
|
52
|
-
export type { TabOption, TabBarProps } from './
|
|
53
|
-
export { TextArea } from './
|
|
54
|
-
export type { TextAreaProps } from './
|
|
55
|
-
export { TextField } from './
|
|
56
|
-
export type { TextFieldProps } from './
|
|
6
|
+
export { Avatar } from './components/Avatar/index';
|
|
7
|
+
export type { AvatarProps } from './components/Avatar/index';
|
|
8
|
+
export { AvatarGroup } from './components/AvatarGroup';
|
|
9
|
+
export type { AvatarGroupProps, AvatarInfo } from './components/AvatarGroup';
|
|
10
|
+
export { Badge } from './components/Badge';
|
|
11
|
+
export type { BadgeProps } from './components/Badge';
|
|
12
|
+
export { IconButton } from './components/IconButton';
|
|
13
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
14
|
+
export { Camera } from './components/Camera';
|
|
15
|
+
export type { CameraElement, CameraProps, CameraSnapshotOptions, Controls, UserProfile, Settings, } from './components/Camera';
|
|
16
|
+
export { CheckBox } from './components/CheckBox';
|
|
17
|
+
export type { CheckBoxProps } from './components/CheckBox';
|
|
18
|
+
export { DivInput } from './components/DivInput';
|
|
19
|
+
export type { DivInputProps } from './components/DivInput';
|
|
20
|
+
export { DocIcons } from './components/DocIcon';
|
|
21
|
+
export type { DocsProps } from './components/DocIcon';
|
|
22
|
+
export { Dot } from './components/Dot';
|
|
23
|
+
export type { DotProps } from './components/Dot';
|
|
24
|
+
export { DraggablePanel } from './components/DraggablePanel';
|
|
25
|
+
export type { DraggablePanelProps } from './components/DraggablePanel';
|
|
26
|
+
export { DropDown } from './components/DropDown';
|
|
27
|
+
export type { DropDownOption, DropDownProps } from './components/DropDown';
|
|
28
|
+
export { ErrorSummary } from './components/ErrorSummary';
|
|
29
|
+
export type { ErrorMessage, ErrorSummaryProps, } from './components/ErrorSummary';
|
|
30
|
+
export { Grouper } from './components/Grouper';
|
|
31
|
+
export type { GrouperProps } from './components/Grouper';
|
|
32
|
+
export { Overlay } from './components/Overlay';
|
|
33
|
+
export type { OverlayProps } from './components/Overlay';
|
|
34
|
+
export { FlexDiv } from './components/FlexDiv';
|
|
35
|
+
export type { FlexDivProps } from './components/FlexDiv';
|
|
36
|
+
export { Pager } from './components/Pager';
|
|
37
|
+
export type { PagerProps } from './components/Pager';
|
|
38
|
+
export { PromptInput } from './components/PromptInput';
|
|
39
|
+
export type { PromptProps } from './components/PromptInput';
|
|
40
|
+
export { DoneCheck, ProgressIndicator } from './components/Progress';
|
|
41
|
+
export type { DoneCheckProps, ProgressIndicatorProps, } from './components/Progress';
|
|
42
|
+
export { RadioButton } from './components/RadioButton';
|
|
43
|
+
export type { RadioButtonProps, RadioButtonOption, } from './components/RadioButton';
|
|
44
|
+
export { RadioButtonList } from './components/RadioButtonList';
|
|
45
|
+
export type { RadioButtonListProps } from './components/RadioButtonList';
|
|
46
|
+
export { Slider } from './components/Slider';
|
|
47
|
+
export type { SliderProps } from './components/Slider';
|
|
48
|
+
export { Spacer } from './components/Spacer';
|
|
49
|
+
export { Switch } from './components/Switch';
|
|
50
|
+
export type { SwitchProps } from './components/Switch';
|
|
51
|
+
export { TabBar } from './components/TabBar';
|
|
52
|
+
export type { TabOption, TabBarProps } from './components/TabBar';
|
|
53
|
+
export { TextArea } from './components/TextArea';
|
|
54
|
+
export type { TextAreaProps } from './components/TextArea';
|
|
55
|
+
export { TextField } from './components/Textfield';
|
|
56
|
+
export type { TextFieldProps } from './components/Textfield';
|
|
57
57
|
export { ThemeProvider } from './providers';
|
|
58
|
-
export { Tip } from './
|
|
59
|
-
export type { ToolTipProps } from './
|
|
60
|
-
export { Toast, ToastType } from './
|
|
61
|
-
export type { ToastProps } from './
|
|
62
|
-
export { Button } from './
|
|
63
|
-
export type { ButtonProps, ButtonHandle } from './
|
|
64
|
-
export { Chip } from './
|
|
65
|
-
export type { ChipProps } from './
|
|
66
|
-
export { FileIcon, FileIconNames } from './
|
|
67
|
-
export type { FileIconProps } from './
|
|
68
|
-
export { Icon, IconNames } from './
|
|
69
|
-
export type { IconProps } from './
|
|
70
|
-
export { ButtonBar } from './
|
|
71
|
-
export type { BarButton, ButtonBarProps } from './
|
|
72
|
-
export { Card } from './
|
|
73
|
-
export type { CardProps } from './
|
|
74
|
-
export { Label } from './
|
|
75
|
-
export type { LabelProps } from './
|
|
76
|
-
export { UploadArea } from './
|
|
77
|
-
export type { UploadAreaProps } from './
|
|
78
|
-
export { imageTypes, videoTypes, documentTypes, audioTypes, textTypes, allTypes, } from './
|
|
58
|
+
export { Tip } from './components/Tip';
|
|
59
|
+
export type { ToolTipProps } from './components/Tip';
|
|
60
|
+
export { Toast, ToastType } from './components/Toast';
|
|
61
|
+
export type { ToastProps } from './components/Toast';
|
|
62
|
+
export { Button } from './components/Button';
|
|
63
|
+
export type { ButtonProps, ButtonHandle } from './components/Button';
|
|
64
|
+
export { Chip } from './components/Chip';
|
|
65
|
+
export type { ChipProps } from './components/Chip';
|
|
66
|
+
export { FileIcon, FileIconNames } from './components/FileIcon';
|
|
67
|
+
export type { FileIconProps } from './components/FileIcon/_types';
|
|
68
|
+
export { Icon, IconNames } from './components/Icon';
|
|
69
|
+
export type { IconProps } from './components/Icon/_types';
|
|
70
|
+
export { ButtonBar } from './components/ButtonBar';
|
|
71
|
+
export type { BarButton, ButtonBarProps } from './components/ButtonBar/_types';
|
|
72
|
+
export { Card } from './components/Card';
|
|
73
|
+
export type { CardProps } from './components/Card/_types';
|
|
74
|
+
export { Label } from './components/Label';
|
|
75
|
+
export type { LabelProps } from './components/Label';
|
|
76
|
+
export { UploadArea } from './components/UploadArea';
|
|
77
|
+
export type { UploadAreaProps } from './components/UploadArea/_types';
|
|
78
|
+
export { imageTypes, videoTypes, documentTypes, audioTypes, textTypes, allTypes, } from './components/UploadArea/_types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a tint value from a hex color
|
|
3
|
+
*/
|
|
4
|
+
export declare const tintFromColor: (hex: string, percent: number) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Adds the desired opacity level to a hex or RGB color string
|
|
7
|
+
*/
|
|
8
|
+
export declare const addOpacity: (color: string, opacity: number) => string;
|
|
@@ -2,7 +2,7 @@ export declare function nameAndExtension(fileName: string): {
|
|
|
2
2
|
name: string;
|
|
3
3
|
ext: string;
|
|
4
4
|
};
|
|
5
|
-
export declare function fileIconName(extension: string): "other" | "text" | "sheet" | "image" | "
|
|
5
|
+
export declare function fileIconName(extension: string): "other" | "text" | "sheet" | "image" | "video" | "audio" | "pdf" | "code" | "md" | "preso" | "clipboard";
|
|
6
6
|
/**
|
|
7
7
|
* Create a text file from clipboard content placing a clipboard file extension
|
|
8
8
|
*/
|
|
@@ -48,6 +48,6 @@ export declare function setStyle(value: string | number | undefined, defaultVal?
|
|
|
48
48
|
*/
|
|
49
49
|
export declare const copyToClipboard: (rawContent: string) => Promise<boolean>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Get normalized percent value from number or string
|
|
52
52
|
*/
|
|
53
|
-
export declare
|
|
53
|
+
export declare function normalizedPercent(value: number | string): number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apple-pie/slice",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -78,10 +78,15 @@
|
|
|
78
78
|
"import": "./dist/esm/theme/themes.mjs",
|
|
79
79
|
"require": "./dist/cjs/theme/themes.js"
|
|
80
80
|
},
|
|
81
|
-
"./
|
|
82
|
-
"types": "./dist/types/
|
|
83
|
-
"import": "./dist/esm/
|
|
84
|
-
"require": "./dist/cjs/
|
|
81
|
+
"./utils": {
|
|
82
|
+
"types": "./dist/types/utils/index.d.ts",
|
|
83
|
+
"import": "./dist/esm/utils/index.mjs",
|
|
84
|
+
"require": "./dist/cjs/utils/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./components/*": {
|
|
87
|
+
"types": "./dist/types/components/*/index.d.ts",
|
|
88
|
+
"import": "./dist/esm/components/*/index.mjs",
|
|
89
|
+
"require": "./dist/cjs/components/*/index.js"
|
|
85
90
|
}
|
|
86
91
|
},
|
|
87
92
|
"files": ["dist", "README.md", "scripts/copy-assets.mjs"],
|