@arkyn/types 1.3.156 → 1.3.158
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/MultiSelectProps.d.ts +30 -0
- package/dist/components/MultiSelectProps.d.ts.map +1 -0
- package/dist/components/MultiSelectProps.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/components/MultiSelectProps.ts +37 -0
- package/src/index.ts +1 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
2
|
+
import type { FocusEvent } from "react";
|
3
|
+
type MultiSelectProps = {
|
4
|
+
name: string;
|
5
|
+
options: {
|
6
|
+
label: string;
|
7
|
+
value: string;
|
8
|
+
}[];
|
9
|
+
value?: string[];
|
10
|
+
defaultValue?: string[];
|
11
|
+
placeholder?: string;
|
12
|
+
notFoundText?: string;
|
13
|
+
className?: string;
|
14
|
+
disabled?: boolean;
|
15
|
+
readOnly?: boolean;
|
16
|
+
isLoading?: boolean;
|
17
|
+
isError?: boolean;
|
18
|
+
isSearchable?: boolean;
|
19
|
+
closeOnSelect?: boolean;
|
20
|
+
onSearch?: (value: string) => void;
|
21
|
+
onSelect?: (value: string[]) => void;
|
22
|
+
onFocus?: () => void;
|
23
|
+
onBlur?: (e: FocusEvent<HTMLDivElement>) => void;
|
24
|
+
size?: "md" | "lg";
|
25
|
+
variant?: "solid" | "outline" | "underline";
|
26
|
+
prefix?: string | LucideIcon;
|
27
|
+
leftIcon?: LucideIcon;
|
28
|
+
};
|
29
|
+
export type { MultiSelectProps };
|
30
|
+
//# sourceMappingURL=MultiSelectProps.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MultiSelectProps.d.ts","sourceRoot":"","sources":["../../src/components/MultiSelectProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAE5C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAErC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAEjD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;IAE5C,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB,CAAC;AAEF,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
@@ -24,6 +24,7 @@ export * from "./components/IconButtonProps";
|
|
24
24
|
export * from "./components/ImageUploadProps";
|
25
25
|
export * from "./components/InputProps";
|
26
26
|
export * from "./components/ModalProps";
|
27
|
+
export * from "./components/MultiSelectProps";
|
27
28
|
export * from "./components/PaginationProps";
|
28
29
|
export * from "./components/PopoverProps";
|
29
30
|
export * from "./components/RadioProps";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAG7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACx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4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAG9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC"}
|
package/dist/index.js
CHANGED
@@ -26,6 +26,7 @@ export * from "./components/IconButtonProps";
|
|
26
26
|
export * from "./components/ImageUploadProps";
|
27
27
|
export * from "./components/InputProps";
|
28
28
|
export * from "./components/ModalProps";
|
29
|
+
export * from "./components/MultiSelectProps";
|
29
30
|
export * from "./components/PaginationProps";
|
30
31
|
export * from "./components/PopoverProps";
|
31
32
|
export * from "./components/RadioProps";
|
package/package.json
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
2
|
+
import type { FocusEvent } from "react";
|
3
|
+
|
4
|
+
type MultiSelectProps = {
|
5
|
+
name: string;
|
6
|
+
options: { label: string; value: string }[];
|
7
|
+
|
8
|
+
value?: string[];
|
9
|
+
defaultValue?: string[];
|
10
|
+
|
11
|
+
placeholder?: string;
|
12
|
+
notFoundText?: string;
|
13
|
+
className?: string;
|
14
|
+
|
15
|
+
disabled?: boolean;
|
16
|
+
readOnly?: boolean;
|
17
|
+
|
18
|
+
isLoading?: boolean;
|
19
|
+
isError?: boolean;
|
20
|
+
isSearchable?: boolean;
|
21
|
+
|
22
|
+
closeOnSelect?: boolean;
|
23
|
+
|
24
|
+
onSearch?: (value: string) => void;
|
25
|
+
onSelect?: (value: string[]) => void;
|
26
|
+
|
27
|
+
onFocus?: () => void;
|
28
|
+
onBlur?: (e: FocusEvent<HTMLDivElement>) => void;
|
29
|
+
|
30
|
+
size?: "md" | "lg";
|
31
|
+
variant?: "solid" | "outline" | "underline";
|
32
|
+
|
33
|
+
prefix?: string | LucideIcon;
|
34
|
+
leftIcon?: LucideIcon;
|
35
|
+
};
|
36
|
+
|
37
|
+
export type { MultiSelectProps };
|
package/src/index.ts
CHANGED
@@ -27,6 +27,7 @@ export * from "./components/IconButtonProps";
|
|
27
27
|
export * from "./components/ImageUploadProps";
|
28
28
|
export * from "./components/InputProps";
|
29
29
|
export * from "./components/ModalProps";
|
30
|
+
export * from "./components/MultiSelectProps";
|
30
31
|
export * from "./components/PaginationProps";
|
31
32
|
export * from "./components/PopoverProps";
|
32
33
|
export * from "./components/RadioProps";
|