@integry/sdk 4.6.16 → 4.6.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.6.16",
3
+ "version": "4.6.17",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -383,6 +383,9 @@ const ListBox = (props: ListBoxProps) => {
383
383
 
384
384
  // Check if inputModified is an array, if not, return an empty array
385
385
  if (!Array.isArray(inputModified)) {
386
+ console.warn(
387
+ `Invalid data format for dropdown options for field ${fieldId}`,
388
+ );
386
389
  return [];
387
390
  }
388
391
 
@@ -417,6 +420,17 @@ const ListBox = (props: ListBoxProps) => {
417
420
  value = id;
418
421
  }
419
422
 
423
+ if (id === '') {
424
+ console.warn(
425
+ `${keyPath} was not found in the response for field ${fieldId}`,
426
+ );
427
+ }
428
+ if (value === '') {
429
+ console.warn(
430
+ `${valuePath} was not found in the response for field ${fieldId}`,
431
+ );
432
+ }
433
+
420
434
  return { id, value };
421
435
  });
422
436
  };
@@ -31,6 +31,10 @@
31
31
  cursor: pointer;
32
32
  position: relative;
33
33
 
34
+ svg {
35
+ margin-right: 4px;
36
+ }
37
+
34
38
  &.tabWithResults {
35
39
  font-weight: 500;
36
40
  color: #4f46e5;
@@ -157,10 +161,29 @@
157
161
  color: #3b82f6;
158
162
  }
159
163
  }
160
- span.value,
161
- span.key {
162
- color: hsl(240 3.8% 46.1%);
164
+ span.value {
165
+ color: hsl(240 3.8% 60%);
163
166
  font-size: 0.75rem;
167
+ font-weight: 400;
168
+ font-style: italic;
169
+ line-height: 1rem;
170
+ overflow: hidden;
171
+ text-overflow: ellipsis;
172
+ white-space: nowrap;
173
+ margin-left: 5px;
174
+
175
+ mark {
176
+ background-color: rgba(79, 70, 229, 0.2);
177
+ color: inherit;
178
+ font-weight: 500;
179
+ border-radius: 2px;
180
+ padding: 0 2px;
181
+ }
182
+ }
183
+ span.key {
184
+ color: hsl(240 10% 3.9%);
185
+ font-weight: 500;
186
+ font-size: 0.8rem;
164
187
  line-height: 1rem;
165
188
  overflow: hidden;
166
189
  text-overflow: ellipsis;
@@ -185,12 +208,19 @@
185
208
  }
186
209
  }
187
210
  .outputSection {
188
- margin-top: 5px;
189
- margin-bottom: 5px;
190
- padding: 5px;
191
211
  background-color: rgba(0, 0, 0, 0.02);
192
212
  border-radius: 4px;
193
213
  border-left: 2px solid #e2e8f0;
214
+
215
+ // Remove padding when the section is empty
216
+ ul {
217
+ padding: 5px;
218
+ &:empty {
219
+ padding: 0;
220
+ border-left: none;
221
+ background-color: transparent;
222
+ }
223
+ }
194
224
  }
195
225
  }
196
226
  }