[UIK-5136][chore] rewrite slider/color-picker/counter component to TS. Core types update#2918
Open
slizhevskyv-semrush wants to merge 13 commits into
Open
[UIK-5136][chore] rewrite slider/color-picker/counter component to TS. Core types update#2918slizhevskyv-semrush wants to merge 13 commits into
slizhevskyv-semrush wants to merge 13 commits into
Conversation
036c37b to
c160d60
Compare
<!--- Provide a general summary of your changes in the Title above --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> ## How has this been tested? <!--- Please describe in detail how you tested your changes. --> <!--- For example: --> <!--- I have added unit tests --> <!--- I have added Voice Over tests --> <!--- Code cannot be tested automatically so I have tested it only manually --> ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue). - [ ] New feature (non-breaking change which adds functionality). - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected). - [ ] Nice improve. ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] I have updated the documentation accordingly. - [ ] I have added new tests on added of fixed functionality.
4f4da4f to
cc6f594
Compare
| const delayArr = this.asProps.animationsDisabled ? [0, 0] : propToArray(this.asProps.delay); | ||
| const delay = this.asProps.visible ? delayArr[0] : delayArr[1]; | ||
| const duration = this.asProps.animationsDisabled ? 0 : this.asProps.duration + 100; | ||
| let { duration } = this.asProps; |
Contributor
Author
There was a problem hiding this comment.
@ilyabrower please take a look at this logic, hope it's correct.
Contributor
There was a problem hiding this comment.
I'm not sure about duration[1] - duration[0]. I think, if this is array, it works like delay - for show and hide.
So, you can do the same as for delay for the duration:
const durationArr = animationsDisabled ? [0, 0] : propToArray(this.asProps.duration);
const duration = visible ? durationArr[0] + 100 : durationArr[1] + 100;
ilyabrower
reviewed
May 20, 2026
| const delayArr = this.asProps.animationsDisabled ? [0, 0] : propToArray(this.asProps.delay); | ||
| const delay = this.asProps.visible ? delayArr[0] : delayArr[1]; | ||
| const duration = this.asProps.animationsDisabled ? 0 : this.asProps.duration + 100; | ||
| let { duration } = this.asProps; |
Contributor
There was a problem hiding this comment.
I'm not sure about duration[1] - duration[0]. I think, if this is array, it works like delay - for show and hide.
So, you can do the same as for delay for the duration:
const durationArr = animationsDisabled ? [0, 0] : propToArray(this.asProps.duration);
const duration = visible ? durationArr[0] + 100 : durationArr[1] + 100;
ilyabrower
reviewed
May 21, 2026
ilyabrower
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog
@semcore/slider
Fixed
NSSlidernamespace.@semcore/counter
Fixed
NSCounternamespace.@semcore/color-picker
Fixed
NSColorPicker/NSPaletteManagernamespaces.@semcore/core
Fixed
Motivation and Context
Rewrite component to TS. Deprecate atomic types in favor of namespaces. Nothing changed in how component works. (I hope :D)
How has this been tested?
Screenshots (if appropriate):
Types of changes
Checklist: