Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.17 #104

Merged
merged 11 commits into from
Aug 9, 2022
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