Skip to content

Commit

Permalink
fix(DatePickerButton): add buttonProps
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed May 20, 2024
1 parent e93810f commit 31b4cff
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
7 changes: 7 additions & 0 deletions apps/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-docs

## 0.0.65

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.35.1

## 0.0.64

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-docs",
"version": "0.0.64",
"version": "0.0.65",
"private": true,
"scripts": {
"dev": "next dev -p 3001",
Expand Down
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @sikka/hawa

## 0.35.1

### Patch Changes

- `DatePickerButton`: ablility to pass `buttonProps`

## 0.35.0

### Minor Changes
Expand Down
6 changes: 5 additions & 1 deletion packages/components/elements/datePicker/DatePickerButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { FC } from "react";

import { cn } from "@util/index";

import { Button } from "../button";
import { Button, ButtonProps } from "../button";
import { LabelProps } from "../label";

type DatePickerButtonProps = {
Expand All @@ -14,12 +14,14 @@ type DatePickerButtonProps = {
helperText?: any;
showHelperText?: boolean;
buttonClassNames?: string;
buttonProps?: ButtonProps;
};
export const DatePickerButton: FC<DatePickerButtonProps> = ({
label,
value,
multiple,
buttonClassNames,
buttonProps,
...props
}) => {
return (
Expand All @@ -35,6 +37,8 @@ export const DatePickerButton: FC<DatePickerButtonProps> = ({
multiple && "hawa-flex-row",
buttonClassNames,
)}
type="button"
{...buttonProps}
>
<span
className={cn(
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.35.0",
"version": "0.35.1",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
7 changes: 7 additions & 0 deletions packages/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# hawa-storybook

## 0.26.86

### Patch Changes

- Updated dependencies
- @sikka/hawa@0.35.1

## 0.26.85

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawa-storybook",
"version": "0.26.85",
"version": "0.26.86",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down

0 comments on commit 31b4cff

Please sign in to comment.