eidotter 0.13.1 → 0.14.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 (123) hide show
  1. package/LICENSE.md +0 -0
  2. package/README.md +0 -0
  3. package/dist/components/Accordion/components/AccordionFill.d.ts +0 -0
  4. package/dist/components/Accordion/components/Section.d.ts +0 -0
  5. package/dist/components/Accordion/components/index.d.ts +0 -0
  6. package/dist/components/Accordion/index.d.ts +0 -0
  7. package/dist/components/Alert/components/Alert.d.ts +0 -0
  8. package/dist/components/Alert/components/index.d.ts +0 -0
  9. package/dist/components/Alert/index.d.ts +0 -0
  10. package/dist/components/Badge/components/Badge.d.ts +0 -0
  11. package/dist/components/Badge/components/index.d.ts +0 -0
  12. package/dist/components/Badge/index.d.ts +0 -0
  13. package/dist/components/Breadcrumb/components/Breadcrumb.d.ts +0 -0
  14. package/dist/components/Breadcrumb/components/index.d.ts +0 -0
  15. package/dist/components/Breadcrumb/index.d.ts +0 -0
  16. package/dist/components/Button/components/Button.d.ts +0 -0
  17. package/dist/components/Button/components/index.d.ts +0 -0
  18. package/dist/components/Button/index.d.ts +0 -0
  19. package/dist/components/Card/components/Card.d.ts +0 -0
  20. package/dist/components/Card/components/index.d.ts +0 -0
  21. package/dist/components/Card/index.d.ts +0 -0
  22. package/dist/components/Chat/components/ChatContainer.d.ts +36 -0
  23. package/dist/components/Chat/components/ChatHistory.d.ts +32 -0
  24. package/dist/components/Chat/components/ChatInput.d.ts +22 -0
  25. package/dist/components/Chat/components/ChatMessage.d.ts +25 -0
  26. package/dist/components/Chat/components/index.d.ts +8 -0
  27. package/dist/components/Chat/index.d.ts +2 -0
  28. package/dist/components/Checkbox/components/Checkbox.d.ts +0 -0
  29. package/dist/components/Checkbox/components/index.d.ts +0 -0
  30. package/dist/components/Checkbox/index.d.ts +0 -0
  31. package/dist/components/CommandPrompt/components/CommandPrompt.d.ts +1 -0
  32. package/dist/components/CommandPrompt/components/index.d.ts +0 -0
  33. package/dist/components/CommandPrompt/index.d.ts +0 -0
  34. package/dist/components/FilterBar/components/FilterBar.d.ts +0 -0
  35. package/dist/components/FilterBar/components/index.d.ts +0 -0
  36. package/dist/components/FilterBar/index.d.ts +0 -0
  37. package/dist/components/Icon/components/Icon.d.ts +0 -0
  38. package/dist/components/Icon/components/index.d.ts +0 -0
  39. package/dist/components/Icon/index.d.ts +0 -0
  40. package/dist/components/InlineExpand/components/InlineExpand.d.ts +0 -0
  41. package/dist/components/InlineExpand/components/index.d.ts +0 -0
  42. package/dist/components/InlineExpand/index.d.ts +0 -0
  43. package/dist/components/Input/components/Input.d.ts +0 -0
  44. package/dist/components/Input/components/index.d.ts +0 -0
  45. package/dist/components/Input/index.d.ts +0 -0
  46. package/dist/components/Modal/components/Modal.d.ts +0 -0
  47. package/dist/components/Modal/components/index.d.ts +0 -0
  48. package/dist/components/Modal/index.d.ts +0 -0
  49. package/dist/components/Nav/components/Nav.d.ts +0 -0
  50. package/dist/components/Nav/components/index.d.ts +0 -0
  51. package/dist/components/Nav/index.d.ts +0 -0
  52. package/dist/components/Progress/components/Progress.d.ts +0 -0
  53. package/dist/components/Progress/components/index.d.ts +0 -0
  54. package/dist/components/Progress/index.d.ts +0 -0
  55. package/dist/components/RetroEffects/components/RetroEffects.d.ts +0 -0
  56. package/dist/components/RetroEffects/components/index.d.ts +0 -0
  57. package/dist/components/RetroEffects/index.d.ts +0 -0
  58. package/dist/components/Separator/components/Separator.d.ts +0 -0
  59. package/dist/components/Separator/components/index.d.ts +0 -0
  60. package/dist/components/Separator/index.d.ts +0 -0
  61. package/dist/components/Stat/components/Stat.d.ts +0 -0
  62. package/dist/components/Stat/components/index.d.ts +0 -0
  63. package/dist/components/Stat/index.d.ts +0 -0
  64. package/dist/components/Switch/components/Switch.d.ts +0 -0
  65. package/dist/components/Switch/components/index.d.ts +0 -0
  66. package/dist/components/Switch/index.d.ts +0 -0
  67. package/dist/components/Tabs/components/Tabs.d.ts +0 -0
  68. package/dist/components/Tabs/components/index.d.ts +0 -0
  69. package/dist/components/Tabs/index.d.ts +0 -0
  70. package/dist/components/Tag/components/Tag.d.ts +0 -0
  71. package/dist/components/Tag/components/TagGroup.d.ts +0 -0
  72. package/dist/components/Tag/components/index.d.ts +0 -0
  73. package/dist/components/Tag/index.d.ts +0 -0
  74. package/dist/components/Terminal/components/Terminal.d.ts +4 -0
  75. package/dist/components/Terminal/components/index.d.ts +0 -0
  76. package/dist/components/Terminal/index.d.ts +0 -0
  77. package/dist/components/TextScramble/components/TextScramble.d.ts +0 -0
  78. package/dist/components/TextScramble/components/index.d.ts +0 -0
  79. package/dist/components/TextScramble/index.d.ts +0 -0
  80. package/dist/components/TimelineContainer/components/TimelineAxis.d.ts +0 -0
  81. package/dist/components/TimelineContainer/components/TimelineContainer.d.ts +0 -0
  82. package/dist/components/TimelineContainer/components/TimelineContent.d.ts +0 -0
  83. package/dist/components/TimelineContainer/components/TimelineEntryCard.d.ts +0 -0
  84. package/dist/components/TimelineContainer/components/ZoomControls.d.ts +0 -0
  85. package/dist/components/TimelineContainer/components/index.d.ts +0 -0
  86. package/dist/components/TimelineContainer/components/timelineUtils.d.ts +0 -0
  87. package/dist/components/TimelineContainer/components/timelineUtils.test.d.ts +0 -0
  88. package/dist/components/TimelineContainer/components/types.d.ts +0 -0
  89. package/dist/components/TimelineContainer/components/useSelection.d.ts +0 -0
  90. package/dist/components/TimelineContainer/components/useSelection.test.d.ts +0 -0
  91. package/dist/components/TimelineContainer/components/useZoom.d.ts +0 -0
  92. package/dist/components/TimelineContainer/components/useZoom.test.d.ts +0 -0
  93. package/dist/components/TimelineContainer/components/views/DayView.d.ts +0 -0
  94. package/dist/components/TimelineContainer/components/views/HourView.d.ts +0 -0
  95. package/dist/components/TimelineContainer/components/views/MonthView.d.ts +0 -0
  96. package/dist/components/TimelineContainer/components/views/YearView.d.ts +0 -0
  97. package/dist/components/TimelineContainer/components/views/index.d.ts +0 -0
  98. package/dist/components/TimelineContainer/index.d.ts +0 -0
  99. package/dist/components/TimelineEntry/components/TimelineEntry.d.ts +0 -0
  100. package/dist/components/TimelineEntry/components/index.d.ts +0 -0
  101. package/dist/components/TimelineEntry/index.d.ts +0 -0
  102. package/dist/components/TimelineList/components/TimelineList.d.ts +0 -0
  103. package/dist/components/TimelineList/components/index.d.ts +0 -0
  104. package/dist/components/TimelineList/index.d.ts +0 -0
  105. package/dist/components/TimelineNode/components/TimelineNode.d.ts +0 -0
  106. package/dist/components/TimelineNode/components/index.d.ts +0 -0
  107. package/dist/components/TimelineNode/index.d.ts +0 -0
  108. package/dist/components/registry.d.ts +0 -0
  109. package/dist/eidotter.css +1 -1
  110. package/dist/index.d.ts +3 -1
  111. package/dist/index.es.js +810 -660
  112. package/dist/index.umd.js +4 -4
  113. package/guidelines/README.md +0 -0
  114. package/guidelines/components.md +0 -0
  115. package/guidelines/patterns.md +0 -0
  116. package/package.json +1 -1
  117. package/src/styles/theme.amber-mono.css +0 -0
  118. package/src/styles/theme.cga-amber.css +0 -0
  119. package/src/styles/theme.cga-mode4-p0.css +0 -0
  120. package/src/styles/theme.cga-mode4-p1.css +0 -0
  121. package/src/styles/theme.cga-mode5.css +0 -0
  122. package/src/styles/tokens.css +0 -0
  123. package/tailwind.preset.cjs +0 -0
