Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/components/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {DatePicker} from 'kinu';

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| value | `string | number | readonly string[] | undefined` | — | Current date value. |
| value | `string \| number \| readonly string[] \| undefined` | — | Current date value. |
| onChange | `(event: Event) => void` | — | Change handler for date input. |
| disabled | `boolean` | — | Disable the input. |
| name | `string` | — | Input name used for form submissions. |
Expand Down
16 changes: 8 additions & 8 deletions src/components/carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type {
CarouselOwnProps,
CarouselContentOwnProps,
CarouselItemOwnProps,
CarouselPreviousOwnProps,
CarouselNextOwnProps,
CarouselPreviousProps,
CarouselNextProps,
} from './types';
import './style.css';

Expand Down Expand Up @@ -54,10 +54,10 @@ export const CarouselItem = createSimpleComponent<'div', CarouselItemOwnProps>(

export function CarouselPrevious({
children,
commandFor: _commandFor,
command: _command,
command: _c,
commandFor: _cf,
...props
}: CarouselPreviousOwnProps & JSX.HTMLAttributes<HTMLButtonElement>) {
}: CarouselPreviousProps) {
const id = useContext(IdCtx);
return (
<button {...props} k="carousel-previous" command="--prev" commandfor={id ?? undefined}>
Expand All @@ -68,10 +68,10 @@ export function CarouselPrevious({

export function CarouselNext({
children,
commandFor: _commandFor,
command: _command,
command: _c,
commandFor: _cf,
...props
}: CarouselNextOwnProps & JSX.HTMLAttributes<HTMLButtonElement>) {
}: CarouselNextProps) {
const id = useContext(IdCtx);
return (
<button {...props} k="carousel-next" command="--next" commandfor={id ?? undefined}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dropdown-menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function DropdownMenuContent({
k="dropdown-content"
id={resolvedId}
command={command}
commandFor={commandFor ?? resolvedId}
commandfor={commandFor ?? resolvedId}
{...props}
/>
);
Expand Down
Loading