@homefile/components-v2 2.8.47 → 2.8.49

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.
@@ -8,7 +8,7 @@ export const GridField = ({ children }) => {
8
8
  const baseProps = {
9
9
  id,
10
10
  value,
11
- placeholder: name !== null && name !== void 0 ? name : description,
11
+ placeholder: (name && name !== "") ? name : description,
12
12
  icon: icon ? fieldIcons[icon] : undefined,
13
13
  };
14
14
  switch (type) {
@@ -5,7 +5,7 @@ export interface MoveModalI {
5
5
  firstInitialFilter?: string;
6
6
  loading?: boolean;
7
7
  onClose?: () => void;
8
- onFirstFilterClick: (value: string | SelectItemI) => void;
8
+ onFirstFilterClick?: (value: string | SelectItemI) => void;
9
9
  onSave: (form: SelectFiltersFormI) => void;
10
10
  secondFilterItems: SelectItemI[] | string[];
11
11
  secondInitialFilter?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homefile/components-v2",
3
- "version": "2.8.47",
3
+ "version": "2.8.49",
4
4
  "author": "Homefile",
5
5
  "license": "UNLICENSED",
6
6
  "typings": "dist/index.d.ts",
@@ -17,7 +17,7 @@ export const GridField = ({ children }: Pick<ReportI, 'children'>) => {
17
17
  const baseProps = {
18
18
  id,
19
19
  value,
20
- placeholder: name ?? description,
20
+ placeholder: (name && name !== "") ? name : description,
21
21
  icon: icon ? (fieldIcons[icon] as IconTypes) : undefined,
22
22
  }
23
23
 
@@ -6,7 +6,7 @@ export interface MoveModalI {
6
6
  firstInitialFilter?: string
7
7
  loading?: boolean
8
8
  onClose?: () => void
9
- onFirstFilterClick: (value: string | SelectItemI) => void
9
+ onFirstFilterClick?: (value: string | SelectItemI) => void
10
10
  onSave: (form: SelectFiltersFormI) => void
11
11
  secondFilterItems: SelectItemI[] | string[]
12
12
  secondInitialFilter?: string