@pisell/materials 1.0.561 → 1.0.562

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.
@@ -87,6 +87,9 @@ var PhoneInput = function PhoneInput(_ref) {
87
87
  var selectedCountry = countries.find(function (c) {
88
88
  return c.code === countryCode;
89
89
  });
90
+ if (phoneNumber.length === 0) {
91
+ return "";
92
+ }
90
93
  var prefix = (selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.prefix) || "";
91
94
  return "".concat(prefix).concat(phoneNumber);
92
95
  }, [countryCode, phoneNumber, countries]);
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
170
+ }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  export {};
@@ -90,6 +90,9 @@ var PhoneInput = ({ value: propsValue, onChange, isVerification, disabled, ...pr
90
90
  const selectedCountry = countries.find(
91
91
  (c) => c.code === countryCode
92
92
  );
93
+ if (phoneNumber.length === 0) {
94
+ return "";
95
+ }
93
96
  const prefix = (selectedCountry == null ? void 0 : selectedCountry.prefix) || "";
94
97
  return `${prefix}${phoneNumber}`;
95
98
  }, [countryCode, phoneNumber, countries]);
@@ -167,7 +167,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
167
167
  sort?: SortType | undefined;
168
168
  mode: "" | "localStorage" | "remote";
169
169
  currentViewMode: ModeType;
170
- }) => ("filter_setting" | "column_setting" | "gallery_setting" | "view_mode" | "group_by" | "order_by")[];
170
+ }) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
171
171
  export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
172
172
  export declare const stringify: (obj: Record<string, any>) => string;
173
173
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.561",
3
+ "version": "1.0.562",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",