Skip to content

Commit

Permalink
fix: exclude src from package
Browse files Browse the repository at this point in the history
  • Loading branch information
steps371 committed Sep 9, 2024
1 parent 31186d8 commit d389546
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/mui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"typings": "dist/main.d.ts",
"license": "MIT",
"version": "0.0.4",
"files": ["dist"],
"scripts": {
"build": "tsc -b && vite build",
"typecheck": "tsc -b",
Expand Down
10 changes: 5 additions & 5 deletions packages/mui/src/CheckboxWithLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { FieldValues, FieldPath, useFormState } from 'react-hook-form';
import { CheckboxProps, Checkbox } from './Checkbox';
import { FieldPath, FieldValues, useFormState } from 'react-hook-form';
import { Checkbox, CheckboxProps } from './Checkbox';

import FormControlLabel from '@mui/material/FormControlLabel';

export type CheckboxPropsWithLabelProps<
export type CheckboxPropsLabelProps<
TName extends FieldPath<TFieldValues>,
TFieldValues extends FieldValues = FieldValues,
> = CheckboxProps<TName, TFieldValues> & { label: string };

export function CheckboxWithLabel<
TName extends FieldPath<TFieldValues>,
TFieldValues extends FieldValues,
>({ label, ...props }: CheckboxPropsWithLabelProps<TName, TFieldValues>) {
>({ label, control, ...props }: CheckboxPropsLabelProps<TName, TFieldValues>) {
const { errors } = useFormState({
control: props.control,
control,
});

return (
Expand Down
1 change: 1 addition & 0 deletions packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"typings": "dist/main.d.ts",
"license": "MIT",
"version": "0.0.1-alpha.4",
"files": ["dist"],
"scripts": {
"build": "tsc -b && vite build",
"typecheck": "tsc -b",
Expand Down
1 change: 1 addition & 0 deletions packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"typings": "./dist/main.d.ts",
"license": "MIT",
"version": "0.0.1-alpha.5",
"files": ["dist"],
"scripts": {
"build": "tsc -b && vite build",
"typecheck": "tsc -b",
Expand Down

0 comments on commit d389546

Please sign in to comment.