Skip to content

Commit

Permalink
Merge pull request #104 from lyytioy/next
Browse files Browse the repository at this point in the history
Version 1.0.17
  • Loading branch information
grzegorz-bach committed Aug 9, 2022
2 parents 7650136 + c2c5777 commit 96d7e99
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 44 deletions.
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/general_pr_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Background
Why are these changes needed?

## Description
What changes are introduced?
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/release_pr_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## 💡 Feature 1
- [Add new prop isReleased](https://github.com/lyytioy/lyyti-design-system/pull/{PR_NUMBER})
- [Update story to describe usage](https://github.com/lyytioy/lyyti-design-system/pull/{PR_NUMBER})

## 🥏 Timeline component
- [Add new Timeline component](https://github.com/lyytioy/lyyti-design-system/pull/{PR_NUMBER})

## 🛠 Fixes
- [Fix Button ref typing](https://github.com/lyytioy/lyyti-design-system/pull/{PR_NUMBER})

## ⚠️ BREAKING CHANGES ⚠️
- Button ref is now of type HTMLButtonElement instead of HTMLDivElement
84 changes: 42 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@lyyti/design-system",
"description": "Lyyti Design System",
"homepage": "https://lyytioy.github.io/lyyti-design-system",
"version": "1.0.16",
"version": "1.0.17",
"engines": {
"node": "^16",
"npm": "^8"
Expand Down
5 changes: 4 additions & 1 deletion src/components/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface TimePickerProps<TDate = unknown> extends Omit<MuiTimePickerProp
'data-testid'?: string;
}

const TimePicker = <TDate = unknown>({ ampm = false, InputProps = {}, ...props }: TimePickerProps<TDate>): JSX.Element => {
const TimePicker = <TDate = unknown>({ ampm = false, InputProps = {}, InputAdornmentProps = {}, OpenPickerButtonProps = {}, ...props }: TimePickerProps<TDate>): JSX.Element => {
return (
<MuiTimePicker
ampm={ampm}
Expand All @@ -18,11 +18,14 @@ const TimePicker = <TDate = unknown>({ ampm = false, InputProps = {}, ...props }
sx: {
ml: '0px',
},
...InputAdornmentProps
}}
OpenPickerButtonProps={{
sx: {
pointerEvents: 'none',
},
tabIndex: -1,
...OpenPickerButtonProps
}}
renderInput={(params) => (
<TextField {...(params as TextFieldProps)} {...InputProps} />
Expand Down

0 comments on commit 96d7e99

Please sign in to comment.