Skip to content

Commit

Permalink
fix: update colors components (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
churicheva-v authored Nov 2, 2023
1 parent 4f13ddd commit 7653460
Show file tree
Hide file tree
Showing 405 changed files with 1,275 additions and 2,070 deletions.
7 changes: 7 additions & 0 deletions .changeset/curly-sloths-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@alfalab/core-components-select": major
"@alfalab/core-components-slider-input": major
---

- В компонентах Select и SliderInput цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалена темизация для intranet и mobile
6 changes: 6 additions & 0 deletions .changeset/gentle-geckos-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@alfalab/core-components-filter-tag": major
---

- В компоненте FilterTag цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалены некоторые css переменные для мобильного компонента и темизация для mobile
6 changes: 6 additions & 0 deletions .changeset/gold-ligers-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@alfalab/core-components-button": major
---

- В компоненте Button цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалена темизация для intranet, click, mobil
7 changes: 7 additions & 0 deletions .changeset/long-bulldogs-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@alfalab/core-components-form-control": major
"@alfalab/core-components-input": major
---

- В компонентах FormControl и Input цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалены некоторые css переменные для мобильных компонентов и темизация для intranet и mobile
6 changes: 6 additions & 0 deletions .changeset/quick-chefs-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@alfalab/core-components-tag": major
---

- В компоненте Tag цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалены некоторые css переменные для мобильного компонента и темизация для intranet, click, mobile
12 changes: 12 additions & 0 deletions .changeset/smart-plums-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@alfalab/core-components-action-button": minor
"@alfalab/core-components-badge": minor
"@alfalab/core-components-icon-button": minor
"@alfalab/core-components-international-phone-input": minor
"@alfalab/core-components-picker-button": minor
"@alfalab/core-components-spinner": minor
"@alfalab/core-components-stepper-input": minor
"@alfalab/core-components-universal-date-input": minor
---

В компонентах ActionButton, Badge, IconButton, InternationalPhoneInput, PickerButton, Spinner, StepperInput, UniversalDateInput цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру)
6 changes: 6 additions & 0 deletions .changeset/sweet-suns-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@alfalab/core-components-calendar-input": major
---

- В компоненте CalendarInput цветовые токены изменены на новые (синхронизация и обновление цветовых токенов в рамках перевода их значений на базовую палитру).
- Удалена темизация для intranet и mobile
1 change: 1 addition & 0 deletions packages/action-button/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const ActionButton = forwardRef<HTMLAnchorElement | HTMLButtonElement, Ac
{
[styles.focused]: focused,
[styles.disabled]: disabled,
[colorStyles[colors].disabled]: disabled,
[styles.loading]: showLoader,
},
className,
Expand Down
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.
34 changes: 24 additions & 10 deletions packages/action-button/src/default.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,26 @@
:root {
/* primary */
--action-button-primary-base-color: var(--color-light-text-primary);
--action-button-primary-base-icon-color: var(--color-light-graphic-primary-inverted);
--action-button-primary-base-bg-color: var(--color-light-bg-primary-inverted);
--action-button-primary-hover-color: var(--color-light-bg-primary-inverted-tint-15);
--action-button-primary-active-color: var(--color-light-bg-primary-inverted-tint-20);
--action-button-primary-base-icon-color: var(--color-light-neutral-1500-inverted);
--action-button-primary-base-bg-color: var(--color-light-accent-secondary);
--action-button-primary-hover-color: var(--color-light-accent-secondary-hover);
--action-button-primary-active-color: var(--color-light-accent-secondary-press);

/* secondary */
--action-button-secondary-base-color: var(--color-light-text-primary);
--action-button-secondary-base-icon-color: var(--color-light-graphic-primary);
--action-button-secondary-base-bg-color: var(--color-light-bg-secondary);
--action-button-secondary-hover-color: var(--color-light-bg-secondary-shade-7);
--action-button-secondary-active-color: var(--color-light-bg-secondary-shade-15);
--action-button-secondary-base-icon-color: var(--color-light-neutral-1500);
--action-button-secondary-base-bg-color: var(--color-light-neutral-100);
--action-button-secondary-hover-color: var(--color-light-neutral-100-hover);
--action-button-secondary-active-color: var(--color-light-neutral-100-press);

/* spinner */
--action-button-spinner-primary-color: var(--color-light-graphic-primary-inverted);
--action-button-spinner-default-color: var(--color-light-graphic-primary);
--action-button-spinner-primary-color: var(--color-light-neutral-1500-inverted);
--action-button-spinner-default-color: var(--color-light-neutral-1500);

/* disabled */
--action-button-disabled-color: var(--color-light-text-tertiary);
--action-button-disabled-icon-color: var(--color-light-neutral-500);
--action-button-disabled-bg-color: var(--color-light-neutral-100);
}

.primary {
Expand Down Expand Up @@ -61,3 +66,12 @@
color: var(--action-button-spinner-default-color);
}
}

.disabled {
color: var(--action-button-disabled-color);

& .iconWrapper {
color: var(--action-button-disabled-icon-color);
background-color: var(--action-button-disabled-bg-color);
}
}
1 change: 0 additions & 1 deletion packages/action-button/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
}

