@trinityui/design-system 1.0.2 → 1.0.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/CHANGELOG.md +19 -1
- package/MIGRATION.md +8 -8
- package/README.md +8 -8
- package/dist/trinity.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.3](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.3) (2026-02-24)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **css:** expand trinity.css with comprehensive design tokens ([e1a9f22](https://github.com/Trinity-UI-Components/trinity-design-system/commit/e1a9f22c97d58959afcbf0d4c1aa76a76db52126))
|
|
6
|
+
* simplify dependencies - remove date-pickers, add SimpleTable ([ee02f3e](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ee02f3e299e13173e77355925dca513f3becf8a4))
|
|
7
|
+
* simplify developer experience with essentials entry point ([a7e4a2f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/a7e4a2fb1b221da9c2ee01f1b8c1a851f4e45697))
|
|
8
|
+
* **storybook:** add interactive Component Picker page ([2642326](https://github.com/Trinity-UI-Components/trinity-design-system/commit/2642326fbb68d30c865ea008cdb283fff96562a1))
|
|
9
|
+
* **storybook:** add Trinity branding with custom logo and theme ([8859283](https://github.com/Trinity-UI-Components/trinity-design-system/commit/8859283b58ad77f22b303f0e31f915c0f4f9aecd)), closes [#050742](https://github.com/Trinity-UI-Components/trinity-design-system/issues/050742) [#7841C9](https://github.com/Trinity-UI-Components/trinity-design-system/issues/7841C9)
|
|
10
|
+
* **theme:** add theme presets system for app variations ([ec21481](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ec2148114bfb33b508755675abcd00a0abf3662c))
|
|
11
|
+
* **TopNav:** add white-label logo support with invert option ([0d0a337](https://github.com/Trinity-UI-Components/trinity-design-system/commit/0d0a337de5500ac75919b4ccead9c6b159775600))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **DataCard:** use theme-aware status backgrounds for dark mode ([621a039](https://github.com/Trinity-UI-Components/trinity-design-system/commit/621a039446736238cabb7ed5919333c97145f009)), closes [#F0FDF4](https://github.com/Trinity-UI-Components/trinity-design-system/issues/F0FDF4) [#FFFBEB](https://github.com/Trinity-UI-Components/trinity-design-system/issues/FFFBEB)
|
|
16
|
+
* improve Storybook configurability and documentation ([912194f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/912194f35d20903d9252f25cb87ae7b7fc266db5))
|
|
17
|
+
* replace light-mode-only overlays with theme-aware action palette ([00ff8ad](https://github.com/Trinity-UI-Components/trinity-design-system/commit/00ff8adb5a5b345e6a8c239da792276d2e38aa94))
|
|
18
|
+
* update CSS theme to match brandColors from theme.ts ([481e0ca](https://github.com/Trinity-UI-Components/trinity-design-system/commit/481e0cafb55eed6c6d426115f25c3cfaef918b1e))
|
|
1
19
|
## [1.0.2](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.2) (2026-02-24)
|
|
2
20
|
|
|
3
21
|
### Features
|
|
@@ -45,7 +63,7 @@ All notable changes to the Trinity Design System will be documented in this file
|
|
|
45
63
|
|
|
46
64
|
- Complete Trinity Design System component library
|
|
47
65
|
- MUI v6/v7 compatible themes (light and dark mode)
|
|
48
|
-
- CSS-only theme entry point (`@
|
|
66
|
+
- CSS-only theme entry point (`@trinityui/design-system/css`)
|
|
49
67
|
- Design tokens system (baseTokens, semanticTokens, componentTokens)
|
|
50
68
|
- Extended MUI palette with Trinity semantic colors
|
|
51
69
|
- Accessibility utilities with WCAG 2.1 AA compliance
|
package/MIGRATION.md
CHANGED
|
@@ -21,18 +21,18 @@ The following exports are **no longer available** from the main package:
|
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
23
|
// ❌ No longer works
|
|
24
|
-
import { gradientIcons, backgroundImages, brandGradients } from '@
|
|
24
|
+
import { gradientIcons, backgroundImages, brandGradients } from '@trinityui/design-system';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
**Migration:** If you need Trinity brand assets:
|
|
28
|
-
1. Copy from `node_modules/@
|
|
28
|
+
1. Copy from `node_modules/@trinityui/design-system/src/assets/` to your public folder
|
|
29
29
|
2. Import directly in your source (your bundler will handle them)
|
|
30
30
|
3. Use a CDN for production
|
|
31
31
|
|
|
32
32
|
Type definitions are still exported:
|
|
33
33
|
```typescript
|
|
34
34
|
// ✅ Still works
|
|
35
|
-
import type { GradientIconName, BackgroundCategory } from '@
|
|
35
|
+
import type { GradientIconName, BackgroundCategory } from '@trinityui/design-system';
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
#### 2. New Peer Dependencies
|
|
@@ -151,7 +151,7 @@ import type {
|
|
|
151
151
|
TrinitySemanticTokens,
|
|
152
152
|
TrinityComponentTokens,
|
|
153
153
|
TrinityDarkModeTokens,
|
|
154
|
-
} from '@
|
|
154
|
+
} from '@trinityui/design-system';
|
|
155
155
|
```
|
|
156
156
|
|
|
157
157
|
#### 2. Auto-generated CSS Variables
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
generateDarkModeCssVariables,
|
|
165
165
|
injectTrinityCssVariables,
|
|
166
166
|
injectDarkModeCssVariables
|
|
167
|
-
} from '@
|
|
167
|
+
} from '@trinityui/design-system';
|
|
168
168
|
|
|
169
169
|
// Inject all variables into :root
|
|
170
170
|
injectTrinityCssVariables();
|
|
@@ -187,7 +187,7 @@ Available CSS variables follow the pattern:
|
|
|
187
187
|
New React hook for accessing tokens with theme awareness:
|
|
188
188
|
|
|
189
189
|
```typescript
|
|
190
|
-
import { useTrinityTokens } from '@
|
|
190
|
+
import { useTrinityTokens } from '@trinityui/design-system';
|
|
191
191
|
|
|
192
192
|
function MyComponent() {
|
|
193
193
|
const {
|
|
@@ -225,7 +225,7 @@ Dark mode tokens now include complete overrides for:
|
|
|
225
225
|
- Status colors (error, warning, success, info)
|
|
226
226
|
|
|
227
227
|
```typescript
|
|
228
|
-
import { darkModeTokens } from '@
|
|
228
|
+
import { darkModeTokens } from '@trinityui/design-system';
|
|
229
229
|
|
|
230
230
|
// New dark mode interactive colors
|
|
231
231
|
darkModeTokens.colors.interactive.hover
|
|
@@ -327,7 +327,7 @@ export {
|
|
|
327
327
|
1. **Update imports** to use the new main entry point if needed:
|
|
328
328
|
```typescript
|
|
329
329
|
// New unified import
|
|
330
|
-
import { tokens, useTrinityTokens, injectTrinityCssVariables } from '@
|
|
330
|
+
import { tokens, useTrinityTokens, injectTrinityCssVariables } from '@trinityui/design-system';
|
|
331
331
|
```
|
|
332
332
|
|
|
333
333
|
2. **Update CSS variable references** to use the new naming convention.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
MUI v6/7 with Trinity branding. WCAG 2.1 AA accessible.
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @
|
|
6
|
+
npm install @trinityui/design-system @mui/material @mui/icons-material @emotion/react @emotion/styled
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
## Setup (One Time)
|
|
@@ -11,7 +11,7 @@ npm install @trinity/design-system @mui/material @mui/icons-material @emotion/re
|
|
|
11
11
|
```tsx
|
|
12
12
|
// App.tsx
|
|
13
13
|
import { ThemeProvider, CssBaseline } from '@mui/material';
|
|
14
|
-
import { lightTheme } from '@
|
|
14
|
+
import { lightTheme } from '@trinityui/design-system';
|
|
15
15
|
|
|
16
16
|
function App() {
|
|
17
17
|
return (
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
FileUpload, // Drag-and-drop upload
|
|
50
50
|
SimpleTable, // Basic table (no dependencies)
|
|
51
51
|
DataCard, // KPI/metric cards
|
|
52
|
-
} from '@
|
|
52
|
+
} from '@trinityui/design-system';
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
### Quick Reference
|
|
@@ -78,10 +78,10 @@ import {
|
|
|
78
78
|
|
|
79
79
|
```tsx
|
|
80
80
|
// Recommended for most projects
|
|
81
|
-
import { lightTheme, StatusIndicator, Modal } from '@
|
|
81
|
+
import { lightTheme, StatusIndicator, Modal } from '@trinityui/design-system/essentials';
|
|
82
82
|
|
|
83
83
|
// Full API when needed
|
|
84
|
-
import { TopNavHeader, InsightEngine, DataTable } from '@
|
|
84
|
+
import { TopNavHeader, InsightEngine, DataTable } from '@trinityui/design-system';
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
---
|
|
@@ -89,7 +89,7 @@ import { TopNavHeader, InsightEngine, DataTable } from '@trinity/design-system';
|
|
|
89
89
|
## Dark Mode
|
|
90
90
|
|
|
91
91
|
```tsx
|
|
92
|
-
import { lightTheme, darkTheme } from '@
|
|
92
|
+
import { lightTheme, darkTheme } from '@trinityui/design-system';
|
|
93
93
|
|
|
94
94
|
const theme = isDarkMode ? darkTheme : lightTheme;
|
|
95
95
|
```
|
|
@@ -116,7 +116,7 @@ For projects **without React** (static HTML, Vue, Angular, vanilla JS), use the
|
|
|
116
116
|
|
|
117
117
|
```html
|
|
118
118
|
<!-- Option 1: Link directly -->
|
|
119
|
-
<link rel="stylesheet" href="node_modules/@
|
|
119
|
+
<link rel="stylesheet" href="node_modules/@trinityui/design-system/dist/trinity.css" />
|
|
120
120
|
|
|
121
121
|
<!-- Option 2: Copy to your project -->
|
|
122
122
|
<link rel="stylesheet" href="/css/trinity.css" />
|
|
@@ -124,7 +124,7 @@ For projects **without React** (static HTML, Vue, Angular, vanilla JS), use the
|
|
|
124
124
|
|
|
125
125
|
```css
|
|
126
126
|
/* Option 3: Import in your CSS/SCSS */
|
|
127
|
-
@import '@
|
|
127
|
+
@import '@trinityui/design-system/css';
|
|
128
128
|
```
|
|
129
129
|
|
|
130
130
|
### Usage
|
package/dist/trinity.css
CHANGED
package/package.json
CHANGED