@arkyn/types 1.3.66 → 1.3.67

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ import type { ButtonHTMLAttributes, HTMLAttributes } from "react";
2
+ type RadioGroupProps = {
3
+ name: string;
4
+ value?: string;
5
+ defaultValue?: string;
6
+ onChange?: (value: string) => void;
7
+ size?: "sm" | "md" | "lg";
8
+ } & HTMLAttributes<HTMLDivElement>;
9
+ type RadioGroupContextType = {
10
+ value: string;
11
+ size: "sm" | "md" | "lg";
12
+ onChange: (value: string) => void;
13
+ };
14
+ type RadioBoxProps = {
15
+ value: string;
16
+ size?: "sm" | "md" | "lg";
17
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
18
+ export type { RadioBoxProps, RadioGroupContextType, RadioGroupProps };
19
+ //# sourceMappingURL=RadioProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioProps.d.ts","sourceRoot":"","sources":["../../src/components/RadioProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAElE,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEnC,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export * from "./components/TextareaProps";
27
27
  export * from "./components/ToastProps";
28
28
  export * from "./components/TooltipProps";
29
29
  export * from "./components/TabProps";
30
+ export * from "./components/RadioProps";
30
31
  export * from "./hooks/Drawer";
31
32
  export * from "./hooks/Modal";
32
33
  export * from "./hooks/Toast";
@@ -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,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uB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 +29,7 @@ export * from "./components/TextareaProps";
29
29
  export * from "./components/ToastProps";
30
30
  export * from "./components/TooltipProps";
31
31
  export * from "./components/TabProps";
32
+ export * from "./components/RadioProps";
32
33
  // Hooks
33
34
  export * from "./hooks/Drawer";
34
35
  export * from "./hooks/Modal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkyn/types",
3
- "version": "1.3.66",
3
+ "version": "1.3.67",
4
4
  "main": "./dist/bundle.js",
5
5
  "module": "./src/index.ts",
6
6
  "type": "module",
@@ -0,0 +1,22 @@
1
+ import type { ButtonHTMLAttributes, HTMLAttributes } from "react";
2
+
3
+ type RadioGroupProps = {
4
+ name: string;
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onChange?: (value: string) => void;
8
+ size?: "sm" | "md" | "lg";
9
+ } & HTMLAttributes<HTMLDivElement>;
10
+
11
+ type RadioGroupContextType = {
12
+ value: string;
13
+ size: "sm" | "md" | "lg";
14
+ onChange: (value: string) => void;
15
+ };
16
+
17
+ type RadioBoxProps = {
18
+ value: string;
19
+ size?: "sm" | "md" | "lg";
20
+ } & ButtonHTMLAttributes<HTMLButtonElement>;
21
+
22
+ export type { RadioBoxProps, RadioGroupContextType, RadioGroupProps };
package/src/index.ts CHANGED
@@ -30,6 +30,7 @@ export * from "./components/TextareaProps";
30
30
  export * from "./components/ToastProps";
31
31
  export * from "./components/TooltipProps";
32
32
  export * from "./components/TabProps";
33
+ export * from "./components/RadioProps";
33
34
 
34
35
  // Hooks
35
36
  export * from "./hooks/Drawer";