@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.
Files changed (145) hide show
  1. package/README.md +80 -0
  2. package/dist/colors.css +237 -0
  3. package/dist/flexBox.module.css +85 -0
  4. package/dist/index.esm.js +4831 -0
  5. package/dist/index.esm.js.map +1 -0
  6. package/dist/index.js +4873 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/type.css +16 -0
  9. package/dist/type.module.css +161 -0
  10. package/dist/types/hooks/index.d.ts +2 -0
  11. package/dist/types/hooks/useMayaTheme.d.ts +7 -0
  12. package/dist/types/hooks/useObserveResize.d.ts +9 -0
  13. package/dist/types/hooks/useTheme.d.ts +2 -0
  14. package/dist/types/hooks/useTrackRenders.d.ts +5 -0
  15. package/dist/types/index.d.ts +74 -0
  16. package/dist/types/providers/ThemeProvider.d.ts +9 -0
  17. package/dist/types/providers/index.d.ts +1 -0
  18. package/dist/types/theme/colors/colors.d.ts +4 -0
  19. package/dist/types/theme/colors/types.d.ts +160 -0
  20. package/dist/types/theme/corners/corners.d.ts +2 -0
  21. package/dist/types/theme/corners/types.d.ts +10 -0
  22. package/dist/types/theme/index.d.ts +5 -0
  23. package/dist/types/theme/themes.d.ts +12 -0
  24. package/dist/types/theme/type/type.d.ts +2 -0
  25. package/dist/types/theme/type/types.d.ts +20 -0
  26. package/dist/types/uikit/Avatar/Avatar.d.ts +3 -0
  27. package/dist/types/uikit/Avatar/AvatarInline.stories.d.ts +7 -0
  28. package/dist/types/uikit/Avatar/_types.d.ts +19 -0
  29. package/dist/types/uikit/Avatar/index.d.ts +2 -0
  30. package/dist/types/uikit/AvatarGroup/AvatarGroup.d.ts +3 -0
  31. package/dist/types/uikit/AvatarGroup/_types.d.ts +21 -0
  32. package/dist/types/uikit/AvatarGroup/index.d.ts +2 -0
  33. package/dist/types/uikit/Badge/Badge.d.ts +3 -0
  34. package/dist/types/uikit/Badge/_types.d.ts +5 -0
  35. package/dist/types/uikit/Badge/index.d.ts +2 -0
  36. package/dist/types/uikit/CheckBox/CheckBox.d.ts +3 -0
  37. package/dist/types/uikit/CheckBox/_types.d.ts +8 -0
  38. package/dist/types/uikit/CheckBox/index.d.ts +2 -0
  39. package/dist/types/uikit/DivInput/DivInput.d.ts +3 -0
  40. package/dist/types/uikit/DivInput/_types.d.ts +21 -0
  41. package/dist/types/uikit/DivInput/index.d.ts +2 -0
  42. package/dist/types/uikit/DocIcon/DocIcons.d.ts +3 -0
  43. package/dist/types/uikit/DocIcon/_types.d.ts +4 -0
  44. package/dist/types/uikit/DocIcon/index.d.ts +2 -0
  45. package/dist/types/uikit/Dot/Dot.d.ts +3 -0
  46. package/dist/types/uikit/Dot/_types.d.ts +15 -0
  47. package/dist/types/uikit/Dot/index.d.ts +2 -0
  48. package/dist/types/uikit/DraggablePanel/DrggablePanel.d.ts +43 -0
  49. package/dist/types/uikit/DraggablePanel/_types.d.ts +5 -0
  50. package/dist/types/uikit/DraggablePanel/index.d.ts +1 -0
  51. package/dist/types/uikit/DropDown/DropDown.d.ts +3 -0
  52. package/dist/types/uikit/DropDown/_types.d.ts +31 -0
  53. package/dist/types/uikit/DropDown/index.d.ts +2 -0
  54. package/dist/types/uikit/EditorButtonBar/EditorButtonBar.d.ts +4 -0
  55. package/dist/types/uikit/EditorButtonBar/_Data.d.ts +12 -0
  56. package/dist/types/uikit/EditorButtonBar/_types.d.ts +59 -0
  57. package/dist/types/uikit/EditorButtonBar/index.d.ts +2 -0
  58. package/dist/types/uikit/ErrorSummary/ErrorSummary.d.ts +3 -0
  59. package/dist/types/uikit/ErrorSummary/_types.d.ts +9 -0
  60. package/dist/types/uikit/ErrorSummary/index.d.ts +2 -0
  61. package/dist/types/uikit/FlexDiv/FlexDiv.d.ts +3 -0
  62. package/dist/types/uikit/FlexDiv/_types.d.ts +28 -0
  63. package/dist/types/uikit/FlexDiv/index.d.ts +2 -0
  64. package/dist/types/uikit/Grouper/Grouper.d.ts +3 -0
  65. package/dist/types/uikit/Grouper/_types.d.ts +16 -0
  66. package/dist/types/uikit/Grouper/index.d.ts +2 -0
  67. package/dist/types/uikit/Icon/Icon.d.ts +3 -0
  68. package/dist/types/uikit/Icon/_types.d.ts +102 -0
  69. package/dist/types/uikit/Icon/iconRegistry.d.ts +16 -0
  70. package/dist/types/uikit/Icon/index.d.ts +2 -0
  71. package/dist/types/uikit/IconButton/IconButton.d.ts +3 -0
  72. package/dist/types/uikit/IconButton/_types.d.ts +32 -0
  73. package/dist/types/uikit/IconButton/index.d.ts +2 -0
  74. package/dist/types/uikit/Logos/Logos.d.ts +2 -0
  75. package/dist/types/uikit/Logos/_types.d.ts +5 -0
  76. package/dist/types/uikit/Logos/index.d.ts +2 -0
  77. package/dist/types/uikit/MessageInput/ExcerptList/ExcerptList.d.ts +2 -0
  78. package/dist/types/uikit/MessageInput/ExcerptList/_types.d.ts +15 -0
  79. package/dist/types/uikit/MessageInput/FileList/FileList.d.ts +2 -0
  80. package/dist/types/uikit/MessageInput/FileList/_types.d.ts +6 -0
  81. package/dist/types/uikit/MessageInput/InputField/MessageInput.d.ts +2 -0
  82. package/dist/types/uikit/MessageInput/InputField/_types.d.ts +36 -0
  83. package/dist/types/uikit/MessageInput/UserList/UserList.d.ts +5 -0
  84. package/dist/types/uikit/MessageInput/UserList/_types.d.ts +40 -0
  85. package/dist/types/uikit/MessageInput/_Data.d.ts +6 -0
  86. package/dist/types/uikit/MessageInput/_types.d.ts +42 -0
  87. package/dist/types/uikit/MessageInput/index.d.ts +4 -0
  88. package/dist/types/uikit/Overlay/Overlay.d.ts +3 -0
  89. package/dist/types/uikit/Overlay/_types.d.ts +9 -0
  90. package/dist/types/uikit/Overlay/index.d.ts +2 -0
  91. package/dist/types/uikit/Pager/Pager.d.ts +3 -0
  92. package/dist/types/uikit/Pager/_types.d.ts +10 -0
  93. package/dist/types/uikit/Pager/index.d.ts +2 -0
  94. package/dist/types/uikit/Progress/DoneCheck/DoneCheck.d.ts +3 -0
  95. package/dist/types/uikit/Progress/DoneCheck/_types.d.ts +11 -0
  96. package/dist/types/uikit/Progress/ProgressIndicator/ProgressIndicator.d.ts +3 -0
  97. package/dist/types/uikit/Progress/ProgressIndicator/_types.d.ts +11 -0
  98. package/dist/types/uikit/Progress/index.d.ts +4 -0
  99. package/dist/types/uikit/RadioButton/RadioButton.d.ts +3 -0
  100. package/dist/types/uikit/RadioButton/_types.d.ts +20 -0
  101. package/dist/types/uikit/RadioButton/index.d.ts +2 -0
  102. package/dist/types/uikit/RadioButtonList/RadioButtonList.d.ts +3 -0
  103. package/dist/types/uikit/RadioButtonList/_types.d.ts +20 -0
  104. package/dist/types/uikit/RadioButtonList/index.d.ts +2 -0
  105. package/dist/types/uikit/Slider/Slider.d.ts +3 -0
  106. package/dist/types/uikit/Slider/_types.d.ts +17 -0
  107. package/dist/types/uikit/Slider/index.d.ts +2 -0
  108. package/dist/types/uikit/Spacer/Spacer.d.ts +3 -0
  109. package/dist/types/uikit/Spacer/_types.d.ts +3 -0
  110. package/dist/types/uikit/Spacer/index.d.ts +2 -0
  111. package/dist/types/uikit/Switch/Switch.d.ts +3 -0
  112. package/dist/types/uikit/Switch/_types.d.ts +12 -0
  113. package/dist/types/uikit/Switch/index.d.ts +2 -0
  114. package/dist/types/uikit/TabBar/TabBar.d.ts +3 -0
  115. package/dist/types/uikit/TabBar/_types.d.ts +47 -0
  116. package/dist/types/uikit/TabBar/index.d.ts +2 -0
  117. package/dist/types/uikit/TextArea/TextArea.d.ts +3 -0
  118. package/dist/types/uikit/TextArea/_types.d.ts +38 -0
  119. package/dist/types/uikit/TextArea/index.d.ts +2 -0
  120. package/dist/types/uikit/Textfield/TextField.d.ts +3 -0
  121. package/dist/types/uikit/Textfield/_types.d.ts +77 -0
  122. package/dist/types/uikit/Textfield/index.d.ts +2 -0
  123. package/dist/types/uikit/UIButton/UIButton.d.ts +3 -0
  124. package/dist/types/uikit/UIButton/_types.d.ts +42 -0
  125. package/dist/types/uikit/UIButton/index.d.ts +2 -0
  126. package/dist/types/uikit/UIButtonBar/UIButtonBar.d.ts +2 -0
  127. package/dist/types/uikit/UIButtonBar/_types.d.ts +14 -0
  128. package/dist/types/uikit/UIButtonBar/index.d.ts +2 -0
  129. package/dist/types/uikit/UICard/UICard.d.ts +3 -0
  130. package/dist/types/uikit/UICard/_types.d.ts +11 -0
  131. package/dist/types/uikit/UICard/index.d.ts +2 -0
  132. package/dist/types/uikit/UIChip/UIChip.d.ts +3 -0
  133. package/dist/types/uikit/UIChip/_types.d.ts +19 -0
  134. package/dist/types/uikit/UIChip/index.d.ts +3 -0
  135. package/dist/types/uikit/UIFileIcon/UIFileIcon.d.ts +3 -0
  136. package/dist/types/uikit/UIFileIcon/_types.d.ts +17 -0
  137. package/dist/types/uikit/UIFileIcon/index.d.ts +2 -0
  138. package/dist/types/uikit/UILabel/UILabel.d.ts +2 -0
  139. package/dist/types/uikit/UILabel/_types.d.ts +9 -0
  140. package/dist/types/uikit/UILabel/index.d.ts +2 -0
  141. package/dist/types/uikit/sharedTypes.d.ts +21 -0
  142. package/dist/types/util/debounce.d.ts +10 -0
  143. package/dist/types/util/flexBox.d.ts +11 -0
  144. package/dist/types/util/utils.d.ts +33 -0
  145. package/package.json +74 -0
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { DocsProps } from './_types';
3
+ export declare const DocIcons: React.MemoExoticComponent<(props: DocsProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,4 @@
1
+ export interface DocsProps {
2
+ type?: 'pdf' | 'docx' | 'text' | 'not supported';
3
+ height?: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ export { DocIcons } from './DocIcons';
2
+ export type { DocsProps } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { type DotProps } from './_types';
3
+ export declare const Dot: React.MemoExoticComponent<(props: DotProps) => import("react/jsx-runtime").JSX.Element>;
@@ -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,2 @@
1
+ export { Dot } from './Dot';
2
+ export type { DotProps } from './_types';
@@ -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,5 @@
1
+ export type Constraint = {
2
+ initial: number;
3
+ max: number;
4
+ min: number;
5
+ };
@@ -0,0 +1 @@
1
+ export { DraggablePanel, type DraggablePanelProps } from './DrggablePanel';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { DropDownProps } from './_types';
3
+ export declare const DropDown: React.MemoExoticComponent<(props: DropDownProps) => import("react/jsx-runtime").JSX.Element>;
@@ -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,2 @@
1
+ export { DropDown } from './DropDown';
2
+ export type { DropDownOption, DropDownProps } from './_types';
@@ -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,2 @@
1
+ export { EditorButtonBar } from './EditorButtonBar';
2
+ export type { EditorButtonBarProps } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { ErrorSummaryProps } from './_types';
3
+ export declare const ErrorSummary: React.MemoExoticComponent<(props: ErrorSummaryProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,9 @@
1
+ export type ErrorMessage = {
2
+ id?: string;
3
+ title?: string;
4
+ bullets?: string[];
5
+ };
6
+ export interface ErrorSummaryProps {
7
+ entries?: ErrorMessage[];
8
+ errors?: any[];
9
+ }
@@ -0,0 +1,2 @@
1
+ export { ErrorSummary } from './ErrorSummary';
2
+ export type { ErrorMessage, ErrorSummaryProps } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { FlexDivProps } from './_types';
3
+ export declare const FlexDiv: React.NamedExoticComponent<FlexDivProps & React.RefAttributes<HTMLDivElement>>;
@@ -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,2 @@
1
+ export { FlexDiv } from './FlexDiv';
2
+ export type { FlexDivProps } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { GrouperProps } from './_types';
3
+ export declare const Grouper: React.MemoExoticComponent<(props: GrouperProps) => import("react/jsx-runtime").JSX.Element>;
@@ -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,2 @@
1
+ export { Grouper } from './Grouper';
2
+ export type { GrouperProps } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { IconProps } from './_types';
3
+ export declare const Icon: React.MemoExoticComponent<(props: IconProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -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,2 @@
1
+ export { Icon } from './Icon';
2
+ export { IconNames } from './_types';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { IconButtonProps } from './_types';
3
+ export declare const IconButton: React.MemoExoticComponent<(props: IconButtonProps) => import("react/jsx-runtime").JSX.Element>;
@@ -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,2 @@
1
+ export { IconButton } from './IconButton';
2
+ export type { IconButtonProps } from './_types';
@@ -0,0 +1,2 @@
1
+ import type { LogoProps } from './_types';
2
+ export declare function Logos(props: Readonly<LogoProps>): import("react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ export { Logos } from './Logos';
2
+ export type { LogoProps } from './_types';
@@ -0,0 +1,2 @@
1
+ import type { ExcerptListProps } from './_types';
2
+ export declare const ExcerptList: import("react").NamedExoticComponent<Readonly<ExcerptListProps>>;
@@ -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,2 @@
1
+ import type { FileListProps } from './_types';
2
+ export declare const FileList: import("react").NamedExoticComponent<Readonly<FileListProps>>;
@@ -0,0 +1,6 @@
1
+ import type { ToolTip } from '../../sharedTypes';
2
+ export interface FileListProps {
3
+ files?: File[];
4
+ onChange?: (files: File[]) => void;
5
+ onToolTip?: (tip: ToolTip | null) => void;
6
+ }
@@ -0,0 +1,2 @@
1
+ import type { MessageInputProps } from './_types';
2
+ export declare function MessageInput(props: Readonly<MessageInputProps>): import("react/jsx-runtime").JSX.Element;
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ export declare const placeholders: {
2
+ short: string;
3
+ long: string;
4
+ file: string;
5
+ invalid: string;
6
+ };