@campxdev/react-blueprint 1.3.3 → 1.3.4

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": "@campxdev/react-blueprint",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -42,6 +42,8 @@ export type SingleSelectProps = {
42
42
  dbValueProps?: {
43
43
  valueKey: string;
44
44
  isObjectId?: boolean;
45
+ isInt?: boolean;
46
+ isFloat?: boolean;
45
47
  };
46
48
  dbLabelProps?: { labelKey: string; subLabelKey?: string };
47
49
  onChange: (value: any) => void;
@@ -188,6 +190,8 @@ export const SingleSelect = ({
188
190
  dbValueProps = {
189
191
  valueKey: 'id',
190
192
  isObjectId: false,
193
+ isInt: false,
194
+ isFloat: false,
191
195
  },
192
196
  dbLabelProps,
193
197
  onOpen,
@@ -328,8 +332,10 @@ export const SingleSelect = ({
328
332
  offset: offset + 10,
329
333
 
330
334
  dbValueProps: {
331
- ...dbValueProps,
335
+ valueKey: dbValueProps.valueKey,
332
336
  ...(dbValueProps.isObjectId && { isObjectId: true }),
337
+ ...(dbValueProps.isInt && { isInt: true }),
338
+ ...(dbValueProps.isFloat && { isFloat: true }),
333
339
  selectedValueData: value,
334
340
  },
335
341
  dbLabelProps: {
@@ -385,8 +391,10 @@ export const SingleSelect = ({
385
391
  limit,
386
392
  offset: 0,
387
393
  dbValueProps: {
388
- ...dbValueProps,
394
+ valueKey: dbValueProps.valueKey,
389
395
  ...(dbValueProps.isObjectId && { isObjectId: true }),
396
+ ...(dbValueProps.isInt && { isInt: true }),
397
+ ...(dbValueProps.isFloat && { isFloat: true }),
390
398
  selectedValueData: value,
391
399
  },
392
400
  dbLabelProps: {
@@ -449,8 +457,10 @@ export const SingleSelect = ({
449
457
  limit,
450
458
  offset,
451
459
  dbValueProps: {
452
- ...dbValueProps,
460
+ valueKey: dbValueProps.valueKey,
453
461
  ...(dbValueProps.isObjectId && { isObjectId: true }),
462
+ ...(dbValueProps.isInt && { isInt: true }),
463
+ ...(dbValueProps.isFloat && { isFloat: true }),
454
464
  selectedValueData: value,
455
465
  filterBySelectedValues: true,
456
466
  },