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/guidelines/README.md
CHANGED
|
@@ -17,9 +17,7 @@ eidotter provides 33 ready-to-use components with consistent DOS terminal stylin
|
|
|
17
17
|
|
|
18
18
|
```tsx
|
|
19
19
|
import { Button, Card, Input } from 'eidotter';
|
|
20
|
-
import 'eidotter/
|
|
21
|
-
import 'eidotter/styles'; // Component CSS (includes Tailwind utilities)
|
|
22
|
-
import 'eidotter/tokens.css'; // CSS variable definitions (required)
|
|
20
|
+
import 'eidotter/styles'; // All styles: fonts, tokens, components, Tailwind utilities
|
|
23
21
|
|
|
24
22
|
function App() {
|
|
25
23
|
return (
|
|
@@ -90,14 +88,20 @@ function App() {
|
|
|
90
88
|
### CSS Import (required)
|
|
91
89
|
|
|
92
90
|
```tsx
|
|
93
|
-
import 'eidotter/
|
|
94
|
-
import 'eidotter/styles'; // Component CSS (includes compiled Tailwind utilities)
|
|
95
|
-
import 'eidotter/tokens.css'; // Design token CSS variables
|
|
91
|
+
import 'eidotter/styles'; // All styles: fonts, tokens, components, Tailwind utilities
|
|
96
92
|
|
|
97
93
|
// Optional: import a theme
|
|
98
94
|
import 'eidotter/themes/amber-mono.css';
|
|
99
95
|
```
|
|
100
96
|
|
|
97
|
+
Individual imports are still available if you need granular control (e.g., providing your own font or overriding tokens):
|
|
98
|
+
|
|
99
|
+
```tsx
|
|
100
|
+
import 'eidotter/fonts.css'; // Flexi IBM VGA True @font-face
|
|
101
|
+
import 'eidotter/tokens.css'; // Design token CSS variables
|
|
102
|
+
import 'eidotter/styles'; // Component CSS + Tailwind utilities
|
|
103
|
+
```
|
|
104
|
+
|
|
101
105
|
### Tailwind Preset (optional)
|
|
102
106
|
|
|
103
107
|
Use eidotter tokens as Tailwind classes in your own code:
|
package/guidelines/components.md
CHANGED
|
File without changes
|
package/guidelines/patterns.md
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eidotter",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A DOS Themed Design System",
|
|
6
6
|
"main": "./dist/index.umd.js",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@eslint/js": "^10.0.1",
|
|
90
90
|
"@figma/plugin-typings": "^1.107.0-beta.2",
|
|
91
|
-
"@figma/rest-api-spec": "^0.
|
|
91
|
+
"@figma/rest-api-spec": "^0.37.0",
|
|
92
92
|
"@storybook/addon-a11y": "^10.2.7",
|
|
93
93
|
"@storybook/addon-designs": "^11.1.2",
|
|
94
94
|
"@storybook/addon-docs": "^10.2.7",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@types/react-dom": "^19.0.0",
|
|
107
107
|
"@vitejs/plugin-react": "^5.1.2",
|
|
108
108
|
"autoprefixer": "^10.4.27",
|
|
109
|
-
"chromatic": "^
|
|
109
|
+
"chromatic": "^16.2.0",
|
|
110
110
|
"cross-env": "^10.1.0",
|
|
111
111
|
"dotenv": "^17.3.1",
|
|
112
112
|
"eslint": "^10.0.3",
|
|
File without changes
|
|
File without changes
|
package/src/styles/fonts.css
CHANGED
|
File without changes
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
--color-cga-magenta-glow: rgba(255, 85, 255, 0.5); /** Magenta glow at 50% opacity */
|
|
30
30
|
--color-cga-blue-glow: rgba(85, 85, 255, 0.5); /** Blue glow at 50% opacity */
|
|
31
31
|
--color-cga-white-glow: rgba(255, 245, 224, 0.5); /** Warm white glow at 50% opacity */
|
|
32
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
33
|
-
--typography-font-family-fallback: monospace; /**
|
|
32
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
33
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
34
34
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
35
35
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
36
36
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
--color-semantic-alert-success: #122010;
|
|
34
34
|
--color-semantic-alert-warning: #352800;
|
|
35
35
|
--color-semantic-alert-error: #430500;
|
|
36
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
37
|
-
--typography-font-family-fallback: monospace; /**
|
|
36
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
37
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
38
38
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
39
39
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
40
40
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
--color-semantic-alert-success: #050300;
|
|
53
53
|
--color-semantic-alert-warning: #050300;
|
|
54
54
|
--color-semantic-alert-error: #050300;
|
|
55
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
56
|
-
--typography-font-family-fallback: monospace; /**
|
|
55
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
56
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
57
57
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
58
58
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
59
59
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
--color-semantic-alert-success: #050300;
|
|
53
53
|
--color-semantic-alert-warning: #050300;
|
|
54
54
|
--color-semantic-alert-error: #050300;
|
|
55
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
56
|
-
--typography-font-family-fallback: monospace; /**
|
|
55
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
56
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
57
57
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
58
58
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
59
59
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
--color-semantic-alert-success: #050300;
|
|
53
53
|
--color-semantic-alert-warning: #050300;
|
|
54
54
|
--color-semantic-alert-error: #050300;
|
|
55
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
56
|
-
--typography-font-family-fallback: monospace; /**
|
|
55
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
56
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
57
57
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
58
58
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
59
59
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
package/src/styles/tokens.css
CHANGED
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
--color-semantic-alert-success: #122010; /** Warm dark green for success alerts */
|
|
34
34
|
--color-semantic-alert-warning: #352800; /** Dark amber for warning alerts */
|
|
35
35
|
--color-semantic-alert-error: #430500; /** Warm dark red for error alerts */
|
|
36
|
-
--typography-font-family-primary: 'Flexi IBM VGA True'; /** Flexi IBM VGA True v2
|
|
37
|
-
--typography-font-family-fallback: monospace; /**
|
|
36
|
+
--typography-font-family-primary: 'Flexi IBM VGA True', monospace; /** Flexi IBM VGA True v2 (CC BY-SA 4.0) with a `monospace` fallback that preserves DOS aesthetic on @font-face failure. */
|
|
37
|
+
--typography-font-family-fallback: monospace; /** Bare `monospace` stack — fail-loud diagnostic counterpart to `primary`. Compose with `primary` when consumers want strict Flexi-or-nothing rendering. */
|
|
38
38
|
--typography-font-size-text-xs: 1.125rem; /** 18px — smallest body text */
|
|
39
39
|
--typography-font-size-text-sm: 1.25rem; /** 20px — secondary body text */
|
|
40
40
|
--typography-font-size-text-md: 1.375rem; /** 22px — default body text */
|
package/tailwind.preset.cjs
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Generated from: src/tokens/base.tokens.json
|
|
6
6
|
* Run: npm run build-tokens
|
|
7
7
|
*
|
|
8
|
+
* Includes all design tokens plus optional React Aria and animate plugins.
|
|
9
|
+
*
|
|
8
10
|
* Usage:
|
|
9
11
|
* // tailwind.config.js
|
|
10
12
|
* module.exports = {
|
|
@@ -12,7 +14,23 @@
|
|
|
12
14
|
* }
|
|
13
15
|
*/
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
let reactAriaPlugin;
|
|
18
|
+
try {
|
|
19
|
+
reactAriaPlugin = require('tailwindcss-react-aria-components');
|
|
20
|
+
} catch {
|
|
21
|
+
// tailwindcss-react-aria-components not installed — skip
|
|
22
|
+
reactAriaPlugin = null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
let animatePlugin;
|
|
26
|
+
try {
|
|
27
|
+
animatePlugin = require('tailwindcss-animate');
|
|
28
|
+
} catch {
|
|
29
|
+
// tailwindcss-animate not installed — skip
|
|
30
|
+
animatePlugin = null;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const preset = {
|
|
16
34
|
"theme": {
|
|
17
35
|
"extend": {
|
|
18
36
|
"colors": {
|
|
@@ -36,6 +54,12 @@ module.exports = {
|
|
|
36
54
|
"cga-amber-bright": "#fdca9f",
|
|
37
55
|
"cga-amber-dim": "#9a5700",
|
|
38
56
|
"cga-amber-glow": "#ffb00080",
|
|
57
|
+
"cga-red-glow": "#ff555580",
|
|
58
|
+
"cga-green-glow": "#55ff5580",
|
|
59
|
+
"cga-cyan-glow": "#55ffff80",
|
|
60
|
+
"cga-magenta-glow": "#ff55ff80",
|
|
61
|
+
"cga-blue-glow": "#5555ff80",
|
|
62
|
+
"cga-white-glow": "#fff5e080",
|
|
39
63
|
"dos-bg-primary": "var(--color-semantic-background-primary)",
|
|
40
64
|
"dos-bg-secondary": "var(--color-semantic-background-secondary)",
|
|
41
65
|
"dos-bg-accent": "var(--color-semantic-background-accent)",
|
|
@@ -64,9 +88,6 @@ module.exports = {
|
|
|
64
88
|
"monospace"
|
|
65
89
|
],
|
|
66
90
|
"dos-fallback": [
|
|
67
|
-
"Consolas",
|
|
68
|
-
"Monaco",
|
|
69
|
-
"\"Courier New\"",
|
|
70
91
|
"monospace"
|
|
71
92
|
]
|
|
72
93
|
},
|
|
@@ -96,19 +117,12 @@ module.exports = {
|
|
|
96
117
|
"dos-display-xl": "4.5rem",
|
|
97
118
|
"dos-display-2xl": "5.625rem"
|
|
98
119
|
},
|
|
99
|
-
// Flexi IBM VGA True is a single-weight bitmap-style font. Authentic
|
|
100
|
-
// DOS had no bold variant — emphasis is expressed via color, uppercase,
|
|
101
|
-
// or inverse video. The dos-regular/semibold/bold utilities are kept
|
|
102
|
-
// as aliases all resolving to 400 so existing consumer code using
|
|
103
|
-
// font-dos-bold / font-dos-semibold keeps working without visual change.
|
|
104
|
-
// Mirrors the generated tailwind.preset.js.
|
|
105
120
|
"fontWeight": {
|
|
106
121
|
"dos-regular": "400",
|
|
107
122
|
"dos-semibold": "400",
|
|
108
123
|
"dos-bold": "400"
|
|
109
124
|
},
|
|
110
125
|
"spacing": {
|
|
111
|
-
"dos-0": "0px",
|
|
112
126
|
"dos-1": "4px",
|
|
113
127
|
"dos-2": "8px",
|
|
114
128
|
"dos-3": "12px",
|
|
@@ -121,7 +135,6 @@ module.exports = {
|
|
|
121
135
|
"dos-16": "64px"
|
|
122
136
|
},
|
|
123
137
|
"borderRadius": {
|
|
124
|
-
"dos-none": "0px",
|
|
125
138
|
"dos-sm": "2px",
|
|
126
139
|
"dos-base": "4px"
|
|
127
140
|
},
|
|
@@ -131,8 +144,40 @@ module.exports = {
|
|
|
131
144
|
"dos-glowXs": "0px 0px 8px 0px #FFB00080",
|
|
132
145
|
"dos-glowSm": "0px 0px 10px 0px #FFB00080",
|
|
133
146
|
"dos-glowMd": "0px 0px 20px 0px #FFB00080",
|
|
134
|
-
"dos-glowLg": "0px 0px 30px 0px #FFB00080"
|
|
147
|
+
"dos-glowLg": "0px 0px 30px 0px #FFB00080",
|
|
148
|
+
"dos-glowXsRed": "0px 0px 8px 0px #FF555580",
|
|
149
|
+
"dos-glowSmRed": "0px 0px 10px 0px #FF555580",
|
|
150
|
+
"dos-glowMdRed": "0px 0px 20px 0px #FF555580",
|
|
151
|
+
"dos-glowLgRed": "0px 0px 30px 0px #FF555580",
|
|
152
|
+
"dos-glowXsGreen": "0px 0px 8px 0px #55FF5580",
|
|
153
|
+
"dos-glowSmGreen": "0px 0px 10px 0px #55FF5580",
|
|
154
|
+
"dos-glowMdGreen": "0px 0px 20px 0px #55FF5580",
|
|
155
|
+
"dos-glowLgGreen": "0px 0px 30px 0px #55FF5580",
|
|
156
|
+
"dos-glowXsCyan": "0px 0px 8px 0px #55FFFF80",
|
|
157
|
+
"dos-glowSmCyan": "0px 0px 10px 0px #55FFFF80",
|
|
158
|
+
"dos-glowMdCyan": "0px 0px 20px 0px #55FFFF80",
|
|
159
|
+
"dos-glowLgCyan": "0px 0px 30px 0px #55FFFF80",
|
|
160
|
+
"dos-glowXsMagenta": "0px 0px 8px 0px #FF55FF80",
|
|
161
|
+
"dos-glowSmMagenta": "0px 0px 10px 0px #FF55FF80",
|
|
162
|
+
"dos-glowMdMagenta": "0px 0px 20px 0px #FF55FF80",
|
|
163
|
+
"dos-glowLgMagenta": "0px 0px 30px 0px #FF55FF80",
|
|
164
|
+
"dos-glowXsBlue": "0px 0px 8px 0px #5555FF80",
|
|
165
|
+
"dos-glowSmBlue": "0px 0px 10px 0px #5555FF80",
|
|
166
|
+
"dos-glowMdBlue": "0px 0px 20px 0px #5555FF80",
|
|
167
|
+
"dos-glowLgBlue": "0px 0px 30px 0px #5555FF80",
|
|
168
|
+
"dos-glowXsWhite": "0px 0px 8px 0px #FFFFFF80",
|
|
169
|
+
"dos-glowSmWhite": "0px 0px 10px 0px #FFFFFF80",
|
|
170
|
+
"dos-glowMdWhite": "0px 0px 20px 0px #FFFFFF80",
|
|
171
|
+
"dos-glowLgWhite": "0px 0px 30px 0px #FFFFFF80"
|
|
135
172
|
}
|
|
136
173
|
}
|
|
137
174
|
}
|
|
138
175
|
};
|
|
176
|
+
|
|
177
|
+
preset.plugins = [
|
|
178
|
+
...(preset.plugins || []),
|
|
179
|
+
...(reactAriaPlugin ? [reactAriaPlugin] : []),
|
|
180
|
+
...(animatePlugin ? [animatePlugin] : []),
|
|
181
|
+
];
|
|
182
|
+
|
|
183
|
+
module.exports = preset;
|
|
@@ -1,44 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Deprecated alias for `eidotter/tailwind.preset`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* REMOVE-IN-0.21.0 — grep this marker when preparing the 0.21.0 release to
|
|
5
|
+
* delete this file, the `./tailwind.preset.enhanced` entry in `package.json`
|
|
6
|
+
* `exports`, and the matching entry in `files`.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* module.exports = {
|
|
10
|
-
* presets: [require('eidotter/tailwind.preset.enhanced')],
|
|
11
|
-
* }
|
|
8
|
+
* @note Hand-written — NOT generated by `style-dictionary.config.mjs`.
|
|
9
|
+
* The sibling `tailwind.preset.cjs` IS generated; do not confuse them.
|
|
12
10
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
11
|
+
* In v0.19.2, the base and enhanced presets were merged (#282). The single
|
|
12
|
+
* `tailwind.preset` now includes all design tokens plus React Aria state
|
|
13
|
+
* variants and the animate plugin. This file is a shim so existing consumers
|
|
14
|
+
* don't break on upgrade.
|
|
15
|
+
*
|
|
16
|
+
* Migration:
|
|
17
|
+
* - presets: [require('eidotter/tailwind.preset.enhanced')]
|
|
18
|
+
* + presets: [require('eidotter/tailwind.preset')]
|
|
17
19
|
*/
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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;
|
|
21
|
+
if (!globalThis.__eidotterEnhancedPresetDeprecationWarned) {
|
|
22
|
+
globalThis.__eidotterEnhancedPresetDeprecationWarned = true;
|
|
23
|
+
console.warn(
|
|
24
|
+
"[eidotter] 'eidotter/tailwind.preset.enhanced' is deprecated since 0.19.2 " +
|
|
25
|
+
"and will be removed in 0.21.0. Use 'eidotter/tailwind.preset' instead."
|
|
26
|
+
);
|
|
35
27
|
}
|
|
36
28
|
|
|
37
|
-
module.exports =
|
|
38
|
-
...basePreset,
|
|
39
|
-
plugins: [
|
|
40
|
-
...(basePreset.plugins || []),
|
|
41
|
-
...(reactAriaPlugin ? [reactAriaPlugin] : []),
|
|
42
|
-
...(animatePlugin ? [animatePlugin] : []),
|
|
43
|
-
],
|
|
44
|
-
};
|
|
29
|
+
module.exports = require('./tailwind.preset.cjs');
|