@trinityui/design-system 1.0.11 → 1.0.13
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 +38 -0
- package/CONTRIBUTING.md +2 -0
- package/README.md +124 -9
- package/dist/app-shell.js +3007 -2776
- package/dist/assets/design-system.css +1 -0
- package/dist/charts.js +6121 -2188
- package/dist/components/AI/InsightEngineInput.d.ts +9 -0
- package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +113 -0
- package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/components/Autocomplete/index.d.ts +8 -0
- package/dist/components/Autocomplete/index.d.ts.map +1 -0
- package/dist/components/Carousel/Carousel.d.ts +35 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -0
- package/dist/components/Carousel/index.d.ts +2 -0
- package/dist/components/Carousel/index.d.ts.map +1 -0
- package/dist/components/Charts/AreaChart.d.ts +1 -34
- package/dist/components/Charts/AreaChart.d.ts.map +1 -1
- package/dist/components/Charts/BarChart.d.ts +1 -43
- package/dist/components/Charts/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/ComposedChart.d.ts +1 -30
- package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
- package/dist/components/Charts/CustomTooltip.d.ts +1 -1
- package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
- package/dist/components/Charts/LineChart.d.ts +1 -32
- package/dist/components/Charts/LineChart.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.d.ts +1 -47
- package/dist/components/Charts/PieChart.d.ts.map +1 -1
- package/dist/components/Charts/RadialChart.d.ts +1 -46
- package/dist/components/Charts/RadialChart.d.ts.map +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -50
- package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.d.ts +1 -40
- package/dist/components/Charts/Sparkline.d.ts.map +1 -1
- package/dist/components/Charts/highchartsUtils.d.ts +12 -0
- package/dist/components/Charts/highchartsUtils.d.ts.map +1 -0
- package/dist/components/Charts/index.d.ts +1 -1
- package/dist/components/Charts/types.d.ts +3 -4
- package/dist/components/Charts/types.d.ts.map +1 -1
- package/dist/components/ChipsInput/ChipsInput.d.ts +69 -0
- package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -0
- package/dist/components/ChipsInput/index.d.ts +2 -0
- package/dist/components/ChipsInput/index.d.ts.map +1 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts +42 -0
- package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -0
- package/dist/components/ClearableTextField/index.d.ts +2 -0
- package/dist/components/ClearableTextField/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +4 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.d.ts +4 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/components/Cron/Cron.d.ts +51 -0
- package/dist/components/Cron/Cron.d.ts.map +1 -0
- package/dist/components/Cron/index.d.ts +2 -0
- package/dist/components/Cron/index.d.ts.map +1 -0
- package/dist/components/DataTable/CellRenderers.d.ts +1 -2
- package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.d.ts +4 -29
- package/dist/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/DataTable/InlineAddRow.d.ts +2 -3
- package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
- package/dist/components/DataTable/agGridEnterprise.d.ts +2 -0
- package/dist/components/DataTable/agGridEnterprise.d.ts.map +1 -0
- package/dist/components/DataTable/index.d.ts +2 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DataTable/types.d.ts +48 -1
- package/dist/components/DataTable/types.d.ts.map +1 -1
- package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
- package/dist/components/GoToTop/GoToTop.d.ts +33 -0
- package/dist/components/GoToTop/GoToTop.d.ts.map +1 -0
- package/dist/components/GoToTop/index.d.ts +2 -0
- package/dist/components/GoToTop/index.d.ts.map +1 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts +80 -0
- package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -0
- package/dist/components/MentionsInput/index.d.ts +2 -0
- package/dist/components/MentionsInput/index.d.ts.map +1 -0
- package/dist/components/NestedMenu/NestedMenu.d.ts +53 -0
- package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -0
- package/dist/components/NestedMenu/index.d.ts +2 -0
- package/dist/components/NestedMenu/index.d.ts.map +1 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +27 -0
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -0
- package/dist/components/OverflowTooltip/index.d.ts +4 -0
- package/dist/components/OverflowTooltip/index.d.ts.map +1 -0
- package/dist/components/Popper/Popper.d.ts +49 -0
- package/dist/components/Popper/Popper.d.ts.map +1 -0
- package/dist/components/Popper/index.d.ts +2 -0
- package/dist/components/Popper/index.d.ts.map +1 -0
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +83 -0
- package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -0
- package/dist/components/PredictiveTextInput/index.d.ts +2 -0
- package/dist/components/PredictiveTextInput/index.d.ts.map +1 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +15 -28
- package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SimpleTable/SimpleTable.d.ts +2 -2
- package/dist/components/Tour/Tour.d.ts +53 -0
- package/dist/components/Tour/Tour.d.ts.map +1 -0
- package/dist/components/Tour/index.d.ts +2 -0
- package/dist/components/Tour/index.d.ts.map +1 -0
- package/dist/components/VirtualizedAutocomplete/index.d.ts +10 -0
- package/dist/components/VirtualizedAutocomplete/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +3 -2
- package/dist/data-table2.js +84388 -931
- package/dist/forms.js +45169 -781
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5418 -2514
- package/dist/tokens.js +3 -3
- package/package.json +25 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
## [1.0.13](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.13) (2026-03-10)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **Combobox:** add visible checkboxes and Select All option ([435e01a](https://github.com/Trinity-UI-Components/trinity-design-system/commit/435e01a71f0c6ba7fab9decb7d0d9b5cd760bbb1))
|
|
6
|
+
* **css:** expand trinity.css with comprehensive design tokens ([e1a9f22](https://github.com/Trinity-UI-Components/trinity-design-system/commit/e1a9f22c97d58959afcbf0d4c1aa76a76db52126))
|
|
7
|
+
* simplify dependencies - remove date-pickers, add SimpleTable ([ee02f3e](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ee02f3e299e13173e77355925dca513f3becf8a4))
|
|
8
|
+
* simplify developer experience with essentials entry point ([a7e4a2f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/a7e4a2fb1b221da9c2ee01f1b8c1a851f4e45697))
|
|
9
|
+
* **storybook:** add interactive Component Picker page ([2642326](https://github.com/Trinity-UI-Components/trinity-design-system/commit/2642326fbb68d30c865ea008cdb283fff96562a1))
|
|
10
|
+
* **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)
|
|
11
|
+
* **theme:** add theme presets system for app variations ([ec21481](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ec2148114bfb33b508755675abcd00a0abf3662c))
|
|
12
|
+
* **TopNav:** add white-label logo support with invert option ([0d0a337](https://github.com/Trinity-UI-Components/trinity-design-system/commit/0d0a337de5500ac75919b4ccead9c6b159775600))
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **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)
|
|
17
|
+
* improve Storybook configurability and documentation ([912194f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/912194f35d20903d9252f25cb87ae7b7fc266db5))
|
|
18
|
+
* replace light-mode-only overlays with theme-aware action palette ([00ff8ad](https://github.com/Trinity-UI-Components/trinity-design-system/commit/00ff8adb5a5b345e6a8c239da792276d2e38aa94))
|
|
19
|
+
* update CSS theme to match brandColors from theme.ts ([481e0ca](https://github.com/Trinity-UI-Components/trinity-design-system/commit/481e0cafb55eed6c6d426115f25c3cfaef918b1e))
|
|
20
|
+
## [1.0.12](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.12) (2026-02-26)
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **Combobox:** add visible checkboxes and Select All option ([435e01a](https://github.com/Trinity-UI-Components/trinity-design-system/commit/435e01a71f0c6ba7fab9decb7d0d9b5cd760bbb1))
|
|
25
|
+
* **css:** expand trinity.css with comprehensive design tokens ([e1a9f22](https://github.com/Trinity-UI-Components/trinity-design-system/commit/e1a9f22c97d58959afcbf0d4c1aa76a76db52126))
|
|
26
|
+
* simplify dependencies - remove date-pickers, add SimpleTable ([ee02f3e](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ee02f3e299e13173e77355925dca513f3becf8a4))
|
|
27
|
+
* simplify developer experience with essentials entry point ([a7e4a2f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/a7e4a2fb1b221da9c2ee01f1b8c1a851f4e45697))
|
|
28
|
+
* **storybook:** add interactive Component Picker page ([2642326](https://github.com/Trinity-UI-Components/trinity-design-system/commit/2642326fbb68d30c865ea008cdb283fff96562a1))
|
|
29
|
+
* **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)
|
|
30
|
+
* **theme:** add theme presets system for app variations ([ec21481](https://github.com/Trinity-UI-Components/trinity-design-system/commit/ec2148114bfb33b508755675abcd00a0abf3662c))
|
|
31
|
+
* **TopNav:** add white-label logo support with invert option ([0d0a337](https://github.com/Trinity-UI-Components/trinity-design-system/commit/0d0a337de5500ac75919b4ccead9c6b159775600))
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **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)
|
|
36
|
+
* improve Storybook configurability and documentation ([912194f](https://github.com/Trinity-UI-Components/trinity-design-system/commit/912194f35d20903d9252f25cb87ae7b7fc266db5))
|
|
37
|
+
* replace light-mode-only overlays with theme-aware action palette ([00ff8ad](https://github.com/Trinity-UI-Components/trinity-design-system/commit/00ff8adb5a5b345e6a8c239da792276d2e38aa94))
|
|
38
|
+
* update CSS theme to match brandColors from theme.ts ([481e0ca](https://github.com/Trinity-UI-Components/trinity-design-system/commit/481e0cafb55eed6c6d426115f25c3cfaef918b1e))
|
|
1
39
|
## [1.0.11](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.11) (2026-02-24)
|
|
2
40
|
|
|
3
41
|
### Features
|
package/CONTRIBUTING.md
CHANGED
|
@@ -39,6 +39,8 @@ Please be respectful and constructive in all interactions. We are committed to p
|
|
|
39
39
|
npm install
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
Commercial licensing note: For MUI, AG Grid, or Syncfusion license procurement/renewal, contact Arun Manoharan, Rahul Desai, or Sangeetha before production rollout.
|
|
43
|
+
|
|
42
44
|
3. Start the development server:
|
|
43
45
|
```bash
|
|
44
46
|
npm run dev
|
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@ It provides:
|
|
|
30
30
|
pnpm add @trinityui/design-system react react-dom @mui/material @mui/icons-material @emotion/react @emotion/styled
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
> Commercial licensing: For MUI, AG Grid, or Syncfusion license procurement/renewal, contact Arun Manoharan, Rahul Desai, or Sangeetha before production use.
|
|
34
|
+
|
|
33
35
|
### CSS-only package
|
|
34
36
|
|
|
35
37
|
```bash
|
|
@@ -61,6 +63,117 @@ import { Button, Card, TextField } from '@mui/material';
|
|
|
61
63
|
import { StatusIndicator, Toast, useToast } from '@trinityui/design-system';
|
|
62
64
|
```
|
|
63
65
|
|
|
66
|
+
## Async Autocomplete
|
|
67
|
+
|
|
68
|
+
`Autocomplete` supports asynchronous loading from either a callback (`dataSource`) or a URL (`url`), including infinite pagination on scroll.
|
|
69
|
+
|
|
70
|
+
### Data source mode
|
|
71
|
+
|
|
72
|
+
```tsx
|
|
73
|
+
import { Autocomplete, type AutocompleteAsyncRequest } from '@trinityui/design-system';
|
|
74
|
+
|
|
75
|
+
type UserOption = { id: string; name: string; email: string };
|
|
76
|
+
|
|
77
|
+
const loadUsers = async ({ search, page, pageSize, signal }: AutocompleteAsyncRequest) => {
|
|
78
|
+
const response = await fetch(`/api/users?q=${encodeURIComponent(search)}&page=${page}&pageSize=${pageSize}`, { signal });
|
|
79
|
+
const data = await response.json();
|
|
80
|
+
return {
|
|
81
|
+
options: data.items as UserOption[],
|
|
82
|
+
hasMore: data.hasMore as boolean,
|
|
83
|
+
nextPage: page + 1,
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
<Autocomplete<UserOption, true, false, false>
|
|
88
|
+
name="users"
|
|
89
|
+
label="Users"
|
|
90
|
+
options={[]}
|
|
91
|
+
multiple
|
|
92
|
+
value={[]}
|
|
93
|
+
onHandleChange={(next) => setUsers(next as UserOption[])}
|
|
94
|
+
labelProperty="name"
|
|
95
|
+
valueProperty="id"
|
|
96
|
+
optionValues={['name', 'email']}
|
|
97
|
+
async={{
|
|
98
|
+
dataSource: loadUsers,
|
|
99
|
+
paginate: true,
|
|
100
|
+
pageSize: 25,
|
|
101
|
+
debounceMs: 250,
|
|
102
|
+
minSearchLength: 1,
|
|
103
|
+
}}
|
|
104
|
+
/>;
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Sortable Multi-Select Autocomplete
|
|
108
|
+
|
|
109
|
+
Enable `sortableSelected` to reorder selected chips.
|
|
110
|
+
- Mouse: drag and drop chips.
|
|
111
|
+
- Keyboard: `Ctrl/Cmd + Shift + Arrow` keys on a selected chip.
|
|
112
|
+
|
|
113
|
+
```tsx
|
|
114
|
+
<Autocomplete<string, true, false, false>
|
|
115
|
+
name="focus-areas"
|
|
116
|
+
label="Focus Areas"
|
|
117
|
+
options={['Oncology', 'Safety', 'AI', 'Regulatory']}
|
|
118
|
+
multiple
|
|
119
|
+
value={selected}
|
|
120
|
+
onHandleChange={(next) => setSelected(next as string[])}
|
|
121
|
+
sortableSelected
|
|
122
|
+
virtualized={false}
|
|
123
|
+
/>;
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Predictive Text Input (OpenAI via Azure Function)
|
|
127
|
+
|
|
128
|
+
Use `PredictiveTextInput` with `createOpenAIPredictor` and point it to your backend endpoint (for example, an Azure Function at `/api/predictive-text`).
|
|
129
|
+
|
|
130
|
+
```tsx
|
|
131
|
+
import { PredictiveTextInput, createOpenAIPredictor } from '@trinityui/design-system';
|
|
132
|
+
|
|
133
|
+
const predictor = createOpenAIPredictor({
|
|
134
|
+
endpoint: '/api/predictive-text',
|
|
135
|
+
maxSuggestions: 5,
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
<PredictiveTextInput
|
|
139
|
+
label="Prompt"
|
|
140
|
+
value={value}
|
|
141
|
+
onChange={setValue}
|
|
142
|
+
onPredict={predictor}
|
|
143
|
+
/>;
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Azure Function template:
|
|
147
|
+
- [`examples/azure-functions/predictive-text/index.ts`](./examples/azure-functions/predictive-text/index.ts)
|
|
148
|
+
- [`examples/azure-functions/predictive-text/README.md`](./examples/azure-functions/predictive-text/README.md)
|
|
149
|
+
|
|
150
|
+
### URL mode
|
|
151
|
+
|
|
152
|
+
```tsx
|
|
153
|
+
<Autocomplete<UserOption, true, false, false>
|
|
154
|
+
name="users-url"
|
|
155
|
+
label="Users"
|
|
156
|
+
options={[]}
|
|
157
|
+
multiple
|
|
158
|
+
value={[]}
|
|
159
|
+
onHandleChange={(next) => setUsers(next as UserOption[])}
|
|
160
|
+
labelProperty="name"
|
|
161
|
+
valueProperty="id"
|
|
162
|
+
async={{
|
|
163
|
+
url: '/api/users/search',
|
|
164
|
+
method: 'GET',
|
|
165
|
+
queryParam: 'q',
|
|
166
|
+
pageParam: 'page',
|
|
167
|
+
pageSizeParam: 'pageSize',
|
|
168
|
+
paginate: true,
|
|
169
|
+
mapResponse: (response) => {
|
|
170
|
+
const data = response as { results: UserOption[]; hasMore: boolean };
|
|
171
|
+
return { options: data.results, hasMore: data.hasMore };
|
|
172
|
+
},
|
|
173
|
+
}}
|
|
174
|
+
/>;
|
|
175
|
+
```
|
|
176
|
+
|
|
64
177
|
## Entry Points
|
|
65
178
|
|
|
66
179
|
| Import | Purpose |
|
|
@@ -69,25 +182,27 @@ import { StatusIndicator, Toast, useToast } from '@trinityui/design-system';
|
|
|
69
182
|
| `@trinityui/design-system/essentials` | Lean entry for common setup and core components |
|
|
70
183
|
| `@trinityui/design-system/theme` | Theme-only exports |
|
|
71
184
|
| `@trinityui/design-system/tokens` | Token-only exports |
|
|
72
|
-
| `@trinityui/design-system/data-table` | DataTable exports (
|
|
185
|
+
| `@trinityui/design-system/data-table` | DataTable exports (AG Grid powered) |
|
|
73
186
|
| `@trinityui/design-system/css` | CSS file from the React package |
|
|
74
187
|
|
|
75
|
-
##
|
|
188
|
+
## DataTable Entry
|
|
76
189
|
|
|
77
|
-
`DataTable` is intentionally isolated behind a subpath
|
|
190
|
+
`DataTable` is intentionally isolated behind a subpath:
|
|
78
191
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
pnpm add @mui/x-data-grid
|
|
192
|
+
```tsx
|
|
193
|
+
import { DataTable } from '@trinityui/design-system/data-table';
|
|
83
194
|
```
|
|
84
195
|
|
|
85
|
-
|
|
196
|
+
Set your AG Grid Enterprise license key once during app bootstrap:
|
|
86
197
|
|
|
87
198
|
```tsx
|
|
88
|
-
import {
|
|
199
|
+
import { setAgGridEnterpriseLicenseKey } from '@trinityui/design-system/data-table';
|
|
200
|
+
|
|
201
|
+
setAgGridEnterpriseLicenseKey('<AG_GRID_ENTERPRISE_LICENSE_KEY>');
|
|
89
202
|
```
|
|
90
203
|
|
|
204
|
+
For AG Grid Enterprise licensing, coordinate with Arun Manoharan, Rahul Desai, or Sangeetha.
|
|
205
|
+
|
|
91
206
|
## CSS-Only Usage
|
|
92
207
|
|
|
93
208
|
### Option 1: package CSS import
|