Skip to content

Commit

Permalink
fix: docs and type for provider
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakbarazizi committed Jul 27, 2023
1 parent 7ab4833 commit d9e8171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/datepicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ComponentItem, Item, ItemProps } from './item/Item';
import { ComponentItems, Items, ItemsProps } from './items/Items';
import { ComponentPicker, Picker, PickerProps } from './picker/Picker';
import {
ComponentProvider,
ProviderProps as DatepickerProps,
Provider,
} from './provider/Provider';
Expand All @@ -19,7 +20,7 @@ export type {

export type * from '../../context/context';

const Datepicker = Object.assign(Provider, {
const Datepicker = Object.assign(Provider as ComponentProvider, {
Picker: Picker as ComponentPicker,
Input: Input as ComponentInput,
Button: Button as ComponentButton,
Expand Down
2 changes: 1 addition & 1 deletion src/components/datepicker/items/Items.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const DateItems = {
override: {
className: `{({ type }) =>
classNames(
'flex auto-rows-max gap-4 overflow-y-auto scroll-smooth',
'grid w-full auto-rows-max gap-4 overflow-y-auto scroll-smooth',
type == 'day' && 'grid-cols-7',
type == 'month' && 'grid-cols-3',
type == 'year' && 'max-h-[274px] grid-cols-4',
Expand Down

0 comments on commit d9e8171

Please sign in to comment.