brd-ui-kit 0.1.4 → 0.1.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.
- package/dist/components/basic-checkbox/basic-checkbox.d.ts +3 -2
- package/dist/components/basic-checkbox/basic-checkbox.stories.d.ts +3 -2
- package/dist/components/radio-button/radio-button.d.ts +3 -2
- package/dist/components/textarea-field/textarea-field.d.ts +1 -0
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +231 -203
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
2
2
|
type CheckboxBaseProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
3
3
|
type Props = CheckboxBaseProps & {
|
|
4
|
-
name
|
|
4
|
+
name?: string;
|
|
5
5
|
orientation?: "vertical" | "horizontal";
|
|
6
6
|
label?: React.ReactNode;
|
|
7
7
|
classNames?: {
|
|
@@ -9,6 +9,7 @@ type Props = CheckboxBaseProps & {
|
|
|
9
9
|
classNameLabel?: string;
|
|
10
10
|
classNameGroup?: string;
|
|
11
11
|
};
|
|
12
|
+
isValid?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const BasicCheckbox: ({ name, orientation, label, disabled, classNames, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const BasicCheckbox: ({ name, orientation, label, disabled, classNames, isValid, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ name, orientation, label, disabled, classNames, ...rest }: Omit<import('@radix-ui/react-checkbox').CheckboxProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
5
|
-
name
|
|
4
|
+
component: ({ name, orientation, label, disabled, classNames, isValid, ...rest }: Omit<import('@radix-ui/react-checkbox').CheckboxProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
5
|
+
name?: string;
|
|
6
6
|
orientation?: "vertical" | "horizontal";
|
|
7
7
|
label?: React.ReactNode;
|
|
8
8
|
classNames?: {
|
|
@@ -10,6 +10,7 @@ declare const meta: {
|
|
|
10
10
|
classNameLabel?: string;
|
|
11
11
|
classNameGroup?: string;
|
|
12
12
|
};
|
|
13
|
+
isValid?: boolean;
|
|
13
14
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
15
|
args: {
|
|
15
16
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RadioGroup } from '../ui/radio-group';
|
|
1
2
|
type TOptions = {
|
|
2
3
|
value: string;
|
|
3
4
|
label?: string;
|
|
@@ -15,6 +16,6 @@ type Props = {
|
|
|
15
16
|
label?: string;
|
|
16
17
|
defaultValue?: string;
|
|
17
18
|
options?: TOptions[];
|
|
18
|
-
}
|
|
19
|
-
export declare function RadioButton({ classNames, id, value, defaultValue, label, options, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
} & React.ComponentPropsWithoutRef<typeof RadioGroup>;
|
|
20
|
+
export declare function RadioButton({ classNames, id, value, defaultValue, label, options, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|