@apple-pie/slice 0.1.8 → 0.1.9
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 +4 -3
- package/dist/cjs/chunks/{Avatar-8XLnVICd.js → Avatar-Czt-12Ih.js} +26 -12
- package/dist/cjs/chunks/{AvatarGroup-BhKZvX8M.js → AvatarGroup-CGH2zY7a.js} +9 -7
- package/dist/cjs/chunks/{Button-D8_eyuOA.js → Button-mVVfNCqC.js} +40 -29
- package/dist/cjs/chunks/ButtonBar-CFAb4bfQ.js +73 -0
- package/dist/cjs/chunks/{Camera-CxHdYGEa.js → Camera-BGV_tNUP.js} +12 -4
- package/dist/cjs/chunks/{CheckBox-CmTQ6KW1.js → CheckBox-DyOgP15i.js} +1 -1
- package/dist/cjs/chunks/{Chip-CwMJOnBV.js → Chip-Z8erRdWG.js} +24 -31
- package/dist/cjs/chunks/{FileList-tivoUJSP.js → FileList-CCAtVNDo.js} +1 -1
- package/dist/cjs/chunks/IndexedDB-BxQn7aHU.js +146 -0
- package/dist/cjs/chunks/{ProgressIndicator-opbbADog.js → ProgressIndicator-CyFcr6Dk.js} +13 -4
- package/dist/cjs/chunks/{PromptInput-tA4fpOTk.js → PromptInput-B-Wlfnhx.js} +1 -1
- package/dist/cjs/chunks/{TextArea-DXcMRUfI.js → TextArea-D7E8loob.js} +1 -1
- package/dist/cjs/chunks/{TextField-CkfTNM6_.js → TextField-BAcYBHb1.js} +2 -2
- package/dist/cjs/chunks/{UploadArea-B8mJRc0a.js → UploadArea-Bfrwzo4O.js} +1 -1
- package/dist/cjs/chunks/localDBStore-Cl1YFPIe.js +182 -0
- package/dist/cjs/components/Avatar/index.js +1 -1
- package/dist/cjs/components/AvatarGroup/index.js +2 -2
- package/dist/cjs/components/Button/index.js +2 -2
- package/dist/cjs/components/ButtonBar/index.js +3 -5
- package/dist/cjs/components/Camera/index.js +2 -2
- package/dist/cjs/components/CheckBox/index.js +1 -1
- package/dist/cjs/components/Chip/index.js +2 -2
- package/dist/cjs/components/FileList/index.js +2 -2
- package/dist/cjs/components/Progress/index.js +1 -1
- package/dist/cjs/components/PromptInput/index.js +4 -4
- package/dist/cjs/components/TextArea/index.js +3 -3
- package/dist/cjs/components/Textfield/index.js +3 -3
- package/dist/cjs/components/UploadArea/index.js +3 -3
- package/dist/cjs/index.js +10 -11
- package/dist/cjs/stores/LocalDB.js +8 -0
- package/dist/cjs/stores.js +9 -5
- package/dist/cjs/utils/index.js +3 -3
- package/dist/cjs/utils/objects/index.js +3 -3
- package/dist/esm/chunks/{Avatar-DGRMsHdO.mjs → Avatar-DCCbj2eA.mjs} +26 -12
- package/dist/esm/chunks/{AvatarGroup-C9Ka1e9P.mjs → AvatarGroup-BaD2Xmda.mjs} +9 -7
- package/dist/esm/chunks/{Button-DAvVj4YV.mjs → Button-m0XAJsq5.mjs} +40 -29
- package/dist/esm/chunks/ButtonBar-CNQHRn77.mjs +83 -0
- package/dist/esm/chunks/{Camera-BrdJGlv6.mjs → Camera-7TuowjX_.mjs} +12 -4
- package/dist/esm/chunks/{CheckBox-B7UCZvRv.mjs → CheckBox-DO9hTdv8.mjs} +1 -1
- package/dist/esm/chunks/{Chip-BPF7fBba.mjs → Chip-BqneFUOR.mjs} +25 -34
- package/dist/esm/chunks/{FileList-BHCGzX_0.mjs → FileList-Ckix8gUY.mjs} +1 -1
- package/dist/esm/chunks/IndexedDB-CNOziQ6p.mjs +146 -0
- package/dist/esm/chunks/{ProgressIndicator-BVwQNOcV.mjs → ProgressIndicator-CfM2c4ty.mjs} +13 -4
- package/dist/esm/chunks/{PromptInput-pKwwzyAd.mjs → PromptInput-Cmist_vy.mjs} +2 -2
- package/dist/esm/chunks/{TextArea-yF2pGeel.mjs → TextArea-Ff5hxF1H.mjs} +1 -1
- package/dist/esm/chunks/{TextField-CgnPj6oK.mjs → TextField-CGOR6507.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-BNf1y8Ep.mjs → UploadArea-6z-mVZs3.mjs} +2 -2
- package/dist/esm/chunks/localDBStore-CbCoeN66.mjs +186 -0
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/AvatarGroup/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +2 -2
- package/dist/esm/components/ButtonBar/index.mjs +5 -15
- package/dist/esm/components/Camera/index.mjs +2 -2
- package/dist/esm/components/CheckBox/index.mjs +1 -1
- package/dist/esm/components/Chip/index.mjs +5 -5
- package/dist/esm/components/FileList/index.mjs +2 -2
- package/dist/esm/components/Progress/index.mjs +1 -1
- package/dist/esm/components/PromptInput/index.mjs +4 -4
- package/dist/esm/components/TextArea/index.mjs +3 -3
- package/dist/esm/components/Textfield/index.mjs +3 -3
- package/dist/esm/components/UploadArea/index.mjs +3 -3
- package/dist/esm/index.mjs +13 -17
- package/dist/esm/stores/LocalDB.mjs +7 -0
- package/dist/esm/stores.mjs +4 -0
- package/dist/esm/utils/index.mjs +2 -0
- package/dist/esm/utils/objects/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/cjs/chunks/ButtonBar-DwMLfvi8.js +0 -49
- package/dist/cjs/chunks/Card-D4YkmNC7.js +0 -34
- package/dist/cjs/chunks/DocIcons-BZI6JMyw.js +0 -108
- package/dist/cjs/components/Card/index.js +0 -10
- package/dist/cjs/components/DocIcon/index.js +0 -9
- package/dist/css/flexBox.module.css +0 -85
- package/dist/css/type.module.css +0 -206
- package/dist/esm/chunks/ButtonBar-Cw73kooJ.mjs +0 -62
- package/dist/esm/chunks/Card-DGlv1PII.mjs +0 -42
- package/dist/esm/chunks/DocIcons-B4xsPrXM.mjs +0 -114
- package/dist/esm/components/Card/index.mjs +0 -31
- package/dist/esm/components/DocIcon/index.mjs +0 -25
- package/dist/types/components/Avatar/Avatar.d.ts +0 -3
- package/dist/types/components/Avatar/_types.d.ts +0 -20
- package/dist/types/components/Avatar/index.d.ts +0 -2
- package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +0 -3
- package/dist/types/components/AvatarGroup/_types.d.ts +0 -23
- package/dist/types/components/AvatarGroup/index.d.ts +0 -2
- package/dist/types/components/Badge/Badge.d.ts +0 -3
- package/dist/types/components/Badge/_types.d.ts +0 -8
- package/dist/types/components/Badge/index.d.ts +0 -2
- package/dist/types/components/Button/Button.d.ts +0 -74
- package/dist/types/components/Button/_types.d.ts +0 -44
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/ButtonBar/ButtonBar.d.ts +0 -2
- package/dist/types/components/ButtonBar/_types.d.ts +0 -17
- package/dist/types/components/ButtonBar/index.d.ts +0 -2
- package/dist/types/components/Camera/Camera.d.ts +0 -11
- package/dist/types/components/Camera/_types.d.ts +0 -79
- package/dist/types/components/Camera/index.d.ts +0 -2
- package/dist/types/components/Card/Card.d.ts +0 -3
- package/dist/types/components/Card/_types.d.ts +0 -14
- package/dist/types/components/Card/index.d.ts +0 -2
- package/dist/types/components/CheckBox/CheckBox.d.ts +0 -3
- package/dist/types/components/CheckBox/_types.d.ts +0 -11
- package/dist/types/components/CheckBox/index.d.ts +0 -2
- package/dist/types/components/Chip/Chip.d.ts +0 -3
- package/dist/types/components/Chip/_types.d.ts +0 -20
- package/dist/types/components/Chip/index.d.ts +0 -3
- package/dist/types/components/DivInput/DivInput.d.ts +0 -3
- package/dist/types/components/DivInput/_types.d.ts +0 -23
- package/dist/types/components/DivInput/index.d.ts +0 -2
- package/dist/types/components/DocIcon/DocIcons.d.ts +0 -3
- package/dist/types/components/DocIcon/_types.d.ts +0 -7
- package/dist/types/components/DocIcon/index.d.ts +0 -2
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dot/_types.d.ts +0 -19
- package/dist/types/components/Dot/index.d.ts +0 -2
- package/dist/types/components/DraggablePanel/DrggablePanel.d.ts +0 -44
- package/dist/types/components/DraggablePanel/_types.d.ts +0 -5
- package/dist/types/components/DraggablePanel/index.d.ts +0 -1
- package/dist/types/components/DropDown/DropDown.d.ts +0 -4
- package/dist/types/components/DropDown/_types.d.ts +0 -34
- package/dist/types/components/DropDown/index.d.ts +0 -2
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
- package/dist/types/components/ErrorSummary/_types.d.ts +0 -12
- package/dist/types/components/ErrorSummary/index.d.ts +0 -2
- package/dist/types/components/FileIcon/FileIcon.d.ts +0 -3
- package/dist/types/components/FileIcon/_types.d.ts +0 -27
- package/dist/types/components/FileIcon/fileIconRegistry.d.ts +0 -4
- package/dist/types/components/FileIcon/index.d.ts +0 -3
- package/dist/types/components/FileList/FileList.d.ts +0 -3
- package/dist/types/components/FileList/_types.d.ts +0 -24
- package/dist/types/components/FileList/index.d.ts +0 -2
- package/dist/types/components/FlexDiv/FlexDiv.d.ts +0 -60
- package/dist/types/components/FlexDiv/_types.d.ts +0 -34
- package/dist/types/components/FlexDiv/index.d.ts +0 -2
- package/dist/types/components/Grouper/Grouper.d.ts +0 -3
- package/dist/types/components/Grouper/_types.d.ts +0 -20
- package/dist/types/components/Grouper/index.d.ts +0 -2
- package/dist/types/components/Icon/Icon.d.ts +0 -3
- package/dist/types/components/Icon/_types.d.ts +0 -131
- package/dist/types/components/Icon/iconRegistry.d.ts +0 -17
- package/dist/types/components/Icon/index.d.ts +0 -2
- package/dist/types/components/IconButton/IconButton.d.ts +0 -3
- package/dist/types/components/IconButton/_types.d.ts +0 -34
- package/dist/types/components/IconButton/index.d.ts +0 -2
- package/dist/types/components/Label/Label.d.ts +0 -2
- package/dist/types/components/Label/_types.d.ts +0 -16
- package/dist/types/components/Label/index.d.ts +0 -2
- package/dist/types/components/Overlay/Overlay.d.ts +0 -3
- package/dist/types/components/Overlay/_types.d.ts +0 -12
- package/dist/types/components/Overlay/index.d.ts +0 -2
- package/dist/types/components/Pager/Pager.d.ts +0 -3
- package/dist/types/components/Pager/_types.d.ts +0 -13
- package/dist/types/components/Pager/index.d.ts +0 -2
- package/dist/types/components/Progress/DoneCheck/DoneCheck.d.ts +0 -3
- package/dist/types/components/Progress/DoneCheck/_types.d.ts +0 -13
- package/dist/types/components/Progress/ProgressIndicator/ProgressIndicator.d.ts +0 -3
- package/dist/types/components/Progress/ProgressIndicator/_types.d.ts +0 -14
- package/dist/types/components/Progress/index.d.ts +0 -4
- package/dist/types/components/PromptInput/PromptInput.d.ts +0 -63
- package/dist/types/components/PromptInput/_types.d.ts +0 -35
- package/dist/types/components/PromptInput/index.d.ts +0 -2
- package/dist/types/components/RadioButton/RadioButton.d.ts +0 -3
- package/dist/types/components/RadioButton/_types.d.ts +0 -26
- package/dist/types/components/RadioButton/index.d.ts +0 -2
- package/dist/types/components/RadioButtonList/RadioButtonList.d.ts +0 -3
- package/dist/types/components/RadioButtonList/_types.d.ts +0 -24
- package/dist/types/components/RadioButtonList/index.d.ts +0 -2
- package/dist/types/components/Slider/Slider.d.ts +0 -3
- package/dist/types/components/Slider/_types.d.ts +0 -18
- package/dist/types/components/Slider/index.d.ts +0 -2
- package/dist/types/components/Spacer/Spacer.d.ts +0 -3
- package/dist/types/components/Spacer/_types.d.ts +0 -6
- package/dist/types/components/Spacer/index.d.ts +0 -2
- package/dist/types/components/Switch/Switch.d.ts +0 -3
- package/dist/types/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/types/components/Switch/_types.d.ts +0 -13
- package/dist/types/components/Switch/index.d.ts +0 -2
- package/dist/types/components/TabBar/TabBar.d.ts +0 -3
- package/dist/types/components/TabBar/_types.d.ts +0 -52
- package/dist/types/components/TabBar/index.d.ts +0 -2
- package/dist/types/components/TextArea/TextArea.d.ts +0 -3
- package/dist/types/components/TextArea/_types.d.ts +0 -41
- package/dist/types/components/TextArea/index.d.ts +0 -2
- package/dist/types/components/Textfield/TextField.d.ts +0 -3
- package/dist/types/components/Textfield/_types.d.ts +0 -79
- package/dist/types/components/Textfield/index.d.ts +0 -2
- package/dist/types/components/Tip/Tip.d.ts +0 -3
- package/dist/types/components/Tip/_types.d.ts +0 -28
- package/dist/types/components/Tip/index.d.ts +0 -2
- package/dist/types/components/Toast/Toast.d.ts +0 -3
- package/dist/types/components/Toast/_types.d.ts +0 -24
- package/dist/types/components/Toast/index.d.ts +0 -2
- package/dist/types/components/UploadArea/UploadArea.d.ts +0 -54
- package/dist/types/components/UploadArea/_types.d.ts +0 -46
- package/dist/types/components/UploadArea/index.d.ts +0 -3
- package/dist/types/components/playHelpers.d.ts +0 -35
- package/dist/types/components/sharedTypes.d.ts +0 -21
- package/dist/types/hooks/index.d.ts +0 -9
- package/dist/types/hooks/useDoubleClick/useDoubleClick.d.ts +0 -1
- package/dist/types/hooks/useKeyboardShortcuts/useKeyboardShortcuts.d.ts +0 -9
- package/dist/types/hooks/useLastUpdated/useLastUpdated.d.ts +0 -4
- package/dist/types/hooks/useLocalStore/useLocalStore.d.ts +0 -1
- package/dist/types/hooks/useObserveResize/useObserveResize.d.ts +0 -9
- package/dist/types/hooks/useObserveTheme/useObserveTheme.d.ts +0 -2
- package/dist/types/hooks/useTheme/useTheme.d.ts +0 -47
- package/dist/types/hooks/useToolTip/useToolTip.d.ts +0 -6
- package/dist/types/hooks/useTrackRenders/useTrackRenders.d.ts +0 -5
- package/dist/types/hooks/useWindow/useWindow.d.ts +0 -43
- package/dist/types/index.d.ts +0 -78
- package/dist/types/providers/ThemeProvider.d.ts +0 -13
- package/dist/types/providers/index.d.ts +0 -1
- package/dist/types/stores/SSE/_types.d.ts +0 -17
- package/dist/types/stores/SSE/index.d.ts +0 -2
- package/dist/types/stores/SSE/sseStore.d.ts +0 -28
- package/dist/types/stores/WS/_types.d.ts +0 -17
- package/dist/types/stores/WS/index.d.ts +0 -2
- package/dist/types/stores/WS/wsStore.d.ts +0 -19
- package/dist/types/stores/index.d.ts +0 -5
- package/dist/types/stores/tip/_types.d.ts +0 -8
- package/dist/types/stores/tip/index.d.ts +0 -2
- package/dist/types/stores/tip/tipStore.d.ts +0 -12
- package/dist/types/stores/toast/_types.d.ts +0 -14
- package/dist/types/stores/toast/index.d.ts +0 -2
- package/dist/types/stores/toast/toastStore.d.ts +0 -12
- package/dist/types/stores/uploads/_types.d.ts +0 -16
- package/dist/types/stores/uploads/index.d.ts +0 -2
- package/dist/types/stores/uploads/uploadsStore.d.ts +0 -22
- package/dist/types/stores/window/_types.d.ts +0 -33
- package/dist/types/stores/window/index.d.ts +0 -3
- package/dist/types/stores/window/windowStore.d.ts +0 -25
- package/dist/types/theme/colors/colors.d.ts +0 -6
- package/dist/types/theme/colors/types.d.ts +0 -174
- package/dist/types/theme/corners/corners.d.ts +0 -2
- package/dist/types/theme/corners/types.d.ts +0 -10
- package/dist/types/theme/elevations/_types.d.ts +0 -10
- package/dist/types/theme/elevations/elevations.d.ts +0 -5
- package/dist/types/theme/index.d.ts +0 -9
- package/dist/types/theme/motion/_types.d.ts +0 -8
- package/dist/types/theme/motion/motion.d.ts +0 -5
- package/dist/types/theme/themes.d.ts +0 -16
- package/dist/types/theme/type/type.d.ts +0 -5
- package/dist/types/theme/type/types.d.ts +0 -25
- package/dist/types/utils/functions/colors.d.ts +0 -8
- package/dist/types/utils/functions/debounce.d.ts +0 -9
- package/dist/types/utils/functions/files.d.ts +0 -15
- package/dist/types/utils/functions/misc.d.ts +0 -61
- package/dist/types/utils/index.d.ts +0 -5
- package/dist/types/utils/objects/SSEConnection/SSEConnection.d.ts +0 -187
- package/dist/types/utils/objects/WSConnection/WSConnection.d.ts +0 -159
- package/dist/types/utils/objects/index.d.ts +0 -4
- package/dist/types/workers/uploads/uploads-worker.d.ts +0 -129
- package/dist/types/workers/uploads/uploads.d.ts +0 -1
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ToolTip } from '../sharedTypes';
|
|
3
|
-
import type { ButtonHandle } from './_types';
|
|
4
|
-
export declare const Button: React.NamedExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof {
|
|
5
|
-
size?: "large" | "medium" | "text";
|
|
6
|
-
variant?: "solid" | "outline" | "text";
|
|
7
|
-
state?: "normal" | "hover" | "disabled";
|
|
8
|
-
width?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
iconRight?: string;
|
|
11
|
-
iconLeft?: string;
|
|
12
|
-
fill?: boolean;
|
|
13
|
-
count?: number;
|
|
14
|
-
showDot?: boolean;
|
|
15
|
-
round?: boolean;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
iconSize?: number;
|
|
18
|
-
borderRadius?: number;
|
|
19
|
-
iconColor?: string;
|
|
20
|
-
bgColor?: string;
|
|
21
|
-
bgColorDisabled?: string;
|
|
22
|
-
labelColor?: string;
|
|
23
|
-
labelSize?: "s" | "m" | "l";
|
|
24
|
-
transition?: import("framer-motion").Transition;
|
|
25
|
-
variants?: import("framer-motion").Variants;
|
|
26
|
-
initial?: string;
|
|
27
|
-
animate?: string;
|
|
28
|
-
exit?: string;
|
|
29
|
-
underline?: boolean;
|
|
30
|
-
progress?: boolean;
|
|
31
|
-
working?: boolean;
|
|
32
|
-
duration?: number;
|
|
33
|
-
trigger?: boolean;
|
|
34
|
-
destructive?: boolean;
|
|
35
|
-
paddingRight?: number;
|
|
36
|
-
paddingLeft?: number;
|
|
37
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
38
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
39
|
-
}> & {
|
|
40
|
-
size?: "large" | "medium" | "text";
|
|
41
|
-
variant?: "solid" | "outline" | "text";
|
|
42
|
-
state?: "normal" | "hover" | "disabled";
|
|
43
|
-
width?: string;
|
|
44
|
-
label?: string;
|
|
45
|
-
iconRight?: string;
|
|
46
|
-
iconLeft?: string;
|
|
47
|
-
fill?: boolean;
|
|
48
|
-
count?: number;
|
|
49
|
-
showDot?: boolean;
|
|
50
|
-
round?: boolean;
|
|
51
|
-
tooltip?: string;
|
|
52
|
-
iconSize?: number;
|
|
53
|
-
borderRadius?: number;
|
|
54
|
-
iconColor?: string;
|
|
55
|
-
bgColor?: string;
|
|
56
|
-
bgColorDisabled?: string;
|
|
57
|
-
labelColor?: string;
|
|
58
|
-
labelSize?: "s" | "m" | "l";
|
|
59
|
-
transition?: import("framer-motion").Transition;
|
|
60
|
-
variants?: import("framer-motion").Variants;
|
|
61
|
-
initial?: string;
|
|
62
|
-
animate?: string;
|
|
63
|
-
exit?: string;
|
|
64
|
-
underline?: boolean;
|
|
65
|
-
progress?: boolean;
|
|
66
|
-
working?: boolean;
|
|
67
|
-
duration?: number;
|
|
68
|
-
trigger?: boolean;
|
|
69
|
-
destructive?: boolean;
|
|
70
|
-
paddingRight?: number;
|
|
71
|
-
paddingLeft?: number;
|
|
72
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
73
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
74
|
-
} & React.RefAttributes<ButtonHandle>>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { Transition, Variants } from 'motion/react';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
import type { ToolTip } from '../sharedTypes';
|
|
4
|
-
type ButtonBaseProps = {
|
|
5
|
-
size?: 'large' | 'medium' | 'text';
|
|
6
|
-
variant?: 'solid' | 'outline' | 'text';
|
|
7
|
-
state?: 'normal' | 'hover' | 'disabled';
|
|
8
|
-
width?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
iconRight?: string;
|
|
11
|
-
iconLeft?: string;
|
|
12
|
-
fill?: boolean;
|
|
13
|
-
count?: number;
|
|
14
|
-
showDot?: boolean;
|
|
15
|
-
round?: boolean;
|
|
16
|
-
tooltip?: string;
|
|
17
|
-
iconSize?: number;
|
|
18
|
-
borderRadius?: number;
|
|
19
|
-
iconColor?: string;
|
|
20
|
-
bgColor?: string;
|
|
21
|
-
bgColorDisabled?: string;
|
|
22
|
-
labelColor?: string;
|
|
23
|
-
labelSize?: 's' | 'm' | 'l';
|
|
24
|
-
transition?: Transition;
|
|
25
|
-
variants?: Variants;
|
|
26
|
-
initial?: string;
|
|
27
|
-
animate?: string;
|
|
28
|
-
exit?: string;
|
|
29
|
-
underline?: boolean;
|
|
30
|
-
progress?: boolean;
|
|
31
|
-
working?: boolean;
|
|
32
|
-
duration?: number;
|
|
33
|
-
trigger?: boolean;
|
|
34
|
-
destructive?: boolean;
|
|
35
|
-
paddingRight?: number;
|
|
36
|
-
paddingLeft?: number;
|
|
37
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
38
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
|
|
39
|
-
};
|
|
40
|
-
export type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof ButtonBaseProps> & ButtonBaseProps;
|
|
41
|
-
export interface ButtonHandle {
|
|
42
|
-
triggerClick: () => void;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ToolTip } from '../sharedTypes';
|
|
3
|
-
export type BarButton = {
|
|
4
|
-
icon?: string;
|
|
5
|
-
command?: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
tip: string;
|
|
8
|
-
};
|
|
9
|
-
type ButtonBarBaseProps = {
|
|
10
|
-
options?: BarButton[];
|
|
11
|
-
label?: string;
|
|
12
|
-
current?: number;
|
|
13
|
-
onChange?: (option: BarButton) => void;
|
|
14
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
15
|
-
};
|
|
16
|
-
export type ButtonBarProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ButtonBarBaseProps> & ButtonBarBaseProps;
|
|
17
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,79 +0,0 @@
|
|
|
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
|
-
onMouseOver?: (e: React.MouseEvent<HTMLDivElement> | React.FocusEvent<HTMLDivElement>) => void;
|
|
15
|
-
}
|
|
16
|
-
export interface CameraElement {
|
|
17
|
-
container?: HTMLDivElement;
|
|
18
|
-
video?: HTMLVideoElement;
|
|
19
|
-
stream?: MediaStream;
|
|
20
|
-
videoTrack?: MediaStreamTrack;
|
|
21
|
-
audioTrack?: MediaStreamTrack;
|
|
22
|
-
snapshot?: (options?: CameraSnapshotOptions) => Blob | undefined;
|
|
23
|
-
startCamera?: () => Promise<MediaStream | Error>;
|
|
24
|
-
stopCamera?: () => Promise<boolean | Error>;
|
|
25
|
-
enableVideo?: () => MediaStream | Error;
|
|
26
|
-
disableVideo?: () => boolean | Error;
|
|
27
|
-
muteMic?: () => boolean | Error;
|
|
28
|
-
unmuteMic?: () => boolean | Error;
|
|
29
|
-
toggleVideo?: () => Promise<MediaStream | boolean | Error>;
|
|
30
|
-
toggleMic?: () => boolean | Error;
|
|
31
|
-
devices?: () => Promise<MediaDeviceInfo[] | Error>;
|
|
32
|
-
}
|
|
33
|
-
export interface CameraSnapshotOptions {
|
|
34
|
-
width?: number;
|
|
35
|
-
height?: number;
|
|
36
|
-
toggle?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface Controls {
|
|
39
|
-
mic?: boolean;
|
|
40
|
-
camera?: boolean;
|
|
41
|
-
play?: boolean;
|
|
42
|
-
stop?: boolean;
|
|
43
|
-
pause?: boolean;
|
|
44
|
-
videoDevices?: boolean;
|
|
45
|
-
audioDevices?: boolean;
|
|
46
|
-
flipCamera?: boolean;
|
|
47
|
-
}
|
|
48
|
-
export interface UserProfile {
|
|
49
|
-
first?: string;
|
|
50
|
-
last?: string;
|
|
51
|
-
avatar?: string;
|
|
52
|
-
}
|
|
53
|
-
export interface Settings {
|
|
54
|
-
micDeviceId?: string;
|
|
55
|
-
micVolume?: number;
|
|
56
|
-
videoDeviceId?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface BaseCameraProps {
|
|
59
|
-
width?: number | string;
|
|
60
|
-
height?: number | string;
|
|
61
|
-
noVideoPoster?: React.ReactNode;
|
|
62
|
-
videoFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
63
|
-
startCameraOff?: boolean;
|
|
64
|
-
startAudioMuted?: boolean;
|
|
65
|
-
playLocalAudio?: boolean;
|
|
66
|
-
userProfile?: UserProfile;
|
|
67
|
-
sessionSettings?: Settings;
|
|
68
|
-
onVideoStream?: (stream: MediaStream) => void;
|
|
69
|
-
onSnapshot?: (blob: Blob | undefined) => void;
|
|
70
|
-
onNoVideo?: (reason?: string | Error) => void;
|
|
71
|
-
onNoAudio?: (reason?: string | Error) => void;
|
|
72
|
-
onChangeProfile?: (profile?: UserProfile) => void;
|
|
73
|
-
onChangeSettings?: (settings?: Settings, devices?: MediaDeviceInfo[] | Error) => void;
|
|
74
|
-
showControlBar?: boolean;
|
|
75
|
-
autoHideControlBar?: boolean;
|
|
76
|
-
controls?: Controls;
|
|
77
|
-
pipSnapshot?: boolean;
|
|
78
|
-
}
|
|
79
|
-
export type CameraProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof BaseCameraProps> & BaseCameraProps;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type CardBaseProps = {
|
|
3
|
-
id?: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
label?: string;
|
|
6
|
-
command?: string;
|
|
7
|
-
width?: number | string;
|
|
8
|
-
onCommand?: (command: {
|
|
9
|
-
id?: string;
|
|
10
|
-
command?: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
};
|
|
13
|
-
export type CardProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof CardBaseProps> & CardBaseProps;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type CheckBoxBaseProps = {
|
|
3
|
-
children?: React.ReactNode | string;
|
|
4
|
-
size?: number;
|
|
5
|
-
checked?: 'mixed' | boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
color?: string;
|
|
8
|
-
onChange?: (state: boolean) => void;
|
|
9
|
-
};
|
|
10
|
-
export type CheckBoxProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof CheckBoxBaseProps> & CheckBoxBaseProps;
|
|
11
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ToolTip } from '../sharedTypes';
|
|
3
|
-
type ChipBaseProps = {
|
|
4
|
-
label?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
focused?: boolean;
|
|
8
|
-
tooltip?: string;
|
|
9
|
-
background?: string;
|
|
10
|
-
variant?: 'small' | 'regular';
|
|
11
|
-
labelSize?: 's' | 'm' | 'l';
|
|
12
|
-
unframed?: boolean;
|
|
13
|
-
iconRight?: boolean;
|
|
14
|
-
iconColor?: string;
|
|
15
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
16
|
-
onClick?: (e: React.MouseEvent<HTMLDivElement> | undefined) => void;
|
|
17
|
-
onMouseDown?: (e: React.MouseEvent<HTMLDivElement> | undefined) => void;
|
|
18
|
-
};
|
|
19
|
-
export type ChipProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ChipBaseProps> & ChipBaseProps;
|
|
20
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type DivInputBaseProps = {
|
|
3
|
-
name?: string;
|
|
4
|
-
onClick?: () => void;
|
|
5
|
-
onDblClick?: () => void;
|
|
6
|
-
onChange?: (value: string | null) => void;
|
|
7
|
-
onSubmit?: (value: string) => void;
|
|
8
|
-
onFocus?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
9
|
-
onBlur?: (value: string) => void;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
value?: string;
|
|
12
|
-
isEditable?: boolean;
|
|
13
|
-
wrap?: boolean;
|
|
14
|
-
focus?: boolean;
|
|
15
|
-
width?: number | string;
|
|
16
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
17
|
-
clamp?: number;
|
|
18
|
-
padding?: string;
|
|
19
|
-
radius?: number;
|
|
20
|
-
bgColor?: string;
|
|
21
|
-
};
|
|
22
|
-
export type DivInputProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DivInputBaseProps> & DivInputBaseProps;
|
|
23
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Transition, Variants } from 'motion/react';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
type DotBaseProps = {
|
|
4
|
-
size?: number;
|
|
5
|
-
topOffset?: number;
|
|
6
|
-
rightOffset?: number;
|
|
7
|
-
border?: number;
|
|
8
|
-
position?: 'inline' | 'corner';
|
|
9
|
-
state?: 'red' | 'yellow' | 'green' | 'blue' | 'grey';
|
|
10
|
-
color?: string;
|
|
11
|
-
transition?: Transition;
|
|
12
|
-
motionValues?: Variants;
|
|
13
|
-
motion?: Variants;
|
|
14
|
-
show?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type DotProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DotBaseProps> & DotBaseProps;
|
|
17
|
-
export declare const DEFAULT_VARIANTS: Variants;
|
|
18
|
-
export declare const DEFAULT_TRANSITION: Transition;
|
|
19
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { type RefObject } from 'react';
|
|
2
|
-
import type { Constraint } from './_types';
|
|
3
|
-
type Info = {
|
|
4
|
-
div: RefObject<HTMLDivElement | null>;
|
|
5
|
-
divWidth: number;
|
|
6
|
-
divHeight: number;
|
|
7
|
-
deltaWidth: number;
|
|
8
|
-
};
|
|
9
|
-
type ResizeHandle = {
|
|
10
|
-
width?: number;
|
|
11
|
-
color?: string;
|
|
12
|
-
offsetX?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type DraggablePanelBaseProps = {
|
|
15
|
-
children?: any;
|
|
16
|
-
onResize?: (info: Info) => void;
|
|
17
|
-
onResizeEnd?: (info: Info) => void;
|
|
18
|
-
onResizeStart?: (info: Info) => void;
|
|
19
|
-
containerRef?: React.RefObject<HTMLDivElement | null>;
|
|
20
|
-
sizeConstraints?: Constraint;
|
|
21
|
-
dragsRight?: boolean;
|
|
22
|
-
isClosed?: boolean;
|
|
23
|
-
resizeHandle?: Partial<ResizeHandle>;
|
|
24
|
-
borderRight?: any;
|
|
25
|
-
borderLeft?: any;
|
|
26
|
-
bgColor?: string;
|
|
27
|
-
drags?: boolean;
|
|
28
|
-
dragHandle?: boolean;
|
|
29
|
-
dragHandleStyle?: DragHandleProps;
|
|
30
|
-
disableOnContext?: boolean;
|
|
31
|
-
isTouchDevice?: boolean;
|
|
32
|
-
};
|
|
33
|
-
export type DraggablePanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DraggablePanelBaseProps> & DraggablePanelBaseProps;
|
|
34
|
-
export declare const DraggablePanel: React.MemoExoticComponent<(props: DraggablePanelProps) => import("react/jsx-runtime").JSX.Element>;
|
|
35
|
-
export type DragHandleProps = {
|
|
36
|
-
width?: number;
|
|
37
|
-
height?: number;
|
|
38
|
-
radius?: number;
|
|
39
|
-
stroke?: number;
|
|
40
|
-
strokeColor?: string;
|
|
41
|
-
color?: string;
|
|
42
|
-
};
|
|
43
|
-
export declare const DragHandle: React.MemoExoticComponent<(props: Readonly<DragHandleProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
44
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DraggablePanel, type DraggablePanelProps } from './DrggablePanel';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export type DropDownOption = {
|
|
3
|
-
label?: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
alt?: string;
|
|
6
|
-
};
|
|
7
|
-
type DropDownBaseProps = {
|
|
8
|
-
name?: string;
|
|
9
|
-
options?: DropDownOption[];
|
|
10
|
-
selectedIndex?: number;
|
|
11
|
-
selectedValue?: string;
|
|
12
|
-
placeholder?: boolean;
|
|
13
|
-
borderRadius?: number;
|
|
14
|
-
validate?: boolean;
|
|
15
|
-
iconColor?: string;
|
|
16
|
-
bgColor?: string;
|
|
17
|
-
width?: string;
|
|
18
|
-
height?: string;
|
|
19
|
-
paddingLeft?: number | string;
|
|
20
|
-
paddingRight?: number | string;
|
|
21
|
-
paddingTops?: number | string;
|
|
22
|
-
iconSize?: number;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
unframed?: boolean;
|
|
25
|
-
focused?: boolean;
|
|
26
|
-
gap?: number;
|
|
27
|
-
size?: 'small' | 'medium' | 'large';
|
|
28
|
-
onChange?: (index: number, option: DropDownOption) => void;
|
|
29
|
-
onBlur?: (value: string) => void;
|
|
30
|
-
onValidate?: (state: boolean) => void;
|
|
31
|
-
onFocus?: () => void;
|
|
32
|
-
};
|
|
33
|
-
export type DropDownProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof DropDownBaseProps> & DropDownBaseProps;
|
|
34
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export type ErrorMessage = {
|
|
3
|
-
id?: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
bullets?: string[];
|
|
6
|
-
};
|
|
7
|
-
type ErrorSummaryBaseProps = {
|
|
8
|
-
entries?: ErrorMessage[];
|
|
9
|
-
errors?: any[];
|
|
10
|
-
};
|
|
11
|
-
export type ErrorSummaryProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof ErrorSummaryBaseProps> & ErrorSummaryBaseProps;
|
|
12
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type FileIconBaseProps = {
|
|
3
|
-
name?: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
pointer?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: (e: React.MouseEvent<SVGElement, MouseEvent> | React.KeyboardEvent<SVGSVGElement>) => void;
|
|
8
|
-
};
|
|
9
|
-
export type FileIconProps = Omit<React.SVGAttributes<SVGSVGElement>, keyof FileIconBaseProps> & FileIconBaseProps;
|
|
10
|
-
export declare enum FileIconNames {
|
|
11
|
-
pdf = "pdf",
|
|
12
|
-
text = "text",
|
|
13
|
-
sheet = "sheet",
|
|
14
|
-
preso = "preso",
|
|
15
|
-
md = "md",
|
|
16
|
-
code = "code",
|
|
17
|
-
image = "image",
|
|
18
|
-
audio = "audio",
|
|
19
|
-
video = "video",
|
|
20
|
-
other = "other"
|
|
21
|
-
}
|
|
22
|
-
type Scheme = {
|
|
23
|
-
dark: string;
|
|
24
|
-
light: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const iconColorSchemes: Record<string, Scheme>;
|
|
27
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ToolTip } from '../sharedTypes';
|
|
3
|
-
export type FileItem = {
|
|
4
|
-
file: File | string;
|
|
5
|
-
uploading?: boolean;
|
|
6
|
-
progress?: number;
|
|
7
|
-
error?: string;
|
|
8
|
-
};
|
|
9
|
-
type FileListBaseProps = {
|
|
10
|
-
files?: FileItem[];
|
|
11
|
-
direction?: 'row' | 'column';
|
|
12
|
-
gap?: number;
|
|
13
|
-
size?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
14
|
-
maxWidth?: number | string;
|
|
15
|
-
minWidth?: number | string;
|
|
16
|
-
padding?: number | string;
|
|
17
|
-
iconSize?: number;
|
|
18
|
-
onChange?: (files: FileItem[]) => void;
|
|
19
|
-
bgColor?: string;
|
|
20
|
-
canRemove?: boolean;
|
|
21
|
-
onToolTip?: (tip: ToolTip | null) => void;
|
|
22
|
-
};
|
|
23
|
-
export type FileListProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof FileListBaseProps> & FileListBaseProps;
|
|
24
|
-
export {};
|