feat: Add timepicker component#299
Conversation
✅ Deploy Preview for carbon-components-builder ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
* chore: migrate nx to the latest version Signed-off-by: Akshat Patel <[email protected]> * chore: update base branch Signed-off-by: Akshat Patel <[email protected]> * chore: centralize linting rules in root Signed-off-by: Akshat Patel <[email protected]> * chore: update lib project name to match supported framework Signed-off-by: Akshat Patel <[email protected]> * chore: remove overrides Signed-off-by: Akshat Patel <[email protected]> * chore: lint fix Signed-off-by: Akshat Patel <[email protected]> * chore: lint fix Signed-off-by: Akshat Patel <[email protected]> * chore: disable caching for lint results Signed-off-by: Akshat Patel <[email protected]> * chore: update lint fix script Signed-off-by: Akshat Patel <[email protected]> --------- Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
* chore: update build directory names and path Signed-off-by: Akshat Patel <[email protected]> * chore: lint fix Signed-off-by: Akshat Patel <[email protected]> * chore: update project source root Signed-off-by: Akshat Patel <[email protected]> * chore: Set output path for libs in dist/libs/* Signed-off-by: Akshat Patel <[email protected]> * chore: Add nx release script Signed-off-by: Akshat Patel <[email protected]> * ci: Add publish ci flow Signed-off-by: Akshat Patel <[email protected]> * chore: Add SemVer versioning Signed-off-by: Akshat Patel <[email protected]> * chore: add commintlint Signed-off-by: Akshat Patel <[email protected]> * chore: add root workspace Signed-off-by: Akshat Patel <[email protected]> * Support {{children}} in custom components Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Akshat Patel <[email protected]> * Fix export template not working when items empty Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Akshat Patel <[email protected]> * chore: publish without packing Signed-off-by: Akshat Patel <[email protected]> * revert: file deletion Signed-off-by: Akshat Patel <[email protected]> * chore: give execute permissions Signed-off-by: Akshat Patel <[email protected]> * chore: use carbon bot for publishing github releases Signed-off-by: Akshat Patel <[email protected]> * chore: skip app commit types Signed-off-by: Akshat Patel <[email protected]> * chore: add �pp as an acceptable commit type Signed-off-by: Akshat Patel <[email protected]> * chore: update secret name Signed-off-by: Akshat Patel <[email protected]> * ci: migrate back to workflow Signed-off-by: Akshat Patel <[email protected]> --------- Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Zvonimir Fras <[email protected]> Co-authored-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Akshat Patel <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Zvonimir Fras <[email protected]> Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Co-authored-by: Akshat Patel <[email protected]>
Co-authored-by: Akshat Patel <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
|
Verified that the component features and export works. |
Signed-off-by: Max You <[email protected]>
Akshat55
left a comment
There was a problem hiding this comment.
Time picker timezones do not show up for react because timezone does not exist.
Signed-off-by: Max You <[email protected]>
fix: conditionally render time picker select in export and give user control to render Signed-off-by: Akshat Patel <[email protected]>
Signed-off-by: Akshat Patel <[email protected]>
Signed-off-by: Akshat Patel <[email protected]>
Signed-off-by: Akshat Patel <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
| ...commonSlots, | ||
| ...slotsDisabled, | ||
| invalid: 'boolean', | ||
| isInvalid: (state: TimePickerState) => ({ |
There was a problem hiding this comment.
They should be setters and follow function naming e.g. setInvalid
Plus, setInvalid seems like it would do the same thing as invalid property, so it's not necessary?
note: date picker seems to be doing the naming right
There was a problem hiding this comment.
i think the naming of the setter is fine, i don't think other component (i,e. combobox) use this naming. setInvalid is fine but no need for unnecessary changes.
In terms of the need of setInvalid, please check combobox as well because the setter is similar.
| selected: false | ||
| } | ||
| ], | ||
| value: '', |
There was a problem hiding this comment.
what is wrong with empty value?
| } | ||
| ], | ||
| value: '', | ||
| timezones: [] |
There was a problem hiding this comment.
there is no default timezone values so i make it empty initially
Co-authored-by: Zvonimir Fras <[email protected]>
Co-authored-by: Zvonimir Fras <[email protected]>
Co-authored-by: Zvonimir Fras <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
Signed-off-by: Max You <[email protected]>
for #205