@apple-pie/slice 0.0.0
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 +80 -0
- package/dist/colors.css +237 -0
- package/dist/flexBox.module.css +85 -0
- package/dist/index.esm.js +4831 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +4873 -0
- package/dist/index.js.map +1 -0
- package/dist/type.css +16 -0
- package/dist/type.module.css +161 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useMayaTheme.d.ts +7 -0
- package/dist/types/hooks/useObserveResize.d.ts +9 -0
- package/dist/types/hooks/useTheme.d.ts +2 -0
- package/dist/types/hooks/useTrackRenders.d.ts +5 -0
- package/dist/types/index.d.ts +74 -0
- package/dist/types/providers/ThemeProvider.d.ts +9 -0
- package/dist/types/providers/index.d.ts +1 -0
- package/dist/types/theme/colors/colors.d.ts +4 -0
- package/dist/types/theme/colors/types.d.ts +160 -0
- package/dist/types/theme/corners/corners.d.ts +2 -0
- package/dist/types/theme/corners/types.d.ts +10 -0
- package/dist/types/theme/index.d.ts +5 -0
- package/dist/types/theme/themes.d.ts +12 -0
- package/dist/types/theme/type/type.d.ts +2 -0
- package/dist/types/theme/type/types.d.ts +20 -0
- package/dist/types/uikit/Avatar/Avatar.d.ts +3 -0
- package/dist/types/uikit/Avatar/AvatarInline.stories.d.ts +7 -0
- package/dist/types/uikit/Avatar/_types.d.ts +19 -0
- package/dist/types/uikit/Avatar/index.d.ts +2 -0
- package/dist/types/uikit/AvatarGroup/AvatarGroup.d.ts +3 -0
- package/dist/types/uikit/AvatarGroup/_types.d.ts +21 -0
- package/dist/types/uikit/AvatarGroup/index.d.ts +2 -0
- package/dist/types/uikit/Badge/Badge.d.ts +3 -0
- package/dist/types/uikit/Badge/_types.d.ts +5 -0
- package/dist/types/uikit/Badge/index.d.ts +2 -0
- package/dist/types/uikit/CheckBox/CheckBox.d.ts +3 -0
- package/dist/types/uikit/CheckBox/_types.d.ts +8 -0
- package/dist/types/uikit/CheckBox/index.d.ts +2 -0
- package/dist/types/uikit/DivInput/DivInput.d.ts +3 -0
- package/dist/types/uikit/DivInput/_types.d.ts +21 -0
- package/dist/types/uikit/DivInput/index.d.ts +2 -0
- package/dist/types/uikit/DocIcon/DocIcons.d.ts +3 -0
- package/dist/types/uikit/DocIcon/_types.d.ts +4 -0
- package/dist/types/uikit/DocIcon/index.d.ts +2 -0
- package/dist/types/uikit/Dot/Dot.d.ts +3 -0
- package/dist/types/uikit/Dot/_types.d.ts +15 -0
- package/dist/types/uikit/Dot/index.d.ts +2 -0
- package/dist/types/uikit/DraggablePanel/DrggablePanel.d.ts +43 -0
- package/dist/types/uikit/DraggablePanel/_types.d.ts +5 -0
- package/dist/types/uikit/DraggablePanel/index.d.ts +1 -0
- package/dist/types/uikit/DropDown/DropDown.d.ts +3 -0
- package/dist/types/uikit/DropDown/_types.d.ts +31 -0
- package/dist/types/uikit/DropDown/index.d.ts +2 -0
- package/dist/types/uikit/EditorButtonBar/EditorButtonBar.d.ts +4 -0
- package/dist/types/uikit/EditorButtonBar/_Data.d.ts +12 -0
- package/dist/types/uikit/EditorButtonBar/_types.d.ts +59 -0
- package/dist/types/uikit/EditorButtonBar/index.d.ts +2 -0
- package/dist/types/uikit/ErrorSummary/ErrorSummary.d.ts +3 -0
- package/dist/types/uikit/ErrorSummary/_types.d.ts +9 -0
- package/dist/types/uikit/ErrorSummary/index.d.ts +2 -0
- package/dist/types/uikit/FlexDiv/FlexDiv.d.ts +3 -0
- package/dist/types/uikit/FlexDiv/_types.d.ts +28 -0
- package/dist/types/uikit/FlexDiv/index.d.ts +2 -0
- package/dist/types/uikit/Grouper/Grouper.d.ts +3 -0
- package/dist/types/uikit/Grouper/_types.d.ts +16 -0
- package/dist/types/uikit/Grouper/index.d.ts +2 -0
- package/dist/types/uikit/Icon/Icon.d.ts +3 -0
- package/dist/types/uikit/Icon/_types.d.ts +102 -0
- package/dist/types/uikit/Icon/iconRegistry.d.ts +16 -0
- package/dist/types/uikit/Icon/index.d.ts +2 -0
- package/dist/types/uikit/IconButton/IconButton.d.ts +3 -0
- package/dist/types/uikit/IconButton/_types.d.ts +32 -0
- package/dist/types/uikit/IconButton/index.d.ts +2 -0
- package/dist/types/uikit/Logos/Logos.d.ts +2 -0
- package/dist/types/uikit/Logos/_types.d.ts +5 -0
- package/dist/types/uikit/Logos/index.d.ts +2 -0
- package/dist/types/uikit/MessageInput/ExcerptList/ExcerptList.d.ts +2 -0
- package/dist/types/uikit/MessageInput/ExcerptList/_types.d.ts +15 -0
- package/dist/types/uikit/MessageInput/FileList/FileList.d.ts +2 -0
- package/dist/types/uikit/MessageInput/FileList/_types.d.ts +6 -0
- package/dist/types/uikit/MessageInput/InputField/MessageInput.d.ts +2 -0
- package/dist/types/uikit/MessageInput/InputField/_types.d.ts +36 -0
- package/dist/types/uikit/MessageInput/UserList/UserList.d.ts +5 -0
- package/dist/types/uikit/MessageInput/UserList/_types.d.ts +40 -0
- package/dist/types/uikit/MessageInput/_Data.d.ts +6 -0
- package/dist/types/uikit/MessageInput/_types.d.ts +42 -0
- package/dist/types/uikit/MessageInput/index.d.ts +4 -0
- package/dist/types/uikit/Overlay/Overlay.d.ts +3 -0
- package/dist/types/uikit/Overlay/_types.d.ts +9 -0
- package/dist/types/uikit/Overlay/index.d.ts +2 -0
- package/dist/types/uikit/Pager/Pager.d.ts +3 -0
- package/dist/types/uikit/Pager/_types.d.ts +10 -0
- package/dist/types/uikit/Pager/index.d.ts +2 -0
- package/dist/types/uikit/Progress/DoneCheck/DoneCheck.d.ts +3 -0
- package/dist/types/uikit/Progress/DoneCheck/_types.d.ts +11 -0
- package/dist/types/uikit/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/types/uikit/Progress/ProgressIndicator/_types.d.ts +11 -0
- package/dist/types/uikit/Progress/index.d.ts +4 -0
- package/dist/types/uikit/RadioButton/RadioButton.d.ts +3 -0
- package/dist/types/uikit/RadioButton/_types.d.ts +20 -0
- package/dist/types/uikit/RadioButton/index.d.ts +2 -0
- package/dist/types/uikit/RadioButtonList/RadioButtonList.d.ts +3 -0
- package/dist/types/uikit/RadioButtonList/_types.d.ts +20 -0
- package/dist/types/uikit/RadioButtonList/index.d.ts +2 -0
- package/dist/types/uikit/Slider/Slider.d.ts +3 -0
- package/dist/types/uikit/Slider/_types.d.ts +17 -0
- package/dist/types/uikit/Slider/index.d.ts +2 -0
- package/dist/types/uikit/Spacer/Spacer.d.ts +3 -0
- package/dist/types/uikit/Spacer/_types.d.ts +3 -0
- package/dist/types/uikit/Spacer/index.d.ts +2 -0
- package/dist/types/uikit/Switch/Switch.d.ts +3 -0
- package/dist/types/uikit/Switch/_types.d.ts +12 -0
- package/dist/types/uikit/Switch/index.d.ts +2 -0
- package/dist/types/uikit/TabBar/TabBar.d.ts +3 -0
- package/dist/types/uikit/TabBar/_types.d.ts +47 -0
- package/dist/types/uikit/TabBar/index.d.ts +2 -0
- package/dist/types/uikit/TextArea/TextArea.d.ts +3 -0
- package/dist/types/uikit/TextArea/_types.d.ts +38 -0
- package/dist/types/uikit/TextArea/index.d.ts +2 -0
- package/dist/types/uikit/Textfield/TextField.d.ts +3 -0
- package/dist/types/uikit/Textfield/_types.d.ts +77 -0
- package/dist/types/uikit/Textfield/index.d.ts +2 -0
- package/dist/types/uikit/UIButton/UIButton.d.ts +3 -0
- package/dist/types/uikit/UIButton/_types.d.ts +42 -0
- package/dist/types/uikit/UIButton/index.d.ts +2 -0
- package/dist/types/uikit/UIButtonBar/UIButtonBar.d.ts +2 -0
- package/dist/types/uikit/UIButtonBar/_types.d.ts +14 -0
- package/dist/types/uikit/UIButtonBar/index.d.ts +2 -0
- package/dist/types/uikit/UICard/UICard.d.ts +3 -0
- package/dist/types/uikit/UICard/_types.d.ts +11 -0
- package/dist/types/uikit/UICard/index.d.ts +2 -0
- package/dist/types/uikit/UIChip/UIChip.d.ts +3 -0
- package/dist/types/uikit/UIChip/_types.d.ts +19 -0
- package/dist/types/uikit/UIChip/index.d.ts +3 -0
- package/dist/types/uikit/UIFileIcon/UIFileIcon.d.ts +3 -0
- package/dist/types/uikit/UIFileIcon/_types.d.ts +17 -0
- package/dist/types/uikit/UIFileIcon/index.d.ts +2 -0
- package/dist/types/uikit/UILabel/UILabel.d.ts +2 -0
- package/dist/types/uikit/UILabel/_types.d.ts +9 -0
- package/dist/types/uikit/UILabel/index.d.ts +2 -0
- package/dist/types/uikit/sharedTypes.d.ts +21 -0
- package/dist/types/util/debounce.d.ts +10 -0
- package/dist/types/util/flexBox.d.ts +11 -0
- package/dist/types/util/utils.d.ts +33 -0
- package/package.json +74 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Transition, Variants } from 'motion/react';
|
|
2
|
+
export interface DotProps {
|
|
3
|
+
size?: number;
|
|
4
|
+
topOffset?: number;
|
|
5
|
+
rightOffset?: number;
|
|
6
|
+
border?: number;
|
|
7
|
+
position?: 'inline' | 'corner';
|
|
8
|
+
state?: 'red' | 'yellow' | 'green' | 'blue' | 'grey';
|
|
9
|
+
color?: string;
|
|
10
|
+
transition?: Transition;
|
|
11
|
+
motionValues?: Variants;
|
|
12
|
+
show?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_VARIANTS: Variants;
|
|
15
|
+
export declare const DEFAULT_TRANSITION: Transition;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
export interface DraggablePanelProps {
|
|
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 declare const DraggablePanel: React.MemoExoticComponent<(props: DraggablePanelProps) => import("react/jsx-runtime").JSX.Element>;
|
|
34
|
+
export type DragHandleProps = {
|
|
35
|
+
width?: number;
|
|
36
|
+
height?: number;
|
|
37
|
+
radius?: number;
|
|
38
|
+
stroke?: number;
|
|
39
|
+
strokeColor?: string;
|
|
40
|
+
color?: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const DragHandle: React.MemoExoticComponent<(props: Readonly<DragHandleProps>) => import("react/jsx-runtime").JSX.Element>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DraggablePanel, type DraggablePanelProps } from './DrggablePanel';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type DropDownOption = {
|
|
2
|
+
label?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
};
|
|
6
|
+
export interface DropDownProps {
|
|
7
|
+
name?: string;
|
|
8
|
+
options?: DropDownOption[];
|
|
9
|
+
selectedIndex?: number;
|
|
10
|
+
selectedValue?: string;
|
|
11
|
+
placeholder?: boolean;
|
|
12
|
+
borderRadius?: number;
|
|
13
|
+
validate?: boolean;
|
|
14
|
+
iconColor?: string;
|
|
15
|
+
bgColor?: string;
|
|
16
|
+
width?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
paddingLeft?: number | string;
|
|
19
|
+
paddingRight?: number | string;
|
|
20
|
+
paddingTops?: number | string;
|
|
21
|
+
iconSize?: number;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
unframed?: boolean;
|
|
24
|
+
focused?: boolean;
|
|
25
|
+
gap?: number;
|
|
26
|
+
size?: 'small' | 'medium' | 'large';
|
|
27
|
+
onChange?: (index: number, option: DropDownOption) => void;
|
|
28
|
+
onBlur?: (value: string) => void;
|
|
29
|
+
onValidate?: (state: boolean) => void;
|
|
30
|
+
onFocus?: () => void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EditorButtonBarProps, RenderGroupProps } from './_types';
|
|
3
|
+
export declare const EditorButtonBar: React.MemoExoticComponent<(props: EditorButtonBarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export declare const RenderGroup: React.MemoExoticComponent<(props: RenderGroupProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DropDownOption } from '../DropDown';
|
|
2
|
+
import { type ButtonBarButton, type ButtonBarGroup, type EditControls } from './_types';
|
|
3
|
+
export declare const coreButtons: {
|
|
4
|
+
[key: string]: ButtonBarButton;
|
|
5
|
+
};
|
|
6
|
+
export declare const styles: DropDownOption[];
|
|
7
|
+
export declare const buttonGroups: {
|
|
8
|
+
[key: string]: ButtonBarGroup;
|
|
9
|
+
};
|
|
10
|
+
export declare const editControls: {
|
|
11
|
+
[key: string]: EditControls;
|
|
12
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DropDownOption } from '../DropDown';
|
|
3
|
+
import type { ToolTip } from '../sharedTypes';
|
|
4
|
+
export type EditControls = {
|
|
5
|
+
buttons?: ButtonBarGroup[];
|
|
6
|
+
styles?: DropDownOption[];
|
|
7
|
+
download?: ButtonBarButton;
|
|
8
|
+
};
|
|
9
|
+
export type ButtonBarButton = {
|
|
10
|
+
icon?: string;
|
|
11
|
+
toolTip?: string;
|
|
12
|
+
command?: any;
|
|
13
|
+
shortcut?: Shortcut;
|
|
14
|
+
id?: FormattingOption;
|
|
15
|
+
};
|
|
16
|
+
export type ButtonBarGroup = {
|
|
17
|
+
name?: string;
|
|
18
|
+
buttons?: ButtonBarButton[];
|
|
19
|
+
};
|
|
20
|
+
export type Shortcut = {
|
|
21
|
+
modifier?: 'meta' | 'shift';
|
|
22
|
+
key?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare enum FormattingOption {
|
|
25
|
+
hilight = "hilight",
|
|
26
|
+
bold = "bold",
|
|
27
|
+
italic = "italic",
|
|
28
|
+
underline = "underline",
|
|
29
|
+
strikethrough = "strikethrough",
|
|
30
|
+
list = "list",
|
|
31
|
+
orderedList = "ordered list",
|
|
32
|
+
taskList = "task list",
|
|
33
|
+
sinkList = "sink list",
|
|
34
|
+
raiseList = "raise list",
|
|
35
|
+
undo = "undo",
|
|
36
|
+
redo = "redo",
|
|
37
|
+
download = "download",
|
|
38
|
+
more = "more",
|
|
39
|
+
copy = "copy",
|
|
40
|
+
link = "link"
|
|
41
|
+
}
|
|
42
|
+
export interface EditorButtonBarProps {
|
|
43
|
+
shortSize?: number;
|
|
44
|
+
mediumSize?: number;
|
|
45
|
+
state?: 'small' | 'medium' | 'regular' | 'auto';
|
|
46
|
+
activeFormats?: string[];
|
|
47
|
+
activeStyle?: 'h1' | 'h2' | 'h3' | 'p';
|
|
48
|
+
disabledFormats?: string[];
|
|
49
|
+
onCommand?: (command: any, e: React.MouseEvent<any> | undefined) => void;
|
|
50
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
51
|
+
}
|
|
52
|
+
export interface RenderGroupProps {
|
|
53
|
+
onCommand?: (command: any, e: React.MouseEvent<any>) => void;
|
|
54
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
55
|
+
buttonGroup: ButtonBarGroup;
|
|
56
|
+
activeFormats?: string[];
|
|
57
|
+
disabledFormats?: string[];
|
|
58
|
+
state?: 'regular' | 'small' | 'medium';
|
|
59
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Transition } from 'motion/react';
|
|
2
|
+
export interface FlexDivProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: any;
|
|
5
|
+
scrollY?: boolean;
|
|
6
|
+
scrollX?: boolean;
|
|
7
|
+
absolute?: boolean;
|
|
8
|
+
background?: string;
|
|
9
|
+
direction?: 'row' | 'column';
|
|
10
|
+
alignItems?: 'start' | 'center' | 'end' | 'between';
|
|
11
|
+
justify?: 'start' | 'top' | 'center' | 'end' | 'bottom' | 'between';
|
|
12
|
+
width?: number | 'grow' | 'fill' | 'fit' | 'viewport' | 'auto';
|
|
13
|
+
height?: number | 'grow' | 'fill' | 'fit' | 'viewport' | 'auto';
|
|
14
|
+
maxWidth?: number | string;
|
|
15
|
+
centerSelf?: boolean | string;
|
|
16
|
+
flex?: number;
|
|
17
|
+
reverse?: boolean;
|
|
18
|
+
wrap?: boolean;
|
|
19
|
+
border?: string;
|
|
20
|
+
padding?: number | string;
|
|
21
|
+
margin?: number | string;
|
|
22
|
+
enter?: any;
|
|
23
|
+
exit?: any;
|
|
24
|
+
animate?: any;
|
|
25
|
+
transition?: Transition;
|
|
26
|
+
variants?: any;
|
|
27
|
+
gap?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GrouperProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
toggle?: boolean;
|
|
4
|
+
open?: boolean;
|
|
5
|
+
hasIcon?: boolean;
|
|
6
|
+
iconName?: string;
|
|
7
|
+
iconSize?: number;
|
|
8
|
+
frameSize?: number;
|
|
9
|
+
border?: number;
|
|
10
|
+
count?: number | string;
|
|
11
|
+
hideNull?: boolean;
|
|
12
|
+
showFilterBadge?: boolean;
|
|
13
|
+
unframed?: boolean;
|
|
14
|
+
onChange?: (state: boolean) => void;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
stroke?: number;
|
|
6
|
+
strokeColor?: string;
|
|
7
|
+
fillColor?: string;
|
|
8
|
+
toggle?: boolean;
|
|
9
|
+
pointer?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onClick?: (e: React.MouseEvent<SVGElement, MouseEvent>) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare enum IconNames {
|
|
14
|
+
home = "home",
|
|
15
|
+
inbox = "inbox",
|
|
16
|
+
sparkle = "sparkle",
|
|
17
|
+
people = "people",
|
|
18
|
+
wallet = "wallet",
|
|
19
|
+
invoice = "invoice",
|
|
20
|
+
payment = "payment",
|
|
21
|
+
heart = "heart",
|
|
22
|
+
clock = "clock",
|
|
23
|
+
book = "book",
|
|
24
|
+
search = "search",
|
|
25
|
+
filter = "filter",
|
|
26
|
+
more = "more",
|
|
27
|
+
unchecked = "unchecked",
|
|
28
|
+
checked = "checked",
|
|
29
|
+
partial = "partial",
|
|
30
|
+
chevronDown = "chevron down",
|
|
31
|
+
chevronUp = "chevron up",
|
|
32
|
+
plus = "plus",
|
|
33
|
+
plusCircle = "plus circle",
|
|
34
|
+
x = "x",
|
|
35
|
+
gpAssist = "g-p assist",
|
|
36
|
+
upload = "upload",
|
|
37
|
+
download = "download",
|
|
38
|
+
share = "share",
|
|
39
|
+
checkCircle = "check circle",
|
|
40
|
+
person = "person",
|
|
41
|
+
ctrlKey = "ctrl key",
|
|
42
|
+
commandKey = "cmd key",
|
|
43
|
+
gKey = "g key",
|
|
44
|
+
attach = "attach",
|
|
45
|
+
menu = "menu",
|
|
46
|
+
help = "help",
|
|
47
|
+
blank = "blank",
|
|
48
|
+
check = "check",
|
|
49
|
+
message = "message",
|
|
50
|
+
info = "info",
|
|
51
|
+
alert = "alert",
|
|
52
|
+
notification = "notification",
|
|
53
|
+
arrowUp = "arrow up",
|
|
54
|
+
arrowLeft = "arrow left",
|
|
55
|
+
arrowRight = "arrow right",
|
|
56
|
+
navigate = "navigate",
|
|
57
|
+
document = "document",
|
|
58
|
+
refresh = "refresh",
|
|
59
|
+
recentChats = "recent chats",
|
|
60
|
+
trashBin = "trash bin",
|
|
61
|
+
dollar = "dollar",
|
|
62
|
+
apple = "apple",
|
|
63
|
+
view = "view",
|
|
64
|
+
openCircle = "open circle",
|
|
65
|
+
expanded = "expanded",
|
|
66
|
+
concise = "concise",
|
|
67
|
+
moderate = "moderate",
|
|
68
|
+
mail = "mail",
|
|
69
|
+
textDocument = "text document",
|
|
70
|
+
complianceCheck = "compliance check",
|
|
71
|
+
edit = "edit",
|
|
72
|
+
characterBeam = "character beam",
|
|
73
|
+
undo = "undo",
|
|
74
|
+
chat = "chat",
|
|
75
|
+
exclamation = "exclamation",
|
|
76
|
+
chart = "chart",
|
|
77
|
+
lightBulb = "light bulb",
|
|
78
|
+
settings = "settings",
|
|
79
|
+
documentEditor = "document editor",
|
|
80
|
+
chartArrow = "chart arrow",
|
|
81
|
+
focus = "focus",
|
|
82
|
+
briefcase = "briefcase",
|
|
83
|
+
globeLocation = "globe location",
|
|
84
|
+
barChart = "bar chart",
|
|
85
|
+
fontSmaller = "font smaller",
|
|
86
|
+
fontLarger = "font larger",
|
|
87
|
+
copy = "copy",
|
|
88
|
+
stop = "stop",
|
|
89
|
+
like = "like",
|
|
90
|
+
unlike = "unlike",
|
|
91
|
+
bold = "bold",
|
|
92
|
+
italic = "italic",
|
|
93
|
+
underline = "underline",
|
|
94
|
+
strike = "strike",
|
|
95
|
+
bulletList = "bullet list",
|
|
96
|
+
numberedList = "numbered list",
|
|
97
|
+
sink = "sink",
|
|
98
|
+
lift = "lift",
|
|
99
|
+
code = "code",
|
|
100
|
+
taskList = "task list",
|
|
101
|
+
highlight = "highlight"
|
|
102
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
export interface IconRenderProps {
|
|
3
|
+
stroke: number;
|
|
4
|
+
strokeColor: string;
|
|
5
|
+
fillColor: string;
|
|
6
|
+
}
|
|
7
|
+
export type IconLineRenderer = (props: IconRenderProps) => JSX.Element;
|
|
8
|
+
export interface IconDefinition {
|
|
9
|
+
line: IconLineRenderer;
|
|
10
|
+
lineOn?: IconLineRenderer;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Static icon registry created once at module load.
|
|
14
|
+
* Each entry stores only icon line content renderers.
|
|
15
|
+
*/
|
|
16
|
+
export declare const STATIC_ICON_REGISTRY: Map<string, IconDefinition>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Transition, Variants } from 'motion/react';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { ToolTip } from '../sharedTypes';
|
|
4
|
+
export interface IconButtonProps {
|
|
5
|
+
frameSize?: number;
|
|
6
|
+
iconSize?: number;
|
|
7
|
+
icon?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
colorOn?: string;
|
|
11
|
+
fillColor?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
bgColor?: string;
|
|
14
|
+
bgColorOn?: string;
|
|
15
|
+
bgColorHover?: string;
|
|
16
|
+
toggle?: boolean;
|
|
17
|
+
hover?: boolean;
|
|
18
|
+
toggleIcon?: boolean;
|
|
19
|
+
isToggled?: boolean;
|
|
20
|
+
showDot?: boolean;
|
|
21
|
+
count?: number;
|
|
22
|
+
transition?: Transition;
|
|
23
|
+
label?: string;
|
|
24
|
+
border?: boolean;
|
|
25
|
+
variants?: Variants;
|
|
26
|
+
initial?: string;
|
|
27
|
+
animate?: string;
|
|
28
|
+
exit?: string;
|
|
29
|
+
borderRadius?: number;
|
|
30
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
31
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export interface LogoProps {
|
|
2
|
+
image?: 'zoom' | 'impossible foods' | 'gong' | 'seattle seahawks' | 'smile' | 'drift' | 'taylor amde' | 'gp' | 'gpmark' | 'envu' | 'pdf' | 'G2Leader' | 'reviews' | 'G2Logo' | 'apple' | 'yahoo' | 'outlook' | 'outlook-com' | 'google' | 'gptype' | 'gpgia' | 'linkedin' | 'stripe' | string;
|
|
3
|
+
color?: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ToolTip } from '../../sharedTypes';
|
|
2
|
+
export type DocExcerpt = {
|
|
3
|
+
content?: string;
|
|
4
|
+
docTitle?: string;
|
|
5
|
+
range?: {
|
|
6
|
+
to: number;
|
|
7
|
+
from: number;
|
|
8
|
+
} | null;
|
|
9
|
+
docID?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface ExcerptListProps {
|
|
12
|
+
excerpts?: DocExcerpt[];
|
|
13
|
+
onChange?: (excerpts: DocExcerpt[]) => void;
|
|
14
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ToolTip } from '../../sharedTypes';
|
|
3
|
+
import type { DocExcerpt } from '../ExcerptList/_types';
|
|
4
|
+
import type { UserPresence } from '../UserList/_types';
|
|
5
|
+
import type { JurisdictionFocus, SendMessage } from '../_types';
|
|
6
|
+
export interface MessageInputProps {
|
|
7
|
+
maxHeight?: number;
|
|
8
|
+
focused?: boolean;
|
|
9
|
+
height?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
role?: string;
|
|
13
|
+
showFilters?: boolean;
|
|
14
|
+
isFetching?: boolean;
|
|
15
|
+
isStreaming?: boolean;
|
|
16
|
+
isShort?: boolean;
|
|
17
|
+
error?: string | null;
|
|
18
|
+
files?: File[];
|
|
19
|
+
excerpts?: DocExcerpt[];
|
|
20
|
+
users?: UserPresence[];
|
|
21
|
+
currentUser?: string;
|
|
22
|
+
owner?: string;
|
|
23
|
+
presenceID?: string;
|
|
24
|
+
jurisdiction?: JurisdictionFocus | null;
|
|
25
|
+
jurisdictionClick?: () => void;
|
|
26
|
+
attachClick?: (e: React.MouseEvent<any> | undefined) => void;
|
|
27
|
+
onChangeFiles?: (files: File[]) => void;
|
|
28
|
+
onChangeExcerpts?: (excerpts: DocExcerpt[]) => void;
|
|
29
|
+
onTogglePrompt?: (presence: UserPresence) => void;
|
|
30
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
31
|
+
onChange?: (prompt: string) => void;
|
|
32
|
+
onBlur?: () => void;
|
|
33
|
+
onFocus?: () => void;
|
|
34
|
+
onSend?: (message: SendMessage) => void;
|
|
35
|
+
onStop?: () => void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type UserListProps } from './_types';
|
|
3
|
+
declare function UserListComponent(props: Readonly<UserListProps>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const UserList: React.MemoExoticComponent<typeof UserListComponent>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ToolTip } from '../../sharedTypes';
|
|
2
|
+
export type UserPresence = {
|
|
3
|
+
id?: string;
|
|
4
|
+
first?: string;
|
|
5
|
+
last?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
bgColor?: string;
|
|
10
|
+
conversationID?: string;
|
|
11
|
+
promptState?: PrompState;
|
|
12
|
+
promptContent?: string;
|
|
13
|
+
docID?: string;
|
|
14
|
+
docRange?: {
|
|
15
|
+
from: number;
|
|
16
|
+
to: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare enum PrompState {
|
|
20
|
+
Idle = "idle",
|
|
21
|
+
Disabled = "disabled",
|
|
22
|
+
Enabled = "enabled"
|
|
23
|
+
}
|
|
24
|
+
export declare enum Role {
|
|
25
|
+
Owner = "owner",
|
|
26
|
+
Editor = "editor",
|
|
27
|
+
Viewer = "viewer"
|
|
28
|
+
}
|
|
29
|
+
export type PresensceColor = {
|
|
30
|
+
background?: string;
|
|
31
|
+
color?: string;
|
|
32
|
+
};
|
|
33
|
+
export interface UserListProps {
|
|
34
|
+
userPresence?: UserPresence[];
|
|
35
|
+
owner?: string;
|
|
36
|
+
currentUser?: string;
|
|
37
|
+
presenceID?: string;
|
|
38
|
+
onTogglePrompt?: (userPresence: UserPresence) => void;
|
|
39
|
+
onToolTip?: (tip: ToolTip | null) => void;
|
|
40
|
+
}
|