@candy.thieves/ui-kit-lumos 0.0.17 → 0.0.19
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.
|
@@ -3,12 +3,12 @@ export type FieldError = {
|
|
|
3
3
|
field: string;
|
|
4
4
|
message: string;
|
|
5
5
|
};
|
|
6
|
-
export type AlertMessage = FieldError[] | string;
|
|
7
6
|
export type AlertVariant = 'error' | 'success' | 'warning';
|
|
8
|
-
export
|
|
9
|
-
children?:
|
|
7
|
+
export interface AlertProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
8
|
+
children?: string;
|
|
9
|
+
errors?: FieldError[];
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
title?: string;
|
|
12
12
|
variant?: AlertVariant;
|
|
13
|
-
}
|
|
14
|
-
export declare const Alert: ({ className, onClose, title, children, variant, ...props }: AlertProps) => import("react").JSX.Element | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const Alert: ({ className, onClose, title, children, errors, variant, ...props }: AlertProps) => import("react").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@candy.thieves/ui-kit-lumos",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/index.js",
|
|
8
|
-
"module": "dist/index.js",
|
|
9
|
-
"types": "dist/types/index.d.ts",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/types/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./dist/index.css": "./dist/index.css"
|
|
17
|
+
},
|
|
10
18
|
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
"dist/index.css"
|
|
19
|
+
"dist"
|
|
13
20
|
],
|
|
14
21
|
"scripts": {
|
|
15
22
|
"dev": "vite",
|
|
@@ -35,7 +42,9 @@
|
|
|
35
42
|
"@radix-ui/react-tabs": "^1.1.18",
|
|
36
43
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
37
44
|
"@radix-ui/themes": "^3.3.0",
|
|
45
|
+
"@storybook/addon-actions": "^9.0.8",
|
|
38
46
|
"@storybook/react": "^10.5.7",
|
|
47
|
+
"@storybook/test": "^8.6.15",
|
|
39
48
|
"clsx": "^2.1.1",
|
|
40
49
|
"eslint-plugin-perfectionist": "^5.10.0",
|
|
41
50
|
"radix-ui": "^1.6.2",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type Control, type FieldValues, type Path } from 'react-hook-form';
|
|
2
|
-
import { type CheckboxProps } from './Checkbox';
|
|
3
|
-
export type FormCheckboxProps<T extends FieldValues> = Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'onCheckedChange'> & {
|
|
4
|
-
control: Control<T>;
|
|
5
|
-
name: Path<T>;
|
|
6
|
-
};
|
|
7
|
-
export declare const FormCheckbox: <T extends FieldValues>({ control, name, ...props }: FormCheckboxProps<T>) => import("react").JSX.Element;
|