Skip to content

Commit

Permalink
Merge branch 'master' into feat/plate_mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeri8888 authored Jul 24, 2023
2 parents 7806d4b + 08fc1d3 commit 768e416
Show file tree
Hide file tree
Showing 169 changed files with 2,099 additions and 1,091 deletions.
2 changes: 1 addition & 1 deletion .storybook/addons/theme-switcher/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function setThemeStylesInMobileFrame(theme) {
}

export function getThemeStyles(selectedTheme) {
const indigoThemes = ['corp', 'site'];
const indigoThemes = ['site'];
const indigoVars = [indigoColors, indigoShadows].join('\n');

const css = [
Expand Down
6 changes: 3 additions & 3 deletions .storybook/package-sizes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"index.js": 2.69
},
"underlay": {
"index.js": 1.81
"index.js": 3.25
},
"typography": {
"index.js": 2.7
Expand Down Expand Up @@ -106,7 +106,7 @@
"index.js": 3.63
},
"pure-cell": {
"index.js": 37.9
"index.js": 37.94
},
"progress-bar": {
"index.js": 1.61
Expand Down Expand Up @@ -340,7 +340,7 @@
"index.js": 32.99
},
"amount": {
"index.js": 25.83
"index.js": 25.87
},
"amount-input": {
"index.js": 41.3
Expand Down
2 changes: 1 addition & 1 deletion .storybook/pages/components-overview/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const CONFIG: TConfig = {
Аутентификация: ['PassCode', 'PatternLock', 'Confirmation'],
Ячейки: ['GenericWrapper', 'PureCell'],
Навигация: ['Tabs', 'Pagination'],
Индикаторы: ['Badge', 'Status'],
Индикаторы: ['Badge', 'Status', 'Indicator'],
Текст: ['Typography', 'List'],
'Отображение данных': [
'Amount',
Expand Down
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,76 @@
## 41.17.0

<sup><time>20.07.2023</time></sup>

### [#741](https://github.com/core-ds/core-components/pull/741)

#### Что изменилось
- Перевод corp темизации на bluetint цвета, приведение компонентов Input, Select к core темизации

#### Влияние на компоненты
- Минорное<br />`button` `tabs` `themes` `vars`


### [#732](https://github.com/core-ds/core-components/pull/732)

#### Что изменилось
- Добавлены пропсы размера и выбора закругления определенного угла рамки. Добавлен контент и contentProps с пропсами для настройки отображения контента

#### Влияние на компоненты
- Минорное<br />`underlay`



## 41.15.0

<sup><time>18.07.2023</time></sup>

### [#738](https://github.com/core-ds/core-components/pull/738)

#### Что изменилось
- fix(steps): make checkIsStepCustom's return value nullable

#### Влияние на компоненты
- Минорное<br />`steps`


### [#698](https://github.com/core-ds/core-components/pull/698)

#### Что изменилось
- Исправлена ошибка, из-за которой возникал отступ справа от "глаза" когда комопонент в состоянии ошибки

#### Влияние на компоненты
- Патчи<br />`password-input`


### [#746](https://github.com/core-ds/core-components/pull/746)

#### Что изменилось
- Динамический импорт библиотеки libphonenumber-js в cjs сборках заменен на require

#### Влияние на компоненты
- Патчи<br />`intl-phone-input`


### [#745](https://github.com/core-ds/core-components/pull/745)

#### Что изменилось
- Добавлен usePortal проп

#### Влияние на компоненты
- Минорное<br />`base-modal` `bottom-sheet`


### [#717](https://github.com/core-ds/core-components/pull/717)

#### Что изменилось
- Добавлен проп codeFormat в Amount.Pure

#### Влияние на компоненты
- Патчи<br />`amount`



## 41.14.1

<sup><time>06.07.2023</time></sup>
Expand Down
2 changes: 1 addition & 1 deletion bin/build-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const postcssMixins = require('postcss-mixins');

const replaceMixinToRoot = (css) => css.replace(/@define-mixin.*$/m, ':root {');

const bluetintThemes = ['mobile', 'intranet', 'click'];
const bluetintThemes = ['mobile', 'intranet', 'click', 'corp'];
const getPalette = (cssFile) =>
bluetintThemes.some((x) => cssFile.includes(x)) ? 'bluetint' : 'indigo';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components",
"version": "41.14.1",
"version": "41.17.0",
"private": true,
"workspaces": [
"packages/*"
Expand Down
7 changes: 7 additions & 0 deletions packages/alert/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 4.0.27

### Patch Changes

- Обновлены зависимости
- [email protected]

## 4.0.26

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/alert/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-alert",
"version": "4.0.26",
"version": "4.0.27",
"description": "",
"keywords": [],
"license": "MIT",
Expand All @@ -17,7 +17,7 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-plate": "^6.3.18",
"@alfalab/core-components-plate": "^6.3.19",
"classnames": "^2.3.1",
"tslib": "^2.4.0"
}
Expand Down
8 changes: 8 additions & 0 deletions packages/amount-input/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 7.3.1

### Patch Changes

- Обновлены зависимости
- [email protected]
- [email protected]

## 7.3.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/amount-input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-amount-input",
"version": "7.3.0",
"version": "7.3.1",
"description": "",
"keywords": [],
"license": "MIT",
Expand All @@ -17,8 +17,8 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-input": "^11.1.16",
"@alfalab/core-components-with-suffix": "^4.0.31",
"@alfalab/core-components-input": "^11.1.17",
"@alfalab/core-components-with-suffix": "^4.0.32",
"@alfalab/data": "^1.6.0",
"@alfalab/utils": "^1.14.4",
"classnames": "^2.3.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/amount/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 3.2.1

### Patch Changes

### [#717](https://github.com/core-ds/core-components/pull/717)

- Добавлен проп codeFormat в Amount.Pure

## 3.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/amount/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-amount",
"version": "3.2.0",
"version": "3.2.1",
"description": "",
"keywords": [],
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions packages/amount/src/pure/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ export const PureAmount: React.FC<AmountProps> = ({
showPlus = false,
className,
dataTestId,
codeFormat = 'symbolic',
}) => {
const { formatted, currencySymbol } = formatAmount({
value,
currency,
minority,
view,
codeFormat,
});

return (
Expand Down
7 changes: 7 additions & 0 deletions packages/attach/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 6.1.1

### Patch Changes

- Обновлены зависимости
- [email protected]

## 6.1.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/attach/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-attach",
"version": "6.1.0",
"version": "6.1.1",
"description": "",
"keywords": [],
"license": "MIT",
Expand All @@ -17,7 +17,7 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-button": "^8.4.0",
"@alfalab/core-components-button": "^8.5.0",
"@alfalab/core-components-keyboard-focusable": "^4.0.6",
"@alfalab/core-components-progress-bar": "^3.0.4",
"@alfalab/icons-glyph": "^2.108.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/bank-card/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 5.2.24

### Patch Changes

- Обновлены зависимости
- [email protected]

## 5.2.23

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/bank-card/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-bank-card",
"version": "5.2.23",
"version": "5.2.24",
"description": "Bank card component",
"keywords": [],
"license": "MIT",
Expand All @@ -18,7 +18,7 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-masked-input": "^6.1.16",
"@alfalab/core-components-masked-input": "^6.1.17",
"@alfalab/icons-glyph": "^2.108.0",
"@alfalab/icons-logotype": "^2.19.0",
"classnames": "^2.3.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/base-modal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 5.2.0

### Minor Changes

### [#745](https://github.com/core-ds/core-components/pull/745)

- Добавлен usePortal проп

## 5.1.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/base-modal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-base-modal",
"version": "5.1.3",
"version": "5.2.0",
"description": "BaseModal component",
"keywords": [],
"license": "MIT",
Expand Down
20 changes: 20 additions & 0 deletions packages/bottom-sheet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Change Log

## 6.4.1

### Patch Changes

- Обновлены зависимости
- [email protected]

## 6.4.0

### Minor Changes

### [#745](https://github.com/core-ds/core-components/pull/745)

- Добавлен usePortal проп

### Patch Changes

- Обновлены зависимости
- [email protected]

## 6.3.0

### Minor Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/bottom-sheet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-bottom-sheet",
"version": "6.3.0",
"version": "6.4.1",
"description": "Bottom sheet mobile component",
"keywords": [],
"license": "MIT",
Expand All @@ -19,8 +19,8 @@
},
"dependencies": {
"@alfalab/core-components-backdrop": "^3.0.6",
"@alfalab/core-components-base-modal": "^5.1.3",
"@alfalab/core-components-navigation-bar": "^0.3.5",
"@alfalab/core-components-base-modal": "^5.2.0",
"@alfalab/core-components-navigation-bar": "^0.3.6",
"classnames": "^2.3.1",
"react-div-100vh": "^0.7.0",
"react-merge-refs": "^1.1.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 8.5.0

### Minor Changes

### [#741](https://github.com/core-ds/core-components/pull/741)

- Перевод corp темизации на bluetint цвета, приведение компонентов Input, Select к core темизации

## 8.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-button",
"version": "8.4.0",
"version": "8.5.0",
"description": "",
"gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
"keywords": [],
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

0 comments on commit 768e416

Please sign in to comment.