eidotter 0.19.0 → 0.19.3
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/LICENSE.md +0 -0
- package/README.md +27 -11
- package/dist/components/Accordion/components/AccordionFill.d.ts +0 -0
- package/dist/components/Accordion/components/Section.d.ts +0 -0
- package/dist/components/Accordion/components/index.d.ts +0 -0
- package/dist/components/Accordion/index.d.ts +0 -0
- package/dist/components/Alert/components/Alert.d.ts +0 -0
- package/dist/components/Alert/components/index.d.ts +0 -0
- package/dist/components/Alert/index.d.ts +0 -0
- package/dist/components/Badge/components/Badge.d.ts +0 -0
- package/dist/components/Badge/components/index.d.ts +0 -0
- package/dist/components/Badge/index.d.ts +0 -0
- package/dist/components/Breadcrumb/components/Breadcrumb.d.ts +0 -0
- package/dist/components/Breadcrumb/components/index.d.ts +0 -0
- package/dist/components/Breadcrumb/index.d.ts +0 -0
- package/dist/components/Button/components/Button.d.ts +0 -0
- package/dist/components/Button/components/index.d.ts +0 -0
- package/dist/components/Button/index.d.ts +0 -0
- package/dist/components/Card/components/Card.d.ts +0 -0
- package/dist/components/Card/components/index.d.ts +0 -0
- package/dist/components/Card/index.d.ts +0 -0
- package/dist/components/Chat/components/ChatContainer.d.ts +0 -0
- package/dist/components/Chat/components/ChatHistory.d.ts +0 -0
- package/dist/components/Chat/components/ChatInput.d.ts +0 -0
- package/dist/components/Chat/components/ChatMessage.d.ts +0 -0
- package/dist/components/Chat/components/index.d.ts +0 -0
- package/dist/components/Chat/index.d.ts +0 -0
- package/dist/components/Checkbox/components/Checkbox.d.ts +0 -0
- package/dist/components/Checkbox/components/index.d.ts +0 -0
- package/dist/components/Checkbox/index.d.ts +0 -0
- package/dist/components/CommandPrompt/components/CommandPrompt.d.ts +0 -0
- package/dist/components/CommandPrompt/components/index.d.ts +0 -0
- package/dist/components/CommandPrompt/index.d.ts +0 -0
- package/dist/components/FilterBar/components/FilterBar.d.ts +0 -0
- package/dist/components/FilterBar/components/index.d.ts +0 -0
- package/dist/components/FilterBar/index.d.ts +0 -0
- package/dist/components/Footer/components/Footer.d.ts +0 -0
- package/dist/components/Footer/components/index.d.ts +0 -0
- package/dist/components/Footer/index.d.ts +0 -0
- package/dist/components/Header/components/Header.d.ts +0 -0
- package/dist/components/Header/components/index.d.ts +0 -0
- package/dist/components/Header/index.d.ts +0 -0
- package/dist/components/Icon/components/Icon.d.ts +0 -0
- package/dist/components/Icon/components/index.d.ts +0 -0
- package/dist/components/Icon/index.d.ts +0 -0
- package/dist/components/InlineExpand/components/InlineExpand.d.ts +0 -0
- package/dist/components/InlineExpand/components/index.d.ts +0 -0
- package/dist/components/InlineExpand/index.d.ts +0 -0
- package/dist/components/Input/components/Input.d.ts +0 -0
- package/dist/components/Input/components/index.d.ts +0 -0
- package/dist/components/Input/index.d.ts +0 -0
- package/dist/components/Modal/components/Modal.d.ts +0 -0
- package/dist/components/Modal/components/index.d.ts +0 -0
- package/dist/components/Modal/index.d.ts +0 -0
- package/dist/components/Nav/components/Nav.d.ts +0 -0
- package/dist/components/Nav/components/index.d.ts +0 -0
- package/dist/components/Nav/index.d.ts +0 -0
- package/dist/components/Notification/components/Notification.d.ts +0 -0
- package/dist/components/Notification/components/index.d.ts +0 -0
- package/dist/components/Notification/index.d.ts +0 -0
- package/dist/components/Progress/components/Progress.d.ts +0 -0
- package/dist/components/Progress/components/index.d.ts +0 -0
- package/dist/components/Progress/index.d.ts +0 -0
- package/dist/components/RetroEffects/components/RetroEffects.d.ts +0 -0
- package/dist/components/RetroEffects/components/index.d.ts +0 -0
- package/dist/components/RetroEffects/index.d.ts +0 -0
- package/dist/components/Separator/components/Separator.d.ts +0 -0
- package/dist/components/Separator/components/index.d.ts +0 -0
- package/dist/components/Separator/index.d.ts +0 -0
- package/dist/components/Stat/components/Stat.d.ts +0 -0
- package/dist/components/Stat/components/index.d.ts +0 -0
- package/dist/components/Stat/index.d.ts +0 -0
- package/dist/components/Switch/components/Switch.d.ts +0 -0
- package/dist/components/Switch/components/index.d.ts +0 -0
- package/dist/components/Switch/index.d.ts +0 -0
- package/dist/components/Tabs/components/Tabs.d.ts +0 -0
- package/dist/components/Tabs/components/index.d.ts +0 -0
- package/dist/components/Tabs/index.d.ts +0 -0
- package/dist/components/Tag/components/Tag.d.ts +0 -0
- package/dist/components/Tag/components/TagGroup.d.ts +0 -0
- package/dist/components/Tag/components/index.d.ts +0 -0
- package/dist/components/Tag/index.d.ts +0 -0
- package/dist/components/Terminal/components/Terminal.d.ts +0 -0
- package/dist/components/Terminal/components/index.d.ts +0 -0
- package/dist/components/Terminal/index.d.ts +0 -0
- package/dist/components/TextScramble/components/TextScramble.d.ts +0 -0
- package/dist/components/TextScramble/components/index.d.ts +0 -0
- package/dist/components/TextScramble/index.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineAxis.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineContainer.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineContent.d.ts +0 -0
- package/dist/components/TimelineContainer/components/TimelineEntryCard.d.ts +0 -0
- package/dist/components/TimelineContainer/components/ZoomControls.d.ts +0 -0
- package/dist/components/TimelineContainer/components/index.d.ts +0 -0
- package/dist/components/TimelineContainer/components/timelineUtils.d.ts +0 -0
- package/dist/components/TimelineContainer/components/timelineUtils.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/types.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useDrillDown.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useDrillDown.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useSelection.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useSelection.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useZoom.d.ts +0 -0
- package/dist/components/TimelineContainer/components/useZoom.test.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/DayView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/HourView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/MonthView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/YearView.d.ts +0 -0
- package/dist/components/TimelineContainer/components/views/index.d.ts +0 -0
- package/dist/components/TimelineContainer/index.d.ts +0 -0
- package/dist/components/TimelineNode/components/TimelineNode.d.ts +0 -0
- package/dist/components/TimelineNode/components/index.d.ts +0 -0
- package/dist/components/TimelineNode/index.d.ts +0 -0
- package/dist/components/registry.d.ts +0 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +70 -62
- package/dist/index.umd.js +4 -4
- package/guidelines/README.md +10 -6
- package/guidelines/components.md +0 -0
- package/guidelines/patterns.md +0 -0
- package/package.json +3 -3
- package/src/styles/fonts/Flexi_IBM_VGA_LICENSE.txt +0 -0
- package/src/styles/fonts/Flexi_IBM_VGA_True.ttf +0 -0
- package/src/styles/fonts.css +0 -0
- package/src/styles/theme.amber-mono.css +2 -2
- package/src/styles/theme.cga-amber.css +2 -2
- package/src/styles/theme.cga-mode4-p0.css +2 -2
- package/src/styles/theme.cga-mode4-p1.css +2 -2
- package/src/styles/theme.cga-mode5.css +2 -2
- package/src/styles/tokens.css +2 -2
- package/tailwind.preset.cjs +58 -13
- package/tailwind.preset.enhanced.cjs +21 -36
package/LICENSE.md
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -12,9 +12,7 @@ npm install eidotter
|
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
14
|
import { Terminal, Button, Alert } from 'eidotter';
|
|
15
|
-
import 'eidotter/
|
|
16
|
-
import 'eidotter/styles'; // Component CSS (includes Tailwind utilities)
|
|
17
|
-
import 'eidotter/tokens.css'; // Design token CSS variables (required)
|
|
15
|
+
import 'eidotter/styles'; // All styles: fonts, tokens, components
|
|
18
16
|
|
|
19
17
|
function App() {
|
|
20
18
|
return (
|
|
@@ -32,18 +30,29 @@ function App() {
|
|
|
32
30
|
|
|
33
31
|
### Basic (no Tailwind needed)
|
|
34
32
|
|
|
35
|
-
Import the styles,
|
|
33
|
+
Import the styles. All component styling, fonts, and design tokens are pre-compiled — no build tools required.
|
|
36
34
|
|
|
37
35
|
```tsx
|
|
38
|
-
import 'eidotter/
|
|
39
|
-
import 'eidotter/styles'; // Component CSS (includes Tailwind utilities)
|
|
40
|
-
import 'eidotter/tokens.css'; // CSS variable definitions
|
|
36
|
+
import 'eidotter/styles'; // Fonts, tokens, components, Tailwind utilities
|
|
41
37
|
|
|
42
38
|
// Optional: import a theme
|
|
43
39
|
import 'eidotter/themes/amber-mono.css';
|
|
44
40
|
```
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
Individual imports are still available for granular control:
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import 'eidotter/fonts.css'; // Flexi IBM VGA True @font-face
|
|
46
|
+
import 'eidotter/tokens.css'; // CSS variable definitions
|
|
47
|
+
import 'eidotter/styles'; // Component CSS + Tailwind utilities
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Font:** eiDotter uses [Flexi IBM VGA True v2](https://int10h.org/blog/2018/05/flexi-ibm-vga-scalable-truetype-font/) — an aspect-corrected vector remake of the IBM VGA BIOS font (CC BY-SA 4.0). The "True" variant matches authentic 4:3 VGA proportions with an extended character set (Greek, Cyrillic, Hebrew, Latin). The `fonts.css` import loads the bundled TTF via `@font-face`.
|
|
51
|
+
|
|
52
|
+
Two fontFamily tokens are exported, with distinct intent:
|
|
53
|
+
|
|
54
|
+
- **`font-dos`** → `"Flexi IBM VGA True", monospace` — the default. Preserves the terminal aesthetic on degraded `@font-face` loads (strict CSP, web-fonts disabled, reader mode).
|
|
55
|
+
- **`font-dos-fallback`** → `monospace` only — intentionally bare, as a **fail-loud diagnostic** utility for surfaces that want to surface font-loading failures explicitly. Compose `font-dos font-dos-fallback` when you want strict Flexi-or-nothing behavior.
|
|
47
56
|
|
|
48
57
|
### With Tailwind CSS
|
|
49
58
|
|
|
@@ -68,12 +77,19 @@ module.exports = {
|
|
|
68
77
|
</div>
|
|
69
78
|
```
|
|
70
79
|
|
|
71
|
-
|
|
80
|
+
The preset auto-registers `tailwindcss-react-aria-components` and `tailwindcss-animate` via require-if-available. Consumers who already list either plugin in their own Tailwind config may see duplicate-variant warnings from Tailwind — either rely on the preset's registration alone, or pass those plugins explicitly in your config (they're idempotent, but the duplicate registration is noisy).
|
|
72
81
|
|
|
73
|
-
|
|
74
|
-
|
|
82
|
+
#### Migration from 0.19.1 and earlier
|
|
83
|
+
|
|
84
|
+
In 0.19.2 the two older presets (`eidotter/tailwind.preset` and `eidotter/tailwind.preset.enhanced`) were merged into a single `eidotter/tailwind.preset` that includes all tokens plus the React Aria + animate plugins. The enhanced subpath is now a deprecated alias that logs a one-time `console.warn` on load and will be removed in 0.21.0:
|
|
85
|
+
|
|
86
|
+
```diff
|
|
87
|
+
- presets: [require('eidotter/tailwind.preset.enhanced')]
|
|
88
|
+
+ presets: [require('eidotter/tailwind.preset')]
|
|
75
89
|
```
|
|
76
90
|
|
|
91
|
+
No behavior change — the merged preset already carries everything the enhanced preset used to add.
|
|
92
|
+
|
|
77
93
|
## Available Components (33)
|
|
78
94
|
|
|
79
95
|
| Component | Description |
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|