@trinitydesign/design-system 1.2.0 → 1.2.2

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 CHANGED
@@ -85,7 +85,7 @@ See [MIGRATION.md](./MIGRATION.md) for detailed upgrade instructions.
85
85
  - Status illustration colors: Tailwind-standard (red-500, amber-500, emerald-500) for universal recognition
86
86
 
87
87
  ### Added
88
- - **Accessibility Utilities** (`@trinity/design-system/accessibility`)
88
+ - **Accessibility Utilities** (`@trinitydesign/design-system/accessibility`)
89
89
  - `useFocusTrap` - Hook for trapping focus within modal dialogs
90
90
  - `useReducedMotion` - Hook to detect user's reduced motion preference
91
91
  - `useAriaLive` - Hook for managing ARIA live regions
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 '@trinity/design-system';
24
+ import { gradientIcons, backgroundImages, brandGradients } from '@trinitydesign/design-system';
25
25
  ```
26
26
 
27
27
  **Migration:** If you need Trinity brand assets:
28
- 1. Copy from `node_modules/@trinity/design-system/src/assets/` to your public folder
28
+ 1. Copy from `node_modules/@trinitydesign/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 '@trinity/design-system';
35
+ import type { GradientIconName, BackgroundCategory } from '@trinitydesign/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 '@trinity/design-system';
154
+ } from '@trinitydesign/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 '@trinity/design-system';
167
+ } from '@trinitydesign/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 '@trinity/design-system';
190
+ import { useTrinityTokens } from '@trinitydesign/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 '@trinity/design-system';
228
+ import { darkModeTokens } from '@trinitydesign/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 '@trinity/design-system';
330
+ import { tokens, useTrinityTokens, injectTrinityCssVariables } from '@trinitydesign/design-system';
331
331
  ```
332
332
 
333
333
  2. **Update CSS variable references** to use the new naming convention.
package/README.md CHANGED
@@ -17,7 +17,7 @@ A customizable MUI-based design system with Trinity branding, WCAG 2.1 AA access
17
17
  ### Install
18
18
 
19
19
  ```bash
20
- npm install @trinity/design-system @mui/material @mui/icons-material @emotion/react @emotion/styled
20
+ npm install @trinitydesign/design-system @mui/material @mui/icons-material @emotion/react @emotion/styled
21
21
  ```
22
22
 
23
23
  **Optional dependencies** (only if using these features):
@@ -36,7 +36,7 @@ npm install recharts
36
36
 
37
37
  ```tsx
38
38
  import { ThemeProvider, CssBaseline } from '@mui/material';
39
- import { lightTheme } from '@trinity/design-system';
39
+ import { lightTheme } from '@trinitydesign/design-system';
40
40
 
41
41
  function App() {
42
42
  return (
@@ -52,7 +52,7 @@ function App() {
52
52
 
53
53
  ```tsx
54
54
  import { Button, Card } from '@mui/material';
55
- import { StatusIndicator, Modal } from '@trinity/design-system';
55
+ import { StatusIndicator, Modal } from '@trinitydesign/design-system';
56
56
 
57
57
  <Card sx={{ p: 3 }}>
58
58
  <Button variant="contained">Save</Button>
@@ -76,7 +76,7 @@ import { StatusIndicator, Modal } from '@trinity/design-system';
76
76
 
77
77
  ### Themes
78
78
  ```tsx
79
- import { lightTheme, darkTheme, createTrinityTheme } from '@trinity/design-system';
79
+ import { lightTheme, darkTheme, createTrinityTheme } from '@trinitydesign/design-system';
80
80
  ```
81
81
 
82
82
  ### Components
@@ -89,12 +89,12 @@ import {
89
89
  FileUpload, // Drag-and-drop upload
90
90
  AIChat, // AI chat interface
91
91
  AIPromptInput, // AI prompt input
92
- } from '@trinity/design-system';
92
+ } from '@trinitydesign/design-system';
93
93
  ```
94
94
 
95
95
  ### Design Tokens
96
96
  ```tsx
97
- import { baseTokens, semanticTokens, brandColors } from '@trinity/design-system';
97
+ import { baseTokens, semanticTokens, brandColors } from '@trinitydesign/design-system';
98
98
  ```
99
99
 
100
100
  ### Utilities
@@ -103,7 +103,7 @@ import {
103
103
  accessibleCombinations, // Pre-validated color pairs
104
104
  getContrastRatio, // Check color contrast
105
105
  validateAccessibility, // WCAG validation
106
- } from '@trinity/design-system';
106
+ } from '@trinitydesign/design-system';
107
107
  ```
108
108
 
109
109
  ---