@arkyn/components 1.3.52 → 1.3.53

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": "@arkyn/components",
3
- "version": "1.3.52",
3
+ "version": "1.3.53",
4
4
  "main": "./dist/bundle.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Lucas Gonçalves",
@@ -18,7 +18,7 @@ function getConfig(props: SelectProps, isFocused: boolean) {
18
18
  onBlur,
19
19
  title,
20
20
  style,
21
- isSearchable = false,
21
+ // isSearchable = false,
22
22
  closeOnSelect = true,
23
23
  ...rest
24
24
  } = props;
@@ -44,7 +44,7 @@ function getConfig(props: SelectProps, isFocused: boolean) {
44
44
  title,
45
45
  closeOnSelect,
46
46
  style,
47
- isSearchable,
47
+ // isSearchable,
48
48
  iconSize: iconSize,
49
49
  Spinner: <Loader2 className="spinner" size={iconSize} strokeWidth={2.5} />,
50
50
  ...rest,
@@ -220,6 +220,8 @@
220
220
 
221
221
  border: 1px solid var(--border);
222
222
  background-color: var(--card);
223
+
224
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
223
225
  }
224
226
 
225
227
  .arkyn_select_content .arkyn_select_option {
@@ -241,7 +243,6 @@
241
243
  .arkyn_select.lg .arkyn_select_content .arkyn_select_option {
242
244
  font-size: 16px;
243
245
  padding: 8px 16px;
244
- border-radius: var(--rounded-inputs);
245
246
  }
246
247
 
247
248
  .arkyn_select_content > p {
@@ -5,10 +5,12 @@ import { DrawerContext } from "../context/DrawerContext";
5
5
 
6
6
  type OpenDrawerProps = (e?: { data: any }) => void;
7
7
 
8
- function useDrawer(): DrawerContextProps;
9
- function useDrawer(key: string): {
8
+ function useDrawer<T = any>(): DrawerContextProps<T>;
9
+ function useDrawer<T = any>(
10
+ key: string
11
+ ): {
10
12
  drawerIsOpen: boolean;
11
- drawerData: any;
13
+ drawerData: T;
12
14
  openDrawer: OpenDrawerProps;
13
15
  closeDrawer: () => void;
14
16
  };
@@ -5,10 +5,12 @@ import { ModalContext } from "../context/ModalContext";
5
5
 
6
6
  type OpenModalProps = (e?: { data: any }) => void;
7
7
 
8
- function useModal(): ModalContextProps;
9
- function useModal(key: string): {
8
+ function useModal<T = any>(): ModalContextProps<T>;
9
+ function useModal<T = any>(
10
+ key: string
11
+ ): {
10
12
  modalIsOpen: boolean;
11
- modalData: any;
13
+ modalData: T;
12
14
  openModal: OpenModalProps;
13
15
  closeModal: () => void;
14
16
  };