@nuskin/foundation-ui-components 1.19.1 → 1.19.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/foundation-ui-components",
3
- "version": "1.19.1",
3
+ "version": "1.19.2",
4
4
  "description": "It is a foundation library written in react, that provides common components to all UI pages",
5
5
  "main": "src/common/index.ts",
6
6
  "repository": {
@@ -1,12 +1,29 @@
1
- import { Autocomplete, AutocompleteRenderInputParams } from '@mui/material';
2
- import React, { PropsWithChildren, useEffect, useRef, useState } from 'react';
1
+ import React, {
2
+ PropsWithChildren,
3
+ useEffect,
4
+ useRef,
5
+ useState,
6
+ } from 'react';
7
+
8
+ import {
9
+ Autocomplete,
10
+ AutocompleteRenderInputParams,
11
+ } from '@mui/material';
3
12
 
4
13
  import { LineLoader } from './helper/LineLoader';
5
14
  import { RecentClearAll } from './helper/RecentClearAll';
6
- import { renderGroupBy, renderGroupName, renderOptionLabel } from './helper/renderGroupName';
15
+ import {
16
+ renderGroupBy,
17
+ renderGroupName,
18
+ renderOptionLabel,
19
+ } from './helper/renderGroupName';
7
20
  import { SeeMoreButton } from './helper/SeeMoreButton';
8
21
  import { StyledTextField } from './NsAutocomplete.styled';
9
- import { ComponentBoxProps, NsAutocompleteProps, OptionsProps } from './types.d';
22
+ import {
23
+ ComponentBoxProps,
24
+ NsAutocompleteProps,
25
+ OptionsProps,
26
+ } from './types.d';
10
27
 
11
28
  const noop = () => {};
12
29
  const NsAutocomplete = ({
@@ -38,7 +55,7 @@ const NsAutocomplete = ({
38
55
 
39
56
  const renderInput = (params: AutocompleteRenderInputParams) => (
40
57
  <StyledTextField
41
- {...params}
58
+ {...(params as any)}
42
59
  placeholder={placeholder}
43
60
  InputProps={{
44
61
  ...params.InputProps,
@@ -53,7 +70,7 @@ const NsAutocomplete = ({
53
70
  OptionsUI ? (
54
71
  <OptionsUI {...props} option={option} key={props.id} />
55
72
  ) : (
56
- <li {...props} key={props.id}>
73
+ <li {...(props as any)} key={props.id}>
57
74
  {option.value}
58
75
  </li>
59
76
  );