@iress-oss/ids-mcp-server 6.0.0-alpha.1-canary-20251204040305-3639454 → 6.0.0-alpha.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.
@@ -619,34 +619,24 @@ The minimum number to accept for this input.
619
619
 
620
620
  ```
621
621
 
622
- <ForwardedForm\>
623
- <IressFormField
624
- hint\="Select a minimum of 20"
625
- label\="Default message"
626
- name\="IressInput-default"
627
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
628
- rules\={{
622
+ {
623
+ ...Default,
624
+ args: {
625
+ element: 'IressInput',
626
+ field: {
627
+ hint: 'Select a minimum of 20'
628
+ },
629
+ rules: {
629
630
  min: 20
630
- }}
631
- />
632
- <IressFormField
633
- hint\="Select a minimum of 20"
634
- label\="Custom message"
635
- name\="IressInput-custom"
636
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
637
- rules\={{
631
+ },
632
+ customRules: {
638
633
  min: {
639
- message: 'Please enter a min of 20!',
640
- value: 20
634
+ value: 20,
635
+ message: 'Please enter a min of 20!'
641
636
  }
642
- }}
643
- />
644
- <IressButton
645
- mode\="primary"
646
- type\="submit"
647
- \>
648
- Validate </IressButton\>
649
- </ForwardedForm\>
637
+ }
638
+ }
639
+ }
650
640
 
651
641
  ```
652
642
 
@@ -668,29 +658,24 @@ The accepted regex pattern for the input.
668
658
 
669
659
  ```
670
660
 
671
- <ForwardedForm\>
672
- <IressFormField
673
- hint\="Enter a valid email address"
674
- label\="Default message"
675
- name\="IressInput-default"
676
- render\={(controlledProps) \=> <IressInput {...controlledProps} />}
677
- rules\={{
661
+ {
662
+ ...Default,
663
+ args: {
664
+ element: 'IressInput',
665
+ field: {
666
+ hint: 'Enter a valid email address'
667
+ },
668
+ rules: {
678
669
  pattern: /^\[a-zA-Z0-9.!#$%&'\*+/=?^\_\`{|}~-\]+@\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?(?:\\.\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?)\*$/
679
- }}
680
- />
681
- <IressFormField hint="Enter a valid email address" label="Custom message" name="IressInput-custom" render={(controlledProps) \=> <IressInput {...controlledProps} />}
682
- rules={{
670
+ },
671
+ customRules: {
683
672
  pattern: {
684
- message: 'Please enter a valid email address!',
685
- value: /^\[a-zA-Z0-9.!#$%&'\*+/=?^\_\`{|}~-\]+@\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?(?:\\.\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?)\*$/
673
+ value: /^\[a-zA-Z0-9.!#$%&'\*+/=?^\_\`{|}~-\]+@\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?(?:\\.\[a-zA-Z0-9\](?:\[a-zA-Z0-9-\]{0,61}\[a-zA-Z0-9\])?)\*$/,
674
+ message: 'Please enter a valid email address!'
686
675
  }
687
- }}
688
- /> <IressButton
689
- mode\="primary"
690
- type\="submit"
691
- \>
692
- Validate </IressButton\>
693
- </ForwardedForm\>
676
+ }
677
+ }
678
+ }
694
679
 
695
680
  ```
696
681
 
@@ -10,8 +10,19 @@ Updating your dependencies
10
10
 
11
11
  Update your dependencies in your `package.json` file to the following:
12
12
 
13
+ "dependencies": {
14
+ "@iress-oss/ids-components": "^5.0.0",
15
+ "@iress/themes": "^5.0.0"
16
+ }
17
+
18
+ ```
19
+
13
20
  or run:
14
21
 
22
+ yarn add @iress-oss/ids-components@^5.0.0 @iress/themes@^5.0.0
23
+
24
+ ```
25
+
15
26
  ### Upgrade React
16
27
 
17
28
  The minimum required version of React is 17. If you are using an older version of React, you will need to update it.
@@ -33,6 +44,10 @@ You can run both packages together, so you can migrate components one by one.
33
44
 
34
45
  IDS v5 no longer injects CSS into the DOM. You will need to import the stylesheet directly into your application.
35
46
 
47
+ import '@iress-oss/ids-components/dist/style.css';
48
+
49
+ ```
50
+
36
51
  Update Jest configuration
37
52
  -------------------------
38
53
 
@@ -40,6 +55,12 @@ If you are using Jest, you will need to update your Jest configuration to add th
40
55
 
41
56
  **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.
42
57
 
58
+ "transformIgnorePatterns": \[
59
+ "/node\_modules/(?!@iress-oss/ids-components)"
60
+ \]
61
+
62
+ ```
63
+
43
64
  If you are mocking CSS files for your tests, you'll also need to make sure the new stylesheet is matched by your `moduleNameMapper`:
44
65
 
45
66
  <table class="css-1n5o7vh-diff-container"><tbody><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker"><pre></pre></td><td class="css-vl0irh-content"><pre class="css-o1u8iu-content-text"> "moduleNameMapper": {</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker"><pre></pre></td><td class="css-vl0irh-content"><pre class="css-o1u8iu-content-text"> "^.+\.(scss|less)$": "&lt;rootDir&gt;/test/style-mock.ts",</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker"><pre></pre></td><td class="css-vl0irh-content"><pre class="css-o1u8iu-content-text"> "ids-web-components.css$": "&lt;rootDir&gt;/test/style-mock.ts",</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker css-rq9a2a-diff-removed"><pre>-</pre></td><td class="css-vl0irh-content css-rq9a2a-diff-removed"><pre class="css-o1u8iu-content-text"> "global.css$": "&lt;rootDir&gt;/test/style-mock.ts"</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker css-cnnxkz-diff-added"><pre>+</pre></td><td class="css-vl0irh-content css-cnnxkz-diff-added"><pre class="css-o1u8iu-content-text"> "global.css$": "&lt;rootDir&gt;/test/style-mock.ts",</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker css-cnnxkz-diff-added"><pre>+</pre></td><td class="css-vl0irh-content css-cnnxkz-diff-added"><pre class="css-o1u8iu-content-text"> "@iress-oss/ids-components/(.*).css": "&lt;rootDir&gt;/test/style-mock.ts"</pre></td></tr><tr class="css-1n7ec1i-line"><td class="css-17vezug-marker"><pre></pre></td><td class="css-vl0irh-content"><pre class="css-o1u8iu-content-text"> },</pre></td></tr></tbody></table>
