eidotter 0.15.0 → 0.16.1
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 +10 -5
- package/dist/components/Accordion/components/AccordionFill.d.ts +1 -0
- package/dist/components/Accordion/components/Section.d.ts +10 -18
- package/dist/components/Alert/components/Alert.d.ts +13 -23
- package/dist/components/Badge/components/Badge.d.ts +10 -28
- package/dist/components/Breadcrumb/components/Breadcrumb.d.ts +13 -35
- package/dist/components/Button/components/Button.d.ts +3 -43
- package/dist/components/Checkbox/components/Checkbox.d.ts +17 -27
- package/dist/components/FilterBar/components/FilterBar.d.ts +3 -13
- package/dist/components/Footer/components/Footer.d.ts +1 -5
- package/dist/components/Input/components/Input.d.ts +11 -14
- package/dist/components/Modal/components/Modal.d.ts +13 -21
- package/dist/components/Progress/components/Progress.d.ts +18 -41
- package/dist/components/Separator/components/Separator.d.ts +4 -13
- package/dist/components/Stat/components/Stat.d.ts +10 -30
- package/dist/components/Switch/components/Switch.d.ts +16 -36
- package/dist/components/Tabs/components/Tabs.d.ts +14 -45
- package/dist/components/Tag/components/Tag.d.ts +8 -18
- package/dist/components/TimelineContainer/components/TimelineContainer.d.ts +4 -3
- package/dist/components/TimelineContainer/components/TimelineEntryCard.d.ts +9 -5
- package/dist/components/TimelineContainer/components/ZoomControls.d.ts +3 -0
- package/dist/components/TimelineContainer/components/index.d.ts +1 -0
- package/dist/components/TimelineContainer/components/timelineUtils.d.ts +11 -0
- package/dist/components/TimelineContainer/components/useDrillDown.d.ts +42 -0
- package/dist/components/TimelineContainer/components/useDrillDown.test.d.ts +1 -0
- package/dist/eidotter.css +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.es.js +11426 -1821
- package/dist/index.umd.js +28 -10
- package/package.json +15 -2
- package/tailwind.preset.enhanced.cjs +44 -0
- package/dist/components/TimelineEntry/components/TimelineEntry.d.ts +0 -21
- package/dist/components/TimelineEntry/components/index.d.ts +0 -2
- package/dist/components/TimelineEntry/index.d.ts +0 -2
- package/dist/components/TimelineList/components/TimelineList.d.ts +0 -18
- package/dist/components/TimelineList/components/index.d.ts +0 -2
- package/dist/components/TimelineList/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eidotter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A DOS Themed Design System",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"./styles": "./dist/eidotter.css",
|
|
16
16
|
"./tailwind.preset": "./tailwind.preset.cjs",
|
|
17
|
+
"./tailwind.preset.enhanced": "./tailwind.preset.enhanced.cjs",
|
|
17
18
|
"./tokens.css": "./src/styles/tokens.css",
|
|
18
19
|
"./themes/amber-mono.css": "./src/styles/theme.amber-mono.css",
|
|
19
20
|
"./themes/cga-amber.css": "./src/styles/theme.cga-amber.css",
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
"dist/eidotter.css",
|
|
29
30
|
"dist/components",
|
|
30
31
|
"tailwind.preset.cjs",
|
|
32
|
+
"tailwind.preset.enhanced.cjs",
|
|
31
33
|
"src/styles/tokens.css",
|
|
32
34
|
"src/styles/theme.*.css",
|
|
33
35
|
"guidelines"
|
|
@@ -99,11 +101,12 @@
|
|
|
99
101
|
"@types/react": "^19.1.2",
|
|
100
102
|
"@types/react-dom": "^19.0.0",
|
|
101
103
|
"@vitejs/plugin-react": "^5.1.2",
|
|
104
|
+
"autoprefixer": "^10.4.27",
|
|
102
105
|
"chromatic": "^15.2.0",
|
|
103
106
|
"cross-env": "^10.1.0",
|
|
104
107
|
"dotenv": "^17.3.1",
|
|
105
108
|
"eslint": "^10.0.3",
|
|
106
|
-
"eslint-plugin-react-hooks": "^7.1
|
|
109
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
107
110
|
"figma-js": "^1.16.1-0",
|
|
108
111
|
"gh-pages": "^6.3.0",
|
|
109
112
|
"glob": "^13.0.0",
|
|
@@ -111,13 +114,23 @@
|
|
|
111
114
|
"jest": "^30.2.0",
|
|
112
115
|
"jest-environment-jsdom": "^30.0.2",
|
|
113
116
|
"leva": "^0.10.1",
|
|
117
|
+
"postcss": "^8.5.8",
|
|
114
118
|
"remark-gfm": "^4.0.1",
|
|
115
119
|
"storybook": "^10.2.7",
|
|
116
120
|
"style-dictionary": "^5.1.1",
|
|
121
|
+
"tailwind-merge": "^3.5.0",
|
|
122
|
+
"tailwindcss": "^3.4.19",
|
|
123
|
+
"tailwindcss-animate": "^1.0.7",
|
|
124
|
+
"tailwindcss-react-aria-components": "^2.0.1",
|
|
117
125
|
"ts-jest": "^29.4.0",
|
|
118
126
|
"ts-node": "^10.9.2",
|
|
119
127
|
"typescript": "^5.7.3",
|
|
120
128
|
"typescript-eslint": "^8.54.0",
|
|
121
129
|
"vite": "^6.2.0"
|
|
130
|
+
},
|
|
131
|
+
"dependencies": {
|
|
132
|
+
"react-aria": "^3.47.0",
|
|
133
|
+
"react-aria-components": "^1.16.0",
|
|
134
|
+
"react-stately": "^3.45.0"
|
|
122
135
|
}
|
|
123
136
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Eidotter Enhanced Tailwind CSS Preset
|
|
3
|
+
*
|
|
4
|
+
* Extends the base token preset with React Aria state variants
|
|
5
|
+
* and utility plugins for component development.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* // tailwind.config.js
|
|
9
|
+
* module.exports = {
|
|
10
|
+
* presets: [require('eidotter/tailwind.preset.enhanced')],
|
|
11
|
+
* }
|
|
12
|
+
*
|
|
13
|
+
* Or use the base preset without React Aria:
|
|
14
|
+
* module.exports = {
|
|
15
|
+
* presets: [require('eidotter/tailwind.preset')],
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const basePreset = require('./tailwind.preset.cjs');
|
|
20
|
+
|
|
21
|
+
let reactAriaPlugin;
|
|
22
|
+
try {
|
|
23
|
+
reactAriaPlugin = require('tailwindcss-react-aria-components');
|
|
24
|
+
} catch {
|
|
25
|
+
// tailwindcss-react-aria-components not installed — skip
|
|
26
|
+
reactAriaPlugin = null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
let animatePlugin;
|
|
30
|
+
try {
|
|
31
|
+
animatePlugin = require('tailwindcss-animate');
|
|
32
|
+
} catch {
|
|
33
|
+
// tailwindcss-animate not installed — skip
|
|
34
|
+
animatePlugin = null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
module.exports = {
|
|
38
|
+
...basePreset,
|
|
39
|
+
plugins: [
|
|
40
|
+
...(basePreset.plugins || []),
|
|
41
|
+
...(reactAriaPlugin ? [reactAriaPlugin] : []),
|
|
42
|
+
...(animatePlugin ? [animatePlugin] : []),
|
|
43
|
+
],
|
|
44
|
+
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './TimelineEntry.css';
|
|
3
|
-
/** Recognized entry types that map to specific node shapes/variants */
|
|
4
|
-
export type TimelineItemType = 'event' | 'project' | 'milestone';
|
|
5
|
-
export interface TimelineItemProps {
|
|
6
|
-
/** Display date */
|
|
7
|
-
date: string;
|
|
8
|
-
/** Entry title */
|
|
9
|
-
title: string;
|
|
10
|
-
/** Entry type — influences node shape and color */
|
|
11
|
-
type?: TimelineItemType;
|
|
12
|
-
/** Tags displayed in header */
|
|
13
|
-
tags?: string[];
|
|
14
|
-
/** Expandable content */
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
/** Whether entry starts expanded */
|
|
17
|
-
defaultExpanded?: boolean;
|
|
18
|
-
/** Additional CSS class name */
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const TimelineItem: React.FC<TimelineItemProps>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TimelineEntryData } from '../../TimelineContainer/components/types';
|
|
3
|
-
import './TimelineList.css';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use TimelineEntryData from TimelineContainer instead.
|
|
6
|
-
*/
|
|
7
|
-
export type TimelineListEntry = TimelineEntryData;
|
|
8
|
-
export interface TimelineListProps {
|
|
9
|
-
/** Timeline entries to display (rendered in the order provided) */
|
|
10
|
-
entries: TimelineListEntry[];
|
|
11
|
-
/** Additional CSS class name */
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated Use `<TimelineContainer mode="static">` instead.
|
|
16
|
-
* TimelineList will be removed in the next major version.
|
|
17
|
-
*/
|
|
18
|
-
export declare const TimelineList: React.FC<TimelineListProps>;
|