.disabled {
opacity: 0.3;
cursor: not-allowed;
pointer-events: none;
}
Expand Down
42 changes: 28 additions & 14 deletions packages/action-button/src/inverted.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@
:root {
/* primary */
--action-button-inverted-primary-base-color: var(--color-light-text-primary-inverted);
--action-button-inverted-primary-base-icon-color: var(--color-light-graphic-primary);
--action-button-inverted-primary-base-bg-color: var(--color-light-bg-primary);
--action-button-inverted-primary-hover-color: var(--color-light-bg-primary-shade-7);
--action-button-inverted-primary-active-color: var(--color-light-bg-primary-shade-15);
--action-button-inverted-primary-base-icon-color: var(--color-light-neutral-1500);
--action-button-inverted-primary-base-bg-color: var(--color-light-accent-secondary-inverted);
--action-button-inverted-primary-hover-color: var(
--color-light-accent-secondary-inverted-hover
);
--action-button-inverted-primary-active-color: var(
--color-light-accent-secondary-inverted-press
);

/* secondary */
--action-button-inverted-secondary-base-color: var(--color-light-text-primary-inverted);
--action-button-inverted-secondary-base-icon-color: var(--color-light-graphic-primary-inverted);
--action-button-inverted-secondary-base-bg-color: var(--color-light-bg-secondary-inverted);
--action-button-inverted-secondary-hover-color: var(
--color-light-bg-secondary-inverted-tint-15
);
--action-button-inverted-secondary-active-color: var(
--color-light-bg-secondary-inverted-tint-20
);
--action-button-inverted-secondary-base-icon-color: var(--color-light-neutral-1500-inverted);
--action-button-inverted-secondary-base-bg-color: var(--color-light-neutral-100-inverted);
--action-button-inverted-secondary-hover-color: var(--color-light-neutral-100-inverted-hover);
--action-button-inverted-secondary-active-color: var(--color-light-neutral-100-inverted-press);

/* spinner */
--action-button-spinner-inverted-default-color: var(--color-light-graphic-primary-inverted);
--action-button-spinner-inverted-primary-color: var(--color-light-graphic-primary);
--action-button-spinner-inverted-default-color: var(--color-light-neutral-1500);
--action-button-spinner-inverted-primary-color: var(--color-light-neutral-1500-inverted);

/* disabled */
--action-button-inverted-disabled-color: var(--color-light-text-tertiary-inverted);
--action-button-inverted-disabled-icon-color: var(--color-light-neutral-500-inverted);
--action-button-inverted-disabled-bg-color: var(--color-light-neutral-100-inverted);
}

.primary {
Expand Down Expand Up @@ -65,3 +70,12 @@
color: var(--action-button-spinner-inverted-default-color);
}
}

.disabled {
color: var(--action-button-inverted-disabled-color);

& .iconWrapper {
color: var(--action-button-inverted-disabled-icon-color);
background-color: var(--action-button-inverted-disabled-bg-color);
}
}
30 changes: 22 additions & 8 deletions packages/action-button/src/static.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@

:root {
/* primary */
--action-button-static-primary-base-color: var(--color-static-text-primary-dark);
--action-button-static-primary-base-icon-color: var(--color-static-graphic-light);
--action-button-static-primary-base-bg-color: var(--color-static-bg-primary-dark);
--action-button-static-primary-base-color: var(--color-static-text-primary);
--action-button-static-primary-base-icon-color: var(--color-static-neutral-1500-inverted);
--action-button-static-primary-base-bg-color: var(--color-static-accent-secondary);

/* secondary */
--action-button-static-secondary-base-color: var(--color-static-text-primary-dark);
--action-button-static-secondary-base-icon-color: var(--color-static-graphic-dark);
--action-button-static-secondary-base-bg-color: var(--color-static-bg-secondary-light);
--action-button-static-secondary-base-color: var(--color-static-text-primary);
--action-button-static-secondary-base-icon-color: var(--color-static-neutral-1500);
--action-button-static-secondary-base-bg-color: var(--color-static-neutral-100);

/* spinner */
--action-button-spinner-static-primary-color: var(--color-static-graphic-light);
--action-button-spinner-static-secondary-color: var(--color-static-graphic-dark);
--action-button-spinner-static-primary-color: var(--color-static-neutral-1500-inverted);
--action-button-spinner-static-secondary-color: var(--color-static-neutral-1500);

/* disabled */
--action-button-static-disabled-color: var(--color-static-text-tertiary);
--action-button-static-disabled-icon-color: var(--color-static-neutral-500);
--action-button-static-disabled-bg-color: var(--color-static-neutral-100);
}

.primary {
Expand Down Expand Up @@ -41,3 +46,12 @@
color: var(--action-button-spinner-static-secondary-color);
}
}

.disabled {
color: var(--action-button-static-disabled-color);

& .iconWrapper {
color: var(--action-button-static-disabled-icon-color);
background-color: var(--action-button-static-disabled-bg-color);
}
}
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.
10 changes: 5 additions & 5 deletions packages/amount-input/src/__snapshots__/Component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Object {
class="input"
>
<input
class="input input input input"
class="input input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -70,7 +70,7 @@ Object {
class="input"
>
<input
class="input input input input"
class="input input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -176,7 +176,7 @@ Object {
class="input"
>
<input
class="input input input input"
class="input input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 ₽"
Expand Down Expand Up @@ -224,7 +224,7 @@ Object {
class="input"
>
<input
class="input input input input"
class="input input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 $"
Expand Down Expand Up @@ -277,7 +277,7 @@ Object {
class="input"
>
<input
class="input input input input"
class="input input input"
inputmode="decimal"
pattern="[0-9\\\\s\\\\.,]*"
placeholder="0 $"
Expand Down
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

0 comments on commit 7653460

Please sign in to comment.