@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/dist/bundle.js +221 -221
- package/dist/bundle.umd.cjs +7 -7
- package/dist/components/Select/getConfig.d.ts +0 -1
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/components/Select/getConfig.js +4 -2
- package/dist/hooks/useDrawer.d.ts +3 -3
- package/dist/hooks/useDrawer.d.ts.map +1 -1
- package/dist/hooks/useModal.d.ts +3 -3
- package/dist/hooks/useModal.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Select/getConfig.tsx +2 -2
- package/src/components/Select/styles.css +2 -1
- package/src/hooks/useDrawer.ts +5 -3
- package/src/hooks/useModal.ts +5 -3
package/package.json
CHANGED
|
@@ -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 {
|
package/src/hooks/useDrawer.ts
CHANGED
|
@@ -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
|
|
8
|
+
function useDrawer<T = any>(): DrawerContextProps<T>;
|
|
9
|
+
function useDrawer<T = any>(
|
|
10
|
+
key: string
|
|
11
|
+
): {
|
|
10
12
|
drawerIsOpen: boolean;
|
|
11
|
-
drawerData:
|
|
13
|
+
drawerData: T;
|
|
12
14
|
openDrawer: OpenDrawerProps;
|
|
13
15
|
closeDrawer: () => void;
|
|
14
16
|
};
|
package/src/hooks/useModal.ts
CHANGED
|
@@ -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
|
|
8
|
+
function useModal<T = any>(): ModalContextProps<T>;
|
|
9
|
+
function useModal<T = any>(
|
|
10
|
+
key: string
|
|
11
|
+
): {
|
|
10
12
|
modalIsOpen: boolean;
|
|
11
|
-
modalData:
|
|
13
|
+
modalData: T;
|
|
12
14
|
openModal: OpenModalProps;
|
|
13
15
|
closeModal: () => void;
|
|
14
16
|
};
|