@arkyn/types 1.2.3 → 1.2.5

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.
@@ -0,0 +1,11 @@
1
+ import type { InputHTMLAttributes } from "react";
2
+ type CheckboxProps = {
3
+ isError?: boolean;
4
+ size?: "md" | "lg" | "sm";
5
+ name: string;
6
+ value?: string;
7
+ defaultChecked?: boolean;
8
+ onCheck?: (value: string) => void;
9
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "type" | "name" | "defaultValue" | "value" | "onChange" | "onSelect">;
10
+ export type { CheckboxProps };
11
+ //# sourceMappingURL=CheckboxProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxProps.d.ts","sourceRoot":"","sources":["../../src/components/CheckboxProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,aAAa,GAAG;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,CACb,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { LucideIcon } from "lucide-react";
2
+ import type { InputHTMLAttributes } from "react";
3
+ type SelectProps = {
4
+ isLoading?: boolean;
5
+ isError?: boolean;
6
+ isSearchable?: boolean;
7
+ size?: "md" | "lg";
8
+ variant?: "solid" | "outline" | "underline";
9
+ prefix?: string | LucideIcon;
10
+ leftIcon?: LucideIcon;
11
+ name: string;
12
+ value?: string;
13
+ defaultValue?: string;
14
+ options: {
15
+ label: string;
16
+ value: string;
17
+ }[];
18
+ onSelect?: (value: {
19
+ label: string;
20
+ value: string;
21
+ }) => void;
22
+ } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "type" | "name" | "defaultValue" | "value" | "onChange" | "onSelect">;
23
+ export type { SelectProps };
24
+ //# sourceMappingURL=SelectProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectProps.d.ts","sourceRoot":"","sources":["../../src/components/SelectProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,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;IAEtB,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9D,GAAG,IAAI,CACN,mBAAmB,CAAC,gBAAgB,CAAC,EACnC,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,cAAc,GACd,OAAO,GACP,UAAU,GACV,UAAU,CACb,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -11,11 +11,13 @@ export * from "./api/config/ResponseDTO";
11
11
  export * from "./components/BadgeProps";
12
12
  export * from "./components/BreadcrumbProps";
13
13
  export * from "./components/ButtonProps";
14
+ export * from "./components/CheckboxProps";
14
15
  export * from "./components/DividerProps";
15
16
  export * from "./components/FormProps";
16
17
  export * from "./components/IconButtonProps";
17
18
  export * from "./components/InputProps";
18
19
  export * from "./components/ModalProps";
20
+ export * from "./components/SelectProps";
19
21
  export * from "./components/SkeletonProps";
20
22
  export * from "./components/TooltipProps";
21
23
  export * from "./server/formParseProps";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,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;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAG1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,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;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAG1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,wCAAwC,CAAC"}
package/dist/index.js CHANGED
@@ -13,11 +13,13 @@ export * from "./api/config/ResponseDTO";
13
13
  export * from "./components/BadgeProps";
14
14
  export * from "./components/BreadcrumbProps";
15
15
  export * from "./components/ButtonProps";
16
+ export * from "./components/CheckboxProps";
16
17
  export * from "./components/DividerProps";
17
18
  export * from "./components/FormProps";
18
19
  export * from "./components/IconButtonProps";
19
20
  export * from "./components/InputProps";
20
21
  export * from "./components/ModalProps";
22
+ export * from "./components/SelectProps";
21
23
  export * from "./components/SkeletonProps";
22
24
  export * from "./components/TooltipProps";
23
25
  // Server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -10,14 +10,14 @@
10
10
  "typecheck": "bunx tsc --project tsconfig.json --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@react-input/mask": ">=1.1.1",
14
- "@remix-run/react": ">=2.8.0",
15
- "lucide-react": ">=0.349.0",
16
- "react": ">=18.2.0",
17
- "react-dom": ">=18.2.0"
13
+ "@react-input/mask": ">=1.2.4",
14
+ "@remix-run/react": ">=2.9.2",
15
+ "lucide-react": ">=0.378.0",
16
+ "react": ">=18.3.1",
17
+ "react-dom": ">=18.3.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/react": "^18.3.1",
20
+ "@types/react": "^18.3.2",
21
21
  "@types/react-dom": "^18.3.0",
22
22
  "bun-types": "latest",
23
23
  "typescript": "^5.4.5"
@@ -0,0 +1,25 @@
1
+ import type { InputHTMLAttributes } from "react";
2
+
3
+ type CheckboxProps = {
4
+ isError?: boolean;
5
+
6
+ size?: "md" | "lg" | "sm";
7
+
8
+ name: string;
9
+ value?: string;
10
+
11
+ defaultChecked?: boolean;
12
+ onCheck?: (value: string) => void;
13
+ } & Omit<
14
+ InputHTMLAttributes<HTMLInputElement>,
15
+ | "size"
16
+ | "prefix"
17
+ | "type"
18
+ | "name"
19
+ | "defaultValue"
20
+ | "value"
21
+ | "onChange"
22
+ | "onSelect"
23
+ >;
24
+
25
+ export type { CheckboxProps };
@@ -0,0 +1,34 @@
1
+ import type { LucideIcon } from "lucide-react";
2
+ import type { InputHTMLAttributes } from "react";
3
+
4
+ type SelectProps = {
5
+ isLoading?: boolean;
6
+ isError?: boolean;
7
+ isSearchable?: boolean;
8
+
9
+ size?: "md" | "lg";
10
+ variant?: "solid" | "outline" | "underline";
11
+
12
+ prefix?: string | LucideIcon;
13
+ leftIcon?: LucideIcon;
14
+
15
+ name: string;
16
+
17
+ value?: string;
18
+ defaultValue?: string;
19
+
20
+ options: { label: string; value: string }[];
21
+ onSelect?: (value: { label: string; value: string }) => void;
22
+ } & Omit<
23
+ InputHTMLAttributes<HTMLInputElement>,
24
+ | "size"
25
+ | "prefix"
26
+ | "type"
27
+ | "name"
28
+ | "defaultValue"
29
+ | "value"
30
+ | "onChange"
31
+ | "onSelect"
32
+ >;
33
+
34
+ export type { SelectProps };
package/src/index.ts CHANGED
@@ -14,11 +14,13 @@ export * from "./api/config/ResponseDTO";
14
14
  export * from "./components/BadgeProps";
15
15
  export * from "./components/BreadcrumbProps";
16
16
  export * from "./components/ButtonProps";
17
+ export * from "./components/CheckboxProps";
17
18
  export * from "./components/DividerProps";
18
19
  export * from "./components/FormProps";
19
20
  export * from "./components/IconButtonProps";
20
21
  export * from "./components/InputProps";
21
22
  export * from "./components/ModalProps";
23
+ export * from "./components/SelectProps";
22
24
  export * from "./components/SkeletonProps";
23
25
  export * from "./components/TooltipProps";
24
26