@iress-oss/ids-mcp-server 0.0.1 → 5.14.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/LICENSE.txt +201 -0
- package/README.md +29 -159
- package/dist/componentHandlers.js +241 -0
- package/dist/componentHandlers.test.js +380 -0
- package/{build → dist}/config.js +5 -5
- package/dist/index.js +53 -0
- package/{build → dist}/iressHandlers.js +52 -46
- package/dist/iressHandlers.test.js +316 -0
- package/{build → dist}/resourceHandlers.js +23 -22
- package/dist/resourceHandlers.test.js +352 -0
- package/{build → dist}/searchHandlers.js +107 -92
- package/dist/searchHandlers.test.js +524 -0
- package/{build → dist}/toolHandler.js +13 -13
- package/dist/toolHandler.test.js +369 -0
- package/dist/tools.js +165 -0
- package/{build → dist}/utils.js +11 -15
- package/dist/utils.test.js +286 -0
- package/{docs/ids → generated/docs}/components-autocomplete-docs.md +3 -3
- package/{docs/ids → generated/docs}/components-autocomplete-recipes-docs.md +17 -51
- package/{docs/ids → generated/docs}/components-card-recipes-docs.md +1 -1
- package/{docs/ids → generated/docs}/components-checkbox-docs.md +6 -19
- package/{docs/ids → generated/docs}/components-checkboxgroup-docs.md +18 -18
- package/{docs/ids → generated/docs}/components-checkboxgroup-recipes-docs.md +9 -9
- package/{docs/ids → generated/docs}/components-col-docs.md +1 -1
- package/{docs/ids → generated/docs}/components-combobox-docs.md +4 -4
- package/{docs/ids → generated/docs}/components-container-docs.md +8 -42
- package/{docs/ids → generated/docs}/components-filter-docs.md +14 -67
- package/{docs/ids → generated/docs}/components-form-docs.md +341 -335
- package/{docs/ids → generated/docs}/components-form-recipes-docs.md +198 -1
- package/{docs/ids → generated/docs}/components-hide-docs.md +16 -70
- package/{docs/ids → generated/docs}/components-icon-docs.md +4 -4
- package/{docs/ids → generated/docs}/components-input-recipes-docs.md +2 -2
- package/{docs/ids → generated/docs}/components-inputcurrency-recipes-docs.md +6 -40
- package/{docs/ids → generated/docs}/components-modal-docs.md +3 -113
- package/generated/docs/components-popover-docs.md +464 -0
- package/{docs/ids → generated/docs}/components-radiogroup-docs.md +21 -21
- package/{docs/ids → generated/docs}/components-richselect-docs.md +149 -111
- package/{docs/ids → generated/docs}/components-row-docs.md +4 -4
- package/{docs/ids → generated/docs}/components-skeleton-docs.md +3 -3
- package/{docs/ids → generated/docs}/components-skeleton-recipes-docs.md +1 -1
- package/{docs/ids → generated/docs}/components-skiplink-docs.md +1 -1
- package/{docs/ids → generated/docs}/components-slideout-docs.md +3 -113
- package/{docs/ids → generated/docs}/components-table-ag-grid-docs.md +109 -137
- package/{docs/ids → generated/docs}/components-table-docs.md +92 -597
- package/{docs/ids → generated/docs}/components-tabset-docs.md +2 -2
- package/{docs/ids → generated/docs}/components-tag-docs.md +1 -1
- package/{docs/ids → generated/docs}/components-toaster-docs.md +5 -5
- package/{docs/ids → generated/docs}/extensions-editor-docs.md +4 -4
- package/generated/docs/foundations-accessibility-docs.md +62 -0
- package/{docs/ids → generated/docs}/foundations-colours-docs.md +1 -1
- package/generated/docs/foundations-consistency-docs.md +52 -0
- package/generated/docs/foundations-content-docs.md +23 -0
- package/generated/docs/foundations-introduction-docs.md +17 -0
- package/generated/docs/foundations-principles-docs.md +70 -0
- package/{docs/ids → generated/docs}/foundations-typography-docs.md +7 -2
- package/generated/docs/foundations-user-experience-docs.md +63 -0
- package/generated/docs/foundations-visual-design-docs.md +46 -0
- package/{docs/ids → generated/docs}/get-started-develop-docs.md +3 -3
- package/generated/docs/guidelines.md +812 -0
- package/{docs/ids → generated/docs}/introduction-docs.md +4 -4
- package/{docs/ids → generated/docs}/patterns-loading-docs.md +332 -2
- package/generated/docs/resources-migration-guides-from-v4-to-v5-docs.md +437 -0
- package/generated/docs/themes-available-themes-docs.md +66 -0
- package/generated/docs/themes-tokens-docs.md +1200 -0
- package/generated/docs/versions-docs.md +17 -0
- package/package.json +42 -14
- package/LICENSE +0 -193
- package/build/componentHandlers.js +0 -205
- package/build/index.js +0 -51
- package/build/tools.js +0 -165
- package/docs/api-reference.md +0 -0
- package/docs/best-practices.md +0 -0
- package/docs/configuration.md +0 -0
- package/docs/examples.md +0 -0
- package/docs/guidelines.md +0 -269
- package/docs/ids/components-popover-docs.md +0 -4
- package/docs/ids/resources-migration-guides-from-v4-to-v5-docs.md +0 -639
- package/docs/ids/themes-available-themes-docs.md +0 -74
- package/docs/ids/themes-tokens-docs.md +0 -4580
- package/docs/ids/versions-docs.md +0 -27
- package/docs/tutorials/basic-integration.md +0 -0
- /package/{build → dist}/types.js +0 -0
- /package/{docs/ids → generated/docs}/components-alert-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-badge-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-button-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-button-recipes-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-buttongroup-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-card-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-divider-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-expander-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-field-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-inline-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-input-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-inputcurrency-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-label-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-menu-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-menu-menuitem-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-navbar-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-navbar-recipes-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-panel-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-placeholder-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-popover-recipes-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-progress-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-radio-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-readonly-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-select-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-slider-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-spinner-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-stack-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-tabset-tab-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-text-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-toaster-toast-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-toggle-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-tooltip-docs.md +0 -0
- /package/{docs/ids → generated/docs}/components-validationmessage-docs.md +0 -0
- /package/{docs/ids → generated/docs}/contact-us-docs.md +0 -0
- /package/{docs/ids → generated/docs}/extensions-editor-recipes-docs.md +0 -0
- /package/{docs/ids → generated/docs}/frequently-asked-questions-docs.md +0 -0
- /package/{docs/ids → generated/docs}/get-started-using-storybook-docs.md +0 -0
- /package/{docs/ids → generated/docs}/resources-changelog-docs.md +0 -0
- /package/{docs/ids → generated/docs}/resources-code-katas-docs.md +0 -0
- /package/{docs/ids → generated/docs}/themes-introduction-docs.md +0 -0
|
@@ -1,639 +0,0 @@
|
|
|
1
|
-
[](#migration-from-v4-to-v5)Migration from v4 to v5
|
|
2
|
-
===================================================
|
|
3
|
-
|
|
4
|
-
This is a step-by-step guide for upgrading your application from IDS v4 to v5. To learn more about the benefits of upgrading, see the [IDS v5 initiative Atlas post](https://team.atlassian.com/project/IRESS4-19/about).
|
|
5
|
-
|
|
6
|
-
[](#updating-your-dependencies)Updating your dependencies
|
|
7
|
-
---------------------------------------------------------
|
|
8
|
-
|
|
9
|
-
### [](#upgrade-ids-and-themes)Upgrade IDS and themes
|
|
10
|
-
|
|
11
|
-
Update your dependencies in your `package.json` file to the following:
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] {
|
|
14
|
-
scrollbar-width: none;
|
|
15
|
-
-ms-overflow-style: none;
|
|
16
|
-
-webkit-overflow-scrolling: touch;
|
|
17
|
-
}
|
|
18
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
align-items: stretch;
|
|
25
|
-
}
|
|
26
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
27
|
-
flex-grow: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@iress/ids-components": "^5.0.0",
|
|
32
|
-
"@iress/themes": "^5.0.0"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
Copy
|
|
36
|
-
|
|
37
|
-
or run:
|
|
38
|
-
|
|
39
|
-
\[data-radix-scroll-area-viewport\] {
|
|
40
|
-
scrollbar-width: none;
|
|
41
|
-
-ms-overflow-style: none;
|
|
42
|
-
-webkit-overflow-scrolling: touch;
|
|
43
|
-
}
|
|
44
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
45
|
-
display: none;
|
|
46
|
-
}
|
|
47
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
align-items: stretch;
|
|
51
|
-
}
|
|
52
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
53
|
-
flex-grow: 1;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
yarn add @iress/ids-components@^5.0.0 @iress/themes@^5.0.0
|
|
57
|
-
|
|
58
|
-
Copy
|
|
59
|
-
|
|
60
|
-
### [](#upgrade-react)Upgrade React
|
|
61
|
-
|
|
62
|
-
The minimum required version of React is 17. If you are using an older version of React, you will need to update it.
|
|
63
|
-
|
|
64
|
-
[](#updating-imports)Updating imports
|
|
65
|
-
-------------------------------------
|
|
66
|
-
|
|
67
|
-
### [](#changing-components)Changing components
|
|
68
|
-
|
|
69
|
-
Update your imports to the new package name:
|
|
70
|
-
|
|
71
|
-
\-
|
|
72
|
-
|
|
73
|
-
import { IressButton } from '@iress/components-react';
|
|
74
|
-
|
|
75
|
-
+
|
|
76
|
-
|
|
77
|
-
import { IressButton } from '@iress/ids-components';
|
|
78
|
-
|
|
79
|
-
You can run both packages together, so you can migrate components one by one.
|
|
80
|
-
|
|
81
|
-
\-
|
|
82
|
-
|
|
83
|
-
import { IressModal, IressButton } from '@iress/components-react';
|
|
84
|
-
|
|
85
|
-
+
|
|
86
|
-
|
|
87
|
-
import { IressModal } from '@iress/components-react';
|
|
88
|
-
|
|
89
|
-
+
|
|
90
|
-
|
|
91
|
-
import { IressButton } from '@iress/ids-components';
|
|
92
|
-
|
|
93
|
-
### [](#importing-component-styles)Importing component styles
|
|
94
|
-
|
|
95
|
-
IDS v5 no longer injects CSS into the DOM. You will need to import the stylesheet directly into your application.
|
|
96
|
-
|
|
97
|
-
\[data-radix-scroll-area-viewport\] {
|
|
98
|
-
scrollbar-width: none;
|
|
99
|
-
-ms-overflow-style: none;
|
|
100
|
-
-webkit-overflow-scrolling: touch;
|
|
101
|
-
}
|
|
102
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
103
|
-
display: none;
|
|
104
|
-
}
|
|
105
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
106
|
-
display: flex;
|
|
107
|
-
flex-direction: column;
|
|
108
|
-
align-items: stretch;
|
|
109
|
-
}
|
|
110
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
111
|
-
flex-grow: 1;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
import '@iress/ids-components/dist/style.css';
|
|
115
|
-
|
|
116
|
-
Copy
|
|
117
|
-
|
|
118
|
-
[](#update-jest-configuration)Update Jest configuration
|
|
119
|
-
-------------------------------------------------------
|
|
120
|
-
|
|
121
|
-
If you are using Jest, you will need to update your Jest configuration to add the new IDS package to your `transformIgnorePatterns`.
|
|
122
|
-
|
|
123
|
-
**Note:** If you are using version 4 and version 5 in parallel, you will need to keep the old IDS packages in your `transformIgnorePatterns` until you have completely migrated over your components.
|
|
124
|
-
|
|
125
|
-
\[data-radix-scroll-area-viewport\] {
|
|
126
|
-
scrollbar-width: none;
|
|
127
|
-
-ms-overflow-style: none;
|
|
128
|
-
-webkit-overflow-scrolling: touch;
|
|
129
|
-
}
|
|
130
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
131
|
-
display: none;
|
|
132
|
-
}
|
|
133
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
134
|
-
display: flex;
|
|
135
|
-
flex-direction: column;
|
|
136
|
-
align-items: stretch;
|
|
137
|
-
}
|
|
138
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
139
|
-
flex-grow: 1;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
"transformIgnorePatterns": \[
|
|
143
|
-
"/node\_modules/(?!@iress/ids-components)"
|
|
144
|
-
\]
|
|
145
|
-
|
|
146
|
-
Copy
|
|
147
|
-
|
|
148
|
-
If you are mocking CSS files for your tests, you'll also need to make sure the new stylesheet is matched by your `moduleNameMapper`:
|
|
149
|
-
|
|
150
|
-
"moduleNameMapper": {
|
|
151
|
-
|
|
152
|
-
"^.+\\.(scss|less)$": "<rootDir>/test/style-mock.ts",
|
|
153
|
-
|
|
154
|
-
"ids-web-components.css$": "<rootDir>/test/style-mock.ts",
|
|
155
|
-
|
|
156
|
-
\-
|
|
157
|
-
|
|
158
|
-
"global.css$": "<rootDir>/test/style-mock.ts"
|
|
159
|
-
|
|
160
|
-
+
|
|
161
|
-
|
|
162
|
-
"global.css$": "<rootDir>/test/style-mock.ts",
|
|
163
|
-
|
|
164
|
-
+
|
|
165
|
-
|
|
166
|
-
"@iress/ids-components/(.\*).css": "<rootDir>/test/style-mock.ts"
|
|
167
|
-
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
[](#handling-breaking-changes)Handling breaking changes
|
|
171
|
-
-------------------------------------------------------
|
|
172
|
-
|
|
173
|
-
### [](#components)Components
|
|
174
|
-
|
|
175
|
-
Since the move to React, the majority of the components have been simplified to improve developer experience. We have listed the changes in this google doc by component, so you can attend to each component separately.
|
|
176
|
-
|
|
177
|
-
[](https://docs.google.com/document/d/1H3-zFDftCHDjwaFkwFxVo1uziPsOj8qJn7p3NFG3aUg/edit)
|
|
178
|
-
|
|
179
|
-
[Google doc](https://docs.google.com/document/d/1H3-zFDftCHDjwaFkwFxVo1uziPsOj8qJn7p3NFG3aUg/edit)
|
|
180
|
-
|
|
181
|
-
### [](#testing)Testing
|
|
182
|
-
|
|
183
|
-
Components are no longer loaded asynchronously, so you can test them as you would any other React component. The testing utilities have been removed from the package, so you will need to update your tests to use [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) or another testing library.
|
|
184
|
-
|
|
185
|
-
Below is an example of a changed test using React Testing Library.
|
|
186
|
-
|
|
187
|
-
Mode
|
|
188
|
-
|
|
189
|
-
DiffOldNew
|
|
190
|
-
|
|
191
|
-
\-
|
|
192
|
-
|
|
193
|
-
import { render } from '@testing-library/react';
|
|
194
|
-
|
|
195
|
-
+
|
|
196
|
-
|
|
197
|
-
import { render, fireEvent } from '@testing-library/react';
|
|
198
|
-
|
|
199
|
-
\-
|
|
200
|
-
|
|
201
|
-
import { idsFireEvent } from '@iress/ids-react-test-utils';
|
|
202
|
-
|
|
203
|
-
\-
|
|
204
|
-
|
|
205
|
-
+
|
|
206
|
-
|
|
207
|
-
test('login form', () => {
|
|
208
|
-
|
|
209
|
-
\-
|
|
210
|
-
|
|
211
|
-
test('login form', async () => {
|
|
212
|
-
|
|
213
|
-
const loginMock = jest.fn();
|
|
214
|
-
|
|
215
|
-
const screen = render(<LoginForm loginUser={loginMock}/>);
|
|
216
|
-
|
|
217
|
-
\-
|
|
218
|
-
|
|
219
|
-
const usernameInput = await screen.findByTestId('username\_\_input');
|
|
220
|
-
|
|
221
|
-
+
|
|
222
|
-
|
|
223
|
-
const usernameInput = screen.getByRole('textbox', { name: 'Username' });
|
|
224
|
-
|
|
225
|
-
\-
|
|
226
|
-
|
|
227
|
-
const passwordInput = await screen.findByTestId('password\_\_input');
|
|
228
|
-
|
|
229
|
-
+
|
|
230
|
-
|
|
231
|
-
const passwordInput = screen.getByRole('textbox', { name: 'Password' });
|
|
232
|
-
|
|
233
|
-
\-
|
|
234
|
-
|
|
235
|
-
const submitBtn = await screen.findByTestId('submit-btn\_\_button');
|
|
236
|
-
|
|
237
|
-
+
|
|
238
|
-
|
|
239
|
-
const submitBtn = screen.getByRole('button');
|
|
240
|
-
|
|
241
|
-
\-
|
|
242
|
-
|
|
243
|
-
idsFireEvent.change(usernameInput, { target: { value: 'joe.bloggs' }});
|
|
244
|
-
|
|
245
|
-
+
|
|
246
|
-
|
|
247
|
-
fireEvent.change(usernameInput, { target: { value: 'joe.bloggs' }});
|
|
248
|
-
|
|
249
|
-
\-
|
|
250
|
-
|
|
251
|
-
idsFireEvent.change(passwordInput, { target: { value: '1234' }});
|
|
252
|
-
|
|
253
|
-
+
|
|
254
|
-
|
|
255
|
-
fireEvent.change(passwordInput, { target: { value: '1234' }});
|
|
256
|
-
|
|
257
|
-
\-
|
|
258
|
-
|
|
259
|
-
idsFireEvent.click(submitBtn);
|
|
260
|
-
|
|
261
|
-
+
|
|
262
|
-
|
|
263
|
-
fireEvent.click(submitBtn);
|
|
264
|
-
|
|
265
|
-
expect(loginMock).toHaveBeenCalledWith("joe.bloggs", "1234");
|
|
266
|
-
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
#### [](#component-specific-testing)Component specific testing
|
|
270
|
-
|
|
271
|
-
Some components have additional testing requirements. The changed testing requirements will be listed on each component's docs page.
|
|
272
|
-
|
|
273
|
-
These include:
|
|
274
|
-
|
|
275
|
-
* [Form](./?path=/docs/components-form--docs#testing)
|
|
276
|
-
* [Modal](./?path=/docs/components-modal--docs#testing)
|
|
277
|
-
* [Slideout](./?path=/docs/components-slideout--docs#testing)
|
|
278
|
-
|
|
279
|
-
### [](#styling)Styling
|
|
280
|
-
|
|
281
|
-
The original CSS framework used for IDS was based on the Stencil library. It was lightly scoped (no shadow DOM) using CSS classes like: `sc-iress-radio-h sc-iress-radio-s`.
|
|
282
|
-
|
|
283
|
-
These classes have been removed from version 5. If you are targeting components using these classes, it will be good for you review if you should adapt the CSS in a different way (ie. using design tokens/CSS variables instead, which should work no matter the class name, or adding custom classes to the IDS components). If targeting elements is still required, the new classes will be formatted as: `.ids-radio-${ids-version}`, and nested elements will use a modified BEM naming convention: `.ids-radio--label-${ids-version}`. The version number will be exposed; you can import it via Javascript, SASS and CSS module values to make future upgrades easier.
|
|
284
|
-
|
|
285
|
-
#### [](#option-1-use-design-tokens-and-custom-classes)Option 1: Use design tokens and custom classes
|
|
286
|
-
|
|
287
|
-
This is the recommended approach. You can use design tokens and custom classes to style the components.
|
|
288
|
-
|
|
289
|
-
\[data-radix-scroll-area-viewport\] {
|
|
290
|
-
scrollbar-width: none;
|
|
291
|
-
-ms-overflow-style: none;
|
|
292
|
-
-webkit-overflow-scrolling: touch;
|
|
293
|
-
}
|
|
294
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
295
|
-
display: none;
|
|
296
|
-
}
|
|
297
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
298
|
-
display: flex;
|
|
299
|
-
flex-direction: column;
|
|
300
|
-
align-items: stretch;
|
|
301
|
-
}
|
|
302
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
303
|
-
flex-grow: 1;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.custom-radio {
|
|
307
|
-
\--iress-text-color: red;
|
|
308
|
-
align-self: center;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
Copy
|
|
312
|
-
|
|
313
|
-
\[data-radix-scroll-area-viewport\] {
|
|
314
|
-
scrollbar-width: none;
|
|
315
|
-
-ms-overflow-style: none;
|
|
316
|
-
-webkit-overflow-scrolling: touch;
|
|
317
|
-
}
|
|
318
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
319
|
-
display: none;
|
|
320
|
-
}
|
|
321
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
322
|
-
display: flex;
|
|
323
|
-
flex-direction: column;
|
|
324
|
-
align-items: stretch;
|
|
325
|
-
}
|
|
326
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
327
|
-
flex-grow: 1;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
<IressRadio className\="custom-radio" />
|
|
331
|
-
|
|
332
|
-
Copy
|
|
333
|
-
|
|
334
|
-
#### [](#option-2-target-the-new-classes)Option 2: Target the new classes
|
|
335
|
-
|
|
336
|
-
This option is **not recommended** and should be used as a last resort, as the class names can change in future, in which case your stylesheet will no longer have any effect. It is recommended to use design tokens or custom classes instead.
|
|
337
|
-
|
|
338
|
-
\[data-radix-scroll-area-viewport\] {
|
|
339
|
-
scrollbar-width: none;
|
|
340
|
-
-ms-overflow-style: none;
|
|
341
|
-
-webkit-overflow-scrolling: touch;
|
|
342
|
-
}
|
|
343
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
344
|
-
display: none;
|
|
345
|
-
}
|
|
346
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
347
|
-
display: flex;
|
|
348
|
-
flex-direction: column;
|
|
349
|
-
align-items: stretch;
|
|
350
|
-
}
|
|
351
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
352
|
-
flex-grow: 1;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
@use '@iress/ids-components/dist/constants/index.scss' as \*;
|
|
356
|
-
.ids-radio-#{$ids-version} {
|
|
357
|
-
align-self: center;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.ids-radio--label-#{$ids-version} {
|
|
361
|
-
color: red;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
Copy
|
|
365
|
-
|
|
366
|
-
### [](#theme-tokens)Theme tokens
|
|
367
|
-
|
|
368
|
-
There are a few token changes that have changed (though this has been relatively minor). The version 5 themes have been updated to use the new design tokens, however if you are using version 4 in parallel with version 5, you may notice that the version 4 styles can no longer find the removed/changed tokens.
|
|
369
|
-
|
|
370
|
-
To fix this issue, please backfill the tokens in your application until you have finished your migration.
|
|
371
|
-
|
|
372
|
-
\[data-radix-scroll-area-viewport\] {
|
|
373
|
-
scrollbar-width: none;
|
|
374
|
-
-ms-overflow-style: none;
|
|
375
|
-
-webkit-overflow-scrolling: touch;
|
|
376
|
-
}
|
|
377
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
378
|
-
display: none;
|
|
379
|
-
}
|
|
380
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
381
|
-
display: flex;
|
|
382
|
-
flex-direction: column;
|
|
383
|
-
align-items: stretch;
|
|
384
|
-
}
|
|
385
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
386
|
-
flex-grow: 1;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
/\* TODO: Will be removed once we have moved to IDS version 5 \*/
|
|
390
|
-
/\* Change to the name(s) of the themes you want to back fill. \*/
|
|
391
|
-
.iress-theme-light {
|
|
392
|
-
--iress-alert-error-text-color: var(--iress-alert-danger-text-color);
|
|
393
|
-
--iress-alert-error-background-color: var(
|
|
394
|
-
--iress-alert-danger-background-color
|
|
395
|
-
);
|
|
396
|
-
--iress-alert-error-border-color: var(--iress-alert-danger-border-color);
|
|
397
|
-
--iress-alert-error-heading-icon-text-color: var(
|
|
398
|
-
--iress-alert-danger-heading-icon-text-color
|
|
399
|
-
);
|
|
400
|
-
|
|
401
|
-
--iress-button-margin-right: var(--iress-g-spacing-xs);
|
|
402
|
-
|
|
403
|
-
--iress-combobox-option-meta-font-weight: var(
|
|
404
|
-
--iress-a-muted-font-weight,
|
|
405
|
-
var(--iress-g-font-weight, normal)
|
|
406
|
-
);
|
|
407
|
-
--iress-combobox-option-meta-text-color: var(
|
|
408
|
-
--iress-g-muted-text-color,
|
|
409
|
-
var(--iress-default-text-color--light)
|
|
410
|
-
);
|
|
411
|
-
|
|
412
|
-
--iress-filter-option-meta-font-weight: var(
|
|
413
|
-
--iress-a-muted-font-weight,
|
|
414
|
-
var(--iress-g-font-weight, normal)
|
|
415
|
-
);
|
|
416
|
-
--iress-filter-option-meta-text-color: var(
|
|
417
|
-
--iress-g-muted-text-color,
|
|
418
|
-
var(--iress-default-text-color--light)
|
|
419
|
-
);
|
|
420
|
-
|
|
421
|
-
--iress-form-field-margin-bottom: var(
|
|
422
|
-
--iress-a-vertical-spacing-lg,
|
|
423
|
-
var(--iress-g-spacing-lg)
|
|
424
|
-
);
|
|
425
|
-
|
|
426
|
-
--iress-table-cell-buy-text-color: var(
|
|
427
|
-
--iress-table-cell-positive-text-color
|
|
428
|
-
);
|
|
429
|
-
--iress-table-cell-sell-text-color: var(
|
|
430
|
-
--iress-table-cell-negative-text-color
|
|
431
|
-
);
|
|
432
|
-
--iress-table-cell-selected-buy-text-color: var(
|
|
433
|
-
--iress-table-cell-selected-positive-text-color
|
|
434
|
-
);
|
|
435
|
-
--iress-table-cell-selected-sell-text-color: var(
|
|
436
|
-
--iress-table-cell-selected-negative-text-color
|
|
437
|
-
);
|
|
438
|
-
|
|
439
|
-
--iress-validation-message-error-text-color: var(
|
|
440
|
-
--iress-validation-message-danger-text-color
|
|
441
|
-
);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
Copy
|
|
445
|
-
|
|
446
|
-
[](#ag-grid-theme)AG grid theme
|
|
447
|
-
-------------------------------
|
|
448
|
-
|
|
449
|
-
As of version 5, we only support the lite AG grid theme, which is used in conjunction with the default alpine theme. In version 5, its imports have changed slightly.
|
|
450
|
-
|
|
451
|
-
Run the following command to install the AG grid lite theme:
|
|
452
|
-
|
|
453
|
-
\[data-radix-scroll-area-viewport\] {
|
|
454
|
-
scrollbar-width: none;
|
|
455
|
-
-ms-overflow-style: none;
|
|
456
|
-
-webkit-overflow-scrolling: touch;
|
|
457
|
-
}
|
|
458
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
459
|
-
display: none;
|
|
460
|
-
}
|
|
461
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
462
|
-
display: flex;
|
|
463
|
-
flex-direction: column;
|
|
464
|
-
align-items: stretch;
|
|
465
|
-
}
|
|
466
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
467
|
-
flex-grow: 1;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
yarn add @iress/ag-grid-theme@^5.0.0
|
|
471
|
-
|
|
472
|
-
Copy
|
|
473
|
-
|
|
474
|
-
Then you can import the AG Grid theme CSS, import the relevant IDS theme, and hook up the styles by setting a class of ag-theme-alpine ag-theme-iress-lite on your grid wrapper.
|
|
475
|
-
|
|
476
|
-
Mode
|
|
477
|
-
|
|
478
|
-
DiffOldNew
|
|
479
|
-
|
|
480
|
-
import "@iress/themes/build/css/iress-theme-dark.css";
|
|
481
|
-
|
|
482
|
-
\-
|
|
483
|
-
|
|
484
|
-
import "@iress/themes/global.css";
|
|
485
|
-
|
|
486
|
-
import 'ag-grid-community/styles/ag-grid.css';
|
|
487
|
-
|
|
488
|
-
import 'ag-grid-community/styles/ag-theme-alpine.css';
|
|
489
|
-
|
|
490
|
-
\-
|
|
491
|
-
|
|
492
|
-
import '@iress/ag-grid-theme/dist/lite/css/all.css';
|
|
493
|
-
|
|
494
|
-
+
|
|
495
|
-
|
|
496
|
-
import '@iress/ag-grid-theme/dist/ag-theme-iress-lite.css';
|
|
497
|
-
|
|
498
|
-
// You can also include variables, styles and utilities separately for easy debugging
|
|
499
|
-
|
|
500
|
-
\-
|
|
501
|
-
|
|
502
|
-
// import '@iress/ag-grid-theme/dist/lite/css/variables.css';
|
|
503
|
-
|
|
504
|
-
+
|
|
505
|
-
|
|
506
|
-
// import '@iress/ag-grid-theme/dist/css/variables.css';
|
|
507
|
-
|
|
508
|
-
\-
|
|
509
|
-
|
|
510
|
-
// import '@iress/ag-grid-theme/dist/lite/css/styles.css';
|
|
511
|
-
|
|
512
|
-
+
|
|
513
|
-
|
|
514
|
-
// import '@iress/ag-grid-theme/dist/css/styles.css';
|
|
515
|
-
|
|
516
|
-
\-
|
|
517
|
-
|
|
518
|
-
// import '@iress/ag-grid-theme/dist/lite/css/utilities.css';
|
|
519
|
-
|
|
520
|
-
+
|
|
521
|
-
|
|
522
|
-
// import '@iress/ag-grid-theme/dist/css/utilities.css';
|
|
523
|
-
|
|
524
|
-
<div className="ag-theme-alpine ag-theme-iress-lite">
|
|
525
|
-
|
|
526
|
-
<AgGridReact />
|
|
527
|
-
|
|
528
|
-
</div>
|
|
529
|
-
|
|
530
|
-
[](#removing-version-4)Removing version 4
|
|
531
|
-
-----------------------------------------
|
|
532
|
-
|
|
533
|
-
Version 5 and version 4 can be run in parallel, but it is recommended to remove version 4 to avoid any conflicts once you have completely migrated over your components.
|
|
534
|
-
|
|
535
|
-
Run the following to remove version 4 and its related packages:
|
|
536
|
-
|
|
537
|
-
\[data-radix-scroll-area-viewport\] {
|
|
538
|
-
scrollbar-width: none;
|
|
539
|
-
-ms-overflow-style: none;
|
|
540
|
-
-webkit-overflow-scrolling: touch;
|
|
541
|
-
}
|
|
542
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
543
|
-
display: none;
|
|
544
|
-
}
|
|
545
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
546
|
-
display: flex;
|
|
547
|
-
flex-direction: column;
|
|
548
|
-
align-items: stretch;
|
|
549
|
-
}
|
|
550
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
551
|
-
flex-grow: 1;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
yarn remove @iress/components @iress/components-react @iress/components-react-custom-elements @iress/ids-react-test-utils
|
|
555
|
-
|
|
556
|
-
Copy
|
|
557
|
-
|
|
558
|
-
### [](#remove-globalcss)Remove `global.css`
|
|
559
|
-
|
|
560
|
-
The `global.css` file has been removed, it is now recommended to include the Roboto font directly using Google Fonts.
|
|
561
|
-
|
|
562
|
-
\-
|
|
563
|
-
|
|
564
|
-
import '@iress/themes/global.css';
|
|
565
|
-
|
|
566
|
-
+
|
|
567
|
-
|
|
568
|
-
<link
|
|
569
|
-
|
|
570
|
-
+
|
|
571
|
-
|
|
572
|
-
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap"
|
|
573
|
-
|
|
574
|
-
+
|
|
575
|
-
|
|
576
|
-
rel="stylesheet"
|
|
577
|
-
|
|
578
|
-
+
|
|
579
|
-
|
|
580
|
-
/>
|
|
581
|
-
|
|
582
|
-
### [](#remove-from-jest-configuration)Remove from Jest configuration
|
|
583
|
-
|
|
584
|
-
If you are using Jest, you will need to update your Jest configuration to remove the old IDS packages from your `transformIgnorePatterns`.
|
|
585
|
-
|
|
586
|
-
"transformIgnorePatterns": \[
|
|
587
|
-
|
|
588
|
-
\-
|
|
589
|
-
|
|
590
|
-
"node\_modules/(?!(@iress/components-react|@iress/components|@iress/components-react-custom-elements|@stencil/core)/)"
|
|
591
|
-
|
|
592
|
-
+
|
|
593
|
-
|
|
594
|
-
"/node\_modules/(?!@iress/ids-components)"
|
|
595
|
-
|
|
596
|
-
\]
|
|
597
|
-
|
|
598
|
-
You can also remove the `mockLazyLoadedComponents` function from your Jest setup.
|
|
599
|
-
|
|
600
|
-
\-
|
|
601
|
-
|
|
602
|
-
import { mockLazyLoadedComponents } from '@iress/ids-react-test-utils/dist/react-test-utils/src/mocks/mockLazyLoadedComponents';
|
|
603
|
-
|
|
604
|
-
\-
|
|
605
|
-
|
|
606
|
-
mockLazyLoadedComponents();
|
|
607
|
-
|
|
608
|
-
You should also be able to remove the style mocks from your Jest configuration's `moduleNameMapper`, unless you are using CSS-in-JS, as IDS no longer injects CSS into the DOM.
|
|
609
|
-
|
|
610
|
-
\-
|
|
611
|
-
|
|
612
|
-
"moduleNameMapper": {
|
|
613
|
-
|
|
614
|
-
\-
|
|
615
|
-
|
|
616
|
-
"\\.css$": "<rootDir>/PATH/TO/style-mock.ts"
|
|
617
|
-
|
|
618
|
-
\-
|
|
619
|
-
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
On this page
|
|
623
|
-
|
|
624
|
-
* [Updating your dependencies](#updating-your-dependencies)
|
|
625
|
-
* [Upgrade IDS and themes](#upgrade-ids-and-themes)
|
|
626
|
-
* [Upgrade React](#upgrade-react)
|
|
627
|
-
* [Updating imports](#updating-imports)
|
|
628
|
-
* [Changing components](#changing-components)
|
|
629
|
-
* [Importing component styles](#importing-component-styles)
|
|
630
|
-
* [Update Jest configuration](#update-jest-configuration)
|
|
631
|
-
* [Handling breaking changes](#handling-breaking-changes)
|
|
632
|
-
* [Components](#components)
|
|
633
|
-
* [Testing](#testing)
|
|
634
|
-
* [Styling](#styling)
|
|
635
|
-
* [Theme tokens](#theme-tokens)
|
|
636
|
-
* [AG grid theme](#ag-grid-theme)
|
|
637
|
-
* [Removing version 4](#removing-version-4)
|
|
638
|
-
* [Remove global.css](#remove-globalcss)
|
|
639
|
-
* [Remove from Jest configuration](#remove-from-jest-configuration)
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
[](#available-themes)Available themes
|
|
2
|
-
=====================================
|
|
3
|
-
|
|
4
|
-
These are the available themes you can apply to Iress products. If you are using the component library, these themes will automatically style the components to match the theme.
|
|
5
|
-
|
|
6
|
-
[](#versions)Versions
|
|
7
|
-
---------------------
|
|
8
|
-
|
|
9
|
-
Themes are no longer connected to the version of IDS you are using. Instead they will support a range of IDS versions.
|
|
10
|
-
|
|
11
|
-
`@iress/ids-themes`
|
|
12
|
-
|
|
13
|
-
`@iress/ids-components`
|
|
14
|
-
|
|
15
|
-
5.x
|
|
16
|
-
|
|
17
|
-
5.x
|
|
18
|
-
|
|
19
|
-
4.x
|
|
20
|
-
|
|
21
|
-
3.x - 4.x
|
|
22
|
-
|
|
23
|
-
3.x
|
|
24
|
-
|
|
25
|
-
3.x - 4.x
|
|
26
|
-
|
|
27
|
-
[](#list)List
|
|
28
|
-
-------------
|
|
29
|
-
|
|
30
|
-
Version: 5.4.0-29129
|
|
31
|
-
|
|
32
|
-
* * *
|
|
33
|
-
|
|
34
|
-
5.4.0-29129Latest5.3.2-290865.3.1-290285.3.0-258735.2.2-257575.2.1-254255.2.0-276985.1.1-276795.1.0-274635.0.4-249285.0.3-240325.0.2-23713
|
|
35
|
-
|
|
36
|
-
None selected
|
|
37
|
-
|
|
38
|
-
Latest build only
|
|
39
|
-
|
|
40
|
-
* * *
|
|
41
|
-
|
|
42
|
-
### Version: 5.4.0-29129
|
|
43
|
-
|
|
44
|
-
* [css/demo-theme-1--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-1--touch.css)
|
|
45
|
-
* [css/demo-theme-1.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-1.css)
|
|
46
|
-
* [css/demo-theme-2--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-2--touch.css)
|
|
47
|
-
* [css/demo-theme-2.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-2.css)
|
|
48
|
-
* [css/demo-theme-3--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-3--touch.css)
|
|
49
|
-
* [css/demo-theme-3.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-3.css)
|
|
50
|
-
* [css/demo-theme-4--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-4--touch.css)
|
|
51
|
-
* [css/demo-theme-4.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-4.css)
|
|
52
|
-
* [css/demo-theme-5--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-5--touch.css)
|
|
53
|
-
* [css/demo-theme-5.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/demo-theme-5.css)
|
|
54
|
-
* [css/hostplus-theme-light--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/hostplus-theme-light--touch.css)
|
|
55
|
-
* [css/hostplus-theme-light.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/hostplus-theme-light.css)
|
|
56
|
-
* [css/iress-beta-theme-dark--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-beta-theme-dark--touch.css)
|
|
57
|
-
* [css/iress-beta-theme-dark.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-beta-theme-dark.css)
|
|
58
|
-
* [css/iress-beta-theme-light--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-beta-theme-light--touch.css)
|
|
59
|
-
* [css/iress-beta-theme-light.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-beta-theme-light.css)
|
|
60
|
-
* [css/iress-theme-dark--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-dark--touch.css)
|
|
61
|
-
* [css/iress-theme-dark.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-dark.css)
|
|
62
|
-
* [css/iress-theme-light--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-light--touch.css)
|
|
63
|
-
* [css/iress-theme-light.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-light.css)
|
|
64
|
-
* [css/iress-theme-wealth--touch.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-wealth--touch.css)
|
|
65
|
-
* [css/iress-theme-wealth.css](https://cdn-staging.iress.com/ids/5.4.0-29129/themes/css/iress-theme-wealth.css)
|
|
66
|
-
|
|
67
|
-
#### Theme mappings
|
|
68
|
-
|
|
69
|
-
* [ag-theme-iress-lite.css](https://cdn-staging.iress.com/ids/5.4.0-29129/ag-theme-iress-lite.css)
|
|
70
|
-
|
|
71
|
-
On this page
|
|
72
|
-
|
|
73
|
-
* [Versions](#versions)
|
|
74
|
-
* [List](#list)
|