@@ -87,16 +108,95 @@ These classes have been removed from version 5. If you are targeting components
87
108
 
88
109
  This is the recommended approach. You can use design tokens and custom classes to style the components.
89
110
 
111
+ .custom-radio {
112
+ \--iress-text-color: red;
113
+ align-self: center;
114
+ }
115
+
116
+ ```
117
+
118
+ <IressRadio className\="custom-radio" />
119
+
120
+ ```
121
+
90
122
  #### Option 2: Target the new classes
91
123
 
92
124
  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.
93
125
 
126
+ @use '@iress-oss/ids-components/dist/constants/index.scss' as \*;
127
+ .ids-radio-#{$ids-version} {
128
+ align-self: center;
129
+ }
130
+
131
+ .ids-radio--label-#{$ids-version} {
132
+ color: red;
133
+ }
134
+
135
+ ```
136
+
94
137
  ### Theme tokens
95
138
 
96
139
  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.
97
140
 
98
141
  To fix this issue, please backfill the tokens in your application until you have finished your migration.
99
142
 
143
+ /\* TODO: Will be removed once we have moved to IDS version 5 \*/
144
+ /\* Change to the name(s) of the themes you want to back fill. \*/
145
+ .iress-theme-light {
146
+ --iress-alert-error-text-color: var(--iress-alert-danger-text-color);
147
+ --iress-alert-error-background-color: var(
148
+ --iress-alert-danger-background-color
149
+ );
150
+ --iress-alert-error-border-color: var(--iress-alert-danger-border-color);
151
+ --iress-alert-error-heading-icon-text-color: var(
152
+ --iress-alert-danger-heading-icon-text-color
153
+ );
154
+
155
+ --iress-button-margin-right: var(--iress-g-spacing-xs);
156
+
157
+ --iress-combobox-option-meta-font-weight: var(
158
+ --iress-a-muted-font-weight,
159
+ var(--iress-g-font-weight, normal)
160
+ );
161
+ --iress-combobox-option-meta-text-color: var(
162
+ --iress-g-muted-text-color,
163
+ var(--iress-default-text-color--light)
164
+ );
165
+
166
+ --iress-filter-option-meta-font-weight: var(
167
+ --iress-a-muted-font-weight,
168
+ var(--iress-g-font-weight, normal)
169
+ );
170
+ --iress-filter-option-meta-text-color: var(
171
+ --iress-g-muted-text-color,
172
+ var(--iress-default-text-color--light)
173
+ );
174
+
175
+ --iress-form-field-margin-bottom: var(
176
+ --iress-a-vertical-spacing-lg,
177
+ var(--iress-g-spacing-lg)
178
+ );
179
+
180
+ --iress-table-cell-buy-text-color: var(
181
+ --iress-table-cell-positive-text-color
182
+ );
183
+ --iress-table-cell-sell-text-color: var(
184
+ --iress-table-cell-negative-text-color
185
+ );
186
+ --iress-table-cell-selected-buy-text-color: var(
187
+ --iress-table-cell-selected-positive-text-color
188
+ );
189
+ --iress-table-cell-selected-sell-text-color: var(
190
+ --iress-table-cell-selected-negative-text-color
191
+ );
192
+
193
+ --iress-validation-message-error-text-color: var(
194
+ --iress-validation-message-danger-text-color
195
+ );
196
+ }
197
+
198
+ ```
199
+
100
200
  AG grid theme
101
201
  -------------
102
202
 
@@ -104,6 +204,10 @@ As of version 5, we only support the lite AG grid theme, which is used in conjun
104
204
 
105
205
  Run the following command to install the AG grid lite theme:
106
206
 
207
+ yarn add @iress/ag-grid-theme@^5.0.0
208
+
209
+ ```
210
+
107
211
  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.
108
212
 
109
213
  Diff
@@ -121,6 +225,10 @@ Version 5 and version 4 can be run in parallel, but it is recommended to remove
121
225
 
122
226
  Run the following to remove version 4 and its related packages:
123
227
 
228
+ yarn remove @iress/components @iress/components-react @iress/components-react-custom-elements @iress/ids-react-test-utils
229
+
230
+ ```
231
+
124
232
  ### Remove `global.css`
125
233
 
126
234
  The `global.css` file has been removed, it is now recommended to include the Roboto font directly using Google Fonts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iress-oss/ids-mcp-server",
3
- "version": "6.0.0-alpha.1-canary-20251204040305-3639454",
3
+ "version": "6.0.0-alpha.2",
4
4
  "description": "Model Context Protocol (MCP) server for Iress Design System (IDS) component library - provides AI assistants with contextual information about IDS components, design tokens, and usage patterns",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -58,6 +58,5 @@
58
58
  "repository": {
59
59
  "type": "git",
60
60
  "url": "https://github.com/iress/design-system"
61
- },
62
- "stableVersion": "6.0.0-alpha.1"
61
+ }
63
62
  }