@trinityui/design-system 1.0.12 → 1.0.15

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/CONTRIBUTING.md +2 -0
  3. package/README.md +124 -9
  4. package/dist/assets/design-system.css +1 -0
  5. package/dist/charts.js +6121 -2188
  6. package/dist/components/Autocomplete/Autocomplete.d.ts +113 -0
  7. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -0
  8. package/dist/components/Autocomplete/index.d.ts +8 -0
  9. package/dist/components/Autocomplete/index.d.ts.map +1 -0
  10. package/dist/components/Charts/AreaChart.d.ts +1 -34
  11. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  12. package/dist/components/Charts/BarChart.d.ts +1 -43
  13. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  14. package/dist/components/Charts/ComposedChart.d.ts +1 -30
  15. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  16. package/dist/components/Charts/CustomTooltip.d.ts +1 -1
  17. package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
  18. package/dist/components/Charts/LineChart.d.ts +1 -32
  19. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  20. package/dist/components/Charts/PieChart.d.ts +1 -47
  21. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  22. package/dist/components/Charts/RadialChart.d.ts +1 -46
  23. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  24. package/dist/components/Charts/ScatterChart.d.ts +1 -50
  25. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  26. package/dist/components/Charts/Sparkline.d.ts +1 -40
  27. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  28. package/dist/components/Charts/highchartsUtils.d.ts +12 -0
  29. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -0
  30. package/dist/components/Charts/index.d.ts +1 -1
  31. package/dist/components/Charts/types.d.ts +3 -4
  32. package/dist/components/Charts/types.d.ts.map +1 -1
  33. package/dist/components/ClearableTextField/ClearableTextField.d.ts +42 -0
  34. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -0
  35. package/dist/components/ClearableTextField/index.d.ts +2 -0
  36. package/dist/components/ClearableTextField/index.d.ts.map +1 -0
  37. package/dist/components/Cron/Cron.d.ts +51 -0
  38. package/dist/components/Cron/Cron.d.ts.map +1 -0
  39. package/dist/components/Cron/index.d.ts +2 -0
  40. package/dist/components/Cron/index.d.ts.map +1 -0
  41. package/dist/components/DataTable/CellRenderers.d.ts +1 -2
  42. package/dist/components/DataTable/CellRenderers.d.ts.map +1 -1
  43. package/dist/components/DataTable/DataTable.d.ts +4 -29
  44. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  45. package/dist/components/DataTable/InlineAddRow.d.ts +2 -3
  46. package/dist/components/DataTable/InlineAddRow.d.ts.map +1 -1
  47. package/dist/components/DataTable/agGridEnterprise.d.ts +2 -0
  48. package/dist/components/DataTable/agGridEnterprise.d.ts.map +1 -0
  49. package/dist/components/DataTable/index.d.ts +2 -1
  50. package/dist/components/DataTable/index.d.ts.map +1 -1
  51. package/dist/components/DataTable/types.d.ts +48 -1
  52. package/dist/components/DataTable/types.d.ts.map +1 -1
  53. package/dist/components/GoToTop/GoToTop.d.ts +33 -0
  54. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -0
  55. package/dist/components/GoToTop/index.d.ts +2 -0
  56. package/dist/components/GoToTop/index.d.ts.map +1 -0
  57. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +27 -0
  58. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -0
  59. package/dist/components/OverflowTooltip/index.d.ts +4 -0
  60. package/dist/components/OverflowTooltip/index.d.ts.map +1 -0
  61. package/dist/components/Popper/Popper.d.ts +49 -0
  62. package/dist/components/Popper/Popper.d.ts.map +1 -0
  63. package/dist/components/Popper/index.d.ts +2 -0
  64. package/dist/components/Popper/index.d.ts.map +1 -0
  65. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +83 -0
  66. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -0
  67. package/dist/components/PredictiveTextInput/index.d.ts +2 -0
  68. package/dist/components/PredictiveTextInput/index.d.ts.map +1 -0
  69. package/dist/components/RichTextEditor/RichTextEditor.d.ts +15 -28
  70. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  71. package/dist/components/SimpleTable/SimpleTable.d.ts +2 -2
  72. package/dist/components/VirtualizedAutocomplete/index.d.ts +9 -1
  73. package/dist/components/VirtualizedAutocomplete/index.d.ts.map +1 -1
  74. package/dist/components/index.d.ts +14 -2
  75. package/dist/components/index.d.ts.map +1 -1
  76. package/dist/data-table.d.ts +1 -1
  77. package/dist/data-table.d.ts.map +1 -1
  78. package/dist/data-table.js +3 -2
  79. package/dist/data-table2.js +84388 -931
  80. package/dist/forms.js +45066 -809
  81. package/dist/index.d.ts +14 -2
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +5030 -3084
  84. package/package.json +24 -24
  85. package/dist/components/VirtualizedAutocomplete/VirtualizedAutocomplete.d.ts +0 -50
  86. package/dist/components/VirtualizedAutocomplete/VirtualizedAutocomplete.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,41 @@
1
+ ## [1.0.15](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.15) (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.13](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.13) (2026-03-10)
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.12](https://github.com/Trinity-UI-Components/trinity-design-system/compare/v1.0.0...v1.0.12) (2026-02-26)
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 (requires `@mui/x-data-grid`) |
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
- ## Optional Feature Dependency
188
+ ## DataTable Entry
76
189
 
77
- `DataTable` is intentionally isolated behind a subpath.
190
+ `DataTable` is intentionally isolated behind a subpath:
78
191
 
79
- Install dependency only if you use it:
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
- Import from:
196
+ Set your AG Grid Enterprise license key once during app bootstrap:
86
197
 
87
198
  ```tsx
88
- import { DataTable } from '@trinityui/design-system/data-table';
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