-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2624 from epam/feature/adding-rating-to-uui
[Rating]: added to uui package
- Loading branch information
Showing
29 changed files
with
1,190 additions
and
1,685 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
14 changes: 5 additions & 9 deletions
14
app/src/docs/_examples/linkButton/DefaultExample.module.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
.wrapper { | ||
background-color: var(--uui-surface-main); | ||
display: flex; | ||
flex: 1 1 100%; | ||
padding: 12px; | ||
} | ||
|
||
.components { | ||
row-gap: 12px; | ||
align-items: flex-end; | ||
margin-right: 12px; | ||
row-gap: 6px; | ||
min-width: 120px; | ||
overflow: unset; | ||
} | ||
|
||
.descriptions { | ||
row-gap: 12px; | ||
align-items: flex-start; | ||
max-width: 533px; | ||
.link { | ||
display: flex; | ||
justify-content: flex-end; | ||
flex-shrink: 0; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import React, { useState } from 'react'; | ||
import { FlexCell } from '@epam/uui'; | ||
import { Rating } from '@epam/promo'; | ||
import { FlexCell, Rating } from '@epam/uui'; | ||
import { ReactComponent as FavoriteIcon } from '@epam/assets/icons/communication-favorite-fill.svg'; | ||
import css from './BasicExample.module.scss'; | ||
|
||
export default function BasicExample() { | ||
const [value, onValueChange] = useState(0); | ||
const [value1, onValueChange1] = useState(0); | ||
|
||
return ( | ||
<FlexCell width="auto" cx={ css.container }> | ||
<Rating value={ value } onValueChange={ onValueChange } /> | ||
<Rating isDisabled value={ value } onValueChange={ onValueChange } /> | ||
<Rating isReadonly value={ value } onValueChange={ onValueChange } /> | ||
<Rating cx={ css.redFillColor } step={ 0.5 } icon={ FavoriteIcon } value={ value1 } onValueChange={ onValueChange1 } /> | ||
</FlexCell> | ||
); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,7 @@ | |
margin-bottom: 12px; | ||
} | ||
} | ||
|
||
.redFillColor { | ||
--uui-rating-icon-filled: var(--uui-critical-50); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export * from './MultiSwitch'; | ||
export * from './Rating'; |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.