package/LICENSE.md CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import './ChatContainer.css';
3
+ import { ChatMessageEntry } from './ChatHistory';
4
+ export interface ChatContainerProps {
5
+ /** Array of messages to display */
6
+ messages: ChatMessageEntry[];
7
+ /** Called when the user sends a message */
8
+ onSend: (message: string) => void;
9
+ /** Whether the last assistant message is still streaming */
10
+ isStreaming?: boolean;
11
+ /** Prompt character for the input field */
12
+ inputPrompt?: string;
13
+ /** Prefix shown before user messages */
14
+ userPrefix?: string;
15
+ /** Prefix shown before assistant messages */
16
+ assistantPrefix?: string;
17
+ /** Placeholder text for the input field */
18
+ placeholder?: string;
19
+ /** Whether the input is disabled */
20
+ disabled?: boolean;
21
+ /** Additional CSS class name */
22
+ className?: string;
23
+ }
24
+ /**
25
+ * Complete DOS-themed chat interface composing ChatHistory and ChatInput.
26
+ *
27
+ * Designed to be placed inside a Terminal component for the full DOS window
28
+ * experience, but works standalone too.
29
+ *
30
+ * ```tsx
31
+ * <Terminal title="ADOS Chat">
32
+ * <ChatContainer messages={messages} onSend={send} isStreaming={loading} />
33
+ * </Terminal>
34
+ * ```
35
+ */
36
+ export declare const ChatContainer: React.FC<ChatContainerProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import './ChatHistory.css';
3
+ /** Data shape for a single chat message */
4
+ export interface ChatMessageEntry {
5
+ /** Unique message identifier */
6
+ id: string;
7
+ /** The sender role */
8
+ role: 'user' | 'assistant' | 'system';
9
+ /** Plain text content */
10
+ content: string;
11
+ /** When the message was created */
12
+ createdAt?: Date | string | number;
13
+ }
14
+ export interface ChatHistoryProps {
15
+ /** Array of messages to display */
16
+ messages: ChatMessageEntry[];
17
+ /** Whether the last assistant message is still streaming */
18
+ isStreaming?: boolean;
19
+ /** Prefix shown before user messages */
20
+ userPrefix?: string;
21
+ /** Prefix shown before assistant messages */
22
+ assistantPrefix?: string;
23
+ /** Additional CSS class name */
24
+ className?: string;
25
+ }
26
+ /**
27
+ * Scrollable chat message history with auto-scroll and screen reader support.
28
+ *
29
+ * Uses `role="log"` for accessible announcement of new messages.
30
+ * Follows the data-driven list pattern (TimelineList precedent).
31
+ */
32
+ export declare const ChatHistory: React.FC<ChatHistoryProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import '../../../styles/keyframes.css';
3
+ import './ChatInput.css';
4
+ export interface ChatInputProps {
5
+ /** Called when the user sends a message */
6
+ onSend: (message: string) => void;
7
+ /** Prompt character displayed before the input */
8
+ prompt?: string;
9
+ /** Placeholder text when input is empty */
10
+ placeholder?: string;
11
+ /** Whether the input is disabled */
12
+ disabled?: boolean;
13
+ /** Additional CSS class name */
14
+ className?: string;
15
+ }
16
+ /**
17
+ * DOS-styled multiline chat input with Enter-to-send and Shift+Enter for newlines.
18
+ *
19
+ * Auto-grows as the user types, up to a max height. Shows a blinking cursor
20
+ * when not focused.
21
+ */
22
+ export declare const ChatInput: React.FC<ChatInputProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import '../../../styles/keyframes.css';
3
+ import './ChatMessage.css';
4
+ export interface ChatMessageProps {
5
+ /** The role of the message sender */
6
+ role: 'user' | 'assistant' | 'system';
7
+ /** The text content of the message */
8
+ content: string;
9
+ /** Whether this message is currently being streamed */
10
+ isStreaming?: boolean;
11
+ /** Prefix shown before user messages */
12
+ userPrefix?: string;
13
+ /** Prefix shown before assistant messages */
14
+ assistantPrefix?: string;
15
+ /** Additional CSS class name */
16
+ className?: string;
17
+ }
18
+ /**
19
+ * A single chat message rendered in DOS terminal style.
20
+ *
21
+ * User messages display with a `>` prefix, assistant messages with `C:\>`,
22
+ * and system messages appear dimmed. When `isStreaming` is true, a blinking
23
+ * block cursor appears after the content.
24
+ */
25
+ export declare const ChatMessage: React.FC<ChatMessageProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,8 @@
1
+ export { ChatMessage } from './ChatMessage';
2
+ export type { ChatMessageProps } from './ChatMessage';
3
+ export { ChatHistory } from './ChatHistory';
4
+ export type { ChatHistoryProps, ChatMessageEntry } from './ChatHistory';
5
+ export { ChatInput } from './ChatInput';
6
+ export type { ChatInputProps } from './ChatInput';
7
+ export { ChatContainer } from './ChatContainer';
8
+ export type { ChatContainerProps } from './ChatContainer';
@@ -0,0 +1,2 @@
1
+ export { ChatMessage, ChatHistory, ChatInput, ChatContainer } from './components';
2
+ export type { ChatMessageProps, ChatHistoryProps, ChatMessageEntry, ChatInputProps, ChatContainerProps, } from './components';
File without changes
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../styles/keyframes.css';
2
3
  import './CommandPrompt.css';
3
4
  export interface CommandPromptProps {
4
5
  /**
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../styles/keyframes.css';
2
3
  import './Terminal.css';
3
4
  export interface TerminalProps {
4
5
  /**
@@ -19,14 +20,17 @@ export interface TerminalProps {
19
20
  resizable?: boolean;
20
21
  /**
21
22
  * Whether the terminal window can be minimized
23
+ * @default false
22
24
  */
23
25
  minimizable?: boolean;
24
26
  /**
25
27
  * Whether the terminal window can be maximized
28
+ * @default false
26
29
  */
27
30
  maximizable?: boolean;
28
31
  /**
29
32
  * Whether the terminal window can be closed
33
+ * @default false
30
34
  */
31
35
  closeable?: boolean;
32
36
  /**
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes