Skip to content

Commit

Permalink
fix(sdds-insol): tokens for Autocomplete, Select, Combobox updated
Browse files Browse the repository at this point in the history
  • Loading branch information
denivladislav committed Dec 26, 2024
1 parent 3e7435c commit 4ecc711
Show file tree
Hide file tree
Showing 40 changed files with 632 additions and 405 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Ul = styled.ul<{
overflow-y: scroll;
border: var(${tokens.dropdownBorderWidth}) solid var(${tokens.dropdownBorderColor});
margin: 0;
margin: var(${tokens.margin}) 0 0 0;
padding: var(${tokens.padding});
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ export const tokens = {
'--plasma-autocomplete-textfield-clear-indicator-label-placement-inner-right',
textFieldClearIndicatorHintInnerRight: '--plasma-autocomplete-textfield-clear-indicator-hint-placement-inner-right',

textFieldBoxShadow: '--plasma-autocomplete-textfield-box-shadow',

// Токены для дропдауна
background: '--plasma-autocomplete-background',
boxShadow: '--plasma-autocomplete-box-shadow',
borderRadius: '--plasma-autocomplete-border-radius',
padding: '--plasma-autocomplete-padding',
margin: '--plasma-autocomplete-margin',

dropdownBorderColor: '--plasma-select-dropdown-border-color',
dropdownBorderWidth: '--plasma-select-dropdown-border-width',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ export const StyledTextField = styled(TextField)`
${textFieldTokens.clearIndicatorLabelPlacementInner}: var(${autocompleteTokens.textFieldClearIndicatorLabelPlacementInner});
${textFieldTokens.clearIndicatorLabelPlacementInnerRight}: var(${autocompleteTokens.textFieldClearIndicatorLabelPlacementInnerRight});
${textFieldTokens.clearIndicatorHintInnerRight}: var(${autocompleteTokens.textFieldClearIndicatorHintInnerRight});
${textFieldTokens.boxShadow}: var(${autocompleteTokens.textFieldBoxShadow});
`;
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export const Ul = styled.ul<{
overflow: ${({ listOverflow }) => listOverflow || 'initial'};
border: var(${tokens.dropdownBorderWidth}) solid var(${tokens.dropdownBorderColor});
margin: ${({ isInnerUl }) => (isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 0` : 0)};
margin: ${({ isInnerUl }) =>
isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 0` : `var(${tokens.margin}) 0 0 0`};
padding: var(${tokens.padding}) 0;
.${classes.emptyStateWrapper} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const classes = {
export const tokens = {
borderRadius: '--plasma-combobox-border-radius',
padding: '--plasma-combobox-padding',
margin: '--plasma-combobox-margin',
focusOffset: '--plasma-combobox-focus-offset',

fontFamily: '--plasma-combobox-font-family',
Expand Down Expand Up @@ -191,6 +192,8 @@ export const tokens = {

textFieldFocusColor: '--plasma-combobox-new-textfield-focus-color',

textFieldBoxShadow: '--plasma-select-textfield-box-shadow',

textFieldIndicatorColor: '--plasma-combobox-new-textfield-indicator-color',
textFieldIndicatorSizeInner: '--plasma-combobox-new-textfield-indicator-size-inner',
textFieldIndicatorSizeOuter: '--plasma-combobox-new-textfield-indicator-size-outer',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ export const StyledTextField = styled(TextField)`
${textFieldTokens.clearIndicatorLabelPlacementInner}: var(${comboboxTokens.textFieldClearIndicatorLabelPlacementInner});
${textFieldTokens.clearIndicatorLabelPlacementInnerRight}: var(${comboboxTokens.textFieldClearIndicatorLabelPlacementInnerRight});
${textFieldTokens.clearIndicatorHintInnerRight}: var(${comboboxTokens.textFieldClearIndicatorHintInnerRight});
${textFieldTokens.boxShadow}: var(${comboboxTokens.textFieldBoxShadow});
`;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const Ul = styled.ul<{
max-height: ${({ listHeight }) => (listHeight ? getCorrectHeight(listHeight) : 'auto')};
overflow: ${({ listOverflow }) => listOverflow || 'initial'};
margin: ${({ isInnerUl }) => (isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 0` : 0)};
margin: ${({ isInnerUl }) =>
isInnerUl ? `calc(var(${tokens.padding}) * -1) 0 0 0` : `var(${tokens.margin}) 0 0 0`};
padding: calc(var(${tokens.padding}) + var(${tokens.dropdownBorderWidth}, 0rem)) 0;
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const classes = {

export const tokens = {
borderRadius: '--plasma-select-border-radius',
margin: '--plasma-select-margin',
padding: '--plasma-select-padding',

fontFamily: '--plasma-select-font-family',
Expand Down Expand Up @@ -197,6 +198,8 @@ export const tokens = {

textFieldFocusColor: '--plasma-select-textfield-focus-color',

textFieldBoxShadow: '--plasma-select-textfield-box-shadow',

disclosureIconColor: '--plasma-select-disclosure-icon-color',
disclosureIconColorHover: '--plasma-select-disclosure-icon-color-hover',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const StyledButton = styled(Button)<{ renderTarget: boolean }>`
${buttonTokens.buttonFontFamily}: var(${tokens.fontFamily});
${buttonTokens.buttonFontSize}: var(${tokens.fontSize});
${buttonTokens.buttonFontStyle}: var(${tokens.fontStyle});
${buttonTokens.buttonFontWeight}: 600;
${buttonTokens.buttonFontWeight}: var(${tokens.fontWeight});
${buttonTokens.buttonLetterSpacing}: var(${tokens.fontLetterSpacing});
${buttonTokens.buttonLineHeight}: var(${tokens.fontLineHeight});
${buttonTokens.buttonDisabledOpacity}: ${constants.opacity};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export const StyledTextField = styled(TextField)<{ opened: boolean }>`
${textFieldTokens.focusColor}: var(${tokens.textFieldFocusColor});
${textFieldTokens.boxShadow}: var(${tokens.textFieldBoxShadow});
/* TODO: #1544 */
& div.input-wrapper:focus-within {
background-color: var(${tokens.textFieldBackgroundColorFocus});
Expand Down
Loading

0 comments on commit 4ecc711

Please sign in to comment.