diff --git a/.changeset/brave-coats-rhyme.md b/.changeset/brave-coats-rhyme.md
new file mode 100644
index 0000000000..ccaaa861bf
--- /dev/null
+++ b/.changeset/brave-coats-rhyme.md
@@ -0,0 +1,25 @@
+---
+'@alfalab/core-components-comment': patch
+'@alfalab/core-components-confirmation-v1': patch
+'@alfalab/core-components-custom-button': patch
+'@alfalab/core-components-date-range-input': patch
+'@alfalab/core-components-date-time-input': patch
+'@alfalab/core-components-divider': patch
+'@alfalab/core-components-dropzone': patch
+'@alfalab/core-components-file-upload-item': patch
+'@alfalab/core-components-file-upload-item-v1': patch
+'@alfalab/core-components-generic-wrapper': patch
+'@alfalab/core-components-hatching-progress-bar': patch
+'@alfalab/core-components-icon-button': patch
+'@alfalab/core-components-icon-view': patch
+'@alfalab/core-components-indicator': patch
+'@alfalab/core-components-keyboard-focusable': patch
+'@alfalab/core-components-list-header': patch
+'@alfalab/core-components-loader': patch
+'@alfalab/core-components-masked-input': patch
+'@alfalab/core-components-mq': patch
+'@alfalab/core-components-navigation-bar': patch
+'@alfalab/core-components-navigation-bar-private': patch
+---
+
+Добавлено sideEffects: false (package.json)
diff --git a/.changeset/popular-mangos-refuse.md b/.changeset/popular-mangos-refuse.md
new file mode 100644
index 0000000000..7be0567c87
--- /dev/null
+++ b/.changeset/popular-mangos-refuse.md
@@ -0,0 +1,5 @@
+---
+'@alfalab/core-components-select': patch
+---
+
+Замена зависимости deep-equal на react-fast-compare. Меньше, современнее, быстрее.
diff --git a/.changeset/spotty-hornets-vanish.md b/.changeset/spotty-hornets-vanish.md
new file mode 100644
index 0000000000..2b57d1b825
--- /dev/null
+++ b/.changeset/spotty-hornets-vanish.md
@@ -0,0 +1,48 @@
+---
+'@alfalab/core-components-accordion': patch
+'@alfalab/core-components-action-button': patch
+'@alfalab/core-components-amount': patch
+'@alfalab/core-components-amount-input': patch
+'@alfalab/core-components-attach': patch
+'@alfalab/core-components-button': patch
+'@alfalab/core-components-calendar': patch
+'@alfalab/core-components-calendar-input': patch
+'@alfalab/core-components-calendar-range': patch
+'@alfalab/core-components-checkbox': patch
+'@alfalab/core-components-confirmation': patch
+'@alfalab/core-components-confirmation-v1': patch
+'@alfalab/core-components-date-range-input': patch
+'@alfalab/core-components-date-time-input': patch
+'@alfalab/core-components-filter-tag': patch
+'@alfalab/core-components-gallery': patch
+'@alfalab/core-components-icon-view': patch
+'@alfalab/core-components-input': patch
+'@alfalab/core-components-input-autocomplete': patch
+'@alfalab/core-components-international-phone-input': patch
+'@alfalab/core-components-intl-phone-input': patch
+'@alfalab/core-components-keyboard-focusable': patch
+'@alfalab/core-components-link': patch
+'@alfalab/core-components-mq': patch
+'@alfalab/core-components-navigation-bar-private': patch
+'@alfalab/core-components-picker-button': patch
+'@alfalab/core-components-plate': patch
+'@alfalab/core-components-popover': patch
+'@alfalab/core-components-product-cover': patch
+'@alfalab/core-components-pure-cell': patch
+'@alfalab/core-components-radio': patch
+'@alfalab/core-components-radio-group': patch
+'@alfalab/core-components-segmented-control': patch
+'@alfalab/core-components-select': patch
+'@alfalab/core-components-select-with-tags': patch
+'@alfalab/core-components-shared': patch
+'@alfalab/core-components-spinner': patch
+'@alfalab/core-components-steps': patch
+'@alfalab/core-components-switch': patch
+'@alfalab/core-components-tabs': patch
+'@alfalab/core-components-tag': patch
+'@alfalab/core-components-textarea': patch
+'@alfalab/core-components-toast': patch
+'@alfalab/core-components-typography': patch
+---
+
+Апдейт версий пакетов (в них починена сборка esm-версии): @alfalab/data, @alfalab/hooks, @alfalab/utils
diff --git a/.github/workflows/package-size.yml b/.github/workflows/package-size.yml
index 16557e314d..bd1d1bf7c5 100644
--- a/.github/workflows/package-size.yml
+++ b/.github/workflows/package-size.yml
@@ -51,10 +51,10 @@ jobs:
const now = currentFile[packageName]?.[entryPoint] || 0;
const before = masterFile[packageName]?.[entryPoint] || 0;
- if (Math.abs(now - before) > 2) {
+ if (Math.abs(now - before) >= 1) {
shouldComment = true;
acc += `| ${packageName}/${entryPoint} | ${now} ${
- now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB)`
+ now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB💚)`
} |\n`;
}
});
diff --git a/.storybook/package-sizes.json b/.storybook/package-sizes.json
index 02ec6cc1a9..24214df633 100644
--- a/.storybook/package-sizes.json
+++ b/.storybook/package-sizes.json
@@ -1,451 +1,451 @@
{
"with-suffix": {
- "index.js": 3.3
+ "index.js": 3.4
},
"universal-date-input": {
- "desktop.js": 141.1,
- "index.js": 141.3,
- "mobile.js": 141.1,
+ "desktop.js": 140.9,
+ "index.js": 141,
+ "mobile.js": 140.9,
"shared.js": 43.6
},
"underlay": {
- "index.js": 3.3
+ "index.js": 3.4
},
"typography": {
- "index.js": 8.9
+ "index.js": 7.3
},
"tooltip": {
- "desktop.js": 48.9,
- "index.js": 107.5,
- "mobile.js": 78.9
+ "desktop.js": 47.7,
+ "index.js": 105.5,
+ "mobile.js": 76.8
},
"toast": {
- "desktop.js": 68.4,
- "index.js": 68.9,
- "mobile.js": 68.4
+ "desktop.js": 68.1,
+ "index.js": 68.6,
+ "mobile.js": 68.1
},
"toast-plate": {
- "desktop.js": 23,
- "index.js": 23.3,
- "mobile.js": 23
+ "desktop.js": 22.6,
+ "index.js": 23,
+ "mobile.js": 22.6
},
"time-input": {
- "index.js": 27.1
+ "index.js": 26.9
},
"textarea": {
- "index.js": 15.9,
+ "index.js": 14.3,
"shared.js": 0.9
},
"text": {
- "index.js": 1.6
+ "index.js": 1.7
},
"tag": {
- "desktop.js": 4.8,
- "index.js": 7.9,
- "mobile.js": 4.8
+ "desktop.js": 3.5,
+ "index.js": 6.4,
+ "mobile.js": 3.5
},
"tabs": {
- "collapsible.js": 293,
- "desktop.js": 37.1,
- "index.js": 38.5,
- "mobile.js": 37.2,
- "shared.js": 30.4
+ "collapsible.js": 153.5,
+ "desktop.js": 38,
+ "index.js": 39.3,
+ "mobile.js": 38.1,
+ "shared.js": 31.3
},
"table": {
- "index.js": 172.5
+ "index.js": 172.3
},
"tab-bar": {
- "index.js": 12.4,
+ "index.js": 7.2,
"shared.js": 0.6
},
"system-message": {
- "desktop.js": 4.7,
- "index.js": 8.9,
- "mobile.js": 4.7,
- "shared.js": 3
+ "desktop.js": 4.8,
+ "index.js": 7.3,
+ "mobile.js": 4.8,
+ "shared.js": 3.1
},
"switch": {
- "index.js": 5
+ "index.js": 3.7
},
"steps": {
- "index.js": 9.1
+ "index.js": 7.8
},
"stepped-progress-bar": {
- "index.js": 9.6
+ "index.js": 4.4
},
"status": {
- "index.js": 1.6
+ "index.js": 1.7
},
"status-badge": {
- "index.js": 9.5
+ "index.js": 9.6
},
"stack": {
"index.js": 1.6
},
"spinner": {
- "index.js": 4.3
+ "index.js": 4.2
},
"space": {
- "index.js": 2.6
+ "index.js": 2.7
},
"sortable-list": {
- "index.js": 53.7,
+ "index.js": 53.8,
"shared.js": 0.7
},
"slider": {
- "index.js": 29.3
+ "index.js": 29.4
},
"slider-input": {
- "index.js": 56.8
+ "index.js": 56.6
},
"skeleton": {
- "index.js": 1.6
+ "index.js": 1.7
},
"side-panel": {
- "desktop.js": 69.8,
- "index.js": 71.5,
- "mobile.js": 68,
- "shared.js": 45.2
+ "desktop.js": 67.8,
+ "index.js": 69.4,
+ "mobile.js": 65.9,
+ "shared.js": 44.9
},
"shared": {
- "index.js": 5.2
+ "index.js": 3.9
},
"select": {
- "desktop.js": 160.9,
- "index.js": 305.9,
- "mobile.js": 279.2,
- "shared.js": 264
+ "desktop.js": 160.7,
+ "index.js": 229.4,
+ "mobile.js": 202.8,
+ "shared.js": 189
},
"select-with-tags": {
- "desktop.js": 289.8,
- "index.js": 314.2,
- "mobile.js": 288
+ "desktop.js": 192.5,
+ "index.js": 215.7,
+ "mobile.js": 189.6
},
"segmented-control": {
- "index.js": 13.7
+ "index.js": 12.4
},
"scrollbar": {
- "index.js": 37.1
+ "index.js": 37.2
},
"radio": {
- "index.js": 4.8
+ "index.js": 3.5
},
"radio-group": {
- "desktop.js": 4.3,
- "index.js": 7.3,
- "mobile.js": 4.3
+ "desktop.js": 3,
+ "index.js": 5.8,
+ "mobile.js": 3
},
"pure-cell": {
- "index.js": 47.3,
+ "index.js": 25.3,
"shared.js": 1.1
},
"progress-bar": {
- "index.js": 1.8
+ "index.js": 1.9
},
"product-cover": {
- "index.js": 40.8,
+ "index.js": 15.7,
"shared.js": 0.9
},
"portal": {
"index.js": 1.2
},
"popup-sheet": {
- "index.js": 63.3,
+ "index.js": 61.6,
"shared.js": 0.6
},
"popover": {
- "index.js": 46.5
+ "index.js": 45.3
},
"plate": {
- "desktop.js": 15.9,
- "index.js": 16.3,
- "mobile.js": 15.9,
+ "desktop.js": 15.6,
+ "index.js": 16,
+ "mobile.js": 15.6,
"shared.js": 0.6
},
"picker-button": {
- "desktop.js": 285,
- "index.js": 319.7,
- "mobile.js": 292.4,
+ "desktop.js": 145.4,
+ "index.js": 234.3,
+ "mobile.js": 207.1,
"shared.js": 3.1
},
"phone-input": {
- "index.js": 37.3
+ "index.js": 37
},
"pattern-lock": {
- "desktop.js": 24.3,
- "index.js": 27.3,
- "mobile.js": 24.3,
+ "desktop.js": 24.2,
+ "index.js": 27,
+ "mobile.js": 24.2,
"shared.js": 0.9
},
"pattern-lock-v1": {
- "desktop.js": 24.6,
- "index.js": 27.6,
- "mobile.js": 24.6,
+ "desktop.js": 24.5,
+ "index.js": 27.2,
+ "mobile.js": 24.5,
"shared.js": 1.3
},
"password-input": {
- "index.js": 30
+ "index.js": 29.7
},
"pass-code": {
- "index.js": 23.5,
+ "index.js": 23.1,
"shared.js": 0.8
},
"pass-code-v1": {
- "index.js": 19.8,
+ "index.js": 19.7,
"shared.js": 0.8
},
"pagination": {
- "index.js": 8.1
+ "index.js": 6.8
},
"number-input": {
- "desktop.js": 43.9,
- "index.js": 44.6,
- "mobile.js": 43.9,
+ "desktop.js": 43.6,
+ "index.js": 44.4,
+ "mobile.js": 43.6,
"shared.js": 1
},
"notification": {
- "index.js": 30.3,
+ "index.js": 30,
"shared.js": 0.7
},
"notification-manager": {
- "index.js": 14.4
+ "index.js": 14.5
},
"navigation-bar": {
- "index.js": 3.2,
- "shared.js": 16
+ "index.js": 3.3,
+ "shared.js": 12.2
},
"navigation-bar-private": {
- "index.js": 21.8,
- "shared.js": 18.5
+ "index.js": 20.1,
+ "shared.js": 16.8
},
"mq": {
- "index.js": 4.7
+ "index.js": 3.4
},
"modal": {
- "desktop.js": 68.7,
- "index.js": 68.9,
- "mobile.js": 68.7,
- "shared.js": 45.2
+ "desktop.js": 66.7,
+ "index.js": 66.9,
+ "mobile.js": 66.7,
+ "shared.js": 44.9
},
"masked-input": {
- "index.js": 35.6
+ "index.js": 35.3
},
"markdown": {
- "desktop.js": 127.7,
- "index.js": 127.8,
- "mobile.js": 127.7
+ "desktop.js": 123.8,
+ "index.js": 126,
+ "mobile.js": 123.8
},
"loader": {
- "index.js": 1.4
+ "index.js": 1.5
},
"list": {
- "index.js": 10.3
+ "index.js": 5
},
"list-header": {
- "index.js": 9
+ "index.js": 3.8
},
"link": {
- "index.js": 4.3
+ "index.js": 3
},
"keyboard-focusable": {
- "index.js": 2.1
+ "index.js": 0.7
},
"intl-phone-input": {
- "index.js": 793.3
+ "index.js": 658.3
},
"international-phone-input": {
- "desktop.js": 582.9,
- "index.js": 618.1,
- "mobile.js": 590.2,
- "shared.js": 254.6
+ "desktop.js": 469.9,
+ "index.js": 536.1,
+ "mobile.js": 508.1,
+ "shared.js": 2.9
},
"input": {
- "desktop.js": 25.7,
- "index.js": 26.3,
- "mobile.js": 25.7,
- "shared.js": 12.5
+ "desktop.js": 25.4,
+ "index.js": 26,
+ "mobile.js": 25.4,
+ "shared.js": 12.2
},
"input-autocomplete": {
- "desktop.js": 281.6,
- "index.js": 318.5,
- "mobile.js": 291,
+ "desktop.js": 157.1,
+ "index.js": 236.3,
+ "mobile.js": 208.8,
"shared.js": 2
},
"indicator": {
- "index.js": 2.2
+ "index.js": 2.3
},
"icon-view": {
- "circle.js": 13.9,
+ "circle.js": 17.1,
"no-shape.js": 5.3,
- "rectangle.js": 10.5,
- "super-ellipse.js": 24.1
+ "rectangle.js": 12,
+ "super-ellipse.js": 32
},
"icon-button": {
- "index.js": 11.7
+ "index.js": 11.4
},
"hatching-progress-bar": {
- "index.js": 1.7
+ "index.js": 1.8
},
"grid": {
- "index.js": 2.2
+ "index.js": 2.3
},
"global-store": {
"index.js": 0.3
},
"generic-wrapper": {
- "index.js": 1.7
+ "index.js": 1.8
},
"gap": {
- "index.js": 1.8
+ "index.js": 1.9
},
"gallery": {
- "index.js": 625.1
+ "index.js": 624.8
},
"form-control": {
"desktop.js": 4.2,
- "index.js": 8.7,
+ "index.js": 7.1,
"mobile.js": 4.2,
"shared.js": 0.8
},
"filter-tag": {
- "desktop.js": 7.6,
- "index.js": 10.4,
- "mobile.js": 7.6
+ "desktop.js": 6.3,
+ "index.js": 8.8,
+ "mobile.js": 6.3
},
"file-upload-item": {
- "index.js": 83.7
+ "index.js": 82.9
},
"file-upload-item-v1": {
- "index.js": 21.6
+ "index.js": 21.3
},
"dropzone": {
- "index.js": 3.6
+ "index.js": 3.7
},
"drawer": {
- "index.js": 46.2
+ "index.js": 45.9
},
"divider": {
- "index.js": 1.3
+ "index.js": 1.4
},
"date-time-input": {
- "desktop.js": 145.4,
- "index.js": 246.5,
- "mobile.js": 245.8
+ "desktop.js": 145.2,
+ "index.js": 246.2,
+ "mobile.js": 245.6
},
"date-range-input": {
- "desktop.js": 145.9,
- "index.js": 247.1,
- "mobile.js": 246.4
+ "desktop.js": 145.7,
+ "index.js": 246.8,
+ "mobile.js": 246.1
},
"date-input": {
- "index.js": 71.1
+ "index.js": 70.9
},
"custom-picker-button": {
- "desktop.js": 286.7,
- "index.js": 321.6,
- "mobile.js": 294
+ "desktop.js": 147.1,
+ "index.js": 236.3,
+ "mobile.js": 208.7
},
"custom-button": {
- "index.js": 11.2
+ "index.js": 10.9
},
"confirmation": {
- "desktop.js": 32.1,
- "index.js": 32.5,
- "mobile.js": 32.2,
- "shared.js": 30.5
+ "desktop.js": 31.3,
+ "index.js": 31.7,
+ "mobile.js": 31.4,
+ "shared.js": 29.7
},
"confirmation-v1": {
- "index.js": 44.9
+ "index.js": 23.3
},
"comment": {
- "index.js": 9
+ "index.js": 3.8
},
"collapse": {
- "index.js": 17.1
+ "index.js": 16.9
},
"code-input": {
- "desktop.js": 4.3,
- "index.js": 8.8,
- "mobile.js": 4.3,
+ "desktop.js": 4.4,
+ "index.js": 7.2,
+ "mobile.js": 4.4,
"shared.js": 0
},
"circular-progress-bar": {
- "index.js": 11.8
+ "index.js": 7.5
},
"checkbox": {
- "index.js": 5.4
+ "index.js": 4.1
},
"checkbox-group": {
- "desktop.js": 2.6,
- "index.js": 6.9,
- "mobile.js": 2.6
+ "desktop.js": 2.7,
+ "index.js": 5.3,
+ "mobile.js": 2.7
},
"chart": {
- "index.js": 442.2
+ "index.js": 437.8
},
"cdn-icon": {
- "index.js": 1.8
+ "index.js": 1.9
},
"card-image": {
- "index.js": 2
+ "index.js": 2.1
},
"calendar": {
- "desktop.js": 68.2,
- "index.js": 178.6,
- "mobile.js": 178.4,
- "shared.js": 49.2
+ "desktop.js": 67.9,
+ "index.js": 178.2,
+ "mobile.js": 178.1,
+ "shared.js": 48.9
},
"calendar-with-skeleton": {
- "index.js": 69.5
+ "index.js": 69.2
},
"calendar-range": {
- "index.js": 254.8
+ "index.js": 254.5
},
"calendar-input": {
- "desktop.js": 146.9,
- "index.js": 247.6,
- "mobile.js": 247.4,
- "shared.js": 74.3
+ "desktop.js": 146.7,
+ "index.js": 247.3,
+ "mobile.js": 247.1,
+ "shared.js": 52.6
},
"button": {
- "desktop.js": 7.6,
- "index.js": 10.7,
- "mobile.js": 7.6,
+ "desktop.js": 7.5,
+ "index.js": 10.4,
+ "mobile.js": 7.5,
"shared.js": 0.6
},
"bottom-sheet": {
- "index.js": 78.2,
+ "index.js": 76.1,
"shared.js": 0.8
},
"base-modal": {
- "index.js": 45
+ "index.js": 44.7
},
"bank-card": {
- "index.js": 42.7
+ "index.js": 42.4
},
"badge": {
- "index.js": 2
+ "index.js": 2.1
},
"backdrop": {
- "index.js": 8.9
+ "index.js": 9
},
"attach": {
- "index.js": 37.4
+ "index.js": 15.7
},
"amount": {
- "index.js": 26.6
+ "index.js": 5.3
},
"amount-input": {
- "index.js": 55.6
+ "index.js": 33.8
},
"alert": {
- "index.js": 16.6
+ "index.js": 16.3
},
"action-button": {
- "index.js": 6.6,
+ "index.js": 6.5,
"shared.js": 0.7
},
"accordion": {
- "index.js": 20.2
+ "index.js": 15.2
}
}
\ No newline at end of file
diff --git a/.storybook/pages/components-overview/components/card/index.tsx b/.storybook/pages/components-overview/components/card/index.tsx
index 5b352e0a6a..b7d8a956f6 100644
--- a/.storybook/pages/components-overview/components/card/index.tsx
+++ b/.storybook/pages/components-overview/components/card/index.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import kebab from 'lodash.kebabcase';
import cn from 'classnames';
+import kebab from 'lodash/kebabCase';
import { Typography } from '@alfalab/core-components-typography';
diff --git a/.storybook/pages/components-overview/index.tsx b/.storybook/pages/components-overview/index.tsx
index 7652931676..ab128ec892 100644
--- a/.storybook/pages/components-overview/index.tsx
+++ b/.storybook/pages/components-overview/index.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
-import _throttle from 'lodash.throttle';
+import _throttle from 'lodash/throttle';
import { Gap } from '@alfalab/core-components-gap';
import { Input, InputProps } from '@alfalab/core-components-input';
diff --git a/.storybook/theming-wizard/answers/keepCssVars/index.tsx b/.storybook/theming-wizard/answers/keepCssVars/index.tsx
index 51ea22bf66..7bee7ede6a 100644
--- a/.storybook/theming-wizard/answers/keepCssVars/index.tsx
+++ b/.storybook/theming-wizard/answers/keepCssVars/index.tsx
@@ -22,6 +22,19 @@ export const KeepCssVars = ({ answers }: { answers: Answers }) => {
,
);
+ steps.push(
+
+
+ Также если вы используете индексный файл с переменными (vars/index.css) , то
+ рекомендуем вам перейти на один из бандлов, подготовленных под продукты (например,
+ vars/bundle/click.css). В этих бандлах всегда будет правильный набор переменных для
+ вашего продукта. Если в продукте встречаются очень старые deprecated цвета из файла
+ vars/colors.css, дополнительно подключите его (он всё ещё есть в индексном файле, но
+ в бандлы его уже не добавляли).
+
+
,
+ );
+
if (answers.darkMode === 'yes') {
steps.push(
diff --git a/.storybook/theming-wizard/answers/keepCssVars/utils.ts b/.storybook/theming-wizard/answers/keepCssVars/utils.ts
index 1f7fa38e51..1384f96fe5 100644
--- a/.storybook/theming-wizard/answers/keepCssVars/utils.ts
+++ b/.storybook/theming-wizard/answers/keepCssVars/utils.ts
@@ -11,7 +11,9 @@ import darkMode from '@alfalab/core-components/themes/dark';
export const cssImportsExample = (answers: Answers) => {
const cssImports: string[] = [
- "@import '@alfalab/core-components/vars/index.css';",
+ answers.product === 'default'
+ ? "@import '@alfalab/core-components/vars/index.css';"
+ : `@import '@alfalab/core-components/vars/bundle/${answers.product}.css';`,
answers.product !== 'default'
? `@import '@alfalab/core-components/themes/${answers.product}.css';`
: '',
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 769ba10db8..3ca6ed5f0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,155 @@
+## 48.6.0
+
+
13.12.2024
+
+### [#1477](https://github.com/core-ds/core-components/pull/1477)
+
+#### Что изменилось
+- Замена использование lodash на коммон пакет
+
+#### Влияние на компоненты
+- Патчи
`collapse` `input-autocomplete` `tabs`
+
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+#### Что изменилось
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+#### Влияние на компоненты
+- Патчи
`accordion` `action-button` `alert` `amount` `amount-input`
`attach` `backdrop` `badge` `bank-card` `base-modal`
`bottom-sheet` `button` `calendar` `calendar-input` `calendar-range`
`calendar-with-skeleton` `card-image` `cdn-icon` `chart` `checkbox`
`checkbox-group` `circular-progress-bar` `code-input` `collapse` `comment`
`confirmation` `confirmation-v1` `custom-button` `custom-picker-button` `date-range-input`
`date-time-input` `divider` `drawer` `dropzone` `file-upload-item`
`file-upload-item-v1` `filter-tag` `form-control` `gallery` `gap`
`generic-wrapper` `grid` `hatching-progress-bar` `icon-button` `icon-view`
`indicator` `input` `input-autocomplete` `international-phone-input` `intl-phone-input`
`link` `list` `list-header` `loader` `markdown`
`masked-input` `modal` `navigation-bar` `navigation-bar-private` `notification`
`notification-manager` `number-input` `pagination` `pass-code` `pass-code-v1`
`password-input` `pattern-lock` `pattern-lock-v1` `picker-button` `plate`
`popover` `popup-sheet` `product-cover` `progress-bar` `pure-cell`
`radio` `radio-group` `scrollbar` `segmented-control` `select`
`select-with-tags` `side-panel` `skeleton` `slider` `slider-input`
`sortable-list` `space` `spinner` `status` `status-badge`
`stepped-progress-bar` `steps` `switch` `system-message` `tab-bar`
`table` `tabs` `tag` `text` `textarea`
`toast` `toast-plate` `tooltip` `typography` `underlay`
`universal-date-input` `with-suffix`
+
+
+### [#1481](https://github.com/core-ds/core-components/pull/1481)
+
+#### Что изменилось
+- Исправлен цвет шеврона для заблокированного состояния
+
+#### Влияние на компоненты
+- Патчи
`select`
+
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+#### Что изменилось
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+#### Влияние на компоненты
+- Патчи
`code-input` `collapse` `confirmation` `date-input` `filter-tag`
`gap` `grid` `link` `list` `modal`
`slider` `space` `spinner` `stack` `status`
`steps` `tabs` `tag` `textarea` `tooltip`
`underlay`
+
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+#### Что изменилось
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+#### Влияние на компоненты
+- Патчи
`button` `card-image` `cdn-icon` `chart` `checkbox`
`checkbox-group` `circular-progress-bar` `phone-input` `progress-bar` `scrollbar`
`side-panel` `sortable-list` `tab-bar` `table` `text`
`toast` `toast-plate`
+
+
+### [#1495](https://github.com/core-ds/core-components/pull/1495)
+
+#### Что изменилось
+- Добавили пропс footerClassName в OptionsList
+
+#### Влияние на компоненты
+- Минорное
`select`
+
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+#### Что изменилось
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+#### Влияние на компоненты
+- Патчи
`accordion` `calendar` `chart` `circular-progress-bar` `comment`
`confirmation` `file-upload-item` `gallery` `list` `list-header`
`markdown` `navigation-bar` `navigation-bar-private` `product-cover` `pure-cell`
`stepped-progress-bar` `tab-bar`
+
+
+### [#1488](https://github.com/core-ds/core-components/pull/1488)
+
+#### Что изменилось
+- Фикс вызова input.setSelectionRange
+
+#### Влияние на компоненты
+- Патчи
`input`
+
+
+
+## 48.5.0
+
+
10.12.2024
+
+### [#1454](https://github.com/core-ds/core-components/pull/1454)
+
+#### Что изменилось
+- Добавлен размер 72
+
+#### Влияние на компоненты
+- Минорное
`icon-view`
+
+
+### [#1446](https://github.com/core-ds/core-components/pull/1446)
+
+#### Что изменилось
+- Изменены цвета для hint
+- Изменена высота строки для размера 48, 56
+- Добавлена минимальная высота для размера 48, 56
+
+#### Влияние на компоненты
+- Минорное
`button`
+
+
+### [#1460](https://github.com/core-ds/core-components/pull/1460)
+
+#### Что изменилось
+- Добавлены пропсы для передачи кастомного текста в кнопки мобильного календаря
+
+#### Влияние на компоненты
+- Минорное
`calendar`
+
+
+### [#1439](https://github.com/core-ds/core-components/pull/1439)
+
+#### Что изменилось
+- Исправлено выравнивание `title` при отсутствии аддона слева
+
+#### Влияние на компоненты
+- Патчи
`navigation-bar`
+
+
+### [#1452](https://github.com/core-ds/core-components/pull/1452)
+
+#### Что изменилось
+- Изменены цвета заблокированного состояния
+
+#### Влияние на компоненты
+- Минорное
`custom-button`
+
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+#### Что изменилось
+- Добавлено sideEffects: false
+
+#### Влияние на компоненты
+- Патчи
`action-button` `alert` `amount` `amount-input` `attach`
`backdrop` `badge` `bank-card` `base-modal` `bottom-sheet`
`calendar-input` `calendar-range` `calendar-with-skeleton` `custom-picker-button` `gallery`
`input` `input-autocomplete` `international-phone-input` `intl-phone-input` `markdown`
`picker-button` `plate` `select` `select-with-tags` `universal-date-input`
+
+
+
+## 48.4.0
+
+
06.12.2024
+
+### [#1465](https://github.com/core-ds/core-components/pull/1465)
+
+#### Что изменилось
+- Изменено поведение пропса clickableMonth. Добавлена возможность выбирать промежуток между месяцами. Первый клик по лейблу месяца выбирает весь месяц. Второй клик на следующий месяц выбирает промежуток между этими двумя месяцами.
+
+#### Влияние на компоненты
+- Минорное
`calendar`
+
+
+
## 48.3.0
28.11.2024
diff --git a/bin/generate-docs-urls.js b/bin/generate-docs-urls.js
index fa8e29bed4..428a6c3403 100644
--- a/bin/generate-docs-urls.js
+++ b/bin/generate-docs-urls.js
@@ -1,8 +1,8 @@
const path = require('path');
const fs = require('fs');
const { promisify } = require('util');
-const camelCase = require('lodash.camelcase');
-const upperfirst = require('lodash.upperfirst');
+const { camelCase } = require('lodash/camelcase');
+const { upperfirst } = require('lodash/upperfirst');
const findComponentPath = require('../tools/storybook/findComponentPath');
const readDir = promisify(fs.readdir);
diff --git a/package.json b/package.json
index a0304b5c07..1b98a888d0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components",
- "version": "48.3.0",
+ "version": "48.6.0",
"private": true,
"workspaces": [
"packages/*"
@@ -55,12 +55,13 @@
]
},
"dependencies": {
- "@alfalab/data": "^1.8.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-config": "^1.0.0",
+ "@alfalab/data": "^1.9.1",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
"@alfalab/icons-logotype": "^2.27.0",
"@alfalab/react-canvas-pattern-lock": "^2.0.7",
- "@alfalab/utils": "^1.15.2",
+ "@alfalab/utils": "^1.17.1",
"@dnd-kit/core": "^6.0.7",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
@@ -68,29 +69,26 @@
"@maskito/core": "^1.7.0",
"@maskito/react": "^1.7.0",
"@popperjs/core": "^2.11.8",
- "@types/deep-equal": "^1.0.4",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.throttle": "^4.1.7",
"@types/react-transition-group": "^4.4.5",
"can-use-dom": "^0.1.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"compute-scroll-into-view": "^3.1.0",
"date-fns": "^2.16.1",
- "deep-equal": "^2.2.3",
"downshift": "8.4.0",
"element-closest": "^3.0.2",
"hls.js": "^1.5.13",
"intersection-observer": "^0.12.0",
"libphonenumber-js": "^1.10.30",
- "lodash.debounce": "^4.0.8",
- "lodash.memoize": "^4.1.2",
- "lodash.throttle": "^4.1.1",
+ "lodash": "^4.17.21",
"mdast-util-gfm-strikethrough": "^0.2.3",
"micromark-extension-gfm-strikethrough": "^0.6.5",
"nouislider": "^15.6.0",
"popper-max-size-modifier": "^0.2.0",
"react-canvas-pattern-lock": "^2.0.6",
"react-div-100vh": "^0.7.0",
+ "react-fast-compare": "^3.2.2",
"react-focus-lock": "^2.12.1",
"react-markdown": "6.0.2",
"react-merge-refs": "^1.1.0",
@@ -108,7 +106,6 @@
"ui-primitives": "^22.7.0"
},
"devDependencies": {
- "@alfalab/core-config": "^1.0.0",
"@alfalab/stack-context": "^1.16.0",
"@changesets/cli": "^2.25.0",
"@changesets/get-github-info": "^0.5.1",
@@ -132,9 +129,7 @@
"@types/element-closest": "^3.0.0",
"@types/jest": "^26.0.15",
"@types/jest-image-snapshot": "^6.1.0",
- "@types/lodash.camelcase": "^4.3.6",
- "@types/lodash.kebabcase": "^4.1.6",
- "@types/lodash.upperfirst": "^4.3.6",
+ "@types/lodash": "^4.17.13",
"@types/node": "^13.5.0",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
@@ -182,9 +177,6 @@
"json": "^10.0.0",
"lerna": "^6.1.0",
"lint-staged": "^12.5.0",
- "lodash.camelcase": "^4.3.0",
- "lodash.kebabcase": "^4.1.1",
- "lodash.upperfirst": "^4.3.1",
"mini-css-extract-plugin": "^2.7.5",
"playwright": "^1.33.0",
"postcss-cli": "^7.1.0",
diff --git a/packages/accordion/CHANGELOG.md b/packages/accordion/CHANGELOG.md
index 6441eb8c41..d3ba4a270d 100644
--- a/packages/accordion/CHANGELOG.md
+++ b/packages/accordion/CHANGELOG.md
@@ -1,5 +1,24 @@
# Change Log
+## 1.2.5
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 1.2.4
### Patch Changes
diff --git a/packages/accordion/package.json b/packages/accordion/package.json
index 0eb43e0f09..69b65d2922 100644
--- a/packages/accordion/package.json
+++ b/packages/accordion/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-accordion",
- "version": "1.2.4",
+ "version": "1.2.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -14,13 +14,13 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
"@juggle/resize-observer": "^3.3.1",
- "@alfalab/core-components-typography": "^4.11.0"
+ "@alfalab/core-components-typography": "^4.11.1"
},
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
diff --git a/packages/accordion/src/Component.tsx b/packages/accordion/src/Component.tsx
index 2a072c32f2..92ccd5f406 100644
--- a/packages/accordion/src/Component.tsx
+++ b/packages/accordion/src/Component.tsx
@@ -8,7 +8,7 @@ import React, {
} from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { DefaultControlIcon } from './components';
import { useMeasureHeight } from './hooks';
@@ -122,19 +122,15 @@ export const Accordion: FC
= ({
const headerContent =
typeof header === 'string' ? (
-
+
{header}
-
+
) : (
header
);
const bodyContent =
- typeof children === 'string' ? (
- {children}
- ) : (
- children
- );
+ typeof children === 'string' ? {children} : children;
const handleExpandedChange = useCallback(() => {
if (uncontrolled) {
diff --git a/packages/action-button/CHANGELOG.md b/packages/action-button/CHANGELOG.md
index efdb98b14b..52df1f8599 100644
--- a/packages/action-button/CHANGELOG.md
+++ b/packages/action-button/CHANGELOG.md
@@ -1,5 +1,28 @@
# Change Log
+## 1.7.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - spinner@4.0.1
+
+## 1.7.4
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
## 1.7.3
### Patch Changes
diff --git a/packages/action-button/package.json b/packages/action-button/package.json
index e4a0cab614..75fbc204f6 100644
--- a/packages/action-button/package.json
+++ b/packages/action-button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-action-button",
- "version": "1.7.3",
+ "version": "1.7.5",
"description": "Action Button component",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-spinner": "^4.0.0",
+ "@alfalab/core-components-spinner": "^4.0.1",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/alert/CHANGELOG.md b/packages/alert/CHANGELOG.md
index b18a4b23ac..82faa3ee41 100644
--- a/packages/alert/CHANGELOG.md
+++ b/packages/alert/CHANGELOG.md
@@ -1,5 +1,31 @@
# Change Log
+## 4.2.10
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - plate@7.8.5
+
+## 4.2.9
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - plate@7.8.4
+
## 4.2.8
### Patch Changes
diff --git a/packages/alert/package.json b/packages/alert/package.json
index 41e05f7549..d4c822bdd3 100644
--- a/packages/alert/package.json
+++ b/packages/alert/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-alert",
- "version": "4.2.8",
+ "version": "4.2.10",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-plate": "^7.8.3",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-plate": "^7.8.5",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/amount-input/CHANGELOG.md b/packages/amount-input/CHANGELOG.md
index e4188f3a7f..8a570cdefe 100644
--- a/packages/amount-input/CHANGELOG.md
+++ b/packages/amount-input/CHANGELOG.md
@@ -1,5 +1,33 @@
# Change Log
+## 7.12.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input@15.3.4
+ - with-suffix@4.2.10
+
+## 7.12.5
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - input@15.3.3
+ - with-suffix@4.2.9
+
## 7.12.4
### Patch Changes
diff --git a/packages/amount-input/package.json b/packages/amount-input/package.json
index 241faf185e..134e9a637c 100644
--- a/packages/amount-input/package.json
+++ b/packages/amount-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-amount-input",
- "version": "7.12.4",
+ "version": "7.12.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-with-suffix": "^4.2.8",
- "@alfalab/data": "^1.8.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-with-suffix": "^4.2.10",
+ "@alfalab/data": "^1.9.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/amount/CHANGELOG.md b/packages/amount/CHANGELOG.md
index 2af15d0222..2d3b58c596 100644
--- a/packages/amount/CHANGELOG.md
+++ b/packages/amount/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 3.8.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+## 3.8.1
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
## 3.8.0
### Minor Changes
diff --git a/packages/amount/package.json b/packages/amount/package.json
index edb59e5a78..a51af42c76 100644
--- a/packages/amount/package.json
+++ b/packages/amount/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-amount",
- "version": "3.8.0",
+ "version": "3.8.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,10 +10,11 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/data": "^1.8.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/data": "^1.9.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"peerDependencies": {
diff --git a/packages/attach/CHANGELOG.md b/packages/attach/CHANGELOG.md
index c6baf18b05..e24ebb8ce2 100644
--- a/packages/attach/CHANGELOG.md
+++ b/packages/attach/CHANGELOG.md
@@ -1,5 +1,32 @@
# Change Log
+## 6.6.22
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - progress-bar@3.5.1
+
+## 6.6.21
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 6.6.20
### Patch Changes
diff --git a/packages/attach/package.json b/packages/attach/package.json
index a31e5e8b85..f56758fb2d 100644
--- a/packages/attach/package.json
+++ b/packages/attach/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-attach",
- "version": "6.6.20",
+ "version": "6.6.22",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
+ "@alfalab/core-components-button": "^11.11.1",
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
- "@alfalab/core-components-progress-bar": "^3.5.0",
+ "@alfalab/core-components-progress-bar": "^3.5.1",
"@alfalab/icons-glyph": "^2.189.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/backdrop/CHANGELOG.md b/packages/backdrop/CHANGELOG.md
index 83b37eef70..8b68e89430 100644
--- a/packages/backdrop/CHANGELOG.md
+++ b/packages/backdrop/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 3.4.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+## 3.4.2
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
## 3.4.1
### Patch Changes
diff --git a/packages/backdrop/package.json b/packages/backdrop/package.json
index d927c3543c..b74f74d001 100644
--- a/packages/backdrop/package.json
+++ b/packages/backdrop/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-backdrop",
- "version": "3.4.1",
+ "version": "3.4.3",
"description": "Backdrop component",
"keywords": [],
"license": "MIT",
@@ -10,9 +10,10 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
"@types/react-transition-group": "^4.4.5",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},
diff --git a/packages/badge/CHANGELOG.md b/packages/badge/CHANGELOG.md
index 14903a07f2..4224f874c2 100644
--- a/packages/badge/CHANGELOG.md
+++ b/packages/badge/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 5.6.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+## 5.6.2
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
## 5.6.1
### Patch Changes
diff --git a/packages/badge/package.json b/packages/badge/package.json
index c591e0c42c..0cfdfbcde5 100644
--- a/packages/badge/package.json
+++ b/packages/badge/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-badge",
- "version": "5.6.1",
+ "version": "5.6.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-types": "^0.0.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/bank-card/CHANGELOG.md b/packages/bank-card/CHANGELOG.md
index 7fabb83f2b..29f5c1d950 100644
--- a/packages/bank-card/CHANGELOG.md
+++ b/packages/bank-card/CHANGELOG.md
@@ -1,5 +1,31 @@
# Change Log
+## 5.8.10
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - masked-input@6.3.29
+
+## 5.8.9
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - masked-input@6.3.28
+
## 5.8.8
### Patch Changes
diff --git a/packages/bank-card/package.json b/packages/bank-card/package.json
index 6ee89b1b6d..c88d77831b 100644
--- a/packages/bank-card/package.json
+++ b/packages/bank-card/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-bank-card",
- "version": "5.8.8",
+ "version": "5.8.10",
"description": "Bank card component",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-masked-input": "^6.3.27",
+ "@alfalab/core-components-masked-input": "^6.3.29",
"@alfalab/icons-glyph": "^2.189.0",
"@alfalab/icons-logotype": "^2.27.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/base-modal/CHANGELOG.md b/packages/base-modal/CHANGELOG.md
index 035a4b2faf..def86f597a 100644
--- a/packages/base-modal/CHANGELOG.md
+++ b/packages/base-modal/CHANGELOG.md
@@ -1,5 +1,32 @@
# Change Log
+## 5.8.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - backdrop@3.4.3
+ - stack@5.0.1
+
+## 5.8.5
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - backdrop@3.4.2
+
## 5.8.4
### Patch Changes
diff --git a/packages/base-modal/package.json b/packages/base-modal/package.json
index aa7c66b113..3142d72c79 100644
--- a/packages/base-modal/package.json
+++ b/packages/base-modal/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-base-modal",
- "version": "5.8.4",
+ "version": "5.8.6",
"description": "BaseModal component",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-backdrop": "^3.4.1",
+ "@alfalab/core-components-backdrop": "^3.4.3",
"@alfalab/core-components-global-store": "^2.1.0",
"@alfalab/core-components-portal": "^3.3.4",
- "@alfalab/core-components-stack": "^5.0.0",
+ "@alfalab/core-components-stack": "^5.0.1",
"@alfalab/core-components-shared": "^0.14.0",
"@juggle/resize-observer": "^3.3.1",
"@types/react-transition-group": "^4.4.5",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-focus-lock": "^2.12.1",
"react-merge-refs": "^1.1.0",
"react-transition-group": "^4.4.5",
diff --git a/packages/bottom-sheet/CHANGELOG.md b/packages/bottom-sheet/CHANGELOG.md
index 65e0f26f8d..5ffa0c25b1 100644
--- a/packages/bottom-sheet/CHANGELOG.md
+++ b/packages/bottom-sheet/CHANGELOG.md
@@ -1,5 +1,35 @@
# Change Log
+## 6.17.13
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - backdrop@3.4.3
+ - base-modal@5.8.6
+ - navigation-bar-private@0.5.5
+
+## 6.17.12
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - backdrop@3.4.2
+ - base-modal@5.8.5
+ - navigation-bar-private@0.5.4
+
## 6.17.11
### Patch Changes
diff --git a/packages/bottom-sheet/package.json b/packages/bottom-sheet/package.json
index d81544b9df..0fbe4fa5f7 100644
--- a/packages/bottom-sheet/package.json
+++ b/packages/bottom-sheet/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-bottom-sheet",
- "version": "6.17.11",
+ "version": "6.17.13",
"description": "Bottom sheet mobile component",
"keywords": [],
"license": "MIT",
@@ -10,17 +10,18 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-backdrop": "^3.4.1",
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-navigation-bar-private": "^0.5.3",
+ "@alfalab/core-components-backdrop": "^3.4.3",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-navigation-bar-private": "^0.5.5",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-types": "^0.0.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-div-100vh": "^0.7.0",
"react-merge-refs": "^1.1.0",
"react-swipeable": "^7.0.0",
diff --git a/packages/button/CHANGELOG.md b/packages/button/CHANGELOG.md
index 17911d166b..a3018a8d0a 100644
--- a/packages/button/CHANGELOG.md
+++ b/packages/button/CHANGELOG.md
@@ -1,5 +1,36 @@
# Change Log
+## 11.11.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - spinner@4.0.1
+
+## 11.11.0
+
+### Minor Changes
+
+10.12.2024
+
+### [#1446](https://github.com/core-ds/core-components/pull/1446)
+
+- Изменены цвета для hint
+- Изменена высота строки для размера 48, 56
+- Добавлена минимальная высота для размера 48, 56
+
## 11.10.2
### Patch Changes
diff --git a/packages/button/package.json b/packages/button/package.json
index 6ff35899b2..53ac43360a 100644
--- a/packages/button/package.json
+++ b/packages/button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-button",
- "version": "11.10.2",
+ "version": "11.11.1",
"description": "",
"gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
"keywords": [],
@@ -11,15 +11,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-spinner": "^4.0.0",
+ "@alfalab/core-components-spinner": "^4.0.1",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-0-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-0-snap.png
index e448f78390..ae4adc9ce7 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-0-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-0-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0be8b3f060ada697241d147d75a6883ed345e79cfd6d534ce3c8d8d5eb71c5b4
-size 2736
+oid sha256:807c844cd01e41e18afaec377d876ab6ef2ff35bb16afd879a6d5244dbc9f523
+size 2746
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-1-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-1-snap.png
index 0feb826375..1e6aa3f710 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-1-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-0-text-resizing-1-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ef27a2b5c96cd5708bdb91d36014f44a01dcf0bfcb879be2f35cb770114d2838
-size 2727
+oid sha256:165f88640938ca5ef4771ac4c414c6270e3facc4f0dcd7d182029e4db8582661
+size 2739
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-0-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-0-snap.png
index 801e27fb4e..87daeb3893 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-0-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-0-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:130af5319f05e601103bd41d3d78b9ac26d7cf09bdd6ed44a040ce7a6128fa6a
-size 2914
+oid sha256:1a9ab4f376666f576879fc0a6d13c0e33b8c2585058562e1d432b9fcc7740675
+size 2902
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-1-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-1-snap.png
index 240c73bddb..0702df4575 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-1-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-1-text-resizing-1-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:730e3e6e6c9b24a646f92c5020d835ab46ca597948bb15ce48359c50015ac74f
-size 2900
+oid sha256:64942604a46c25bdf474fed4cd14866a10136f8bb17695a47c994650eb81d536
+size 2907
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-0-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-0-snap.png
index 3aee77bd65..5be9574e2f 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-0-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-0-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:343bf52f8470d1ba4c041948272e8d76076f896964d6d12db8659a0a940589c1
-size 2904
+oid sha256:64e4cb5633a74503dc38364d4c194a45a554554019cdc64d03660f0edd6f1b6a
+size 2898
diff --git a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-1-snap.png b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-1-snap.png
index 6189ec135a..faf6fd09a5 100644
--- a/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-1-snap.png
+++ b/packages/button/src/__image_snapshots__/button-hint-text-resizing-size-2-text-resizing-1-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1ddc4e2234ab0df044691dd5af7d1975e6032d9c9e9ce6fd081f62acf500cd25
-size 2891
+oid sha256:27520a314ba4f5bab9de57f420b69f2382be7f4323f54279d740a4f5ddbcdbe4
+size 2893
diff --git a/packages/button/src/components/base-button/Component.tsx b/packages/button/src/components/base-button/Component.tsx
index c202d08eba..c5b2f533d5 100644
--- a/packages/button/src/components/base-button/Component.tsx
+++ b/packages/button/src/components/base-button/Component.tsx
@@ -160,7 +160,11 @@ export const BaseButton = React.forwardRef<
})}
>
{children}
- {showHint && {hint} }
+ {showHint && (
+
+ {hint}
+
+ )}
)}
diff --git a/packages/button/src/components/base-button/default.module.css b/packages/button/src/components/base-button/default.module.css
index 3a354524b5..c639f2c320 100644
--- a/packages/button/src/components/base-button/default.module.css
+++ b/packages/button/src/components/base-button/default.module.css
@@ -22,6 +22,10 @@
.primary {
border: 1px solid transparent;
+
+ & .hint {
+ color: var(--button-primary-hint-color);
+ }
}
.secondary {
@@ -31,6 +35,10 @@
& > .loader {
color: var(--button-spinner-default-color);
}
+
+ & .hint {
+ color: var(--button-secondary-hint-color);
+ }
}
.outlined {
@@ -52,6 +60,10 @@
& > .loader {
color: var(--button-spinner-default-color);
}
+
+ & .hint {
+ color: var(--button-outlined-hint-color);
+ }
}
.tertiary {
@@ -73,6 +85,10 @@
& > .loader {
color: var(--button-spinner-default-color);
}
+
+ & .hint {
+ color: var(--button-tertiary-hint-color);
+ }
}
.filled {
@@ -113,6 +129,10 @@
& > .loader {
color: var(--button-spinner-default-color);
}
+
+ & .hint {
+ color: var(--button-transparent-base-hint-color);
+ }
}
.link {
@@ -148,6 +168,10 @@
& > .loader {
color: var(--button-spinner-default-color);
}
+
+ & .hint {
+ color: var(--button-text-base-hint-color);
+ }
}
.ghost {
diff --git a/packages/button/src/components/base-button/index.module.css b/packages/button/src/components/base-button/index.module.css
index 203d16c0e5..b859cc3b04 100644
--- a/packages/button/src/components/base-button/index.module.css
+++ b/packages/button/src/components/base-button/index.module.css
@@ -98,7 +98,7 @@
min-width: 104px;
min-height: var(--size-s-height);
font-size: 16px;
- line-height: 24px;
+ line-height: 20px;
&.iconOnly {
min-width: var(--size-s-height);
@@ -110,7 +110,7 @@
min-height: var(--size-m-height);
padding: var(--gap-0) 27px;
font-size: 16px;
- line-height: 24px;
+ line-height: 20px;
&.iconOnly {
min-width: var(--size-m-height);
@@ -221,6 +221,13 @@
}
}
+.text.text {
+ &.size-48,
+ &.size-56 {
+ min-height: 24px;
+ }
+}
+
/* Disabled */
.component[disabled] {
diff --git a/packages/button/src/components/base-button/inverted.module.css b/packages/button/src/components/base-button/inverted.module.css
index 0159333dbf..46d41dc71e 100644
--- a/packages/button/src/components/base-button/inverted.module.css
+++ b/packages/button/src/components/base-button/inverted.module.css
@@ -22,6 +22,10 @@
.primary {
border: 1px solid transparent;
+
+ & .hint {
+ color: var(--button-inverted-primary-hint-color);
+ }
}
.secondary {
@@ -31,6 +35,10 @@
& > .loader {
color: var(--button-spinner-inverted-color);
}
+
+ & .hint {
+ color: var(--button-inverted-secondary-hint-color);
+ }
}
.outlined {
@@ -52,6 +60,10 @@
& > .loader {
color: var(--button-spinner-inverted-color);
}
+
+ & .hint {
+ color: var(--button-inverted-outlined-hint-color);
+ }
}
.tertiary {
@@ -73,6 +85,10 @@
& > .loader {
color: var(--button-spinner-inverted-color);
}
+
+ & .hint {
+ color: var(--button-inverted-tertiary-hint-color);
+ }
}
.filled {
@@ -113,6 +129,10 @@
& > .loader {
color: var(--button-spinner-inverted-color);
}
+
+ & .hint {
+ color: var(--button-inverted-transparent-base-hint-color);
+ }
}
.link {
@@ -149,6 +169,10 @@
& > .loader {
color: var(--button-spinner-inverted-color);
}
+
+ & .hint {
+ color: var(--button-inverted-text-base-hint-color);
+ }
}
.ghost {
diff --git a/packages/button/src/vars.css b/packages/button/src/vars.css
index 41cf560900..b20afaf99e 100644
--- a/packages/button/src/vars.css
+++ b/packages/button/src/vars.css
@@ -20,6 +20,7 @@
--button-primary-disabled-bg-color: var(--color-light-neutral-translucent-100);
--button-primary-color: var(--color-light-text-primary-inverted);
--button-primary-disabled-color: var(--color-light-text-tertiary);
+ --button-primary-hint-color: var(--color-light-text-secondary-inverted);
/* accent */
--button-accent-base-bg-color: var(--color-light-accent-primary);
@@ -37,6 +38,7 @@
--button-secondary-base-border-color: transparent;
--button-secondary-disabled-border-color: transparent;
--button-secondary-color: var(--color-light-text-primary);
+ --button-secondary-hint-color: var(--color-light-text-secondary);
--button-secondary-disabled-color: var(--color-light-text-tertiary);
/* tertiary */
@@ -48,6 +50,7 @@
--button-tertiary-base-border-color: var(--color-light-neutral-translucent-1300);
--button-tertiary-disabled-border-color: var(--color-light-neutral-translucent-500);
--button-tertiary-color: var(--color-light-text-primary);
+ --button-tertiary-hint-color: var(--color-light-text-secondary);
--button-tertiary-disabled-color: var(--color-light-text-tertiary);
/* outlined */
@@ -59,6 +62,7 @@
--button-outlined-base-border-color: var(--color-light-neutral-translucent-1300);
--button-outlined-disabled-border-color: var(--color-light-neutral-translucent-500);
--button-outlined-color: var(--color-light-text-primary);
+ --button-outlined-hint-color: var(--color-light-text-secondary);
--button-outlined-disabled-color: var(--color-light-text-tertiary);
/* ghost */
@@ -69,6 +73,7 @@
/* text */
--button-text-base-color: var(--color-light-text-primary);
+ --button-text-base-hint-color: var(--color-light-text-secondary);
--button-text-hover-color: var(--color-light-text-primary-hover);
--button-text-active-color: var(--color-light-text-primary-press);
--button-text-disabled-color: var(--color-light-text-tertiary);
@@ -81,6 +86,7 @@
/* transparent */
--button-transparent-base-color: var(--color-light-text-primary);
+ --button-transparent-base-hint-color: var(--color-light-text-secondary);
--button-transparent-hover-bg-color: var(--color-light-transparent-default-hover);
--button-transparent-active-bg-color: var(--color-light-transparent-default-press);
--button-transparent-disabled-color: var(--color-light-text-tertiary);
@@ -99,6 +105,7 @@
);
--button-inverted-primary-disabled-color: var(--color-light-text-tertiary-inverted);
--button-inverted-primary-color: var(--color-light-text-primary);
+ --button-inverted-primary-hint-color: var(--color-light-text-secondary);
/* accent inverted */
--button-inverted-accent-base-bg-color: var(--color-light-accent-primary-inverted);
@@ -122,6 +129,7 @@
--button-inverted-secondary-base-border-color: transparent;
--button-inverted-secondary-disabled-border-color: transparent;
--button-inverted-secondary-color: var(--color-light-text-primary-inverted);
+ --button-inverted-secondary-hint-color: var(--color-light-text-secondary-inverted);
--button-inverted-secondary-disabled-color: var(--color-light-text-tertiary-inverted);
/* tertiary inverted */
@@ -143,6 +151,7 @@
--color-light-neutral-translucent-500-inverted
);
--button-inverted-tertiary-color: var(--color-light-text-primary-inverted);
+ --button-inverted-tertiary-hint-color: var(--color-light-text-secondary-inverted);
--button-inverted-tertiary-disabled-color: var(--color-light-text-tertiary-inverted);
/* outlined inverted */
@@ -164,6 +173,7 @@
--color-light-neutral-translucent-500-inverted
);
--button-inverted-outlined-color: var(--color-light-text-primary-inverted);
+ --button-inverted-outlined-hint-color: var(--color-light-text-secondary-inverted);
--button-inverted-outlined-disabled-color: var(--color-light-text-tertiary-inverted);
/* ghost inverted */
@@ -174,6 +184,7 @@
/* text inverted */
--button-inverted-text-base-color: var(--color-light-text-primary-inverted);
+ --button-inverted-text-base-hint-color: var(--color-light-text-secondary-inverted);
--button-inverted-text-hover-color: var(--color-light-text-primary-inverted-hover);
--button-inverted-text-active-color: var(--color-light-text-primary-inverted-press);
--button-inverted-text-disabled-color: var(--color-light-text-tertiary-inverted);
@@ -186,6 +197,7 @@
/* transparent inverted */
--button-inverted-transparent-base-color: var(--color-light-text-primary-inverted);
+ --button-inverted-transparent-base-hint-color: var(--color-light-text-secondary-inverted);
--button-inverted-transparent-hover-bg-color: var(
--color-light-transparent-default-inverted-hover
);
diff --git a/packages/calendar-input/CHANGELOG.md b/packages/calendar-input/CHANGELOG.md
index e7b4241c1e..98e6dbc0ec 100644
--- a/packages/calendar-input/CHANGELOG.md
+++ b/packages/calendar-input/CHANGELOG.md
@@ -1,5 +1,41 @@
# Change Log
+## 10.4.11
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - calendar@7.17.1
+ - popover@6.3.4
+ - date-input@4.4.10
+
+## 10.4.10
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - calendar@7.17.0
+ - date-input@4.4.9
+
+## 10.4.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.16.0
+
## 10.4.8
### Patch Changes
diff --git a/packages/calendar-input/package.json b/packages/calendar-input/package.json
index 1ca3645d2e..74a46595e6 100644
--- a/packages/calendar-input/package.json
+++ b/packages/calendar-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-calendar-input",
- "version": "10.4.8",
+ "version": "10.4.11",
"description": "Calendar input component",
"keywords": [],
"license": "MIT",
@@ -10,18 +10,19 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-calendar": "^7.15.4",
- "@alfalab/core-components-date-input": "^4.4.8",
+ "@alfalab/core-components-calendar": "^7.17.1",
+ "@alfalab/core-components-date-input": "^4.4.10",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-popover": "^6.3.4",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
diff --git a/packages/calendar-range/CHANGELOG.md b/packages/calendar-range/CHANGELOG.md
index 84f6f87616..4fa7e5123a 100644
--- a/packages/calendar-range/CHANGELOG.md
+++ b/packages/calendar-range/CHANGELOG.md
@@ -1,5 +1,43 @@
# Change Log
+## 7.7.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - calendar@7.17.1
+ - calendar-input@10.4.11
+ - date-input@4.4.10
+
+## 7.7.7
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - calendar@7.17.0
+ - calendar-input@10.4.10
+ - date-input@4.4.9
+
+## 7.7.6
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.16.0
+ - calendar-input@10.4.9
+
## 7.7.5
### Patch Changes
diff --git a/packages/calendar-range/package.json b/packages/calendar-range/package.json
index a5132804a2..b9db680624 100644
--- a/packages/calendar-range/package.json
+++ b/packages/calendar-range/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-calendar-range",
- "version": "7.7.5",
+ "version": "7.7.8",
"description": "Calendar range component",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-calendar": "^7.15.4",
- "@alfalab/core-components-calendar-input": "^10.4.8",
- "@alfalab/core-components-date-input": "^4.4.8",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-calendar": "^7.17.1",
+ "@alfalab/core-components-calendar-input": "^10.4.11",
+ "@alfalab/core-components-date-input": "^4.4.10",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"tslib": "^2.4.0"
},
diff --git a/packages/calendar-with-skeleton/CHANGELOG.md b/packages/calendar-with-skeleton/CHANGELOG.md
index 65146e7c79..368cf3272b 100644
--- a/packages/calendar-with-skeleton/CHANGELOG.md
+++ b/packages/calendar-with-skeleton/CHANGELOG.md
@@ -1,5 +1,39 @@
# Change Log
+## 5.3.14
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - calendar@7.17.1
+ - skeleton@5.2.1
+
+## 5.3.13
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - calendar@7.17.0
+
+## 5.3.12
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.16.0
+
## 5.3.11
### Patch Changes
diff --git a/packages/calendar-with-skeleton/package.json b/packages/calendar-with-skeleton/package.json
index 688007b728..c4560284d0 100644
--- a/packages/calendar-with-skeleton/package.json
+++ b/packages/calendar-with-skeleton/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-calendar-with-skeleton",
- "version": "5.3.11",
+ "version": "5.3.14",
"description": "CalendarWithSkeleton component",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-calendar": "^7.15.4",
- "@alfalab/core-components-skeleton": "^5.2.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-calendar": "^7.17.1",
+ "@alfalab/core-components-skeleton": "^5.2.1",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},
diff --git a/packages/calendar/CHANGELOG.md b/packages/calendar/CHANGELOG.md
index 806b178088..ffcd30ef23 100644
--- a/packages/calendar/CHANGELOG.md
+++ b/packages/calendar/CHANGELOG.md
@@ -1,5 +1,54 @@
# Change Log
+## 7.17.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - button@11.11.1
+ - icon-button@6.11.4
+ - modal@9.8.6
+ - typography@4.11.1
+
+## 7.17.0
+
+### Minor Changes
+
+10.12.2024
+
+### [#1460](https://github.com/core-ds/core-components/pull/1460)
+
+- Добавлены пропсы для передачи кастомного текста в кнопки мобильного календаря
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+ - icon-button@6.11.3
+ - modal@9.8.5
+
+## 7.16.0
+
+### Minor Changes
+
+06.12.2024
+
+### [#1465](https://github.com/core-ds/core-components/pull/1465)
+
+- Изменено поведение пропса clickableMonth. Добавлена возможность выбирать промежуток между месяцами. Первый клик по лейблу месяца выбирает весь месяц. Второй клик на следующий месяц выбирает промежуток между этими двумя месяцами.
+
## 7.15.4
### Patch Changes
diff --git a/packages/calendar/package.json b/packages/calendar/package.json
index 0a99bd35b9..9eadf7a38c 100644
--- a/packages/calendar/package.json
+++ b/packages/calendar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-calendar",
- "version": "7.15.4",
+ "version": "7.17.1",
"description": "Calendar component",
"keywords": [],
"license": "MIT",
@@ -15,16 +15,16 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-modal": "^9.8.4",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-modal": "^9.8.6",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/core-components-typography": "^4.11.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-typography": "^4.11.1",
"@alfalab/icons-glyph": "^2.189.0",
+ "@alfalab/hooks": "^1.13.1",
"@juggle/resize-observer": "^3.3.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"react-transition-group": "^4.4.5",
diff --git a/packages/calendar/src/Component.test.tsx b/packages/calendar/src/Component.test.tsx
index f4329a3380..308ef731bf 100644
--- a/packages/calendar/src/Component.test.tsx
+++ b/packages/calendar/src/Component.test.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import { render, fireEvent, renderHook } from '@testing-library/react';
+import { render, fireEvent, renderHook, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import subDays from 'date-fns/subDays';
import addDays from 'date-fns/addDays';
@@ -1436,3 +1436,92 @@ describe('hook tests', () => {
expect(result.current.selectedTo).toBe(initialDate);
});
});
+
+describe('CalendarMobile buttons content', () => {
+ it('should pass default range select button text', () => {
+ render(
+ ,
+ );
+
+ const text = screen.getByText('Выбрать');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass default range reset button text', () => {
+ render(
+ ,
+ );
+
+ const text = screen.getByText('Сбросить');
+
+ expect(text).toBeInTheDocument();
+ });
+ it('should pass range select button text', () => {
+ render(
+ ,
+ );
+
+ const text = screen.getByText('selectButtonContent');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass range reset button text', () => {
+ render(
+ ,
+ );
+
+ const text = screen.getByText('resetButtonContent');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass default select button text', () => {
+ render( );
+
+ const text = screen.getByText('Выбрать');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass select button text', () => {
+ render(
+ ,
+ );
+
+ const text = screen.getByText('selectButtonContent');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass default cancel button text', () => {
+ render( );
+
+ const text = screen.getByText('Отмена');
+
+ expect(text).toBeInTheDocument();
+ });
+
+ it('should pass cancel button text', () => {
+ render( );
+
+ const text = screen.getByText('cancelButtonContent');
+
+ expect(text).toBeInTheDocument();
+ });
+});
diff --git a/packages/calendar/src/components/calendar-mobile/Component.tsx b/packages/calendar/src/components/calendar-mobile/Component.tsx
index 744f4235b9..046ba50c54 100644
--- a/packages/calendar/src/components/calendar-mobile/Component.tsx
+++ b/packages/calendar/src/components/calendar-mobile/Component.tsx
@@ -1,39 +1,17 @@
-import React, { forwardRef, useMemo, useRef, useState } from 'react';
+import React, { forwardRef, useState } from 'react';
import mergeRefs from 'react-merge-refs';
-import { Virtuoso } from 'react-virtuoso';
import { ResizeObserver as ResizeObserverPolyfill } from '@juggle/resize-observer';
import cn from 'classnames';
-import endOfDay from 'date-fns/endOfDay';
-import isAfter from 'date-fns/isAfter';
-import isSameDay from 'date-fns/isSameDay';
-import isSameMonth from 'date-fns/isSameMonth';
-import isThisMonth from 'date-fns/isThisMonth';
-import lastDayOfMonth from 'date-fns/lastDayOfMonth';
-import startOfDay from 'date-fns/startOfDay';
-import startOfMonth from 'date-fns/startOfMonth';
import { ButtonMobile } from '@alfalab/core-components-button/mobile';
import { ModalMobile } from '@alfalab/core-components-modal/mobile';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Typography } from '@alfalab/core-components-typography';
import { CalendarDesktop } from '../../desktop';
-import { Month } from '../../typings';
-import { useCalendar } from '../../useCalendar';
-import { useRange } from '../../useRange';
-import {
- addonArrayToHashTable,
- dateArrayToHashTable,
- generateMonths,
- generateWeeks,
- isRangeValue,
- limitDate,
- monthName,
- WEEKDAYS,
-} from '../../utils';
-import { DaysTable } from '../days-table';
+import { isRangeValue, WEEKDAYS } from '../../utils';
-import { CalendarContentProps, CalendarMobileProps } from './typings';
+import { CalendarMonthOnlyView } from './components/calendar-month-only-view';
+import { CalendarMobileProps } from './typings';
import backdropTransitionStyles from './backdrop-transitions.module.css';
import styles from './index.module.css';
@@ -44,261 +22,6 @@ if (typeof window !== 'undefined' && !window.ResizeObserver) {
window.ResizeObserver = ResizeObserverPolyfill;
}
-export const CalendarMonthOnlyView = ({
- value,
- mode = 'single',
- rangeBehavior = 'clarification',
- month: monthTimestamp,
- minDate: minDateTimestamp,
- maxDate: maxDateTimestamp,
- defaultMonth: defaultMonthTimestamp,
- offDays,
- events,
- holidays,
- onChange,
- onMonthTitleClick,
- selectedFrom,
- selectedTo,
- yearsAmount = 3,
- dayAddons,
- shape = 'rounded',
- scrollableContainer,
- clickableMonth,
-}: CalendarContentProps & {
- /**
- * FIXME нужно сделать для компонента CalendarMonthOnlyView отдельный тип пропсов, т.к. тип CalendarContentProps intersection для типа CalendarMobileProps
- * FIXME это приводит к тому, что в доку сторибука попадают типы пропсов, которые нужны для работы компонента CalendarMonthOnlyView, но не нужны для компонента CalendarMobile
- * TODO Вынести компонент CalendarMonthOnlyView в отдельный файл
- */
- clickableMonth?: boolean;
-}) => {
- const range = useRange({
- mode,
- value,
- selectedFrom,
- selectedTo,
- rangeBehavior,
- onChange,
- });
-
- const month = useMemo(
- () => (monthTimestamp ? new Date(monthTimestamp) : undefined),
- [monthTimestamp],
- );
-
- const minDate = useMemo(
- () => (minDateTimestamp ? startOfDay(minDateTimestamp) : undefined),
- [minDateTimestamp],
- );
-
- const maxDate = useMemo(() => {
- // блокируем последующие дни после текущего
- if (clickableMonth && !maxDateTimestamp) {
- return new Date();
- }
-
- return maxDateTimestamp ? endOfDay(maxDateTimestamp) : undefined;
- }, [maxDateTimestamp, clickableMonth]);
-
- const selected = useMemo(
- () => (range.value ? new Date(range.value) : undefined),
- [range.value],
- );
-
- const startingDate = useRef(range.value);
-
- const defaultMonth = useMemo(
- () =>
- startOfMonth(
- selected ||
- limitDate(
- defaultMonthTimestamp || Date.now(),
- minDateTimestamp,
- maxDateTimestamp,
- ),
- ),
- [defaultMonthTimestamp, maxDateTimestamp, minDateTimestamp, selected],
- );
-
- const { activeMonth, highlighted, getDayProps } = useCalendar({
- month,
- defaultMonth,
- view: 'months',
- minDate,
- maxDate,
- selected,
- offDays,
- events,
- onChange: range.onChange,
- dayAddons,
- });
-
- const activeMonths = useMemo(() => {
- const eventsMap = dateArrayToHashTable(events || []);
- const offDaysMap = dateArrayToHashTable(offDays || []);
- const holidaysMap = dateArrayToHashTable(holidays || []);
- const dayAddonsMap = addonArrayToHashTable(dayAddons || []);
-
- const prevMonths: Month[] = [];
- const nextMonths: Month[] = [];
-
- const date = startingDate.current ? new Date(startingDate.current) : new Date();
- const currentYear = date.getFullYear();
- const currYearMonths = generateMonths(date, {});
-
- for (let i = 0; i < yearsAmount; i++) {
- const prevYear = date.setFullYear(currentYear - (i + 1));
- const nextYear = date.setFullYear(currentYear + (i + 1));
-
- const prevYearMonths = generateMonths(new Date(prevYear), {});
- const nextYearMonths = generateMonths(new Date(nextYear), {});
-
- prevMonths.unshift(...prevYearMonths);
- nextMonths.push(...nextYearMonths);
- }
-
- const generatedMonths = [...prevMonths, ...currYearMonths, ...nextMonths];
-
- return generatedMonths.map((item) => ({
- ...item,
- weeks: generateWeeks(item.date, {
- minDate,
- maxDate,
- selected,
- eventsMap,
- offDaysMap,
- holidaysMap,
- dayAddonsMap,
- }),
- title: `${monthName(item.date)} ${item.date.getFullYear()}`,
- }));
- }, [events, offDays, holidays, dayAddons, minDate, maxDate, yearsAmount, selected]);
-
- const initialMonthIndex = useMemo(() => {
- const date = range.value || range.selectedFrom || activeMonth.getTime() || Date.now();
-
- return activeMonths.findIndex((m) => isSameMonth(date, m.date));
- }, [range.value, range.selectedFrom, activeMonth, activeMonths]);
-
- // заголовок должен становиться активным если выбран весь доступный период в месяце
- const isMonthActive = (currentMonthIndex: number) => {
- if (value && isRangeValue(value)) {
- const { date: initialMonthDate } = activeMonths[initialMonthIndex];
- const { date: currentMonthDate } = activeMonths[currentMonthIndex];
-
- const firstAvailableDayOfMonth = startOfMonth(initialMonthDate).getTime();
- /**
- * последний доступный день месяца в timestamp
- * представлен в виде последнего календарного дня, либо в виде текущей даты для актуального месяца
- */
- const lastAvailableDayOfMonth = isThisMonth(initialMonthDate)
- ? startOfDay(new Date()).getTime()
- : lastDayOfMonth(initialMonthDate).getTime();
- const { dateFrom, dateTo } = value;
-
- if (
- dateFrom &&
- dateTo &&
- isSameMonth(initialMonthDate, currentMonthDate) &&
- isSameDay(firstAvailableDayOfMonth, dateFrom) &&
- isSameDay(lastAvailableDayOfMonth, dateTo)
- ) {
- return true;
- }
- }
-
- return false;
- };
-
- const handleClickMonthLabel = (index: number) => {
- if (onChange) {
- const { date } = activeMonths[index];
- const firstAvailableDayOfMonth = startOfMonth(date).getTime();
- const lastAvailableDayOfMonth = isThisMonth(date)
- ? startOfDay(new Date()).getTime()
- : lastDayOfMonth(date).getTime();
-
- if (isMonthActive(index)) {
- onChange();
- } else {
- onChange(firstAvailableDayOfMonth, lastAvailableDayOfMonth);
- }
- }
- };
-
- const getMonthLabel = (index: number, isClickableMonth?: boolean) => {
- if (isClickableMonth) {
- return (
-
- {activeMonths[index].title}
-
- );
- }
-
- return `\u00A0${activeMonths[index].title}\u00A0`;
- };
-
- const renderMonth = (index: number) => {
- const isAfterDate = isAfter(activeMonths[index].date, activeMonth);
-
- return (
-
- {onMonthTitleClick ? (
- /* eslint-disable-next-line jsx-a11y/click-events-have-key-events */
-
- {activeMonths[index].title}
-
- ) : (
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
- handleClickMonthLabel(index) })}
- >
- {getMonthLabel(index, clickableMonth)}
-
- )}
-
-
- );
- };
-
- return (
- el.getBoundingClientRect().height + 32}
- customScrollParent={scrollableContainer}
- useWindowScroll={true}
- className={styles.virtuoso}
- />
- );
-};
-
export const CalendarMonthOnlyViewHeader = () => (
@@ -333,6 +56,9 @@ export const CalendarMobile = forwardRef(
yearsAmount = 3,
onApply,
clickableMonth,
+ cancelButtonContent = 'Отмена',
+ selectButtonContent = 'Выбрать',
+ resetButtonContent = 'Сбросить',
...restProps
},
ref,
@@ -411,7 +137,7 @@ export const CalendarMobile = forwardRef(
onClick={handleClear}
dataTestId={getDataTestId(dataTestId, 'btn-reset')}
>
- Сбросить
+ {resetButtonContent}
(
disabled={selectButtonDisabled}
dataTestId={getDataTestId(dataTestId, 'btn-apply')}
>
- Выбрать
+ {selectButtonContent}
);
@@ -440,7 +166,7 @@ export const CalendarMobile = forwardRef(
onClick={handleApply}
dataTestId={getDataTestId(dataTestId, 'btn-apply')}
>
- Выбрать
+ {selectButtonContent}
);
}
@@ -453,7 +179,7 @@ export const CalendarMobile = forwardRef(
onClick={handleClose}
dataTestId={getDataTestId(dataTestId, 'btn-reset')}
>
- Отмена
+ {cancelButtonContent}
);
};
diff --git a/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/calendarMonthOnlyView.tsx b/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/calendarMonthOnlyView.tsx
new file mode 100644
index 0000000000..b39f4a0321
--- /dev/null
+++ b/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/calendarMonthOnlyView.tsx
@@ -0,0 +1,299 @@
+import React, { useMemo, useRef } from 'react';
+import { Virtuoso } from 'react-virtuoso';
+import cn from 'classnames';
+import endOfDay from 'date-fns/endOfDay';
+import isAfter from 'date-fns/isAfter';
+import isSameMonth from 'date-fns/isSameMonth';
+import startOfDay from 'date-fns/startOfDay';
+import startOfMonth from 'date-fns/startOfMonth';
+
+import { Typography } from '@alfalab/core-components-typography';
+
+import { Month } from '../../../../typings';
+import { useCalendar } from '../../../../useCalendar';
+import { useRange } from '../../../../useRange';
+import {
+ addonArrayToHashTable,
+ dateArrayToHashTable,
+ generateMonths,
+ generateWeeks,
+ getMonthEndTimestamp,
+ getMonthStartTimestamp,
+ isRangeValue,
+ limitDate,
+ monthName,
+} from '../../../../utils';
+import { DaysTable } from '../../../days-table';
+import { CalendarContentProps } from '../../typings';
+
+import styles from '../../index.module.css';
+
+export const CalendarMonthOnlyView = ({
+ value,
+ mode = 'single',
+ rangeBehavior = 'clarification',
+ month: monthTimestamp,
+ minDate: minDateTimestamp,
+ maxDate: maxDateTimestamp,
+ defaultMonth: defaultMonthTimestamp,
+ offDays,
+ events,
+ holidays,
+ onChange,
+ onMonthTitleClick,
+ selectedFrom,
+ selectedTo,
+ yearsAmount = 3,
+ dayAddons,
+ shape = 'rounded',
+ scrollableContainer,
+ clickableMonth,
+}: CalendarContentProps & {
+ clickableMonth?: boolean;
+}) => {
+ const range = useRange({
+ mode,
+ value,
+ selectedFrom,
+ selectedTo,
+ rangeBehavior,
+ onChange,
+ });
+
+ const month = useMemo(
+ () => (monthTimestamp ? new Date(monthTimestamp) : undefined),
+ [monthTimestamp],
+ );
+
+ const minDate = useMemo(
+ () => (minDateTimestamp ? startOfDay(minDateTimestamp) : undefined),
+ [minDateTimestamp],
+ );
+
+ const maxDate = useMemo(() => {
+ // блокируем последующие дни после текущего
+ if (clickableMonth && !maxDateTimestamp) {
+ return new Date();
+ }
+
+ return maxDateTimestamp ? endOfDay(maxDateTimestamp) : undefined;
+ }, [maxDateTimestamp, clickableMonth]);
+
+ const selected = useMemo(
+ () => (range.value ? new Date(range.value) : undefined),
+ [range.value],
+ );
+
+ const startingDate = useRef(range.value);
+
+ const defaultMonth = useMemo(
+ () =>
+ startOfMonth(
+ selected ||
+ limitDate(
+ defaultMonthTimestamp || Date.now(),
+ minDateTimestamp,
+ maxDateTimestamp,
+ ),
+ ),
+ [defaultMonthTimestamp, maxDateTimestamp, minDateTimestamp, selected],
+ );
+
+ const { activeMonth, highlighted, getDayProps } = useCalendar({
+ month,
+ defaultMonth,
+ view: 'months',
+ minDate,
+ maxDate,
+ selected,
+ offDays,
+ events,
+ onChange: range.onChange,
+ dayAddons,
+ });
+
+ const activeMonths = useMemo(() => {
+ const eventsMap = dateArrayToHashTable(events || []);
+ const offDaysMap = dateArrayToHashTable(offDays || []);
+ const holidaysMap = dateArrayToHashTable(holidays || []);
+ const dayAddonsMap = addonArrayToHashTable(dayAddons || []);
+
+ const prevMonths: Month[] = [];
+ const nextMonths: Month[] = [];
+
+ const date = startingDate.current ? new Date(startingDate.current) : new Date();
+ const currentYear = date.getFullYear();
+ const currYearMonths = generateMonths(date, {});
+
+ for (let i = 0; i < yearsAmount; i++) {
+ const prevYear = date.setFullYear(currentYear - (i + 1));
+ const nextYear = date.setFullYear(currentYear + (i + 1));
+
+ const prevYearMonths = generateMonths(new Date(prevYear), {});
+ const nextYearMonths = generateMonths(new Date(nextYear), {});
+
+ prevMonths.unshift(...prevYearMonths);
+ nextMonths.push(...nextYearMonths);
+ }
+
+ const generatedMonths = [...prevMonths, ...currYearMonths, ...nextMonths];
+
+ return generatedMonths.map((item) => ({
+ ...item,
+ weeks: generateWeeks(item.date, {
+ minDate,
+ maxDate,
+ selected,
+ eventsMap,
+ offDaysMap,
+ holidaysMap,
+ dayAddonsMap,
+ }),
+ title: `${monthName(item.date)} ${item.date.getFullYear()}`,
+ }));
+ }, [events, offDays, holidays, dayAddons, minDate, maxDate, yearsAmount, selected]);
+
+ const initialMonthIndex = useMemo(() => {
+ const date = range.value || range.selectedFrom || activeMonth.getTime() || Date.now();
+
+ return activeMonths.findIndex((m) => isSameMonth(date, m.date));
+ }, [range.value, range.selectedFrom, activeMonth, activeMonths]);
+
+ // заголовок должен становиться активным, если выбран весь доступный период в месяце
+ const isMonthActive = (currentMonthIndex: number): boolean => {
+ if (!value || !isRangeValue(value) || !value.dateFrom || !value.dateTo) {
+ return false;
+ }
+
+ const { dateFrom, dateTo } = value;
+
+ const { date: currentMonthDate } = activeMonths[currentMonthIndex];
+ const monthStartTimestamp = getMonthStartTimestamp(currentMonthDate);
+ const monthEndTimestamp = getMonthEndTimestamp(currentMonthDate);
+
+ // Проверяем, что выбранный диапазон полностью покрывает месяц
+ return dateFrom <= monthStartTimestamp && dateTo >= monthEndTimestamp;
+ };
+
+ const handleClickMonthLabel = (index: number) => {
+ if (!onChange) return;
+
+ const { date: dateActiveMonths } = activeMonths[index];
+
+ // Вычисляем начало и конец месяца, по которому был произведен клик
+ const clickedMonthStartTimestamp = getMonthStartTimestamp(dateActiveMonths);
+ const clickedMonthEndTimestamp = getMonthEndTimestamp(dateActiveMonths);
+
+ // Если значение не определено или не является диапазоном, то устанавливаем новый диапазон
+ if (!value || !isRangeValue(value) || !value.dateFrom || !value.dateTo) {
+ onChange(clickedMonthStartTimestamp, clickedMonthEndTimestamp);
+
+ return;
+ }
+
+ // Выбранный диапазон дат
+ const { dateFrom, dateTo } = value;
+ const selectedRangeStartDate = new Date(dateFrom);
+ const selectedRangeEndDate = new Date(dateTo);
+ const selectedRangeStartTimestamp = getMonthStartTimestamp(selectedRangeStartDate);
+ const selectedRangeEndTimestamp = getMonthEndTimestamp(selectedRangeEndDate);
+
+ // Проверяем, является ли выбранный диапазон одним и тем же месяцем
+ const isSingleMonthSelected =
+ isSameMonth(selectedRangeStartDate, selectedRangeEndDate) &&
+ dateFrom <= selectedRangeStartTimestamp &&
+ dateTo >= selectedRangeEndTimestamp;
+ // Проверяем, является ли кликнутый месяц таким же, что и выбранный диапазон
+ const isSameMonthClicked = isSameMonth(selectedRangeStartDate, dateActiveMonths);
+ // Проверяем, находится ли кликнутый месяц внутри выбранного диапазона
+ const isClickedMonthInsideRange =
+ clickedMonthEndTimestamp >= selectedRangeStartTimestamp &&
+ clickedMonthStartTimestamp <= selectedRangeEndTimestamp;
+ // Проверяем находится ли выбранный диапазон в пределах кликнутого месяца
+ const isRangeWithinSingleMonth =
+ selectedRangeStartTimestamp === dateFrom && selectedRangeEndTimestamp === dateTo;
+
+ if (isSingleMonthSelected && isSameMonthClicked) {
+ onChange();
+ } else if (isClickedMonthInsideRange || !isRangeWithinSingleMonth) {
+ onChange(clickedMonthStartTimestamp, clickedMonthEndTimestamp);
+ } else {
+ const newDateFrom = Math.min(selectedRangeStartTimestamp, clickedMonthStartTimestamp);
+ const newDateTo = Math.max(selectedRangeEndTimestamp, clickedMonthEndTimestamp);
+
+ onChange(newDateFrom, newDateTo);
+ }
+ };
+
+ const getMonthLabel = (index: number, isClickableMonth?: boolean) => {
+ if (isClickableMonth) {
+ return (
+
+ {activeMonths[index].title}
+
+ );
+ }
+
+ return `\u00A0${activeMonths[index].title}\u00A0`;
+ };
+
+ const renderMonth = (index: number) => {
+ const isAfterDate = isAfter(activeMonths[index].date, maxDate ?? new Date());
+
+ return (
+
+ {onMonthTitleClick ? (
+ /* eslint-disable-next-line jsx-a11y/click-events-have-key-events */
+
+ {activeMonths[index].title}
+
+ ) : (
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
+ handleClickMonthLabel(index) })}
+ >
+ {getMonthLabel(index, clickableMonth)}
+
+ )}
+
+
+ );
+ };
+
+ return (
+ el.getBoundingClientRect().height + 32}
+ customScrollParent={scrollableContainer}
+ useWindowScroll={true}
+ className={styles.virtuoso}
+ />
+ );
+};
diff --git a/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/index.ts b/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/index.ts
new file mode 100644
index 0000000000..2133cd05a3
--- /dev/null
+++ b/packages/calendar/src/components/calendar-mobile/components/calendar-month-only-view/index.ts
@@ -0,0 +1 @@
+export { CalendarMonthOnlyView } from './calendarMonthOnlyView';
diff --git a/packages/calendar/src/components/calendar-mobile/index.ts b/packages/calendar/src/components/calendar-mobile/index.ts
index fc34df14b2..38a77257e5 100644
--- a/packages/calendar/src/components/calendar-mobile/index.ts
+++ b/packages/calendar/src/components/calendar-mobile/index.ts
@@ -1,2 +1,3 @@
export * from './Component';
export * from './typings';
+export * from './components/calendar-month-only-view';
diff --git a/packages/calendar/src/components/calendar-mobile/typings.ts b/packages/calendar/src/components/calendar-mobile/typings.ts
index f4c4d3d324..9e4629cc44 100644
--- a/packages/calendar/src/components/calendar-mobile/typings.ts
+++ b/packages/calendar/src/components/calendar-mobile/typings.ts
@@ -68,5 +68,23 @@ export type CalendarMobileProps = {
* При клике на месяц будут выбраны все доступные дни месяца
*/
clickableMonth?: boolean;
+
+ /**
+ * Контент кнопки "Отмена"
+ * @default Отмена
+ */
+ cancelButtonContent?: string;
+
+ /**
+ * Контент кнопки "Выбрать"
+ * @default Выбрать
+ */
+ selectButtonContent?: string;
+
+ /**
+ * Контент кнопки "Сбросить"
+ * @default Сбросить
+ */
+ resetButtonContent?: string;
} & CalendarContentProps &
Pick;
diff --git a/packages/calendar/src/docs/description.mdx b/packages/calendar/src/docs/description.mdx
index 4167010ba5..4efa247adf 100644
--- a/packages/calendar/src/docs/description.mdx
+++ b/packages/calendar/src/docs/description.mdx
@@ -15,10 +15,10 @@ render(() => {
const format = React.useCallback((timestamp) => {
if (!timestamp) return '';
- return new Intl.DateTimeFormat("ru-RU", {
- year: "numeric",
- month: "2-digit",
- day: "2-digit"
+ return new Intl.DateTimeFormat('ru-RU', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
}).format(new Date(timestamp));
}, []);
@@ -79,10 +79,10 @@ render(() => {
const format = React.useCallback((timestamp) => {
if (!timestamp) return '';
- return new Intl.DateTimeFormat("ru-RU", {
- year: "numeric",
- month: "2-digit",
- day: "2-digit"
+ return new Intl.DateTimeFormat('ru-RU', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
}).format(new Date(timestamp));
}, []);
@@ -136,10 +136,10 @@ render(() => {
const format = React.useCallback((timestamp) => {
if (!timestamp) return '';
- return new Intl.DateTimeFormat("ru-RU", {
- year: "numeric",
- month: "2-digit",
- day: "2-digit"
+ return new Intl.DateTimeFormat('ru-RU', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
}).format(new Date(timestamp));
}, []);
@@ -148,7 +148,9 @@ render(() => {
}, [rangeBehavior]);
const selectedRange = React.useMemo(() => {
- return `${format(value ? value.dateFrom : undefined)} - ${format(value ? value.dateTo : undefined)}`;
+ return `${format(value ? value.dateFrom : undefined)} - ${format(
+ value ? value.dateTo : undefined,
+ )}`;
}, [value]);
const calendarStyles = {
@@ -197,10 +199,10 @@ render(() => {
const format = React.useCallback((timestamp) => {
if (!timestamp) return '';
- return new Intl.DateTimeFormat("ru-RU", {
- year: "numeric",
- month: "2-digit",
- day: "2-digit"
+ return new Intl.DateTimeFormat('ru-RU', {
+ year: 'numeric',
+ month: '2-digit',
+ day: '2-digit',
}).format(new Date(timestamp));
}, []);
@@ -209,7 +211,9 @@ render(() => {
}, [rangeBehavior]);
const selectedRange = React.useMemo(() => {
- return `${format(value ? value.dateFrom : undefined)} - ${format(value ? value.dateTo : undefined)}`;
+ return `${format(value ? value.dateFrom : undefined)} - ${format(
+ value ? value.dateTo : undefined,
+ )}`;
}, [value]);
const allowSelectionFromEmptyRange = selectionMode === 'singleAndRange';
@@ -696,7 +700,7 @@ render(() => {
shape={firstRadioValue}
clickableMonth={true}
value={value}
- onChange={(dateFrom, dateTo) => setValue({dateFrom, dateTo})}
+ onChange={(dateFrom, dateTo) => setValue({ dateFrom, dateTo })}
onClose={() => setOpen(false)}
open={open}
/>
diff --git a/packages/calendar/src/docs/development.mdx b/packages/calendar/src/docs/development.mdx
index 0681653c44..f3a7ccfcb7 100644
--- a/packages/calendar/src/docs/development.mdx
+++ b/packages/calendar/src/docs/development.mdx
@@ -11,7 +11,11 @@ import vars from '!!raw-loader!../vars.css';
```jsx
import { Calendar } from '@alfalab/core-components/calendar';
import { CalendarDesktop } from '@alfalab/core-components/calendar/desktop';
-import { CalendarMobile, CalendarMonthOnlyView, CalendarMonthOnlyViewHeader } from '@alfalab/core-components/calendar/mobile';
+import {
+ CalendarMobile,
+ CalendarMonthOnlyView,
+ CalendarMonthOnlyViewHeader,
+} from '@alfalab/core-components/calendar/mobile';
```
Из индекса импортируются responsive версия компонента.
@@ -48,7 +52,7 @@ import { CalendarMobile, CalendarMonthOnlyView, CalendarMonthOnlyViewHeader } fr
CalendarMobile,
PeriodSlider,
CalendarMonthOnlyView,
- CalendarMonthOnlyViewHeader
+ CalendarMonthOnlyViewHeader,
}}
/>
@@ -76,7 +80,7 @@ render(() => {
zIndex: 2,
width: '100%',
padding: 'var(--gap-12) var(--gap-24)',
- background: "var(--color-light-base-bg-primary)",
+ background: 'var(--color-light-base-bg-primary)',
borderBottom: '1px solid var(--color-light-neutral-500)',
};
@@ -85,11 +89,11 @@ render(() => {
-
+
>
);
diff --git a/packages/calendar/src/utils.ts b/packages/calendar/src/utils.ts
index 2cb2e37743..d7b98ac212 100644
--- a/packages/calendar/src/utils.ts
+++ b/packages/calendar/src/utils.ts
@@ -11,6 +11,7 @@ import format from 'date-fns/format';
import isAfter from 'date-fns/isAfter';
import isBefore from 'date-fns/isBefore';
import isSameDay from 'date-fns/isSameDay';
+import isThisMonth from 'date-fns/isThisMonth';
import lastDayOfMonth from 'date-fns/lastDayOfMonth';
import max from 'date-fns/max';
import min from 'date-fns/min';
@@ -308,3 +309,8 @@ export function isRangeValue(
): value is { dateFrom?: number | undefined; dateTo?: number | undefined } {
return Boolean(value) && typeof value === 'object';
}
+
+export const getMonthStartTimestamp = (date: Date) => startOfMonth(date).getTime();
+
+export const getMonthEndTimestamp = (date: Date) =>
+ isThisMonth(date) ? startOfDay(new Date()).getTime() : lastDayOfMonth(date).getTime();
diff --git a/packages/calendar/tsconfig.json b/packages/calendar/tsconfig.json
index 28093ff9f2..91e41d78ef 100644
--- a/packages/calendar/tsconfig.json
+++ b/packages/calendar/tsconfig.json
@@ -17,6 +17,6 @@
{ "path": "../modal" },
{ "path": "../mq" },
{ "path": "../shared" },
- { "path": "../typography" },
+ { "path": "../typography" }
]
}
diff --git a/packages/card-image/CHANGELOG.md b/packages/card-image/CHANGELOG.md
index bf609aa564..4c036ef15c 100644
--- a/packages/card-image/CHANGELOG.md
+++ b/packages/card-image/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.2.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 3.2.1
### Patch Changes
diff --git a/packages/card-image/package.json b/packages/card-image/package.json
index 387b96e199..ec7d1957f2 100644
--- a/packages/card-image/package.json
+++ b/packages/card-image/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-card-image",
- "version": "3.2.1",
+ "version": "3.2.2",
"description": "Card Image component",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
- "classnames": "^2.2.6",
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/cdn-icon/CHANGELOG.md b/packages/cdn-icon/CHANGELOG.md
index a5c59186a5..191b730d85 100644
--- a/packages/cdn-icon/CHANGELOG.md
+++ b/packages/cdn-icon/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 5.3.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 5.3.0
### Minor Changes
diff --git a/packages/cdn-icon/package.json b/packages/cdn-icon/package.json
index c4149bf86e..649c5c4b12 100644
--- a/packages/cdn-icon/package.json
+++ b/packages/cdn-icon/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-cdn-icon",
- "version": "5.3.0",
+ "version": "5.3.1",
"description": "",
"keywords": [],
"license": "ISC",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/chart/CHANGELOG.md b/packages/chart/CHANGELOG.md
index 6999d19b16..4f380b8cbd 100644
--- a/packages/chart/CHANGELOG.md
+++ b/packages/chart/CHANGELOG.md
@@ -1,5 +1,30 @@
# Change Log
+## 3.4.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 3.4.4
### Patch Changes
diff --git a/packages/chart/package.json b/packages/chart/package.json
index a4d46297c3..b256c53a69 100644
--- a/packages/chart/package.json
+++ b/packages/chart/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-chart",
- "version": "3.4.4",
+ "version": "3.4.5",
"description": "Chart component",
"keywords": [],
"license": "MIT",
@@ -10,10 +10,11 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
"@types/react-transition-group": "^4.4.5",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"recharts": "^2.1.2",
"tslib": "^2.4.0"
},
diff --git a/packages/chart/src/components/Legends/index.tsx b/packages/chart/src/components/Legends/index.tsx
index c6c04a2546..04b544dfbe 100644
--- a/packages/chart/src/components/Legends/index.tsx
+++ b/packages/chart/src/components/Legends/index.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { CircleIcon } from '../../icons/Circle';
import { CircleLineIcon } from '../../icons/CircleLine';
@@ -68,13 +68,13 @@ export const Legends = React.forwardRef(
/>
) : null}
-
{item.properties.name}
-
+
);
diff --git a/packages/chart/src/components/TooltipContent/index.tsx b/packages/chart/src/components/TooltipContent/index.tsx
index 6c4ce9efa4..b371d72bd5 100644
--- a/packages/chart/src/components/TooltipContent/index.tsx
+++ b/packages/chart/src/components/TooltipContent/index.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { PayloadProps } from '../../types/payload.types';
import { SeriaProps } from '../../types/seria.types';
@@ -38,14 +38,14 @@ export const TooltipContent = ({
)}
-
{labelFormatter ? labelFormatter(label) : label}
-
+
{payload.map((entry: PayloadProps) => {
const data: SeriaProps | undefined = series.find(
@@ -60,7 +60,7 @@ export const TooltipContent = ({
key={entry.dataKey}
style={{ color: entry.color }}
>
-
{entry?.formatter ? entry.formatter(entry.value) : entry.value}
{separator || ' '}
-
-
+ {`${entry.name}`}
+ >{`${entry.name}`}
);
})}
diff --git a/packages/checkbox-group/CHANGELOG.md b/packages/checkbox-group/CHANGELOG.md
index a7347097f4..06394b616f 100644
--- a/packages/checkbox-group/CHANGELOG.md
+++ b/packages/checkbox-group/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 4.7.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 4.7.2
### Patch Changes
diff --git a/packages/checkbox-group/package.json b/packages/checkbox-group/package.json
index bf4199d3f1..cfd5f44f05 100644
--- a/packages/checkbox-group/package.json
+++ b/packages/checkbox-group/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-checkbox-group",
- "version": "4.7.2",
+ "version": "4.7.3",
"description": "Checkbox group",
"keywords": [],
"license": "MIT",
@@ -10,13 +10,14 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/checkbox/CHANGELOG.md b/packages/checkbox/CHANGELOG.md
index c2f9d1d4e2..d3b74eb501 100644
--- a/packages/checkbox/CHANGELOG.md
+++ b/packages/checkbox/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 4.7.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 4.7.2
### Patch Changes
diff --git a/packages/checkbox/package.json b/packages/checkbox/package.json
index 5bf7bc8fc1..adddcbd736 100644
--- a/packages/checkbox/package.json
+++ b/packages/checkbox/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-checkbox",
- "version": "4.7.2",
+ "version": "4.7.3",
"description": "Checkbox component",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
- "@alfalab/icons-glyph": "^2.189.0",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "@alfalab/icons-glyph": "^2.189.0",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/circular-progress-bar/CHANGELOG.md b/packages/circular-progress-bar/CHANGELOG.md
index 52924911ea..897a1c7bd3 100644
--- a/packages/circular-progress-bar/CHANGELOG.md
+++ b/packages/circular-progress-bar/CHANGELOG.md
@@ -1,5 +1,30 @@
# Change Log
+## 3.6.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 3.6.4
### Patch Changes
diff --git a/packages/circular-progress-bar/package.json b/packages/circular-progress-bar/package.json
index 7224a49e8a..885036643b 100644
--- a/packages/circular-progress-bar/package.json
+++ b/packages/circular-progress-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-circular-progress-bar",
- "version": "3.6.4",
+ "version": "3.6.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,9 +10,10 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"peerDependencies": {
diff --git a/packages/circular-progress-bar/src/Component.tsx b/packages/circular-progress-bar/src/Component.tsx
index 9cd7a03a15..aaa60f32e2 100644
--- a/packages/circular-progress-bar/src/Component.tsx
+++ b/packages/circular-progress-bar/src/Component.tsx
@@ -1,7 +1,7 @@
import React, { ElementType, ReactNode, useMemo } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text, TitleMobile } from '@alfalab/core-components-typography';
import {
SIZE_TO_CLASSNAME_MAP,
@@ -197,7 +197,7 @@ export const CircularProgressBar: React.FC = ({
const renderTitleString = () =>
SIZES[size] > 64 ? (
- = ({
}}
>
{titleContent}
-
+
) : (
- = ({
}}
>
{titleContent}
-
+
);
const renderTitle = () => (typeof title === 'string' ? renderTitleString() : titleContent);
const renderSubTitle = () =>
typeof subtitle === 'string' ? (
- = ({
}}
>
{subtitleContent}
-
+
) : (
subtitleContent
);
diff --git a/packages/code-input/CHANGELOG.md b/packages/code-input/CHANGELOG.md
index 03d98fef26..57403fdca8 100644
--- a/packages/code-input/CHANGELOG.md
+++ b/packages/code-input/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.9.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 3.9.2
### Patch Changes
diff --git a/packages/code-input/package.json b/packages/code-input/package.json
index 021ccbc9dd..966febfa35 100644
--- a/packages/code-input/package.json
+++ b/packages/code-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-code-input",
- "version": "3.9.2",
+ "version": "3.9.3",
"description": "Code input",
"keywords": [],
"license": "MIT",
@@ -10,13 +10,14 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/collapse/CHANGELOG.md b/packages/collapse/CHANGELOG.md
index b4b3db7d86..ce324e48e7 100644
--- a/packages/collapse/CHANGELOG.md
+++ b/packages/collapse/CHANGELOG.md
@@ -1,5 +1,30 @@
# Change Log
+## 4.5.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1477](https://github.com/core-ds/core-components/pull/1477)
+
+- Замена использование lodash на коммон пакет
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - link@5.3.2
+
## 4.5.1
### Patch Changes
diff --git a/packages/collapse/package.json b/packages/collapse/package.json
index d64eebe85a..2bb465fbef 100644
--- a/packages/collapse/package.json
+++ b/packages/collapse/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-collapse",
- "version": "4.5.1",
+ "version": "4.5.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,17 +10,21 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-link": "^5.3.1",
+ "@alfalab/core-components-link": "^5.3.2",
"@alfalab/icons-glyph": "^2.189.0",
"@juggle/resize-observer": "^3.3.1",
- "classnames": "^2.3.1",
- "lodash.debounce": "^4.0.8",
+ "classnames": "^2.5.1",
+ "lodash": "^4.17.21",
"tslib": "^2.4.0"
},
+ "devDependencies": {
+ "@types/lodash": "^4.17.13"
+ },
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
}
diff --git a/packages/collapse/src/Component.tsx b/packages/collapse/src/Component.tsx
index 58aaa12930..9278b70953 100644
--- a/packages/collapse/src/Component.tsx
+++ b/packages/collapse/src/Component.tsx
@@ -1,7 +1,7 @@
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
import { ResizeObserver as ResizeObserverPolyfill } from '@juggle/resize-observer';
import cn from 'classnames';
-import debounce from 'lodash.debounce';
+import debounce from 'lodash/debounce';
import { Link } from '@alfalab/core-components-link';
import { ChevronDownSIcon } from '@alfalab/icons-glyph/ChevronDownSIcon';
diff --git a/packages/comment/CHANGELOG.md b/packages/comment/CHANGELOG.md
index e4897a08ae..ea23f6e0f9 100644
--- a/packages/comment/CHANGELOG.md
+++ b/packages/comment/CHANGELOG.md
@@ -1,5 +1,24 @@
# Change Log
+## 2.4.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 2.4.4
### Patch Changes
diff --git a/packages/comment/package.json b/packages/comment/package.json
index 1d75ad78e7..d68166d6c9 100644
--- a/packages/comment/package.json
+++ b/packages/comment/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-comment",
- "version": "2.4.4",
+ "version": "2.4.5",
"description": "Comment",
"keywords": [],
"license": "MIT",
@@ -10,13 +10,14 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/comment/src/Component.tsx b/packages/comment/src/Component.tsx
index a7338fa2b6..0cd767894f 100644
--- a/packages/comment/src/Component.tsx
+++ b/packages/comment/src/Component.tsx
@@ -1,7 +1,7 @@
import React, { ReactNode } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import styles from './index.module.css';
@@ -31,14 +31,9 @@ export const Comment: React.FC = ({ className, dataTestId, childre
return (
-
+
{children}
-
+
);
};
diff --git a/packages/confirmation-v1/CHANGELOG.md b/packages/confirmation-v1/CHANGELOG.md
index 7eeca0682f..edecf52733 100644
--- a/packages/confirmation-v1/CHANGELOG.md
+++ b/packages/confirmation-v1/CHANGELOG.md
@@ -1,5 +1,27 @@
# Change Log
+## 1.9.10
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - link@5.3.2
+ - loader@3.2.2
+
+## 1.9.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 1.9.8
### Patch Changes
diff --git a/packages/confirmation-v1/package.json b/packages/confirmation-v1/package.json
index b8ae1c22d8..4336c942bc 100644
--- a/packages/confirmation-v1/package.json
+++ b/packages/confirmation-v1/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-confirmation-v1",
- "version": "1.9.8",
+ "version": "1.9.10",
"description": "Sms confirmation component",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-link": "^5.3.1",
- "@alfalab/core-components-loader": "^3.2.1",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-link": "^5.3.2",
+ "@alfalab/core-components-loader": "^3.2.2",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"peerDependencies": {
diff --git a/packages/confirmation/CHANGELOG.md b/packages/confirmation/CHANGELOG.md
index 7c446ef2d1..e43ace3fb5 100644
--- a/packages/confirmation/CHANGELOG.md
+++ b/packages/confirmation/CHANGELOG.md
@@ -1,5 +1,41 @@
# Change Log
+## 13.9.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - button@11.11.1
+ - code-input@3.9.3
+ - link@5.3.2
+ - spinner@4.0.1
+ - typography@4.11.1
+
+## 13.9.3
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 13.9.2
### Patch Changes
diff --git a/packages/confirmation/package.json b/packages/confirmation/package.json
index 10d764c43b..964f769978 100644
--- a/packages/confirmation/package.json
+++ b/packages/confirmation/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-confirmation",
- "version": "13.9.2",
+ "version": "13.9.4",
"description": "Sms confirmation component",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-code-input": "^3.9.2",
- "@alfalab/core-components-link": "^5.3.1",
- "@alfalab/core-components-spinner": "^4.0.0",
- "@alfalab/core-components-typography": "^4.11.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-code-input": "^3.9.3",
+ "@alfalab/core-components-link": "^5.3.2",
+ "@alfalab/core-components-spinner": "^4.0.1",
+ "@alfalab/core-components-typography": "^4.11.1",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/confirmation/src/components/header/component.tsx b/packages/confirmation/src/components/header/component.tsx
index e6ed0b89ca..5defe721dc 100644
--- a/packages/confirmation/src/components/header/component.tsx
+++ b/packages/confirmation/src/components/header/component.tsx
@@ -1,7 +1,7 @@
import React, { FC, ReactNode } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { TitleDesktop } from '@alfalab/core-components-typography';
import styles from './index.module.css';
@@ -18,11 +18,11 @@ export type HeaderProps = {
};
export const Header: FC = ({ mobile, children }) => (
-
{children}
-
+
);
diff --git a/packages/confirmation/src/components/screens/fatal-error/component.tsx b/packages/confirmation/src/components/screens/fatal-error/component.tsx
index 7110e8f14b..21bbd4eb5d 100644
--- a/packages/confirmation/src/components/screens/fatal-error/component.tsx
+++ b/packages/confirmation/src/components/screens/fatal-error/component.tsx
@@ -2,7 +2,7 @@ import React, { FC, useContext } from 'react';
import cn from 'classnames';
import { Button } from '@alfalab/core-components-button';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { ConfirmationContext } from '../../../context';
import { Header } from '../../header';
@@ -24,7 +24,7 @@ export const FatalError: FC = ({ mobile }) => {
-
= ({ mobile }) => {
})}
>
{texts.fatalErrorDescription}
-
+
= ({ mobile }) => {
-
= ({ mobile }) => {
>
Если у вас изменился номер телефона, позвоните нам или обратитесь в любое
отделение банка.
-
+
= ({ mobile }) => {
>
{domesticPhone}
- = ({ mobile }) => {
{mobile
? 'Для\u00A0звонков по\u00A0России'
: ' \u2014\u00A0для звонков по\u00A0России'}
-
+
@@ -80,7 +80,7 @@ export const Hint: FC = ({ mobile }) => {
>
{internationalPhone}
- = ({ mobile }) => {
{mobile
? 'В\u00A0Москве и\u00A0за\u00A0границей'
: ' \u2014\u00A0в\u00A0Москве и\u00A0за\u00A0границей'}
-
+
- = ({ mobile }) => {
>
Если номер не менялся, возможно, перегружен сервис отправки сообщений.
Попробуйте повторить действие через несколько минут.
-
+
= ({ mobile }) => {
{phone ? (
- = ({ mobile }) => {
})}
>
Код отправлен на {phone}
-
+
) : null}
= ({
useContext(ConfirmationContext);
const renderText = (text?: string) => (
- = ({
tag='div'
>
{text}
-
+
);
if (codeSendHintVisible) return renderText(texts.codeSended);
diff --git a/packages/confirmation/src/components/screens/temp-block/component.tsx b/packages/confirmation/src/components/screens/temp-block/component.tsx
index abe5afa49d..672143462d 100644
--- a/packages/confirmation/src/components/screens/temp-block/component.tsx
+++ b/packages/confirmation/src/components/screens/temp-block/component.tsx
@@ -1,7 +1,7 @@
import React, { FC, useContext, useEffect } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { ConfirmationContext } from '../../../context';
import { formatMsAsMinutes, useCountdown } from '../../../utils';
@@ -37,7 +37,7 @@ export const TempBlock: FC = ({ mobile }) => {
-
= ({ mobile }) => {
})}
>
{texts.tempBlockDescription}
-
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+
+## 3.11.0
+
+### Minor Changes
+
+10.12.2024
+
+### [#1452](https://github.com/core-ds/core-components/pull/1452)
+
+- Изменены цвета заблокированного состояния
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 3.10.2
### Patch Changes
diff --git a/packages/custom-button/package.json b/packages/custom-button/package.json
index bb1077a1fc..778d3a8d54 100644
--- a/packages/custom-button/package.json
+++ b/packages/custom-button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-custom-button",
- "version": "3.10.2",
+ "version": "3.11.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-button": "^11.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/custom-button/src/Component.test.tsx b/packages/custom-button/src/Component.test.tsx
index a20e99859b..dd1f5de89e 100644
--- a/packages/custom-button/src/Component.test.tsx
+++ b/packages/custom-button/src/Component.test.tsx
@@ -89,6 +89,33 @@ describe('CustomButton', () => {
const { container } = render( );
expect(container.firstElementChild).toHaveClass('black');
});
+
+ describe('disableType test', () => {
+ it('should have `disableType_default` class', () => {
+ const { container } = render( );
+ expect(container.firstElementChild).toHaveClass('disableType-default');
+ });
+
+ it('should have `disableType_static` class', () => {
+ const { container } = render( );
+ expect(container.firstElementChild).toHaveClass('disableType-static');
+ });
+
+ it('should have `disableType_inverted` class', () => {
+ const { container } = render( );
+ expect(container.firstElementChild).toHaveClass('disableType-inverted');
+ });
+
+ it('should have `disableType_static-inverted` class', () => {
+ const { container } = render( );
+ expect(container.firstElementChild).toHaveClass('disableType-static-inverted');
+ });
+ });
+
+ it('should have custom className', () => {
+ const { container } = render( );
+ expect(container.firstElementChild).toHaveClass('customClass');
+ });
});
it('should unmount without errors', () => {
diff --git a/packages/custom-button/src/Component.tsx b/packages/custom-button/src/Component.tsx
index 0ca342ded4..809d280f97 100644
--- a/packages/custom-button/src/Component.tsx
+++ b/packages/custom-button/src/Component.tsx
@@ -23,6 +23,17 @@ export type ComponentProps = Omit & {
* Затемнение или осветление кнопки при hover и active
*/
stateType?: 'darkening' | 'lightening' | 'static-darkening' | 'static-lightening';
+
+ /**
+ * Блокировка кнопки
+ */
+ disabled?: boolean;
+
+ /**
+ * Тип цвета для заблокированного состояния
+ * @default default
+ */
+ disableType?: 'default' | 'static' | 'inverted' | 'static-inverted';
};
type AnchorButtonProps = ComponentProps & AnchorHTMLAttributes;
@@ -42,12 +53,15 @@ export const CustomButton = React.forwardRef<
backgroundColor = DEFAULT_BUTTON_COLOR,
contentColor = DEFAULT_CONTENT_COLOR,
stateType = 'darkening',
+ disableType = 'default',
...restProps
},
ref,
) => {
const buttonProps = {
- style: { background: backgroundColor },
+ style: {
+ ...(!restProps.disabled && { background: backgroundColor }),
+ },
...restProps,
};
@@ -57,9 +71,7 @@ export const CustomButton = React.forwardRef<
className,
styles[contentColor],
styles[stateType],
- {
- [styles.customLoading]: loading,
- },
+ styles[`disableType-${disableType}`],
);
return (
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-click-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-click-theme-snap.png
index 37d77ed008..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-click-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-click-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdd3424f2bfca6a534ca027d71b647da6aec36cc21218e328753ea8372bf3094
-size 25642
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-corp-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-corp-theme-snap.png
index 8e440382bd..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-corp-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-corp-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:25708aa47b3a05d12ecbbb82d6fb766e3abd79f793f916fd3d347dce8d8b9715
-size 25755
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-default-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-default-theme-snap.png
index 37d77ed008..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-default-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-default-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdd3424f2bfca6a534ca027d71b647da6aec36cc21218e328753ea8372bf3094
-size 25642
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-intranet-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-intranet-theme-snap.png
index 37d77ed008..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-intranet-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-intranet-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdd3424f2bfca6a534ca027d71b647da6aec36cc21218e328753ea8372bf3094
-size 25642
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-mobile-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-mobile-theme-snap.png
index 37d77ed008..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-mobile-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-mobile-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdd3424f2bfca6a534ca027d71b647da6aec36cc21218e328753ea8372bf3094
-size 25642
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-site-theme-snap.png b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-site-theme-snap.png
index 37d77ed008..81b913bd8c 100644
--- a/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-site-theme-snap.png
+++ b/packages/custom-button/src/__image_snapshots__/custom-button-colors-disabled-state-and-themes-site-theme-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:cdd3424f2bfca6a534ca027d71b647da6aec36cc21218e328753ea8372bf3094
-size 25642
+oid sha256:59f0d052a5fecee7e58e166e7d3f312167658d9bffc7dd9ae0ee248c99585bca
+size 22862
diff --git a/packages/custom-button/src/__snapshots__/Component.test.tsx.snap b/packages/custom-button/src/__snapshots__/Component.test.tsx.snap
index 8c604aa424..99c2c3b76f 100644
--- a/packages/custom-button/src/__snapshots__/Component.test.tsx.snap
+++ b/packages/custom-button/src/__snapshots__/Component.test.tsx.snap
@@ -6,7 +6,7 @@ Object {
"baseElement":
@@ -14,7 +14,7 @@ Object {
,
"container":
@@ -79,7 +79,7 @@ Object {
"baseElement":
@@ -87,7 +87,7 @@ Object {
,
"container":
@@ -152,7 +152,7 @@ Object {
"baseElement":
@@ -160,7 +160,7 @@ Object {
,
"container":
@@ -225,7 +225,7 @@ Object {
"baseElement":
@@ -233,7 +233,7 @@ Object {
,
"container":
@@ -298,7 +298,7 @@ Object {
"baseElement":
,
"container":
{
const [disabled, setDisabled] = React.useState(false);
const isMobile = document.body.clientWidth < 450;
return (
-
-
- {Object.keys(VARIANTS).map((title) => (
-
- {title}
-
- ))}
+
+
+
+ На светлом фоне
+
+
+ {Object.keys(VARIANTS).map((title) => (
+
+ {title}
+
+ ))}
+
+
+
+
+
+
+ На светлом статичном фоне
+
+
+ {Object.keys(VARIANTS).map((title) => (
+
+ {title}
+
+ ))}
+
+
+
+
+
+
+ На тёмном фоне
+
+
+ {Object.keys(VARIANTS).map((title) => (
+
+ {title}
+
+ ))}
+
+
+
+
+
+
+ На тёмном статичном фоне
+
+
+ {Object.keys(VARIANTS).map((title) => (
+
+ {title}
+
+ ))}
+
+
- setDisabled((prevState) => !prevState)}
- label='Недоступна'
- />
-
+
setDisabled((prevState) => !prevState)}
+ label='Недоступна'
+ />
+
);
});
```
@@ -89,3 +204,77 @@ render(() => {
);
});
```
+
+## Анатомия
+
+С помощью слотов `leftAddons` и `rightAddons` можно кастомизировать кнопку. Например, добавить иконку. Переданный контент будет отрисован слева или справа от текста кнопки. Если текста нет — будет отрисована квадратная кнопка. В 56, 64 и 72 размерах доступна подпись под лейблом.
+
+```jsx live
+render(() => {
+ const [label, setLabel] = React.useState(true);
+ const [hint, setHint] = React.useState();
+ const [leftAddons, setLeftAddons] = React.useState(false);
+ const [rightAddons, setRightAddons] = React.useState(false);
+
+ const handleLabelChange = () => setLabel(!label);
+ const handleHintChange = () => setHint((p) => (p ? undefined : 'Hint'));
+ const handleLeftAddonsChange = () => setLeftAddons(!leftAddons);
+ const handleRightAddonsChange = () => setRightAddons(!rightAddons);
+
+ return (
+
+ }
+ rightAddons={rightAddons && }
+ hint={hint}
+ block={isMobile()}
+ backgroundColor={'var(--color-light-base-bg-secondary-inverted)'}
+ >
+ {label && 'Label'}
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+});
+```
+
+## Кастомный цвет контента
+
+Для установки цвета контента можно использовать пропс `contentColor` который принимает четыре значения. Но также цвет можно переопределить через класс с помощью пропса `className`
+
+```jsx live
+render(() => {
+ return (
+
+
+
+
+
+ Label
+
+
+ Label
+
+
+
+ );
+});
+```
diff --git a/packages/custom-button/src/index.module.css b/packages/custom-button/src/index.module.css
index a4e87ed7ad..30d407d79c 100644
--- a/packages/custom-button/src/index.module.css
+++ b/packages/custom-button/src/index.module.css
@@ -86,17 +86,35 @@
/* Disabled */
.customButton:disabled {
- opacity: 0.3;
+ &.disableType-default {
+ background-color: var(--color-light-neutral-translucent-100);
- &.customLoading {
- opacity: 1;
+ & span {
+ color: var(--color-light-text-tertiary);
+ }
}
- &.white * {
- color: var(--color-static-text-primary-inverted);
+ &.disableType-static {
+ background-color: var(--color-static-neutral-translucent-100);
+
+ & span {
+ color: var(--color-static-text-tertiary);
+ }
}
- &.black * {
- color: var(--color-static-text-primary);
+ &.disableType-inverted {
+ background-color: var(--color-light-neutral-translucent-100-inverted);
+
+ & span {
+ color: var(--color-light-text-tertiary-inverted);
+ }
+ }
+
+ &.disableType-static-inverted {
+ background-color: var(--color-static-neutral-translucent-100-inverted);
+
+ & span {
+ color: var(--color-static-text-tertiary-inverted);
+ }
}
}
diff --git a/packages/custom-picker-button/CHANGELOG.md b/packages/custom-picker-button/CHANGELOG.md
index efc1a55a43..56542de0cd 100644
--- a/packages/custom-picker-button/CHANGELOG.md
+++ b/packages/custom-picker-button/CHANGELOG.md
@@ -1,5 +1,35 @@
# @alfalab/core-components-custom-picker-button
+## 2.6.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - custom-button@3.11.1
+ - picker-button@11.12.8
+ - select@17.18.0
+
+## 2.6.7
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - custom-button@3.11.0
+ - picker-button@11.12.7
+ - select@17.17.5
+
## 2.6.6
### Patch Changes
diff --git a/packages/custom-picker-button/package.json b/packages/custom-picker-button/package.json
index 78d68bf57a..a010a7cdf5 100644
--- a/packages/custom-picker-button/package.json
+++ b/packages/custom-picker-button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-custom-picker-button",
- "version": "2.6.6",
+ "version": "2.6.8",
"description": "Custom picker button component",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-picker-button": "^11.12.6",
- "@alfalab/core-components-custom-button": "^3.10.2",
+ "@alfalab/core-components-picker-button": "^11.12.8",
+ "@alfalab/core-components-custom-button": "^3.11.1",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-select": "^17.17.4",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-select": "^17.18.0",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/custom-picker-button/src/__snapshots__/Component.test.tsx.snap b/packages/custom-picker-button/src/__snapshots__/Component.test.tsx.snap
index 0e770c34f3..a626d6fb16 100644
--- a/packages/custom-picker-button/src/__snapshots__/Component.test.tsx.snap
+++ b/packages/custom-picker-button/src/__snapshots__/Component.test.tsx.snap
@@ -12,7 +12,7 @@ exports[`Snapshots tests should display correctly 1`] = `
13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - input@15.3.4
+
+## 4.4.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 4.4.8
### Patch Changes
diff --git a/packages/date-input/package.json b/packages/date-input/package.json
index 926e38e24a..682c9c0c12 100644
--- a/packages/date-input/package.json
+++ b/packages/date-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-date-input",
- "version": "4.4.8",
+ "version": "4.4.10",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-input": "^15.3.4",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
diff --git a/packages/date-range-input/CHANGELOG.md b/packages/date-range-input/CHANGELOG.md
index d23b18ca22..87d9aff221 100644
--- a/packages/date-range-input/CHANGELOG.md
+++ b/packages/date-range-input/CHANGELOG.md
@@ -1,5 +1,37 @@
# @alfalab/core-components-date-range-input
+## 3.5.11
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - calendar@7.17.1
+ - icon-button@6.11.4
+ - input@15.3.4
+ - popover@6.3.4
+
+## 3.5.10
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.17.0
+ - input@15.3.3
+ - icon-button@6.11.3
+
+## 3.5.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.16.0
+
## 3.5.8
### Patch Changes
diff --git a/packages/date-range-input/package.json b/packages/date-range-input/package.json
index 3ae3f45f59..246b22974d 100644
--- a/packages/date-range-input/package.json
+++ b/packages/date-range-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-date-range-input",
- "version": "3.5.8",
+ "version": "3.5.11",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,19 +10,20 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-calendar": "^7.15.4",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-calendar": "^7.17.1",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
diff --git a/packages/date-time-input/CHANGELOG.md b/packages/date-time-input/CHANGELOG.md
index 6e93c0d2b0..baf86ac218 100644
--- a/packages/date-time-input/CHANGELOG.md
+++ b/packages/date-time-input/CHANGELOG.md
@@ -1,5 +1,37 @@
# @alfalab/core-components-date-time-input
+## 4.5.11
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - calendar@7.17.1
+ - icon-button@6.11.4
+ - input@15.3.4
+ - popover@6.3.4
+
+## 4.5.10
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.17.0
+ - input@15.3.3
+ - icon-button@6.11.3
+
+## 4.5.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - calendar@7.16.0
+
## 4.5.8
### Patch Changes
diff --git a/packages/date-time-input/package.json b/packages/date-time-input/package.json
index 04c98f1971..f4eb67ca52 100644
--- a/packages/date-time-input/package.json
+++ b/packages/date-time-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-date-time-input",
- "version": "4.5.8",
+ "version": "4.5.11",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,19 +10,20 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-calendar": "^7.15.4",
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-icon-button": "^6.11.2",
+ "@alfalab/core-components-calendar": "^7.17.1",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-icon-button": "^6.11.4",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
diff --git a/packages/divider/CHANGELOG.md b/packages/divider/CHANGELOG.md
index a2ab6c15fc..129433dd11 100644
--- a/packages/divider/CHANGELOG.md
+++ b/packages/divider/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 3.3.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 3.3.1
### Patch Changes
diff --git a/packages/divider/package.json b/packages/divider/package.json
index ca853387dc..97b5faa428 100644
--- a/packages/divider/package.json
+++ b/packages/divider/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-divider",
- "version": "3.3.1",
+ "version": "3.3.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/drawer/CHANGELOG.md b/packages/drawer/CHANGELOG.md
index 1ec5e7f446..94b25e83b3 100644
--- a/packages/drawer/CHANGELOG.md
+++ b/packages/drawer/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 5.1.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - base-modal@5.8.6
+
+## 5.1.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - base-modal@5.8.5
+
## 5.1.4
### Patch Changes
diff --git a/packages/drawer/package.json b/packages/drawer/package.json
index c048bded37..94a5de42f0 100644
--- a/packages/drawer/package.json
+++ b/packages/drawer/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-drawer",
- "version": "5.1.4",
+ "version": "5.1.6",
"description": "Drawer component",
"keywords": [],
"license": "MIT",
@@ -15,8 +15,8 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-base-modal": "^5.8.4",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},
diff --git a/packages/dropzone/CHANGELOG.md b/packages/dropzone/CHANGELOG.md
index a7ab26ebd2..aece1cddd3 100644
--- a/packages/dropzone/CHANGELOG.md
+++ b/packages/dropzone/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 4.1.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 4.1.1
### Patch Changes
diff --git a/packages/dropzone/package.json b/packages/dropzone/package.json
index 2dd0011a14..f9c1aaf159 100644
--- a/packages/dropzone/package.json
+++ b/packages/dropzone/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-dropzone",
- "version": "4.1.1",
+ "version": "4.1.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/file-upload-item-v1/CHANGELOG.md b/packages/file-upload-item-v1/CHANGELOG.md
index 583c843360..f8a338fe8f 100644
--- a/packages/file-upload-item-v1/CHANGELOG.md
+++ b/packages/file-upload-item-v1/CHANGELOG.md
@@ -1,5 +1,27 @@
# Change Log
+## 1.0.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - icon-button@6.11.4
+ - link@5.3.2
+ - spinner@4.0.1
+
+## 1.0.2
+
+### Patch Changes
+
+- Обновлены зависимости
+ - icon-button@6.11.3
+
## 1.0.1
### Patch Changes
diff --git a/packages/file-upload-item-v1/package.json b/packages/file-upload-item-v1/package.json
index b3846e7014..6cbf485469 100644
--- a/packages/file-upload-item-v1/package.json
+++ b/packages/file-upload-item-v1/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-file-upload-item-v1",
- "version": "1.0.1",
+ "version": "1.0.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-link": "^5.3.1",
- "@alfalab/core-components-spinner": "^4.0.0",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-link": "^5.3.2",
+ "@alfalab/core-components-spinner": "^4.0.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/file-upload-item/CHANGELOG.md b/packages/file-upload-item/CHANGELOG.md
index d267c83044..203c51fc9d 100644
--- a/packages/file-upload-item/CHANGELOG.md
+++ b/packages/file-upload-item/CHANGELOG.md
@@ -1,5 +1,34 @@
# Change Log
+## 6.0.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - icon-button@6.11.4
+ - link@5.3.2
+ - spinner@4.0.1
+ - typography@4.11.1
+
+## 6.0.3
+
+### Patch Changes
+
+- Обновлены зависимости
+ - icon-button@6.11.3
+
## 6.0.2
### Patch Changes
diff --git a/packages/file-upload-item/package.json b/packages/file-upload-item/package.json
index 868282cc92..913ddb1023 100644
--- a/packages/file-upload-item/package.json
+++ b/packages/file-upload-item/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-file-upload-item",
- "version": "6.0.2",
+ "version": "6.0.4",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-link": "^5.3.1",
- "@alfalab/core-components-spinner": "^4.0.0",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-link": "^5.3.2",
+ "@alfalab/core-components-spinner": "^4.0.1",
"@alfalab/icons-glyph": "^2.189.0",
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/file-upload-item/src/components/content/components/content-error/content-error.tsx b/packages/file-upload-item/src/components/content/components/content-error/content-error.tsx
index 6526ab678a..438c9bd471 100644
--- a/packages/file-upload-item/src/components/content/components/content-error/content-error.tsx
+++ b/packages/file-upload-item/src/components/content/components/content-error/content-error.tsx
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { FileUploadItemContext } from '../../../../context/file-upload-item-context';
@@ -11,9 +11,9 @@ export const ContentError = () => {
if (typeof error === 'string' && error.length > 0) {
return (
-
+
{error}
-
+
);
}
@@ -21,22 +21,22 @@ export const ContentError = () => {
return (
{error.map((item) => (
-
{item}
-
+
))}
);
}
return (
-
+
Не удалось загрузить файл
-
+
);
};
diff --git a/packages/file-upload-item/src/components/content/components/content-subtitle/content-subtitle.tsx b/packages/file-upload-item/src/components/content/components/content-subtitle/content-subtitle.tsx
index ff0ffc4e12..3817cd6959 100644
--- a/packages/file-upload-item/src/components/content/components/content-subtitle/content-subtitle.tsx
+++ b/packages/file-upload-item/src/components/content/components/content-subtitle/content-subtitle.tsx
@@ -1,7 +1,7 @@
import React, { useContext } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { MAX_PROGRESS_BAR_VALUE } from '../../../../const/progress-bar';
import { FileUploadItemContext } from '../../../../context/file-upload-item-context';
@@ -39,10 +39,10 @@ export const ContentSubtitle = () => {
// uploading status
if (isUploadingStatus(uploadStatus)) {
return (
-
+
Загрузка{'\u00A0'}
{Math.floor(validProgressBar)}%
-
+
);
}
@@ -56,14 +56,14 @@ export const ContentSubtitle = () => {
return (
{size && (
-
+
{humanFileSize(size)}
-
+
)}
{uploadDate && (
-
+
{uploadDate}
-
+
)}
);
@@ -72,14 +72,14 @@ export const ContentSubtitle = () => {
// restore status
if (showRestore) {
return (
-
+
Файл удален
-
+
);
}
return (
- {
color='secondary'
>
{subtitle}
-
+
);
};
diff --git a/packages/file-upload-item/src/components/content/content.tsx b/packages/file-upload-item/src/components/content/content.tsx
index 412e4ee81c..a89e61818c 100644
--- a/packages/file-upload-item/src/components/content/content.tsx
+++ b/packages/file-upload-item/src/components/content/content.tsx
@@ -1,7 +1,7 @@
import React, { useContext } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { FileUploadItemContext } from '../../context/file-upload-item-context';
@@ -29,7 +29,7 @@ export const Content = () => {
})}
>
{title && (
- {
color='primary'
>
{title}
-
+
)}
diff --git a/packages/filter-tag/CHANGELOG.md b/packages/filter-tag/CHANGELOG.md
index c0268e9177..5e60184a18 100644
--- a/packages/filter-tag/CHANGELOG.md
+++ b/packages/filter-tag/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 5.8.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 5.8.2
### Patch Changes
diff --git a/packages/filter-tag/package.json b/packages/filter-tag/package.json
index c71d9c3cd0..2609e37e1d 100644
--- a/packages/filter-tag/package.json
+++ b/packages/filter-tag/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-filter-tag",
- "version": "5.8.2",
+ "version": "5.8.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/form-control/CHANGELOG.md b/packages/form-control/CHANGELOG.md
index 7e2b54302a..c3a3615dc9 100644
--- a/packages/form-control/CHANGELOG.md
+++ b/packages/form-control/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 12.7.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 12.7.2
### Patch Changes
diff --git a/packages/form-control/package.json b/packages/form-control/package.json
index 1e55b14b3b..14de9999fd 100644
--- a/packages/form-control/package.json
+++ b/packages/form-control/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-form-control",
- "version": "12.7.2",
+ "version": "12.7.3",
"description": "FormControl component",
"keywords": [],
"license": "MIT",
@@ -17,7 +17,7 @@
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/gallery/CHANGELOG.md b/packages/gallery/CHANGELOG.md
index 6b05b2f29e..deda3a991d 100644
--- a/packages/gallery/CHANGELOG.md
+++ b/packages/gallery/CHANGELOG.md
@@ -1,5 +1,42 @@
# Change Log
+## 5.10.7
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - base-modal@5.8.6
+ - icon-button@6.11.4
+ - tooltip@7.8.2
+ - typography@4.11.1
+
+## 5.10.6
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - base-modal@5.8.5
+ - icon-button@6.11.3
+ - tooltip@7.8.1
+
## 5.10.5
### Patch Changes
diff --git a/packages/gallery/package.json b/packages/gallery/package.json
index 693b6ba8ba..aab269eb70 100644
--- a/packages/gallery/package.json
+++ b/packages/gallery/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-gallery",
- "version": "5.10.5",
+ "version": "5.10.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,18 +10,19 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-icon-button": "^6.11.2",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-icon-button": "^6.11.4",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-tooltip": "^7.8.0",
- "@alfalab/core-components-typography": "^4.11.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-tooltip": "^7.8.2",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"hls.js": "^1.5.13",
"element-closest": "^3.0.2",
"swiper": "^6.8.2",
diff --git a/packages/gallery/src/components/header-info-block/Component.tsx b/packages/gallery/src/components/header-info-block/Component.tsx
index 3f953b3774..d60a6a398d 100644
--- a/packages/gallery/src/components/header-info-block/Component.tsx
+++ b/packages/gallery/src/components/header-info-block/Component.tsx
@@ -1,6 +1,6 @@
import React, { FC } from 'react';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text, TitleDesktop } from '@alfalab/core-components-typography';
import { splitFilename } from '../../utils';
@@ -17,7 +17,7 @@ export const HeaderInfoBlock: FC = ({ filename, descriptio
return (
- = ({ filename, descriptio
color='static-primary-light'
>
{head}
-
+
-
+
{tail}
-
+
{description ? (
-
{description}
-
+
) : null}
);
diff --git a/packages/gallery/src/components/header-mobile/Component.tsx b/packages/gallery/src/components/header-mobile/Component.tsx
index 48a2799df8..e760a99589 100644
--- a/packages/gallery/src/components/header-mobile/Component.tsx
+++ b/packages/gallery/src/components/header-mobile/Component.tsx
@@ -1,7 +1,7 @@
import React, { useContext } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { GalleryContext } from '../../context';
import { isVideo, TestIds } from '../../utils';
@@ -35,14 +35,14 @@ export const HeaderMobile = () => {
})}
>
-
{description}
-
+
{showDownloadButton && (
= ({
-
+
Не удалось загрузить {isVideoView ? 'видео' : 'изображение'}
-
+
) : (
children
diff --git a/packages/gallery/src/components/info-bar/Component.tsx b/packages/gallery/src/components/info-bar/Component.tsx
index 60a3aaef94..eff8d6343e 100644
--- a/packages/gallery/src/components/info-bar/Component.tsx
+++ b/packages/gallery/src/components/info-bar/Component.tsx
@@ -1,6 +1,6 @@
import React, { useCallback, useContext } from 'react';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { GalleryContext } from '../../context';
import { GALLERY_EVENTS, isVideo } from '../../utils';
@@ -56,13 +56,8 @@ export const InfoBar = () => {
)}
) : (
-
+
{image?.name}
-
+
);
};
diff --git a/packages/gap/CHANGELOG.md b/packages/gap/CHANGELOG.md
index 802b66972b..ea8ff7589b 100644
--- a/packages/gap/CHANGELOG.md
+++ b/packages/gap/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 1.4.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 1.4.0
### Minor Changes
diff --git a/packages/gap/package.json b/packages/gap/package.json
index 0673c6085e..19939751a9 100644
--- a/packages/gap/package.json
+++ b/packages/gap/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-gap",
- "version": "1.4.0",
+ "version": "1.4.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/generic-wrapper/CHANGELOG.md b/packages/generic-wrapper/CHANGELOG.md
index 4b7576c1a4..cde4f4061d 100644
--- a/packages/generic-wrapper/CHANGELOG.md
+++ b/packages/generic-wrapper/CHANGELOG.md
@@ -1,5 +1,18 @@
# @alfalab/core-components-generic-wrapper
+## 1.4.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - gap@1.4.1
+
## 1.4.0
### Minor Changes
diff --git a/packages/generic-wrapper/package.json b/packages/generic-wrapper/package.json
index 54a7a42efa..1c7b555a41 100644
--- a/packages/generic-wrapper/package.json
+++ b/packages/generic-wrapper/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-generic-wrapper",
- "version": "1.4.0",
+ "version": "1.4.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-gap": "^1.4.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-gap": "^1.4.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/grid/CHANGELOG.md b/packages/grid/CHANGELOG.md
index 142422325f..f7def66296 100644
--- a/packages/grid/CHANGELOG.md
+++ b/packages/grid/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.2.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 3.2.2
### Patch Changes
diff --git a/packages/grid/package.json b/packages/grid/package.json
index 59c0284e65..1da6dbec64 100644
--- a/packages/grid/package.json
+++ b/packages/grid/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-grid",
- "version": "3.2.2",
+ "version": "3.2.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/hatching-progress-bar/CHANGELOG.md b/packages/hatching-progress-bar/CHANGELOG.md
index 39146497fa..693028228a 100644
--- a/packages/hatching-progress-bar/CHANGELOG.md
+++ b/packages/hatching-progress-bar/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 2.2.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 2.2.2
### Patch Changes
diff --git a/packages/hatching-progress-bar/package.json b/packages/hatching-progress-bar/package.json
index ad5bd1b8c6..c4442fbc42 100644
--- a/packages/hatching-progress-bar/package.json
+++ b/packages/hatching-progress-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-hatching-progress-bar",
- "version": "2.2.2",
+ "version": "2.2.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/icon-button/CHANGELOG.md b/packages/icon-button/CHANGELOG.md
index 69c88430c0..224c97344e 100644
--- a/packages/icon-button/CHANGELOG.md
+++ b/packages/icon-button/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 6.11.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+
+## 6.11.3
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 6.11.2
### Patch Changes
diff --git a/packages/icon-button/package.json b/packages/icon-button/package.json
index fa6f8fc096..412ea5ce4f 100644
--- a/packages/icon-button/package.json
+++ b/packages/icon-button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-icon-button",
- "version": "6.11.2",
+ "version": "6.11.4",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-button": "^11.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/icon-view/CHANGELOG.md b/packages/icon-view/CHANGELOG.md
index 2c33ddd6ee..c07ca03e8c 100644
--- a/packages/icon-view/CHANGELOG.md
+++ b/packages/icon-view/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 3.9.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+## 3.9.0
+
+### Minor Changes
+
+10.12.2024
+
+### [#1454](https://github.com/core-ds/core-components/pull/1454)
+
+- Добавлен размер 72
+
## 3.8.4
### Patch Changes
diff --git a/packages/icon-view/package.json b/packages/icon-view/package.json
index f5566fbd62..1a90515ed5 100644
--- a/packages/icon-view/package.json
+++ b/packages/icon-view/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-icon-view",
- "version": "3.8.4",
+ "version": "3.9.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-0-snap.png
new file mode 100644
index 0000000000..fdf0a2bb4b
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9a3ab0d7b5ff693d22e5905698add01c164d850abdaf03586b39e00cbd9ab9eb
+size 3862
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-1-snap.png
new file mode 100644
index 0000000000..61ca866161
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-0-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a49bf2450cf3555b15626c806c6b963c0a60c68828583c67ea195b2aaec1b02c
+size 3060
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-0-snap.png
new file mode 100644
index 0000000000..6175d09a41
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d89ab9b12f7b94d1a9d252f94d33de2ebe15f1823aef2c5dad89c1b1833b1d56
+size 3442
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-1-snap.png
new file mode 100644
index 0000000000..cdc655e795
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-0-bottom-addons-1-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ce59131eb66781df415dc17a66708c573045d24b74b18a71ca1b8f7be7278ffc
+size 2755
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-0-snap.png
new file mode 100644
index 0000000000..b9f698bb6e
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e702e533b7f7223b184a2120c70348dcba363f8abb51e986dbfe41d65f012f37
+size 3453
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-1-snap.png
new file mode 100644
index 0000000000..8d98aba1f3
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-0-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8955af640c6fd51cda28827dfa2aa0bf8440fcd53b6b6c3ff925db5bd44d3a30
+size 2718
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-0-snap.png
new file mode 100644
index 0000000000..daaca4fa8e
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bfd8a4861de7c417bca9f11fc8a4791d78d9944a7fefa6f8305af3f6296af105
+size 2857
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-1-snap.png
new file mode 100644
index 0000000000..bdda6cc4ab
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-addons-size-3-top-addons-1-bottom-addons-1-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:603e70dae2073c1ffad56261ab57ea59b33b775fb3f684f01511b10a5a5087dd
+size 2147
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-0-snap.png
new file mode 100644
index 0000000000..daaca4fa8e
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bfd8a4861de7c417bca9f11fc8a4791d78d9944a7fefa6f8305af3f6296af105
+size 2857
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-1-snap.png
new file mode 100644
index 0000000000..bdda6cc4ab
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-circle-size-border-size-10-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:603e70dae2073c1ffad56261ab57ea59b33b775fb3f684f01511b10a5a5087dd
+size 2147
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-no-shape-size-border-size-10-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-no-shape-size-border-size-10-snap.png
new file mode 100644
index 0000000000..9efb204745
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-no-shape-size-border-size-10-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:92963eb307c33d6a6401d2a170c804e3b950a12f6329e21923ae842bf170bafa
+size 1307
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-0-snap.png
deleted file mode 100644
index 5bf36a399a..0000000000
--- a/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-0-snap.png
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:f8cc0aa98b23466b1de534c13afe90ee6d7dd6da80790e7d143d97251c5a6888
-size 1686
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-1-snap.png
deleted file mode 100644
index 6ec65aff88..0000000000
--- a/packages/icon-view/src/__image_snapshots__/icon-view-rectangle-size-border-size-9-border-1-snap.png
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:73f89d73f074ee4519a12a69b59baf3468730081cec643494caebf8b1e71813d
-size 1256
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-0-snap.png
new file mode 100644
index 0000000000..8d4f647dfd
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09f7848154d5e1360f91406a0301e77cb99dda0f257526fcc5e0ff61acb9facf
+size 3731
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-1-snap.png
new file mode 100644
index 0000000000..768ea34ffa
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-0-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:81b726b49e6c799ede373fc66628c86d61307c2d9cfbf01514c019b03d178b7e
+size 3025
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-0-snap.png
new file mode 100644
index 0000000000..bee2d64486
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f803c991734d6353f6d2ba34ca2c0b98a9ff80143d48bdfb80aad9463f20869b
+size 3276
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-1-snap.png
new file mode 100644
index 0000000000..12dacaccdf
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-0-bottom-addons-1-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d468d001793325dda3f752e07a7cf398d321ef3c154157773442ca94325178fd
+size 2542
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-0-snap.png
new file mode 100644
index 0000000000..313ba19e2c
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21b3c38d7cb97ea9f878c1e4233ee9b281b3ed3eed5063dbfa7325ef362bba6d
+size 3272
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-1-snap.png
new file mode 100644
index 0000000000..20db2b4c76
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-0-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:661a65f546caa055c1c94c600e64b8cf6d46706374d9454e31fed82b66e892f6
+size 2521
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-0-snap.png
new file mode 100644
index 0000000000..78711621ca
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d8c99671325056a6e028dcd77cdd7c9e02c91db7fc2dc2da490be0c469af0b8
+size 2666
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-1-snap.png
new file mode 100644
index 0000000000..c7195c0ec8
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-addons-size-4-top-addons-1-bottom-addons-1-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:73f8be2e9fb869884ca0322a7fd1a47e61d9121e33c795c70b6b0204eb695b8d
+size 1882
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-0-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-0-snap.png
new file mode 100644
index 0000000000..78711621ca
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-0-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4d8c99671325056a6e028dcd77cdd7c9e02c91db7fc2dc2da490be0c469af0b8
+size 2666
diff --git a/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-1-snap.png b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-1-snap.png
new file mode 100644
index 0000000000..c7195c0ec8
--- /dev/null
+++ b/packages/icon-view/src/__image_snapshots__/icon-view-super-ellipse-size-border-size-10-border-1-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:73f8be2e9fb869884ca0322a7fd1a47e61d9121e33c795c70b6b0204eb695b8d
+size 1882
diff --git a/packages/icon-view/src/component.screenshots.test.tsx b/packages/icon-view/src/component.screenshots.test.tsx
index 5feff3cb92..cd04d95c58 100644
--- a/packages/icon-view/src/component.screenshots.test.tsx
+++ b/packages/icon-view/src/component.screenshots.test.tsx
@@ -30,7 +30,7 @@ describe(
componentName: 'IconView',
subComponentName: 'SuperEllipse',
knobs: {
- size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56],
+ size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56, 72],
border: [true, false],
},
testStory: false,
@@ -48,7 +48,7 @@ describe(
componentName: 'IconView',
subComponentName: 'SuperEllipse',
knobs: {
- size: [48, 64, 80, 128],
+ size: [48, 64, 80, 128, 72],
topAddons: [true, false],
bottomAddons: [true, false],
border: [true, false],
@@ -86,7 +86,7 @@ describe(
componentName: 'IconView',
subComponentName: 'Circle',
knobs: {
- size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56],
+ size: [24, 48, 64, 80, 128, 16, 20, 32, 40, 56, 72],
border: [true, false],
},
testStory: false,
@@ -104,7 +104,7 @@ describe(
componentName: 'IconView',
subComponentName: 'Circle',
knobs: {
- size: [48, 64, 80],
+ size: [48, 64, 80, 72],
topAddons: [true, false],
bottomAddons: [true, false],
border: [true, false],
@@ -160,7 +160,7 @@ describe(
componentName: 'IconView',
subComponentName: 'NoShape',
knobs: {
- size: [16, 20, 24, 32, 40, 48, 56, 64, 80, 128],
+ size: [16, 20, 24, 32, 40, 48, 56, 64, 80, 128, 72],
},
testStory: false,
}),
diff --git a/packages/icon-view/src/components/base-shape/component.tsx b/packages/icon-view/src/components/base-shape/component.tsx
index 944176bb48..28b5036fe6 100644
--- a/packages/icon-view/src/components/base-shape/component.tsx
+++ b/packages/icon-view/src/components/base-shape/component.tsx
@@ -14,7 +14,7 @@ type Border = {
style?: 'solid' | 'dashed';
};
-export type TMainSize = 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 80 | 128;
+export type TMainSize = 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 128;
export type BaseShapeProps = {
/**
diff --git a/packages/icon-view/src/components/base-shape/index.module.css b/packages/icon-view/src/components/base-shape/index.module.css
index 18f55c03ad..9786a49bd9 100644
--- a/packages/icon-view/src/components/base-shape/index.module.css
+++ b/packages/icon-view/src/components/base-shape/index.module.css
@@ -127,6 +127,36 @@
}
}
+.wrapperSize_72 {
+ width: 72px;
+ height: 72px;
+
+ & .children {
+ width: 56px;
+ height: 56px;
+ }
+
+ & .addons {
+ width: 24px;
+ height: 24px;
+ }
+
+ & .topAddons {
+ top: -5px;
+ right: -5px;
+ }
+
+ & .bottomAddons {
+ bottom: -5px;
+ right: -5px;
+ }
+
+ & .indicator {
+ top: -8px;
+ right: -16px;
+ }
+}
+
.wrapperSize_64 {
width: 64px;
height: 64px;
@@ -308,7 +338,7 @@
}
/* prettier-ignore */
-@each $size in 16, 20, 24, 32, 40, 48, 56, 64, 80, 128 {
+@each $size in 16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 128 {
.children {
&.childrenSize_$(size) {
width: $(size)px;
diff --git a/packages/icon-view/src/components/circle/paths.ts b/packages/icon-view/src/components/circle/paths.ts
index 09c2d89165..2fc9e7ac5e 100644
--- a/packages/icon-view/src/components/circle/paths.ts
+++ b/packages/icon-view/src/components/circle/paths.ts
@@ -58,6 +58,17 @@ export const borderPaths = {
indicatorBottom:
'M63.5 32c0 3.4-.5 6.6-1.5 9.6-.4 1.2-1.6 1.9-3 1.9-8.6 0-15.5 7-15.5 15.5 0 1.4-.7 2.6-1.9 3a31.5 31.5 0 1 1 21.9-30Z',
},
+ 72: {
+ none: 'M71.5 36C71.5 55.6061 55.6061 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5C55.6061 0.5 71.5 16.3939 71.5 36Z',
+ indicator:
+ 'M71.5 36C71.5 55.6061 55.6061 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5C55.6061 0.5 71.5 16.3939 71.5 36Z',
+ indicatorBottom:
+ 'M71.5 36C71.5 39.7067 70.9321 43.2799 69.8788 46.6377C69.2863 48.5267 67.1978 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 67.1978 48.5267 69.2863 46.6377 69.8788C43.2799 70.9321 39.7067 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5C55.6061 0.5 71.5 16.3939 71.5 36Z',
+ topBottom:
+ 'M36 0.5C39.7067 0.5 43.2799 1.06794 46.6377 2.1212C48.5267 2.71372 49.5 4.80219 49.5 7C49.5 15.5604 56.4396 22.5 65 22.5C67.1978 22.5 69.2863 23.4733 69.8788 25.3623C70.9321 28.7201 71.5 32.2933 71.5 36C71.5 39.7067 70.9321 43.2799 69.8788 46.6377C69.2863 48.5267 67.1978 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 67.1978 48.5267 69.2863 46.6377 69.8788C43.2799 70.9321 39.7067 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5Z',
+ bottom: 'M69.8788 46.6377C69.2863 48.5267 67.1978 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 67.1978 48.5267 69.2863 46.6377 69.8788C43.2799 70.9321 39.7067 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5C55.6061 0.5 71.5 16.3939 71.5 36C71.5 39.7067 70.9321 43.2799 69.8788 46.6377Z',
+ top: 'M65 22.5C67.1978 22.5 69.2863 23.4733 69.8788 25.3623C70.9321 28.7201 71.5 32.2933 71.5 36C71.5 55.6061 55.6061 71.5 36 71.5C16.3939 71.5 0.5 55.6061 0.5 36C0.5 16.3939 16.3939 0.5 36 0.5C39.7067 0.5 43.2799 1.06794 46.6377 2.1212C48.5267 2.71372 49.5 4.80219 49.5 7C49.5 15.5604 56.4396 22.5 65 22.5Z',
+ },
80: {
top: 'M71 24.5c3 0 6 1.1 6.7 3.7a39.5 39.5 0 1 1-25.9-26c2.6.9 3.7 3.8 3.7 6.8 0 8.6 7 15.5 15.5 15.5Z',
bottom: 'M77.7 51.8c-.8 2.6-3.7 3.7-6.7 3.7-8.6 0-15.5 7-15.5 15.5 0 3-1.1 6-3.7 6.7a39.5 39.5 0 1 1 26-25.9Z',
@@ -137,6 +148,17 @@ export const shapePaths = {
indicatorBottom:
'M64 32a32 32 0 0 1-1.5 9.8c-.5 1.4-2 2.2-3.5 2.2a15 15 0 0 0-15 15c0 1.5-.8 3-2.2 3.5A32 32 0 1 1 64 32Z',
},
+ 72: {
+ none: 'M72 36C72 55.8823 55.8823 72 36 72C16.1177 72 0 55.8823 0 36C0 16.1177 16.1177 0 36 0C55.8823 0 72 16.1177 72 36Z',
+ indicator:
+ 'M72 36C72 55.8823 55.8823 72 36 72C16.1177 72 0 55.8823 0 36C0 16.1177 16.1177 0 36 0C55.8823 0 72 16.1177 72 36Z',
+ indicatorBottom:
+ 'M72 36C72 39.7581 71.4241 43.3817 70.3559 46.7874C69.6683 48.9795 67.2974 50 65 50C56.7157 50 50 56.7157 50 65C50 67.2974 48.9795 69.6683 46.7874 70.3559C43.3817 71.4241 39.7581 72 36 72C16.1177 72 0 55.8823 0 36C0 16.1177 16.1177 0 36 0C55.8823 0 72 16.1177 72 36Z',
+ topBottom:
+ 'M36 0C39.7581 0 43.3817 0.575848 46.7874 1.64412C48.9795 2.33173 50 4.70257 50 7C50 15.2843 56.7157 22 65 22C67.2974 22 69.6683 23.0205 70.3559 25.2126C71.4241 28.6183 72 32.2419 72 36C72 39.7581 71.4241 43.3817 70.3559 46.7874C69.6683 48.9795 67.2974 50 65 50C56.7157 50 50 56.7157 50 65C50 67.2974 48.9795 69.6683 46.7874 70.3559C43.3817 71.4241 39.7581 72 36 72C16.1177 72 0 55.8823 0 36C0 16.1177 16.1177 0 36 0Z',
+ bottom: 'M65 50C67.2974 50 69.6683 48.9795 70.3559 46.7874C71.4241 43.3817 72 39.7581 72 36C72 16.1177 55.8823 0 36 0C16.1177 0 0 16.1177 0 36C0 55.8823 16.1177 72 36 72C39.7581 72 43.3817 71.4241 46.7874 70.3559C48.9795 69.6683 50 67.2974 50 65C50 56.7157 56.7157 50 65 50Z',
+ top: 'M70.3559 25.2126C69.6683 23.0205 67.2974 22 65 22C56.7157 22 50 15.2843 50 7C50 4.70257 48.9795 2.33173 46.7874 1.64412C43.3817 0.575848 39.7581 0 36 0C16.1177 0 0 16.1177 0 36C0 55.8823 16.1177 72 36 72C55.8823 72 72 55.8823 72 36C72 32.2419 71.4241 28.6183 70.3559 25.2126Z',
+ },
80: {
top: 'M78.2 28c-1-2.8-4.2-4-7.2-4A15 15 0 0 1 56 9c0-3-1.2-6.3-4-7.2A40 40 0 1 0 78.2 28Z',
bottom: 'M71 56c3 0 6.3-1.2 7.2-4A40 40 0 1 0 52 78.2c2.8-1 4-4.2 4-7.2a15 15 0 0 1 15-15Z',
diff --git a/packages/icon-view/src/components/no-shape/paths.ts b/packages/icon-view/src/components/no-shape/paths.ts
index 41ecf6fc73..dcf5e4d220 100644
--- a/packages/icon-view/src/components/no-shape/paths.ts
+++ b/packages/icon-view/src/components/no-shape/paths.ts
@@ -23,6 +23,9 @@ export const shapePaths = {
64: {
none: 'M0 0 H64 V64 H0 Z',
},
+ 72: {
+ none: 'M0 0 H72 V72 H0 Z',
+ },
80: {
none: 'M0 0 H80 V80 H0 Z',
},
diff --git a/packages/icon-view/src/components/rectangle/component.tsx b/packages/icon-view/src/components/rectangle/component.tsx
index 8f841605d9..094efadca1 100644
--- a/packages/icon-view/src/components/rectangle/component.tsx
+++ b/packages/icon-view/src/components/rectangle/component.tsx
@@ -1,9 +1,11 @@
import React, { forwardRef, ReactNode } from 'react';
-import { BaseShape, BaseShapeProps } from '../base-shape';
+import { BaseShape, BaseShapeProps, TMainSize } from '../base-shape';
import { pathsMap } from './paths';
+type TSize = Exclude;
+
export type RectangleProps = Omit<
BaseShapeProps,
'pathsMap' | 'size' | 'topAddons' | 'bottomAddons' | 'indicator'
@@ -12,7 +14,7 @@ export type RectangleProps = Omit<
* Размер компонента
* @default 64
*/
- size?: 20 | 24 | 32 | 40 | 48 | 56 | 64 | 80 | 128;
+ size?: TSize;
/**
* Дочерний компонент
@@ -28,6 +30,7 @@ const heights: Record['size'], number> = {
48: 34,
56: 40,
64: 46,
+ 72: 56,
80: 58,
128: 94,
};
diff --git a/packages/icon-view/src/components/rectangle/paths.ts b/packages/icon-view/src/components/rectangle/paths.ts
index f51e4f7607..52ff6ad8e4 100644
--- a/packages/icon-view/src/components/rectangle/paths.ts
+++ b/packages/icon-view/src/components/rectangle/paths.ts
@@ -20,6 +20,9 @@ export const borderPaths = {
64: {
none: 'M.5 20.8c0-3.6 0-6.4.2-8.5a13 13 0 0 1 1.2-5C3 5 4.9 3.1 7.3 2a13 13 0 0 1 5-1.2c2.1-.2 4.9-.2 8.5-.2h22.4c3.6 0 6.4 0 8.5.2 2.1.2 3.7.5 5 1.2C59 3 60.9 4.9 62 7.3a13 13 0 0 1 1.2 5c.2 2.1.2 4.9.2 8.5v4.4c0 3.6 0 6.4-.2 8.5a13 13 0 0 1-1.2 5 12.5 12.5 0 0 1-5.4 5.4 13 13 0 0 1-5 1.2c-2.1.2-4.9.2-8.5.2H20.8c-3.6 0-6.4 0-8.5-.2a13 13 0 0 1-5-1.2A12.5 12.5 0 0 1 2 38.7a13 13 0 0 1-1.2-5c-.2-2.1-.2-4.9-.2-8.5v-4.4Z',
},
+ 72: {
+ none: 'M0.5 22.9517C0.5 18.9265 0.500392 15.9378 0.694515 13.5709C0.888155 11.21 1.27205 9.51196 2.01466 8.0601C3.34703 5.45518 5.47323 3.33696 8.08884 2.00935C9.54694 1.26925 11.2522 0.886721 13.6227 0.693789C15.9989 0.500386 18.9994 0.5 23.04 0.5H48.96C53.0006 0.5 56.0011 0.500386 58.3773 0.693789C60.7478 0.886721 62.4531 1.26925 63.9112 2.00935C66.5268 3.33696 68.653 5.45518 69.9853 8.0601C70.7279 9.51196 71.1118 11.21 71.3055 13.5709C71.4996 15.9378 71.5 18.9265 71.5 22.9517V29.0483C71.5 33.0735 71.4996 36.0622 71.3055 38.4291C71.1118 40.79 70.7279 42.488 69.9853 43.9399C68.653 46.5448 66.5268 48.663 63.9112 49.9907C62.4531 50.7307 60.7478 51.1133 58.3773 51.3062C56.0011 51.4996 53.0006 51.5 48.96 51.5H23.04C18.9994 51.5 15.9989 51.4996 13.6227 51.3062C11.2522 51.1133 9.54694 50.7307 8.08884 49.9907C5.47323 48.663 3.34703 46.5448 2.01466 43.9399C1.27205 42.488 0.888155 40.79 0.694515 38.4291C0.500392 36.0622 0.5 33.0735 0.5 29.0483V22.9517Z',
+ },
80: {
none: 'M.5 25.6c0-4.5 0-7.8.2-10.5.2-2.6.7-4.5 1.5-6.1C3.7 6 6 3.7 9 2.2 10.6 1.4 12.5.9 15 .7c2.7-.2 6-.2 10.5-.2h28.8c4.5 0 7.8 0 10.5.2 2.6.2 4.5.7 6.1 1.5C74 3.7 76.3 6 77.8 9c.8 1.6 1.3 3.5 1.5 6.1.2 2.7.2 6 .2 10.5v6.8c0 4.5 0 7.8-.2 10.5-.2 2.6-.7 4.5-1.5 6.1-1.5 3-3.8 5.3-6.8 6.8-1.6.8-3.5 1.3-6.1 1.5-2.7.2-6 .2-10.5.2H25.6c-4.5 0-7.8 0-10.5-.2-2.6-.2-4.5-.7-6.1-1.5C6 54.3 3.7 52 2.2 49 1.4 47.4.9 45.5.7 43c-.2-2.7-.2-6-.2-10.5v-6.8Z',
},
@@ -50,6 +53,9 @@ export const shapePaths = {
64: {
none: 'M0 20.8c0-7.3 0-11 1.4-13.7a13 13 0 0 1 5.7-5.7C9.9 0 13.5 0 20.8 0h22.4c7.3 0 11 0 13.7 1.4a13 13 0 0 1 5.7 5.7C64 9.9 64 13.5 64 20.8v4.4c0 7.3 0 11-1.4 13.7a13 13 0 0 1-5.7 5.7C54.1 46 50.5 46 43.2 46H20.8c-7.3 0-11 0-13.7-1.4a13 13 0 0 1-5.7-5.7C0 36.1 0 32.5 0 25.2v-4.4Z',
},
+ 72: {
+ none: 'M0 22.9517C0 14.9179 0 10.9009 1.56951 7.83241C2.95008 5.13326 5.153 2.93878 7.86254 1.56349C10.9429 0 14.9752 0 23.04 0H48.96C57.0248 0 61.0571 0 64.1375 1.56349C66.847 2.93878 69.0499 5.13326 70.4305 7.83241C72 10.9009 72 14.9179 72 22.9517V29.0483C72 37.0821 72 41.0991 70.4305 44.1676C69.0499 46.8667 66.847 49.0612 64.1375 50.4365C61.0571 52 57.0248 52 48.96 52H23.04C14.9752 52 10.9429 52 7.86254 50.4365C5.153 49.0612 2.95008 46.8667 1.56951 44.1676C0 41.0991 0 37.0821 0 29.0483V22.9517Z',
+ },
80: {
none: 'M0 25.6c0-9 0-13.4 1.7-16.9 1.6-3 4-5.4 7-7C12.2 0 16.7 0 25.6 0h28.8c9 0 13.4 0 16.9 1.7 3 1.6 5.4 4 7 7 1.7 3.5 1.7 8 1.7 16.9v6.8c0 9 0 13.4-1.7 16.9a16 16 0 0 1-7 7c-3.5 1.7-8 1.7-16.9 1.7H25.6c-9 0-13.4 0-16.9-1.7a16 16 0 0 1-7-7C0 45.8 0 41.3 0 32.4v-6.8Z',
},
diff --git a/packages/icon-view/src/components/super-ellipse/paths.ts b/packages/icon-view/src/components/super-ellipse/paths.ts
index 394a9c57b1..d9fff5f733 100644
--- a/packages/icon-view/src/components/super-ellipse/paths.ts
+++ b/packages/icon-view/src/components/super-ellipse/paths.ts
@@ -63,6 +63,17 @@ export const borderPaths = {
indicatorBottom:
'M53.1 3.3q.4.2.4.7c0 3.6 3 6.5 6.5 6.5q.5 0 .7.4 1.3 2.6 1.8 5.6a110 110 0 0 1 .7 23.7c-.1 2-2 3.3-4.2 3.3-8.6 0-15.5 7-15.5 15.5 0 2.1-1.4 4-3.3 4.2a120 120 0 0 1-23.7-.7c-8-1.2-13.8-7-15-15a110 110 0 0 1 0-31c1.2-8 7-13.8 15-15a110 110 0 0 1 31 0q3.1.5 5.6 1.8',
},
+ 72: {
+ none: 'M1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5C42.9892 0.5 48.8077 1.00016 53.4555 1.66539C62.3863 2.94362 69.0564 9.61369 70.3346 18.5445C70.9998 23.1923 71.5 29.0108 71.5 36C71.5 42.9892 70.9998 48.8077 70.3346 53.4555C69.0564 62.3863 62.3863 69.0564 53.4555 70.3346C48.8077 70.9998 42.9892 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445Z',
+ indicator:
+ 'M67 11.5C67.6145 11.5 68.1261 11.7505 68.3385 12.169C69.3228 14.1084 70.0063 16.251 70.3346 18.5445C70.9998 23.1923 71.5 29.0108 71.5 36C71.5 42.9892 70.9998 48.8077 70.3346 53.4555C69.0564 62.3863 62.3863 69.0564 53.4555 70.3346C48.8077 70.9998 42.9892 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5C42.9892 0.5 48.8077 1.00016 53.4555 1.66539C55.749 1.99366 57.8916 2.67719 59.831 3.66153C60.2495 3.87394 60.5 4.38548 60.5 5C60.5 8.58985 63.4101 11.5 67 11.5Z',
+ indicatorBottom:
+ 'M59.831 3.66153C60.2495 3.87394 60.5 4.38548 60.5 5C60.5 8.58985 63.4101 11.5 67 11.5C67.6145 11.5 68.1261 11.7505 68.3385 12.169C69.3228 14.1084 70.0063 16.251 70.3346 18.5445C70.9998 23.1923 71.5 29.0108 71.5 36C71.5 39.2503 71.3918 42.2473 71.2092 44.9911C71.1178 46.3643 70.3344 47.4811 69.17 48.27C68.0004 49.0623 66.475 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 66.475 49.0623 68.0004 48.27 69.17C47.4811 70.3344 46.3643 71.1178 44.9911 71.2092C42.2473 71.3918 39.2503 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5C42.9892 0.5 48.8077 1.00016 53.4555 1.66539C55.749 1.99366 57.8916 2.67719 59.831 3.66153Z',
+ topBottom:
+ 'M36 0.5C39.2503 0.5 42.2473 0.608166 44.9911 0.790792C46.3643 0.882188 47.4811 1.66554 48.27 2.83003C49.0623 3.99955 49.5 5.52501 49.5 7C49.5 15.5604 56.4396 22.5 65 22.5C66.475 22.5 68.0004 22.9377 69.17 23.73C70.3344 24.5189 71.1178 25.6357 71.2092 27.0089C71.3918 29.7527 71.5 32.7497 71.5 36C71.5 39.2503 71.3918 42.2473 71.2092 44.9911C71.1178 46.3643 70.3344 47.4811 69.17 48.27C68.0004 49.0623 66.475 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 66.475 49.0623 68.0004 48.27 69.17C47.4811 70.3344 46.3643 71.1178 44.9911 71.2092C42.2473 71.3918 39.2503 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5Z',
+ bottom: 'M1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5C42.9892 0.5 48.8077 1.00016 53.4555 1.66539C62.3863 2.94362 69.0564 9.61369 70.3346 18.5445C70.9998 23.1923 71.5 29.0108 71.5 36C71.5 39.2503 71.3918 42.2473 71.2092 44.9911C71.1178 46.3643 70.3344 47.4811 69.17 48.27C68.0004 49.0623 66.475 49.5 65 49.5C56.4396 49.5 49.5 56.4396 49.5 65C49.5 66.475 49.0623 68.0004 48.27 69.17C47.4811 70.3344 46.3643 71.1178 44.9911 71.2092C42.2473 71.3918 39.2503 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445Z',
+ top: 'M65 22.5C66.475 22.5 68.0004 22.9377 69.17 23.73C70.3344 24.5189 71.1178 25.6357 71.2092 27.0089C71.3918 29.7527 71.5 32.7497 71.5 36C71.5 42.9892 70.9998 48.8077 70.3346 53.4555C69.0564 62.3863 62.3863 69.0564 53.4555 70.3346C48.8077 70.9998 42.9892 71.5 36 71.5C29.0108 71.5 23.1923 70.9998 18.5445 70.3346C9.61369 69.0564 2.94362 62.3863 1.66539 53.4555C1.00016 48.8077 0.5 42.9892 0.5 36C0.5 29.0108 1.00016 23.1923 1.66539 18.5445C2.94362 9.61369 9.61369 2.94362 18.5445 1.66539C23.1923 1.00016 29.0108 0.5 36 0.5C39.2503 0.5 42.2473 0.608166 44.9911 0.790792C46.3643 0.882188 47.4811 1.66554 48.27 2.83003C49.0623 3.99955 49.5 5.52501 49.5 7C49.5 15.5604 56.4396 22.5 65 22.5Z',
+ },
80: {
top: 'M71 24.5q3 0 5.4 1.5t2.8 4a151 151 0 0 1-1 29.4 22 22 0 0 1-18.8 18.8 137 137 0 0 1-38.8 0A22 22 0 0 1 1.8 59.4a137 137 0 0 1 0-38.8c1.4-10 8.8-17.4 18.8-18.8A137 137 0 0 1 50 .8q2.5.3 4 2.8Q55.5 6 55.5 9c0 8.6 7 15.5 15.5 15.5',
none: 'M1.8 20.6c1.4-10 8.8-17.4 18.8-18.8a137 137 0 0 1 38.8 0c10 1.4 17.4 8.8 18.8 18.8a137 137 0 0 1 0 38.8 22 22 0 0 1-18.8 18.8 137 137 0 0 1-38.8 0A22 22 0 0 1 1.8 59.4a137 137 0 0 1 0-38.8',
@@ -148,6 +159,18 @@ export const shapePaths = {
indicatorBottom:
'M54 4q0-.8-.6-1.2-2.7-1.3-5.8-1.8a110 110 0 0 0-31.2 0A18 18 0 0 0 1 16.4a110 110 0 0 0 0 31.2A18 18 0 0 0 16.4 63a110 110 0 0 0 23.9.7c2.2-.1 3.7-2.4 3.7-4.7a15 15 0 0 1 15-15c2.3 0 4.6-1.5 4.7-3.7a121 121 0 0 0-.7-23.9q-.5-3-1.8-5.8-.5-.6-1.2-.6a6 6 0 0 1-6-6',
},
+
+ 72: {
+ none: 'M1.17043 18.4737C2.48014 9.32296 9.32296 2.48014 18.4737 1.17043C23.1447 0.501883 28.9868 0 36 0C43.0132 0 48.8553 0.501883 53.5263 1.17043C62.677 2.48014 69.5199 9.32296 70.8296 18.4737C71.4981 23.1447 72 28.9868 72 36C72 43.0132 71.4981 48.8553 70.8296 53.5263C69.5199 62.677 62.677 69.5199 53.5263 70.8296C48.8553 71.4981 43.0132 72 36 72C28.9868 72 23.1447 71.4981 18.4737 70.8296C9.32296 69.5199 2.48014 62.677 1.17043 53.5263C0.501883 48.8553 0 43.0132 0 36C0 28.9868 0.501884 23.1447 1.17043 18.4737Z',
+ indicator:
+ 'M68.7843 11.9427C68.4563 11.2964 67.7247 11 67 11C63.6863 11 61 8.31371 61 5C61 4.27528 60.7036 3.54367 60.0573 3.21567C58.0684 2.20623 55.8733 1.50634 53.5263 1.17043C48.8553 0.501883 43.0132 0 36 0C28.9868 0 23.1447 0.501883 18.4737 1.17043C9.32296 2.48014 2.48014 9.32296 1.17043 18.4737C0.501884 23.1447 0 28.9868 0 36C0 43.0132 0.501883 48.8553 1.17043 53.5263C2.48014 62.677 9.32296 69.5199 18.4737 70.8296C23.1447 71.4981 28.9868 72 36 72C43.0132 72 48.8553 71.4981 53.5263 70.8296C62.677 69.5199 69.5199 62.677 70.8296 53.5263C71.4981 48.8553 72 43.0132 72 36C72 28.9868 71.4981 23.1447 70.8296 18.4737C70.4936 16.1267 69.7938 13.9316 68.7843 11.9427Z',
+ indicatorBottom:
+ 'M61 5C61 4.27528 60.7036 3.54367 60.0573 3.21567C58.0684 2.20623 55.8733 1.50634 53.5263 1.17043C48.8553 0.501883 43.0132 0 36 0C28.9868 0 23.1447 0.501883 18.4737 1.17043C9.32296 2.48014 2.48014 9.32296 1.17043 18.4737C0.501884 23.1447 0 28.9868 0 36C0 43.0132 0.501883 48.8553 1.17043 53.5263C2.48014 62.677 9.32296 69.5199 18.4737 70.8296C23.1447 71.4981 28.9868 72 36 72C39.2614 72 42.2695 71.8915 45.0243 71.7081C48.149 71.5001 50 68.1316 50 65C50 56.7157 56.7157 50 65 50C68.1316 50 71.5001 48.149 71.7081 45.0243C71.8915 42.2695 72 39.2614 72 36C72 28.9868 71.4981 23.1447 70.8296 18.4737C70.4936 16.1267 69.7938 13.9316 68.7843 11.9427C68.4563 11.2964 67.7247 11 67 11C63.6863 11 61 8.31371 61 5Z',
+ topBottom:
+ 'M36 0C39.2614 0 42.2695 0.108536 45.0243 0.291896C48.149 0.499869 50 3.86842 50 7C50 15.2843 56.7157 22 65 22C68.1316 22 71.5001 23.851 71.7081 26.9756C71.8915 29.7305 72 32.7386 72 36C72 39.2614 71.8915 42.2695 71.7081 45.0243C71.5001 48.149 68.1316 50 65 50C56.7157 50 50 56.7157 50 65C50 68.1316 48.149 71.5001 45.0243 71.7081C42.2695 71.8915 39.2614 72 36 72C28.9868 72 23.1447 71.4981 18.4737 70.8296C9.32296 69.5199 2.48014 62.677 1.17043 53.5263C0.501883 48.8553 0 43.0132 0 36C0 28.9868 0.501884 23.1447 1.17043 18.4737C2.48014 9.32296 9.32296 2.48014 18.4737 1.17043C23.1447 0.501883 28.9868 0 36 0Z',
+ bottom: 'M18.4737 1.17043C9.32296 2.48014 2.48014 9.32296 1.17043 18.4737C0.501884 23.1447 0 28.9868 0 36C0 43.0132 0.501883 48.8553 1.17043 53.5263C2.48014 62.677 9.32296 69.5199 18.4737 70.8296C23.1447 71.4981 28.9868 72 36 72C39.2614 72 42.2695 71.8915 45.0243 71.7081C48.149 71.5001 50 68.1316 50 65C50 56.7157 56.7157 50 65 50C68.1316 50 71.5001 48.149 71.7081 45.0243C71.8915 42.2695 72 39.2614 72 36C72 28.9868 71.4981 23.1447 70.8296 18.4737C69.5199 9.32296 62.677 2.48014 53.5263 1.17043C48.8553 0.501883 43.0132 0 36 0C28.9868 0 23.1447 0.501883 18.4737 1.17043Z',
+ top: 'M71.7081 26.9757C71.5001 23.851 68.1316 22 65 22C56.7157 22 50 15.2843 50 7C50 3.86842 48.149 0.499869 45.0243 0.291896C42.2695 0.108536 39.2614 0 36 0C28.9868 0 23.1447 0.501883 18.4737 1.17043C9.32296 2.48014 2.48014 9.32296 1.17043 18.4737C0.501884 23.1447 0 28.9868 0 36C0 43.0132 0.501883 48.8553 1.17043 53.5263C2.48014 62.677 9.32296 69.5199 18.4737 70.8296C23.1447 71.4981 28.9868 72 36 72C43.0132 72 48.8553 71.4981 53.5263 70.8296C62.677 69.5199 69.5199 62.677 70.8296 53.5263C71.4981 48.8553 72 43.0132 72 36C72 32.7386 71.8915 29.7305 71.7081 26.9757Z',
+ },
80: {
top: 'M79.7 30c-.3-3.9-4.8-6-8.7-6A15 15 0 0 1 56 9c0-3.9-2.1-8.4-6-8.7a151 151 0 0 0-29.5 1A22 22 0 0 0 1.3 20.5a138 138 0 0 0 0 39c1.5 10.1 9 17.7 19.2 19.2a138 138 0 0 0 39 0c10.1-1.5 17.7-9 19.2-19.2a138 138 0 0 0 1-29.5',
bottom: 'M20.5 1.3A22 22 0 0 0 1.3 20.5a138 138 0 0 0 0 39c1.5 10.1 9 17.7 19.2 19.2a138 138 0 0 0 29.5 1c3.9-.3 6-4.8 6-8.7a15 15 0 0 1 15-15c3.9 0 8.4-2.1 8.7-6a151 151 0 0 0-1-29.5A22 22 0 0 0 59.5 1.3a138 138 0 0 0-39 0',
diff --git a/packages/icon-view/src/docs/Component.stories.tsx b/packages/icon-view/src/docs/Component.stories.tsx
index 87b184b744..582018f399 100644
--- a/packages/icon-view/src/docs/Component.stories.tsx
+++ b/packages/icon-view/src/docs/Component.stories.tsx
@@ -31,12 +31,20 @@ export const super_ellipse: Story = {
const indicator = boolean('indicator', false);
const size = select(
'size',
- ['16', '20', '24', '32', '40', '48', '56', '64', '80', '128'],
+ ['16', '20', '24', '32', '40', '48', '56', '64', '72', '80', '128'],
'64',
);
- const mainSize = select('mainSize', [16, 20, 24, 32, 40, 48, 56, 64, 80, 128], undefined);
+ const mainSize = select(
+ 'mainSize',
+ [16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 128],
+ undefined,
+ );
const sizeAddons =
- size === '128' ? '40' : size === '80' || size === '64' || size === '56' ? '24' : '20';
+ size === '128'
+ ? '40'
+ : size === '80' || size === '72' || size === '64' || size === '56'
+ ? '24'
+ : '20';
const backgroundColor = text('backgroundColor', '#f3f4f5');
const border = boolean('border', false);
const addonsIcon = (
@@ -84,12 +92,20 @@ export const circle: Story = {
const indicator = boolean('indicator', false);
const size = select(
'size',
- ['16', '20', '24', '32', '40', '48', '56', '64', '80', '128'],
+ ['16', '20', '24', '32', '40', '48', '56', '64', '72', '80', '128'],
'64',
);
- const mainSize = select('mainSize', [16, 20, 24, 32, 40, 48, 56, 64, 80, 128], undefined);
+ const mainSize = select(
+ 'mainSize',
+ [16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 128],
+ undefined,
+ );
const sizeAddons =
- size === '128' ? '40' : size === '80' || size === '64' || size === '56' ? '24' : '20';
+ size === '128'
+ ? '40'
+ : size === '80' || size === '72' || size === '64' || size === '56'
+ ? '24'
+ : '20';
const addonsIcon = (
{size === '20' ? : }
@@ -122,8 +138,16 @@ export const circle: Story = {
export const rectangle: Story = {
name: 'Rectangle',
render: () => {
- const size = select('size', ['20', '24', '32', '40', '48', '56', '64', '80', '128'], '64');
- const mainSize = select('mainSize', [16, 20, 24, 32, 40, 48, 56, 64, 80, 128], undefined);
+ const size = select(
+ 'size',
+ ['20', '24', '32', '40', '48', '56', '64', '72', '80', '128'],
+ '64',
+ );
+ const mainSize = select(
+ 'mainSize',
+ [16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 128],
+ undefined,
+ );
const backgroundColor = text('backgroundColor', '#f3f4f5');
const border = boolean('border', false);
return (
@@ -152,10 +176,14 @@ export const no_shape: Story = {
render: () => {
const size = select(
'size',
- ['16', '20', '24', '32', '40', '48', '56', '64', '80', '128'],
+ ['16', '20', '24', '32', '40', '48', '56', '64', '72', '80', '128'],
'64',
);
- const mainSize = select('mainSize', [16, 20, 24, 32, 40, 48, 56, 64, 80, 128], undefined);
+ const mainSize = select(
+ 'mainSize',
+ [16, 20, 24, 32, 40, 48, 56, 64, 72, 80, 128],
+ undefined,
+ );
const backgroundColor = text('backgroundColor', '#f3f4f5');
return (
{
- const SIZES = ['128', '80', '64', '56', '48', '40', '32', '24', '20', '16'];
+ const SIZES = ['128', '80', '72', '64', '56', '48', '40', '32', '24', '20', '16'];
const [component, setComponent] = React.useState('SuperEllipse');
const Component = {
@@ -34,6 +34,7 @@ render(() => {
48: 40,
56: 48,
64: 56,
+ 72: 56,
80: 64,
128: 80,
};
@@ -286,16 +287,16 @@ render(() => {
## Слоты
-В зависимости от размера, компонент поддерживает один или несколько слотов.
-Контент можно расположить в центральном слоте или в верхнем и нижнем аддоне.
+В зависимости от размера, компонент поддерживает один или несколько слотов.
+Контент можно расположить в центральном слоте или в верхнем и нижнем аддоне.
-В центральном слоте допустимо располагать иконки. Размер центрального слота можно настроить.
-Допустимо использовать размеры слота, не превышающие размеры самого компонента.
-Для каждого размера компонента есть рекомендуемый размер слота.
+В центральном слоте допустимо располагать иконки. Размер центрального слота можно настроить.
+Допустимо использовать размеры слота, не превышающие размеры самого компонента.
+Для каждого размера компонента есть рекомендуемый размер слота.
-В верхнем аддоне допустимо располагать индикатор и другие IconView соответствующего размера,
-в нижнем аддоне только IconView соответствующего размера.
-Размер компонента определяет размер аддонов и, соответственно, размеры контента, который можно в них поместить.
+В верхнем аддоне допустимо располагать индикатор и другие IconView соответствующего размера,
+в нижнем аддоне только IconView соответствующего размера.
+Размер компонента определяет размер аддонов и, соответственно, размеры контента, который можно в них поместить.
Для шейпов `rectangle` и `noShape` верхний и нижний аддоны недоступны.
```jsx live
@@ -327,8 +328,8 @@ render(() => {
icon: ,
emoji: ,
noContent: null,
- }[content];
-
+ }[content];
+
const topAddonsView = {
indicator,
iconView,
diff --git a/packages/indicator/CHANGELOG.md b/packages/indicator/CHANGELOG.md
index 7b33d5f545..396c98e693 100644
--- a/packages/indicator/CHANGELOG.md
+++ b/packages/indicator/CHANGELOG.md
@@ -1,5 +1,15 @@
# @alfalab/core-components-indicator
+## 2.2.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 2.2.1
### Patch Changes
diff --git a/packages/indicator/package.json b/packages/indicator/package.json
index eb5f2cf4a4..01ee1e30ef 100644
--- a/packages/indicator/package.json
+++ b/packages/indicator/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-indicator",
- "version": "2.2.1",
+ "version": "2.2.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1"
+ "classnames": "^2.5.1"
},
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
diff --git a/packages/input-autocomplete/CHANGELOG.md b/packages/input-autocomplete/CHANGELOG.md
index 21c08bb800..d52f6dd820 100644
--- a/packages/input-autocomplete/CHANGELOG.md
+++ b/packages/input-autocomplete/CHANGELOG.md
@@ -1,5 +1,41 @@
# Change Log
+## 12.6.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1477](https://github.com/core-ds/core-components/pull/1477)
+
+- Замена использование lodash на коммон пакет
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - form-control@12.7.3
+ - input@15.3.4
+ - popover@6.3.4
+ - select@17.18.0
+
+## 12.6.7
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - input@15.3.3
+ - select@17.17.5
+
## 12.6.6
### Patch Changes
diff --git a/packages/input-autocomplete/package.json b/packages/input-autocomplete/package.json
index 7a2ff820fe..61803dff82 100644
--- a/packages/input-autocomplete/package.json
+++ b/packages/input-autocomplete/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-input-autocomplete",
- "version": "12.6.6",
+ "version": "12.6.8",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,25 +10,25 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-form-control": "^12.7.2",
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/core-components-select": "^17.17.4",
+ "@alfalab/core-components-form-control": "^12.7.3",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/core-components-select": "^17.18.0",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "@types/lodash.throttle": "^4.1.7",
- "classnames": "^2.3.1",
- "lodash.throttle": "^4.1.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
+ "lodash": "^4.17.21",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
"devDependencies": {
- "@types/lodash.throttle": "^4.1.7"
+ "@types/lodash": "^4.17.13"
},
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
diff --git a/packages/input-autocomplete/src/mobile/Component.mobile.tsx b/packages/input-autocomplete/src/mobile/Component.mobile.tsx
index 290d2a2ec0..f2ab632956 100644
--- a/packages/input-autocomplete/src/mobile/Component.mobile.tsx
+++ b/packages/input-autocomplete/src/mobile/Component.mobile.tsx
@@ -1,7 +1,7 @@
import React, { Ref, useMemo, useRef, useState } from 'react';
import mergeRefs from 'react-merge-refs';
import cn from 'classnames';
-import throttle from 'lodash.throttle';
+import throttle from 'lodash/throttle';
import {
SelectMobile,
diff --git a/packages/input/CHANGELOG.md b/packages/input/CHANGELOG.md
index 2bd8b33472..cb9df86adf 100644
--- a/packages/input/CHANGELOG.md
+++ b/packages/input/CHANGELOG.md
@@ -1,5 +1,39 @@
# Change Log
+## 15.3.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1488](https://github.com/core-ds/core-components/pull/1488)
+
+- Фикс вызова input.setSelectionRange
+
+- Обновлены зависимости
+ - button@11.11.1
+ - form-control@12.7.3
+ - status-badge@1.2.1
+
+## 15.3.3
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 15.3.2
### Patch Changes
diff --git a/packages/input/package.json b/packages/input/package.json
index 9abbba65ac..732f7eae60 100644
--- a/packages/input/package.json
+++ b/packages/input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-input",
- "version": "15.3.2",
+ "version": "15.3.4",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,18 +10,19 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-form-control": "^12.7.2",
- "@alfalab/core-components-status-badge": "^1.2.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-form-control": "^12.7.3",
+ "@alfalab/core-components-status-badge": "^1.2.1",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/input/src/components/base-input/Component.tsx b/packages/input/src/components/base-input/Component.tsx
index 23e243dd8d..5415a1fe69 100644
--- a/packages/input/src/components/base-input/Component.tsx
+++ b/packages/input/src/components/base-input/Component.tsx
@@ -221,6 +221,8 @@ const SIZE_TO_CLASSNAME_MAP = {
72: 'size-72',
};
+const inputTypesForSelectionRange = ['password', 'search', 'tel', 'text', 'url'];
+
export const BaseInput = React.forwardRef(
(
{
@@ -284,14 +286,19 @@ export const BaseInput = React.forwardRef(
const hasInnerLabel = label && labelView === 'inner';
useLayoutEffect_SAFE_FOR_SSR(() => {
- // https://github.com/facebook/react/issues/14125
- if (restProps.autoFocus) {
- const input = inputRef.current;
-
- if (input) {
- input.setSelectionRange(input.value.length, input.value.length);
- }
+ const input = inputRef.current;
+
+ if (
+ !restProps.autoFocus ||
+ !input ||
+ // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
+ !inputTypesForSelectionRange.includes(input.type)
+ ) {
+ return;
}
+
+ // https://github.com/facebook/react/issues/14125
+ input.setSelectionRange(input.value.length, input.value.length);
}, []);
const handleInputFocus = useCallback(
diff --git a/packages/input/src/docs/description.mdx b/packages/input/src/docs/description.mdx
index 55f58bdffc..1c93e9d5c8 100644
--- a/packages/input/src/docs/description.mdx
+++ b/packages/input/src/docs/description.mdx
@@ -1,28 +1,28 @@
## Размеры
-Основным типом инпутов в десктопном вебе являются инпуты размера M с внутренним расположением лейбла.
+Основным типом инпутов в десктопном вебе являются инпуты размера M с внутренним расположением лейбла.
Для мобильного веба рекомендуемый размер S с внешним расположением лейбла.
```jsx live
-
-
-
-
-
+
+
+
+
+
```
## Валидация
@@ -36,14 +36,15 @@ render(() => {
return (
-
+ breakpoint={BREAKPOINT}
+ error={error}
+ />
setError(false)}>
@@ -70,14 +71,14 @@ render(() => {
return (
-
@@ -140,20 +141,19 @@ render(() => {
open={open}
targetClassName='target'
content={
-
- {`Сообщение тултипа\nотображается при\n${isMobile() ? 'клике' : 'наведении'}`}
+
+ {`Сообщение тултипа\nотображается при\n${
+ isMobile() ? 'клике' : 'наведении'
+ }`}
}
onOpen={() => setOpen(true)}
onClose={() => setOpen(false)}
position='right'
>
-
+
+
+
}
/>
@@ -206,11 +206,7 @@ render(() => {
breakpoint={BREAKPOINT}
success={success}
error={hasError}
- rightAddons={
- hasError ? (
-
- ) : undefined
- }
+ rightAddons={hasError ? : undefined}
/>
);
diff --git a/packages/international-phone-input/CHANGELOG.md b/packages/international-phone-input/CHANGELOG.md
index b9b7e71490..1396e0b910 100644
--- a/packages/international-phone-input/CHANGELOG.md
+++ b/packages/international-phone-input/CHANGELOG.md
@@ -1,5 +1,35 @@
# @alfalab/core-components-international-phone-input
+## 2.5.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input-autocomplete@12.6.8
+ - input@15.3.4
+ - select@17.18.0
+
+## 2.5.5
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - input@15.3.3
+ - input-autocomplete@12.6.7
+ - select@17.17.5
+
## 2.5.4
### Patch Changes
diff --git a/packages/international-phone-input/package.json b/packages/international-phone-input/package.json
index 2d107c8073..25ed735119 100644
--- a/packages/international-phone-input/package.json
+++ b/packages/international-phone-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-international-phone-input",
- "version": "2.5.4",
+ "version": "2.5.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,20 +10,21 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input-autocomplete": "12.6.6",
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-select": "^17.17.4",
+ "@alfalab/core-components-input-autocomplete": "12.6.8",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-select": "^17.18.0",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
"@maskito/core": "^1.7.0",
"@maskito/react": "^1.7.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/intl-phone-input/CHANGELOG.md b/packages/intl-phone-input/CHANGELOG.md
index 778504a04f..aa99bbb48d 100644
--- a/packages/intl-phone-input/CHANGELOG.md
+++ b/packages/intl-phone-input/CHANGELOG.md
@@ -1,5 +1,33 @@
# Change Log
+## 9.11.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input-autocomplete@12.6.8
+ - select@17.18.0
+
+## 9.11.7
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - input-autocomplete@12.6.7
+ - select@17.17.5
+
## 9.11.6
### Patch Changes
diff --git a/packages/intl-phone-input/package.json b/packages/intl-phone-input/package.json
index 1cd20a7205..d739eeb0f2 100644
--- a/packages/intl-phone-input/package.json
+++ b/packages/intl-phone-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-intl-phone-input",
- "version": "9.11.6",
+ "version": "9.11.8",
"description": "Phone input for international phones",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input-autocomplete": "12.6.6",
- "@alfalab/core-components-select": "^17.17.4",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-input-autocomplete": "12.6.8",
+ "@alfalab/core-components-select": "^17.18.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"libphonenumber-js": "^1.10.30",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
diff --git a/packages/keyboard-focusable/package.json b/packages/keyboard-focusable/package.json
index d4aef70392..afbf8ecbcf 100644
--- a/packages/keyboard-focusable/package.json
+++ b/packages/keyboard-focusable/package.json
@@ -11,11 +11,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/link/CHANGELOG.md b/packages/link/CHANGELOG.md
index 7eb1f8d081..2b557add5f 100644
--- a/packages/link/CHANGELOG.md
+++ b/packages/link/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 5.3.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 5.3.1
### Patch Changes
diff --git a/packages/link/package.json b/packages/link/package.json
index ae145f3b36..d3d9f5dd19 100644
--- a/packages/link/package.json
+++ b/packages/link/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-link",
- "version": "5.3.1",
+ "version": "5.3.2",
"description": "Link component",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/list-header/CHANGELOG.md b/packages/list-header/CHANGELOG.md
index 526b080594..a6380d99ba 100644
--- a/packages/list-header/CHANGELOG.md
+++ b/packages/list-header/CHANGELOG.md
@@ -1,5 +1,24 @@
# Change Log
+## 3.3.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 3.3.4
### Patch Changes
diff --git a/packages/list-header/package.json b/packages/list-header/package.json
index 637a57bb99..58cc99ca67 100644
--- a/packages/list-header/package.json
+++ b/packages/list-header/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-list-header",
- "version": "3.3.4",
+ "version": "3.3.5",
"description": "ListHeader component",
"keywords": [],
"license": "MIT",
@@ -10,9 +10,10 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"peerDependencies": {
diff --git a/packages/list-header/src/Component.tsx b/packages/list-header/src/Component.tsx
index 60986af577..1934b5db83 100644
--- a/packages/list-header/src/Component.tsx
+++ b/packages/list-header/src/Component.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import styles from './index.module.css';
@@ -43,11 +43,11 @@ export const ListHeader: React.FC = ({
data-test-id={dataTestId}
className={cn(styles.component, { [styles.filled]: filled }, className)}
>
- {title}
+ {title}
{description && (
-
+
{`, ${description}`}
-
+
)}
);
diff --git a/packages/list/CHANGELOG.md b/packages/list/CHANGELOG.md
index e3bae1db45..57ab2264bd 100644
--- a/packages/list/CHANGELOG.md
+++ b/packages/list/CHANGELOG.md
@@ -1,5 +1,30 @@
# Change Log
+## 3.4.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 3.4.4
### Patch Changes
diff --git a/packages/list/package.json b/packages/list/package.json
index 5953d942af..eb6b12c762 100644
--- a/packages/list/package.json
+++ b/packages/list/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-list",
- "version": "3.4.4",
+ "version": "3.4.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/list/src/components/item/Component.tsx b/packages/list/src/components/item/Component.tsx
index 87e1fb84f2..e748000aca 100644
--- a/packages/list/src/components/item/Component.tsx
+++ b/packages/list/src/components/item/Component.tsx
@@ -1,7 +1,7 @@
import React, { ReactNode, useContext } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { ListContext } from '../../Component';
@@ -44,7 +44,7 @@ export const Item: React.FC = ({ caption, children }) => {
return (
{!markerLowerAlpha && (
- = ({ caption, children }) => {
})}
>
{marker}
-
+
)}
-
+
{children}
-
+
{caption && (
-
{caption}
-
+
)}
diff --git a/packages/loader/CHANGELOG.md b/packages/loader/CHANGELOG.md
index 334bba38ca..d586cb3830 100644
--- a/packages/loader/CHANGELOG.md
+++ b/packages/loader/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 3.2.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 3.2.1
### Patch Changes
diff --git a/packages/loader/package.json b/packages/loader/package.json
index 59b29a4110..28f34a0f3e 100644
--- a/packages/loader/package.json
+++ b/packages/loader/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-loader",
- "version": "3.2.1",
+ "version": "3.2.2",
"description": "Loader component",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/markdown/CHANGELOG.md b/packages/markdown/CHANGELOG.md
index 1661bbd83e..ad9a483aad 100644
--- a/packages/markdown/CHANGELOG.md
+++ b/packages/markdown/CHANGELOG.md
@@ -1,5 +1,36 @@
# @alfalab/core-components-markdown
+## 1.6.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - link@5.3.2
+ - list@3.4.5
+ - typography@4.11.1
+
+## 1.6.4
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
## 1.6.3
### Patch Changes
diff --git a/packages/markdown/package.json b/packages/markdown/package.json
index d5914d8f75..b0e5b5a6aa 100644
--- a/packages/markdown/package.json
+++ b/packages/markdown/package.json
@@ -1,7 +1,7 @@
{
"name": "@alfalab/core-components-markdown",
"description": "",
- "version": "1.6.3",
+ "version": "1.6.5",
"main": "index.js",
"license": "MIT",
"publishConfig": {
@@ -9,18 +9,19 @@
"directory": "dist"
},
"module": "./esm/index.js",
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "@alfalab/core-components-list": "^3.4.4",
- "@alfalab/core-components-link": "^5.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "@alfalab/core-components-list": "^3.4.5",
+ "@alfalab/core-components-link": "^5.3.2",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
"tslib": "^2.4.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"mdast-util-gfm-strikethrough": "^0.2.3",
"micromark-extension-gfm-strikethrough": "^0.6.5",
"react-markdown": "6.0.2"
diff --git a/packages/markdown/src/hooks/use-overrides.tsx b/packages/markdown/src/hooks/use-overrides.tsx
index 9bceb64c30..425343531e 100644
--- a/packages/markdown/src/hooks/use-overrides.tsx
+++ b/packages/markdown/src/hooks/use-overrides.tsx
@@ -3,7 +3,7 @@ import cn from 'classnames';
import { Link } from '@alfalab/core-components-link';
import { List } from '@alfalab/core-components-list';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text, TitleDesktop, TitleMobile } from '@alfalab/core-components-typography';
import { FontType, OverridesComponents, PlatformType } from '../typings';
@@ -11,8 +11,7 @@ import styles from '../index.module.css';
export const useOverrides = (platform?: PlatformType, font?: FontType): OverridesComponents =>
useMemo(() => {
- const titleName = platform === 'desktop' ? 'Title' : 'TitleMobile';
- const Title = Typography[titleName];
+ const Title = platform === 'desktop' ? TitleDesktop : TitleMobile;
return {
h1: (props) => (
@@ -60,19 +59,19 @@ export const useOverrides = (platform?: PlatformType, font?: FontType): Override
),
p: (props) => (
-
+
{props.children}
-
+
),
blockquote: (props) => (
-
{props.children}
-
+
),
a: (props) => (
),
code: (props) => (
-
{props.children}
-
+
),
img: (props) => (
@@ -114,9 +113,9 @@ export const useOverrides = (platform?: PlatformType, font?: FontType): Override
),
li: (props) => (
-
+
{props.children}
-
+
),
};
}, [font, platform]);
diff --git a/packages/masked-input/CHANGELOG.md b/packages/masked-input/CHANGELOG.md
index f2552c9df7..05a37f86fa 100644
--- a/packages/masked-input/CHANGELOG.md
+++ b/packages/masked-input/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 6.3.29
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input@15.3.4
+
+## 6.3.28
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 6.3.27
### Patch Changes
diff --git a/packages/masked-input/package.json b/packages/masked-input/package.json
index 21d06084c3..e159db72e2 100644
--- a/packages/masked-input/package.json
+++ b/packages/masked-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-masked-input",
- "version": "6.3.27",
+ "version": "6.3.29",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-input": "^15.3.4",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"text-mask-core": "^5.1.2",
"tslib": "^2.4.0"
diff --git a/packages/modal/CHANGELOG.md b/packages/modal/CHANGELOG.md
index 3b767c6270..98f627de91 100644
--- a/packages/modal/CHANGELOG.md
+++ b/packages/modal/CHANGELOG.md
@@ -1,5 +1,33 @@
# Change Log
+## 9.8.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - base-modal@5.8.6
+ - navigation-bar-private@0.5.5
+
+## 9.8.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - base-modal@5.8.5
+ - navigation-bar-private@0.5.4
+
## 9.8.4
### Patch Changes
diff --git a/packages/modal/package.json b/packages/modal/package.json
index 94a15cd425..11c964b86a 100644
--- a/packages/modal/package.json
+++ b/packages/modal/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-modal",
- "version": "9.8.4",
+ "version": "9.8.6",
"description": "Modal component",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-navigation-bar-private": "^0.5.3",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-navigation-bar-private": "^0.5.5",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-mq": "^4.4.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/mq/package.json b/packages/mq/package.json
index 8e2d97fcb5..fb84ab5963 100644
--- a/packages/mq/package.json
+++ b/packages/mq/package.json
@@ -10,12 +10,14 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"@alfalab/core-config": "^1.0.0",
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
+ "@alfalab/core-config": "^1.0.0",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/navigation-bar-private/CHANGELOG.md b/packages/navigation-bar-private/CHANGELOG.md
index ad7b2f86dd..297589f98a 100644
--- a/packages/navigation-bar-private/CHANGELOG.md
+++ b/packages/navigation-bar-private/CHANGELOG.md
@@ -1,5 +1,34 @@
# @alfalab/core-components-navigation-bar-private
+## 0.5.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - button@11.11.1
+ - icon-button@6.11.4
+ - typography@4.11.1
+
+## 0.5.4
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+ - icon-button@6.11.3
+
## 0.5.3
### Patch Changes
diff --git a/packages/navigation-bar-private/package.json b/packages/navigation-bar-private/package.json
index a2e4168c6b..61e7e58ab2 100644
--- a/packages/navigation-bar-private/package.json
+++ b/packages/navigation-bar-private/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-navigation-bar-private",
- "version": "0.5.3",
+ "version": "0.5.5",
"description": "Navigation bar private component",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"dependencies": {
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-typography": "^4.11.0",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-typography": "^4.11.1",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/navigation-bar-private/src/components/back-arrow-addon/Component.tsx b/packages/navigation-bar-private/src/components/back-arrow-addon/Component.tsx
index 7b5c605657..e899aaa749 100644
--- a/packages/navigation-bar-private/src/components/back-arrow-addon/Component.tsx
+++ b/packages/navigation-bar-private/src/components/back-arrow-addon/Component.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import cn from 'classnames';
import { ButtonDesktop } from '@alfalab/core-components-button/desktop';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { ArrowLeftMediumMIcon } from '@alfalab/icons-glyph/ArrowLeftMediumMIcon';
import { ArrowLeftMIcon } from '@alfalab/icons-glyph/ArrowLeftMIcon';
@@ -64,14 +64,14 @@ export const BackArrowAddon: React.FC = ({
{textOpacity > 0 && text && (
-
{text}
-
+
)}
diff --git a/packages/navigation-bar/CHANGELOG.md b/packages/navigation-bar/CHANGELOG.md
index 866afba9f4..2c9f75bccb 100644
--- a/packages/navigation-bar/CHANGELOG.md
+++ b/packages/navigation-bar/CHANGELOG.md
@@ -1,5 +1,38 @@
# Change Log
+## 1.2.11
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - button@11.11.1
+ - typography@4.11.1
+
+## 1.2.10
+
+### Patch Changes
+
+
10.12.2024
+
+### [#1439](https://github.com/core-ds/core-components/pull/1439)
+
+``Исправлено выравнивание`title` при отсутствии аддона слева
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 1.2.9
### Patch Changes
diff --git a/packages/navigation-bar/package.json b/packages/navigation-bar/package.json
index ae7d303fa4..02e170b547 100644
--- a/packages/navigation-bar/package.json
+++ b/packages/navigation-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-navigation-bar",
- "version": "1.2.9",
+ "version": "1.2.11",
"description": "NavigationBar",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-typography": "^4.11.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-typography": "^4.11.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/navigation-bar/src/Component.tsx b/packages/navigation-bar/src/Component.tsx
index f8fb6d23c5..fd7c1464a3 100644
--- a/packages/navigation-bar/src/Component.tsx
+++ b/packages/navigation-bar/src/Component.tsx
@@ -121,25 +121,23 @@ export const NavigationBar = forwardRef
(
const rightAddonsRef = useRef(null);
const hasLeftAddons = leftAddons && align !== 'left';
+ // добавляет отступ для того чтобы title находился по центру не зависимо от ширины аддонов
useEffect(() => {
- if (hasLeftAddons) {
- const leftAddonsWidth = leftAddonsRef.current?.offsetWidth || 0;
- const rightAddonsWidth = rightAddonsRef.current?.offsetWidth || 0;
+ const leftAddonsWidth = leftAddonsRef.current?.offsetWidth || 0;
+ const rightAddonsWidth = rightAddonsRef.current?.offsetWidth || 0;
- const marginSize = Math.abs(rightAddonsWidth - leftAddonsWidth);
- const shouldAddLeftMargin = rightAddonsWidth - leftAddonsWidth > 0;
+ const marginSize = Math.abs(rightAddonsWidth - leftAddonsWidth);
+ const shouldAddLeftMargin = rightAddonsWidth - leftAddonsWidth > 0;
- setTitleMargin((prev) => {
- const newState = shouldAddLeftMargin
- ? { left: marginSize, right: 0 }
- : { left: 0, right: marginSize };
+ setTitleMargin((prev) => {
+ const newState = shouldAddLeftMargin
+ ? { left: marginSize, right: 0 }
+ : { left: 0, right: marginSize };
- const isStateChanged =
- prev.left !== newState.left || prev.right !== newState.right;
+ const isStateChanged = prev.left !== newState.left || prev.right !== newState.right;
- return isStateChanged ? newState : prev;
- });
- }
+ return isStateChanged ? newState : prev;
+ });
}, [hasLeftAddons, leftAddons, rightAddons]);
return (
diff --git a/packages/navigation-bar/src/components/action-text-addon/Component.tsx b/packages/navigation-bar/src/components/action-text-addon/Component.tsx
index 345fd3171a..88d59b82af 100644
--- a/packages/navigation-bar/src/components/action-text-addon/Component.tsx
+++ b/packages/navigation-bar/src/components/action-text-addon/Component.tsx
@@ -2,7 +2,7 @@ import React from 'react';
import cn from 'classnames';
import { ButtonDesktop } from '@alfalab/core-components-button/desktop';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import styles from './index.module.css';
@@ -50,12 +50,12 @@ export const ActionTextAddon: React.FC = ({
dataTestId={dataTestId}
{...htmlAttributes}
>
-
{text}
-
+
);
diff --git a/packages/notification-manager/CHANGELOG.md b/packages/notification-manager/CHANGELOG.md
index 4813db6af8..f71daaf5da 100644
--- a/packages/notification-manager/CHANGELOG.md
+++ b/packages/notification-manager/CHANGELOG.md
@@ -1,5 +1,26 @@
# Change Log
+## 5.8.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - notification@7.5.4
+ - stack@5.0.1
+
+## 5.8.3
+
+### Patch Changes
+
+- Обновлены зависимости
+ - notification@7.5.3
+
## 5.8.2
### Patch Changes
diff --git a/packages/notification-manager/package.json b/packages/notification-manager/package.json
index 8cfe7ee693..0a3a4f4153 100644
--- a/packages/notification-manager/package.json
+++ b/packages/notification-manager/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-notification-manager",
- "version": "5.8.2",
+ "version": "5.8.4",
"description": "Notification manager",
"keywords": [],
"license": "MIT",
@@ -14,10 +14,10 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-notification": "^7.5.2",
+ "@alfalab/core-components-notification": "^7.5.4",
"@alfalab/core-components-portal": "^3.3.4",
- "@alfalab/core-components-stack": "^5.0.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-stack": "^5.0.1",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},
diff --git a/packages/notification/CHANGELOG.md b/packages/notification/CHANGELOG.md
index 2b51781a4b..51a68142f0 100644
--- a/packages/notification/CHANGELOG.md
+++ b/packages/notification/CHANGELOG.md
@@ -1,5 +1,26 @@
# Change Log
+## 7.5.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - toast-plate@7.3.5
+ - stack@5.0.1
+
+## 7.5.3
+
+### Patch Changes
+
+- Обновлены зависимости
+ - toast-plate@7.3.4
+
## 7.5.2
### Patch Changes
diff --git a/packages/notification/package.json b/packages/notification/package.json
index 028db5e2e8..a0254fec6c 100644
--- a/packages/notification/package.json
+++ b/packages/notification/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-notification",
- "version": "7.5.2",
+ "version": "7.5.4",
"description": "",
"keywords": [],
"license": "MIT",
@@ -16,9 +16,9 @@
"dependencies": {
"@alfalab/core-components-portal": "^3.3.4",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/core-components-stack": "^5.0.0",
- "@alfalab/core-components-toast-plate": "^7.3.3",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-stack": "^5.0.1",
+ "@alfalab/core-components-toast-plate": "^7.3.5",
+ "classnames": "^2.5.1",
"element-closest": "^3.0.2",
"react-merge-refs": "^1.1.0",
"react-swipeable": "^7.0.0",
diff --git a/packages/number-input/CHANGELOG.md b/packages/number-input/CHANGELOG.md
index 3b76e209f8..413f2476d8 100644
--- a/packages/number-input/CHANGELOG.md
+++ b/packages/number-input/CHANGELOG.md
@@ -1,5 +1,27 @@
# @alfalab/core-components-number-input
+## 2.5.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - icon-button@6.11.4
+ - input@15.3.4
+
+## 2.5.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+ - icon-button@6.11.3
+
## 2.5.4
### Patch Changes
diff --git a/packages/number-input/package.json b/packages/number-input/package.json
index cc1bb2367e..62534ae1b8 100644
--- a/packages/number-input/package.json
+++ b/packages/number-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-number-input",
- "version": "2.5.4",
+ "version": "2.5.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -14,14 +14,14 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-input": "^15.3.4",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-icon-button": "^6.11.2",
+ "@alfalab/core-components-icon-button": "^6.11.4",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/icons-glyph": "^2.189.0",
"@maskito/core": "^1.7.0",
"@maskito/react": "^1.7.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/pagination/CHANGELOG.md b/packages/pagination/CHANGELOG.md
index f3c8ce6171..f7331ac46b 100644
--- a/packages/pagination/CHANGELOG.md
+++ b/packages/pagination/CHANGELOG.md
@@ -1,5 +1,18 @@
# Change Log
+## 2.4.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - tag@8.6.3
+
## 2.4.5
### Patch Changes
diff --git a/packages/pagination/package.json b/packages/pagination/package.json
index 1ed62c8287..c955edfe5c 100644
--- a/packages/pagination/package.json
+++ b/packages/pagination/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pagination",
- "version": "2.4.5",
+ "version": "2.4.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,9 +15,9 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-tag": "^8.6.2",
+ "@alfalab/core-components-tag": "^8.6.3",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/pass-code-v1/CHANGELOG.md b/packages/pass-code-v1/CHANGELOG.md
index df65bcd188..26c384d111 100644
--- a/packages/pass-code-v1/CHANGELOG.md
+++ b/packages/pass-code-v1/CHANGELOG.md
@@ -1,5 +1,26 @@
# @alfalab/core-components-pass-code-v1
+## 1.1.9
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - gap@1.4.1
+
+## 1.1.8
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 1.1.7
### Patch Changes
diff --git a/packages/pass-code-v1/package.json b/packages/pass-code-v1/package.json
index 694f6f5afe..8c3316fb03 100644
--- a/packages/pass-code-v1/package.json
+++ b/packages/pass-code-v1/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pass-code-v1",
- "version": "1.1.7",
+ "version": "1.1.9",
"description": "Pass code v1 (deprecated)",
"keywords": [],
"license": "MIT",
@@ -15,11 +15,11 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-gap": "^1.4.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-gap": "^1.4.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0"
},
diff --git a/packages/pass-code/CHANGELOG.md b/packages/pass-code/CHANGELOG.md
index 3edae007ec..465b0e23a0 100644
--- a/packages/pass-code/CHANGELOG.md
+++ b/packages/pass-code/CHANGELOG.md
@@ -1,5 +1,26 @@
# @alfalab/core-components-pass-code
+## 2.4.9
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - gap@1.4.1
+
+## 2.4.8
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 2.4.7
### Patch Changes
diff --git a/packages/pass-code/package.json b/packages/pass-code/package.json
index bb6e118d79..56c3db4809 100644
--- a/packages/pass-code/package.json
+++ b/packages/pass-code/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pass-code",
- "version": "2.4.7",
+ "version": "2.4.9",
"description": "Pass code",
"keywords": [],
"license": "MIT",
@@ -15,11 +15,11 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-gap": "^1.4.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-gap": "^1.4.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0",
"@alfalab/core-components-mq": "^4.4.0"
diff --git a/packages/password-input/CHANGELOG.md b/packages/password-input/CHANGELOG.md
index 8a48d403e2..366a64171f 100644
--- a/packages/password-input/CHANGELOG.md
+++ b/packages/password-input/CHANGELOG.md
@@ -1,5 +1,27 @@
# Change Log
+## 5.6.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - icon-button@6.11.4
+ - input@15.3.4
+
+## 5.6.4
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+ - icon-button@6.11.3
+
## 5.6.3
### Patch Changes
diff --git a/packages/password-input/package.json b/packages/password-input/package.json
index 97e2bcadda..2dde10edd0 100644
--- a/packages/password-input/package.json
+++ b/packages/password-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-password-input",
- "version": "5.6.3",
+ "version": "5.6.5",
"description": "Input password",
"keywords": [],
"license": "MIT",
@@ -15,10 +15,10 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-input": "^15.3.4",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/pattern-lock-v1/CHANGELOG.md b/packages/pattern-lock-v1/CHANGELOG.md
index 09ec084370..c18867874c 100644
--- a/packages/pattern-lock-v1/CHANGELOG.md
+++ b/packages/pattern-lock-v1/CHANGELOG.md
@@ -1,5 +1,25 @@
# @alfalab/core-components-pattern-lock-v1
+## 1.1.9
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+
+## 1.1.8
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 1.1.7
### Patch Changes
diff --git a/packages/pattern-lock-v1/package.json b/packages/pattern-lock-v1/package.json
index e5691d1cff..4f9c61fda1 100644
--- a/packages/pattern-lock-v1/package.json
+++ b/packages/pattern-lock-v1/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pattern-lock-v1",
- "version": "1.1.7",
+ "version": "1.1.9",
"description": "Pattern lock v1 (deprecated)",
"keywords": [],
"license": "MIT",
@@ -15,11 +15,11 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
+ "@alfalab/core-components-button": "^11.11.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-mq": "^4.4.0",
"react-canvas-pattern-lock": "^2.0.6",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/pattern-lock/CHANGELOG.md b/packages/pattern-lock/CHANGELOG.md
index 5fa0547c1f..7155729ff9 100644
--- a/packages/pattern-lock/CHANGELOG.md
+++ b/packages/pattern-lock/CHANGELOG.md
@@ -1,5 +1,25 @@
# @alfalab/core-components-pattern-lock
+## 2.5.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+
+## 2.5.4
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 2.5.3
### Patch Changes
diff --git a/packages/pattern-lock/package.json b/packages/pattern-lock/package.json
index 2ed43d8181..fe5f7fed77 100644
--- a/packages/pattern-lock/package.json
+++ b/packages/pattern-lock/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pattern-lock",
- "version": "2.5.3",
+ "version": "2.5.5",
"description": "Pattern lock",
"keywords": [],
"license": "MIT",
@@ -15,11 +15,11 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
+ "@alfalab/core-components-button": "^11.11.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/react-canvas-pattern-lock": "^2.0.7",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/phone-input/CHANGELOG.md b/packages/phone-input/CHANGELOG.md
index 55588da59e..38b7bc34aa 100644
--- a/packages/phone-input/CHANGELOG.md
+++ b/packages/phone-input/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 7.4.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - masked-input@6.3.29
+
+## 7.4.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - masked-input@6.3.28
+
## 7.4.4
### Patch Changes
diff --git a/packages/phone-input/package.json b/packages/phone-input/package.json
index 9e952d66f7..d0aa70d0c7 100644
--- a/packages/phone-input/package.json
+++ b/packages/phone-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-phone-input",
- "version": "7.4.4",
+ "version": "7.4.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-masked-input": "^6.3.27",
+ "@alfalab/core-components-masked-input": "^6.3.29",
"react-merge-refs": "^1.1.0",
"text-mask-core": "^5.1.2",
"tslib": "^2.4.0"
diff --git a/packages/picker-button/CHANGELOG.md b/packages/picker-button/CHANGELOG.md
index 7ebdc91e1c..ac51a8aba4 100644
--- a/packages/picker-button/CHANGELOG.md
+++ b/packages/picker-button/CHANGELOG.md
@@ -1,5 +1,34 @@
# Change Log
+## 11.12.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - popover@6.3.4
+ - select@17.18.0
+
+## 11.12.7
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - button@11.11.0
+ - select@17.17.5
+
## 11.12.6
### Patch Changes
diff --git a/packages/picker-button/package.json b/packages/picker-button/package.json
index 1715ee337c..5ba35c64f4 100644
--- a/packages/picker-button/package.json
+++ b/packages/picker-button/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-picker-button",
- "version": "11.12.6",
+ "version": "11.12.8",
"description": "Picker button component",
"keywords": [],
"license": "MIT",
@@ -10,18 +10,19 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
+ "@alfalab/core-components-button": "^11.11.1",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-select": "^17.17.4",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-select": "^17.18.0",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/plate/CHANGELOG.md b/packages/plate/CHANGELOG.md
index a24c106887..4ae1588826 100644
--- a/packages/plate/CHANGELOG.md
+++ b/packages/plate/CHANGELOG.md
@@ -1,5 +1,33 @@
# Change Log
+## 7.8.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - button@11.11.1
+ - icon-button@6.11.4
+
+## 7.8.4
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - button@11.11.0
+ - icon-button@6.11.3
+
## 7.8.3
### Patch Changes
diff --git a/packages/plate/package.json b/packages/plate/package.json
index d9fbb72322..3658bf723b 100644
--- a/packages/plate/package.json
+++ b/packages/plate/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-plate",
- "version": "7.8.3",
+ "version": "7.8.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,17 +10,18 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-icon-button": "^6.11.2",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-icon-button": "^6.11.4",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/popover/CHANGELOG.md b/packages/popover/CHANGELOG.md
index e0b8b96f40..b92bccb2e7 100644
--- a/packages/popover/CHANGELOG.md
+++ b/packages/popover/CHANGELOG.md
@@ -1,5 +1,18 @@
# Change Log
+## 6.3.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - stack@5.0.1
+
## 6.3.3
### Patch Changes
diff --git a/packages/popover/package.json b/packages/popover/package.json
index 08c66c238d..c535a32593 100644
--- a/packages/popover/package.json
+++ b/packages/popover/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-popover",
- "version": "6.3.3",
+ "version": "6.3.4",
"description": "Popover component",
"keywords": [],
"license": "MIT",
@@ -16,12 +16,12 @@
},
"dependencies": {
"@alfalab/core-components-portal": "^3.3.4",
- "@alfalab/core-components-stack": "^5.0.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-stack": "^5.0.1",
+ "@alfalab/hooks": "^1.13.1",
"@juggle/resize-observer": "^3.3.1",
"@popperjs/core": "^2.11.8",
"@types/react-transition-group": "^4.4.5",
- "classnames": "^2.3.1",
+"classnames": "^2.5.1",
"popper-max-size-modifier": "^0.2.0",
"react-merge-refs": "^1.1.0",
"react-popper": "^2.3.0",
diff --git a/packages/popup-sheet/CHANGELOG.md b/packages/popup-sheet/CHANGELOG.md
index 4fb3946cc1..b376f98f33 100644
--- a/packages/popup-sheet/CHANGELOG.md
+++ b/packages/popup-sheet/CHANGELOG.md
@@ -1,5 +1,29 @@
# @alfalab/core-components-popup-sheet
+## 1.3.13
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - backdrop@3.4.3
+ - base-modal@5.8.6
+ - navigation-bar-private@0.5.5
+
+## 1.3.12
+
+### Patch Changes
+
+- Обновлены зависимости
+ - backdrop@3.4.2
+ - base-modal@5.8.5
+ - navigation-bar-private@0.5.4
+
## 1.3.11
### Patch Changes
diff --git a/packages/popup-sheet/package.json b/packages/popup-sheet/package.json
index c12ac6ff47..f9b4ec4e30 100644
--- a/packages/popup-sheet/package.json
+++ b/packages/popup-sheet/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-popup-sheet",
- "version": "1.3.11",
+ "version": "1.3.13",
"description": "Popup sheet mobile component",
"keywords": [],
"license": "MIT",
@@ -15,13 +15,13 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-backdrop": "^3.4.1",
- "@alfalab/core-components-navigation-bar-private": "^0.5.3",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-backdrop": "^3.4.3",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-types": "^0.0.1",
+ "@alfalab/core-components-navigation-bar-private": "^0.5.5",
"react-swipeable": "^7.0.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/product-cover/CHANGELOG.md b/packages/product-cover/CHANGELOG.md
index 89f30c2e5f..4c7377e159 100644
--- a/packages/product-cover/CHANGELOG.md
+++ b/packages/product-cover/CHANGELOG.md
@@ -1,5 +1,32 @@
# Change Log
+## 1.2.11
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - button@11.11.1
+ - typography@4.11.1
+
+## 1.2.10
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+
## 1.2.9
### Patch Changes
diff --git a/packages/product-cover/package.json b/packages/product-cover/package.json
index de34186bab..93cfff0f9a 100644
--- a/packages/product-cover/package.json
+++ b/packages/product-cover/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-product-cover",
- "version": "1.2.9",
+ "version": "1.2.11",
"description": "ProductCover component",
"keywords": [],
"license": "MIT",
@@ -15,13 +15,13 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-typography": "^4.11.0",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-typography": "^4.11.1",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/icons-glyph": "^2.189.0",
- "@alfalab/hooks": "^1.13.0",
- "@alfalab/utils": "^1.15.2",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "@alfalab/utils": "^1.17.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/product-cover/src/components/text/Component.tsx b/packages/product-cover/src/components/text/Component.tsx
index a995c4bd1b..131c774606 100644
--- a/packages/product-cover/src/components/text/Component.tsx
+++ b/packages/product-cover/src/components/text/Component.tsx
@@ -3,7 +3,7 @@ import cn from 'classnames';
import { ButtonDesktop } from '@alfalab/core-components-button/desktop';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text as TypographyText } from '@alfalab/core-components-typography';
import { EyeMIcon } from '@alfalab/icons-glyph/EyeMIcon';
import { pluralize } from '@alfalab/utils';
@@ -82,7 +82,7 @@ export const Text: React.FC = ({
return (
{maxSize && cardholderName ? (
-
= ({
className={styles.cardholderName}
>
{cardholderNameUppercase ? cardholderName?.toUpperCase() : cardholderName}
-
+
) : null}
{cardNumber && !visibleNumberOfСards ? (
-
{[164, 128].includes(size) && '··\u2009'}
{String(cardNumber).slice(-4)}
-
+
{eyeButton && maxSize && (
= ({
{visibleNumberOfСards && (
-
{`+${numberOfСards}\u00A0`}
{pluralize(numberOfСards || 0, 'карта', 'карты', 'карт')}
-
+
)}
diff --git a/packages/progress-bar/CHANGELOG.md b/packages/progress-bar/CHANGELOG.md
index e9b5cc2383..16fe026ebb 100644
--- a/packages/progress-bar/CHANGELOG.md
+++ b/packages/progress-bar/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.5.1
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 3.5.0
### Minor Changes
diff --git a/packages/progress-bar/package.json b/packages/progress-bar/package.json
index b61b08c9f4..0c82314a1c 100644
--- a/packages/progress-bar/package.json
+++ b/packages/progress-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-progress-bar",
- "version": "3.5.0",
+ "version": "3.5.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/pure-cell/CHANGELOG.md b/packages/pure-cell/CHANGELOG.md
index 46af4e0c96..5b75bef018 100644
--- a/packages/pure-cell/CHANGELOG.md
+++ b/packages/pure-cell/CHANGELOG.md
@@ -1,5 +1,35 @@
# Change Log
+## 4.13.6
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - amount@3.8.2
+ - button@11.11.1
+ - comment@2.4.5
+ - typography@4.11.1
+
+## 4.13.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+ - amount@3.8.1
+
## 4.13.4
### Patch Changes
diff --git a/packages/pure-cell/package.json b/packages/pure-cell/package.json
index 041194a395..db04f54fec 100644
--- a/packages/pure-cell/package.json
+++ b/packages/pure-cell/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-pure-cell",
- "version": "4.13.4",
+ "version": "4.13.6",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,14 +15,14 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-amount": "^3.8.0",
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-typography": "^4.11.0",
- "@alfalab/core-components-comment": "^2.4.4",
+ "@alfalab/core-components-amount": "^3.8.2",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "@alfalab/core-components-comment": "^2.4.5",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
- "@alfalab/data": "^1.8.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "@alfalab/data": "^1.9.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/pure-cell/src/__image_snapshots__/pure-cell-screenshots-direction-horizontal-direction-0-snap.png b/packages/pure-cell/src/__image_snapshots__/pure-cell-screenshots-direction-horizontal-direction-0-snap.png
index aba7892238..1414ef7bdc 100644
--- a/packages/pure-cell/src/__image_snapshots__/pure-cell-screenshots-direction-horizontal-direction-0-snap.png
+++ b/packages/pure-cell/src/__image_snapshots__/pure-cell-screenshots-direction-horizontal-direction-0-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9cf82f5264dc276dbfda58fb2738fab80fa1f358a8c5822255bb160da8387856
-size 48489
+oid sha256:f109605b447d6191779ca1248311500248a90fb0756a1f76d9ca146d0e2a45e2
+size 49355
diff --git a/packages/pure-cell/src/components/amount-title/component.tsx b/packages/pure-cell/src/components/amount-title/component.tsx
index d92397d95f..41c935ea0a 100644
--- a/packages/pure-cell/src/components/amount-title/component.tsx
+++ b/packages/pure-cell/src/components/amount-title/component.tsx
@@ -3,7 +3,7 @@ import cn from 'classnames';
import { Amount as CoreAmount } from '@alfalab/core-components-amount';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Color, TitleProps, Typography } from '@alfalab/core-components-typography';
+import { type Color, type TitleProps, TitleResponsive } from '@alfalab/core-components-typography';
import { PureCellContext } from '../../component';
import { AmountProps as AmountType } from '../typesProps';
@@ -62,7 +62,7 @@ export const AmountTitle: React.FC
= ({
}
return (
- = ({
{...restProps}
bold='none'
/>
-
+
);
};
diff --git a/packages/pure-cell/src/components/amount/component.tsx b/packages/pure-cell/src/components/amount/component.tsx
index e76ba474d3..2c99b48496 100644
--- a/packages/pure-cell/src/components/amount/component.tsx
+++ b/packages/pure-cell/src/components/amount/component.tsx
@@ -3,7 +3,7 @@ import cn from 'classnames';
import { Amount as CoreAmount } from '@alfalab/core-components-amount';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Color, Typography } from '@alfalab/core-components-typography';
+import { type Color, Text } from '@alfalab/core-components-typography';
import { PureCellContext } from '../../component';
import { AmountProps as AmountType } from '../typesProps';
@@ -59,7 +59,7 @@ export const Amount: React.FC = ({
}
return (
- = ({
dataTestId={getDataTestId(dataTestId || pureCellContext.dataTestId, 'amount')}
{...restProps}
/>
-
+
);
};
diff --git a/packages/pure-cell/src/components/category/component.tsx b/packages/pure-cell/src/components/category/component.tsx
index c8b038dcb5..6551e62616 100644
--- a/packages/pure-cell/src/components/category/component.tsx
+++ b/packages/pure-cell/src/components/category/component.tsx
@@ -1,7 +1,7 @@
import React, { ReactNode, useContext } from 'react';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { PureCellContext } from '../../component';
@@ -41,7 +41,7 @@ export const Category: React.FC = ({
return (
-
= ({
className={styles.categoryName}
>
{categoryName}
-
+
{categoryPercent !== undefined && (
-
= ({
)}
>
{categoryPercent}%
-
+
)}
{rightAddons !== undefined && (
= ({
const pureCellContext = useContext(PureCellContext);
return (
-
{children}
-
+
);
};
diff --git a/packages/pure-cell/src/components/text/component.tsx b/packages/pure-cell/src/components/text/component.tsx
index 02735d3dba..cf85189fb5 100644
--- a/packages/pure-cell/src/components/text/component.tsx
+++ b/packages/pure-cell/src/components/text/component.tsx
@@ -2,7 +2,7 @@ import React, { ReactNode, useContext } from 'react';
import cn from 'classnames';
import { getDataTestId } from '@alfalab/core-components-shared';
-import { Color, Typography } from '@alfalab/core-components-typography';
+import { type Color, Text as TypographyText } from '@alfalab/core-components-typography';
import { PureCellContext } from '../../component';
@@ -77,7 +77,7 @@ export const Text: React.FC
= ({
})}
>
- = ({
data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_content')}
>
{children}
-
+
{value && (
- = ({
data-test-id={getDataTestId(dataTestId || contextDataTestId, 'text_value')}
>
{value}
-
+
)}
diff --git a/packages/pure-cell/src/docs/Component.stories.mdx b/packages/pure-cell/src/docs/Component.stories.mdx
index e3fa21ce8e..c467354851 100644
--- a/packages/pure-cell/src/docs/Component.stories.mdx
+++ b/packages/pure-cell/src/docs/Component.stories.mdx
@@ -5,7 +5,7 @@ import { ComponentHeader, Tabs } from 'storybook/blocks';
import { Circle } from '@alfalab/core-components-icon-view/circle';
import { PureCell } from '@alfalab/core-components-pure-cell';
import { Typography } from '@alfalab/core-components-typography';
-import { InformationCircleMIcon } from '@alfalab/icons-glyph/InformationCircleMIcon';
+import { StatusBadge } from '@alfalab/core-components-status-badge';
import { StarMIcon } from '@alfalab/icons-glyph/StarMIcon';
import { ChevronForwardMIcon } from '@alfalab/icons-glyph/ChevronForwardMIcon';
@@ -233,7 +233,9 @@ export const VIEWS = ['primary', 'secondary', 'tertiary', 'link', 'ghost'];
-
+
+
+
@@ -329,7 +331,9 @@ export const VIEWS = ['primary', 'secondary', 'tertiary', 'link', 'ghost'];
-
+
+
+
@@ -678,7 +682,9 @@ export const VIEWS = ['primary', 'secondary', 'tertiary', 'link', 'ghost'];
/>
-
+
+
+
diff --git a/packages/radio-group/CHANGELOG.md b/packages/radio-group/CHANGELOG.md
index c95b85512f..66ef62a17c 100644
--- a/packages/radio-group/CHANGELOG.md
+++ b/packages/radio-group/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 4.7.3
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 4.7.2
### Patch Changes
diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json
index 84ebe6ca91..efeeccfb2e 100644
--- a/packages/radio-group/package.json
+++ b/packages/radio-group/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-radio-group",
- "version": "4.7.2",
+ "version": "4.7.3",
"description": "Radio group",
"keywords": [],
"license": "MIT",
@@ -16,8 +16,8 @@
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/radio/CHANGELOG.md b/packages/radio/CHANGELOG.md
index da1049be54..980e499fc6 100644
--- a/packages/radio/CHANGELOG.md
+++ b/packages/radio/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 4.3.4
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 4.3.3
### Patch Changes
diff --git a/packages/radio/package.json b/packages/radio/package.json
index 20c3341173..8696655b42 100644
--- a/packages/radio/package.json
+++ b/packages/radio/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-radio",
- "version": "4.3.3",
+ "version": "4.3.4",
"description": "Radio component",
"keywords": [],
"license": "MIT",
@@ -15,9 +15,9 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/screenshot-utils/createStorybookUrl.ts b/packages/screenshot-utils/createStorybookUrl.ts
index 0e51fbc4a9..b5cffe72a6 100644
--- a/packages/screenshot-utils/createStorybookUrl.ts
+++ b/packages/screenshot-utils/createStorybookUrl.ts
@@ -1,4 +1,4 @@
-import kebab from 'lodash.kebabcase';
+import kebab from 'lodash/kebabCase';
import findComponentPath from '../../tools/storybook/findComponentPath';
diff --git a/packages/screenshot-utils/helpers.ts b/packages/screenshot-utils/helpers.ts
index f4b2e5252a..eb3b4859c9 100644
--- a/packages/screenshot-utils/helpers.ts
+++ b/packages/screenshot-utils/helpers.ts
@@ -14,7 +14,7 @@ import {
} from 'playwright';
import axios from 'axios';
import { MatchImageSnapshotOptions } from 'jest-image-snapshot';
-import kebab from 'lodash.kebabcase';
+import kebab from 'lodash/kebabCase';
import { ScreenshotOpts, EvaluateFn } from './setupScreenshotTesting';
type CustomSnapshotIdentifierParams = {
diff --git a/packages/scrollbar/CHANGELOG.md b/packages/scrollbar/CHANGELOG.md
index d376536d14..77cebc924b 100644
--- a/packages/scrollbar/CHANGELOG.md
+++ b/packages/scrollbar/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.1.2
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 3.1.1
### Patch Changes
diff --git a/packages/scrollbar/package.json b/packages/scrollbar/package.json
index b3b546b02b..553afdb9d3 100644
--- a/packages/scrollbar/package.json
+++ b/packages/scrollbar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-scrollbar",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "Scrollbar component",
"keywords": [],
"license": "MIT",
@@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
@@ -18,7 +19,7 @@
"@juggle/resize-observer": "^3.3.1",
"@types/lodash.throttle": "^4.1.7",
"can-use-dom": "^0.1.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"lodash.debounce": "^4.0.8",
"lodash.memoize": "^4.1.2",
"lodash.throttle": "^4.1.1",
diff --git a/packages/segmented-control/CHANGELOG.md b/packages/segmented-control/CHANGELOG.md
index c5728dfca0..c069581246 100644
--- a/packages/segmented-control/CHANGELOG.md
+++ b/packages/segmented-control/CHANGELOG.md
@@ -1,5 +1,15 @@
# @alfalab/core-components-segmented-control
+## 1.7.1
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 1.7.0
### Minor Changes
diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json
index a90550bfd6..f1f8872b9c 100644
--- a/packages/segmented-control/package.json
+++ b/packages/segmented-control/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-segmented-control",
- "version": "1.7.0",
+ "version": "1.7.1",
"description": "SegmentedControl component",
"keywords": [],
"license": "MIT",
@@ -15,8 +15,8 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"@juggle/resize-observer": "^3.3.1"
},
diff --git a/packages/select-with-tags/CHANGELOG.md b/packages/select-with-tags/CHANGELOG.md
index 9ee0533cfd..01590ed72e 100644
--- a/packages/select-with-tags/CHANGELOG.md
+++ b/packages/select-with-tags/CHANGELOG.md
@@ -1,5 +1,36 @@
# Change Log
+## 8.5.8
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - bottom-sheet@6.17.13
+ - form-control@12.7.3
+ - popover@6.3.4
+ - select@17.18.0
+ - tag@8.6.3
+
+## 8.5.7
+
+### Patch Changes
+
+
10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - bottom-sheet@6.17.12
+ - select@17.17.5
+
## 8.5.6
### Patch Changes
diff --git a/packages/select-with-tags/package.json b/packages/select-with-tags/package.json
index 20271f2b3a..b53bebacd6 100644
--- a/packages/select-with-tags/package.json
+++ b/packages/select-with-tags/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-select-with-tags",
- "version": "8.5.6",
+ "version": "8.5.8",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,19 +10,20 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-form-control": "^12.7.2",
- "@alfalab/core-components-select": "^17.17.4",
- "@alfalab/core-components-tag": "^8.6.2",
- "@alfalab/core-components-bottom-sheet": "^6.17.11",
+ "@alfalab/core-components-form-control": "^12.7.3",
+ "@alfalab/core-components-select": "^17.18.0",
+ "@alfalab/core-components-tag": "^8.6.3",
+ "@alfalab/core-components-bottom-sheet": "^6.17.13",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
diff --git a/packages/select/CHANGELOG.md b/packages/select/CHANGELOG.md
index 3c896deee4..843b88e101 100644
--- a/packages/select/CHANGELOG.md
+++ b/packages/select/CHANGELOG.md
@@ -1,5 +1,60 @@
# Change Log
+## 17.18.0
+
+### Minor Changes
+
+
13.12.2024
+
+### [#1495](https://github.com/core-ds/core-components/pull/1495)
+
+- Добавили пропс footerClassName в OptionsList
+
+### Patch Changes
+
+
13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+
13.12.2024
+
+### [#1481](https://github.com/core-ds/core-components/pull/1481)
+
+- Исправлен цвет шеврона для заблокированного состояния
+
+- Обновлены зависимости
+ - badge@5.6.3
+ - base-modal@5.8.6
+ - bottom-sheet@6.17.13
+ - button@11.11.1
+ - checkbox@4.7.3
+ - form-control@12.7.3
+ - input@15.3.4
+ - modal@9.8.6
+ - popover@6.3.4
+ - scrollbar@3.1.2
+ - skeleton@5.2.1
+
+## 17.17.5
+
+### Patch Changes
+
+
10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - button@11.11.0
+ - badge@5.6.2
+ - base-modal@5.8.5
+ - bottom-sheet@6.17.12
+ - input@15.3.3
+ - modal@9.8.5
+
## 17.17.4
### Patch Changes
diff --git a/packages/select/package.json b/packages/select/package.json
index 0ec32eed07..79cedbbb81 100644
--- a/packages/select/package.json
+++ b/packages/select/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-select",
- "version": "17.17.4",
+ "version": "17.18.0",
"description": "Select component",
"keywords": [],
"license": "MIT",
@@ -10,33 +10,33 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-badge": "^5.6.1",
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-bottom-sheet": "^6.17.11",
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-checkbox": "^4.7.2",
- "@alfalab/core-components-form-control": "^12.7.2",
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-modal": "^9.8.4",
+ "@alfalab/core-components-badge": "^5.6.3",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-bottom-sheet": "^6.17.13",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-checkbox": "^4.7.3",
+ "@alfalab/core-components-form-control": "^12.7.3",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-modal": "^9.8.6",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-popover": "^6.3.3",
- "@alfalab/core-components-scrollbar": "^3.1.1",
- "@alfalab/core-components-skeleton": "^5.2.0",
+ "@alfalab/core-components-popover": "^6.3.4",
+ "@alfalab/core-components-scrollbar": "^3.1.2",
+ "@alfalab/core-components-skeleton": "^5.2.1",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
"@juggle/resize-observer": "^3.3.1",
- "@types/deep-equal": "^1.0.4",
"compute-scroll-into-view": "^3.1.0",
- "classnames": "^2.3.1",
- "deep-equal": "^2.2.3",
+ "classnames": "^2.5.1",
"downshift": "8.4.0",
"intersection-observer": "^0.12.0",
+ "react-fast-compare": "^3.2.2",
"react-merge-refs": "^1.1.0",
"react-virtual": "^2.3.2",
"tslib": "^2.4.0"
diff --git a/packages/select/src/Component.test.tsx b/packages/select/src/Component.test.tsx
index c7be36a3f8..27865d3a73 100644
--- a/packages/select/src/Component.test.tsx
+++ b/packages/select/src/Component.test.tsx
@@ -12,6 +12,7 @@ import {
OptionsListProps,
OptionProps,
useSelectWithApply,
+ Arrow,
} from './shared';
import { SelectDesktop as Select } from './desktop';
import { SelectMobile, SelectModalMobile } from './mobile';
@@ -1025,4 +1026,12 @@ describe('Select', () => {
expect(container.querySelectorAll('select option').length).toBe(options.length);
});
});
+
+ describe('Chevron tests', () => {
+ it('should set `disabled` className', () => {
+ const { container } = render(
);
+
+ expect(container.firstElementChild).toHaveClass('disabled');
+ });
+ });
});
diff --git a/packages/select/src/__image_snapshots__/select-click-theme-disabled-props-snap.png b/packages/select/src/__image_snapshots__/select-click-theme-disabled-props-snap.png
new file mode 100644
index 0000000000..f7712208e4
--- /dev/null
+++ b/packages/select/src/__image_snapshots__/select-click-theme-disabled-props-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8e3930afd8e570ec8c87611401c04dba7666b88ce0192136b4355efd4582266
+size 10042
diff --git a/packages/select/src/__image_snapshots__/select-default-theme-disabled-props-snap.png b/packages/select/src/__image_snapshots__/select-default-theme-disabled-props-snap.png
new file mode 100644
index 0000000000..f7712208e4
--- /dev/null
+++ b/packages/select/src/__image_snapshots__/select-default-theme-disabled-props-snap.png
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f8e3930afd8e570ec8c87611401c04dba7666b88ce0192136b4355efd4582266
+size 10042
diff --git a/packages/select/src/component.screenshots.test.tsx b/packages/select/src/component.screenshots.test.tsx
index 8fdb25e414..dd9979a42b 100644
--- a/packages/select/src/component.screenshots.test.tsx
+++ b/packages/select/src/component.screenshots.test.tsx
@@ -118,6 +118,22 @@ describe('Select', () => {
size: { width: 300, height: 120 },
}),
],
+ [
+ `${theme} theme — disabled props`,
+ createSpriteStorybookUrl({
+ packageName: 'select',
+ componentName: 'SelectDesktop',
+ knobs: {
+ options: [[]],
+ block: true,
+ placeholder: 'Выберите элемент',
+ size: [48],
+ label: ['Элемент'],
+ disabled: [true, false],
+ },
+ size: { width: 300, height: 120 },
+ }),
+ ],
],
screenshotOpts: {
fullPage: true,
diff --git a/packages/select/src/components/arrow/Component.tsx b/packages/select/src/components/arrow/Component.tsx
index 38a35b0202..059fac991f 100644
--- a/packages/select/src/components/arrow/Component.tsx
+++ b/packages/select/src/components/arrow/Component.tsx
@@ -7,6 +7,11 @@ import { ArrowProps } from '../../typings';
import styles from './index.module.css';
-export const Arrow = ({ open, className }: ArrowProps) => (
-
+export const Arrow = ({ open, disabled, className }: ArrowProps) => (
+
);
diff --git a/packages/select/src/components/arrow/index.module.css b/packages/select/src/components/arrow/index.module.css
index 9ac07b5f39..8c1caddb53 100644
--- a/packages/select/src/components/arrow/index.module.css
+++ b/packages/select/src/components/arrow/index.module.css
@@ -8,6 +8,10 @@
color: var(--select-arrow-color);
transition: transform 0.15s ease-in-out, opacity 0.2s ease;
+
+ &.disabled {
+ color: var(--select-arrow-disabled-color);
+ }
}
.open {
diff --git a/packages/select/src/components/base-select/Component.tsx b/packages/select/src/components/base-select/Component.tsx
index 97f96094b1..0d2078b894 100644
--- a/packages/select/src/components/base-select/Component.tsx
+++ b/packages/select/src/components/base-select/Component.tsx
@@ -674,7 +674,7 @@ export const BaseSelect = forwardRef
(
placeholder={placeholder}
label={label && {label} }
labelView={labelView}
- Arrow={Arrow && }
+ Arrow={Arrow && }
error={error}
hint={hint}
valueRenderer={valueRenderer}
diff --git a/packages/select/src/components/options-list/Component.tsx b/packages/select/src/components/options-list/Component.tsx
index 8b507821fb..970682ad7b 100644
--- a/packages/select/src/components/options-list/Component.tsx
+++ b/packages/select/src/components/options-list/Component.tsx
@@ -26,6 +26,7 @@ export const OptionsList = forwardRef(
size = 48,
className,
optionGroupClassName,
+ footerClassName,
scrollbarClassName,
Option,
getOptionProps,
@@ -210,7 +211,7 @@ export const OptionsList = forwardRef(
{showFooter && footer && (
visibleOptions &&
diff --git a/packages/select/src/presets/useSelectWithApply/hook.tsx b/packages/select/src/presets/useSelectWithApply/hook.tsx
index 97c3667d1e..3d72a737fd 100644
--- a/packages/select/src/presets/useSelectWithApply/hook.tsx
+++ b/packages/select/src/presets/useSelectWithApply/hook.tsx
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useRef, useState } from 'react';
-import deepEqual from 'deep-equal';
+import reactFastCompare from 'react-fast-compare';
import type { AnyObject, BaseSelectProps, OptionShape } from '../../typings';
import {
@@ -187,7 +187,7 @@ export function useSelectWithApply({
useEffect(() => {
// устанавливать selectedDraft если selectedOptions изменились
- if (!deepEqual(selectedOptionsRef.current, selectedOptions)) {
+ if (!reactFastCompare(selectedOptionsRef.current, selectedOptions)) {
setSelectedDraft(selectedOptions);
}
selectedOptionsRef.current = selectedOptions;
diff --git a/packages/select/src/typings.ts b/packages/select/src/typings.ts
index 12b1766bb5..7f7aadca02 100644
--- a/packages/select/src/typings.ts
+++ b/packages/select/src/typings.ts
@@ -497,6 +497,11 @@ export type ArrowProps = {
* Флаг, открыто ли меню
*/
open?: boolean;
+
+ /**
+ * Флаг блокировки select'а
+ */
+ disabled?: boolean;
};
export type OptionsListProps = {
@@ -515,6 +520,11 @@ export type OptionsListProps = {
*/
scrollbarClassName?: string;
+ /**
+ * Дополнительный класс для футера
+ */
+ footerClassName?: string;
+
/**
* Размер компонента
* @description s, m, l, xl deprecated, используйте вместо них 48, 56, 64, 72 соответственно
diff --git a/packages/select/src/vars.css b/packages/select/src/vars.css
index d0424814b2..564d905f22 100644
--- a/packages/select/src/vars.css
+++ b/packages/select/src/vars.css
@@ -1,6 +1,7 @@
:root {
--select-error-color: var(--color-light-text-negative);
--select-arrow-color: var(--color-light-neutral-translucent-700);
+ --select-arrow-disabled-color: var(--color-light-neutral-translucent-500);
--select-arrow-hover-opacity: 0.7;
/* options list */
diff --git a/packages/shared/package.json b/packages/shared/package.json
index b6031f408c..fb5293e57a 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -15,8 +15,8 @@
},
"dependencies": {
"@alfalab/core-components-types": "^0.0.1",
- "@alfalab/hooks": "^1.13.0",
"@maskito/core": "^1.7.0",
+ "@alfalab/hooks": "^1.13.1",
"tslib": "^2.4.0"
},
"devDependencies": {
diff --git a/packages/side-panel/CHANGELOG.md b/packages/side-panel/CHANGELOG.md
index 20fff84fea..d7a08602dc 100644
--- a/packages/side-panel/CHANGELOG.md
+++ b/packages/side-panel/CHANGELOG.md
@@ -1,5 +1,35 @@
# Change Log
+## 5.8.6
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - base-modal@5.8.6
+ - drawer@5.1.6
+ - navigation-bar-private@0.5.5
+
+## 5.8.5
+
+### Patch Changes
+
+- Обновлены зависимости
+ - base-modal@5.8.5
+ - navigation-bar-private@0.5.4
+ - drawer@5.1.5
+
## 5.8.4
### Patch Changes
diff --git a/packages/side-panel/package.json b/packages/side-panel/package.json
index b2e6701fed..868fdb19fd 100644
--- a/packages/side-panel/package.json
+++ b/packages/side-panel/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-side-panel",
- "version": "5.8.4",
+ "version": "5.8.6",
"description": "SidePanel component",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-base-modal": "^5.8.4",
- "@alfalab/core-components-drawer": "^5.1.4",
+ "@alfalab/core-components-base-modal": "^5.8.6",
+ "@alfalab/core-components-drawer": "^5.1.6",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/core-components-navigation-bar-private": "^0.5.3",
+ "@alfalab/core-components-navigation-bar-private": "^0.5.5",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/skeleton/CHANGELOG.md b/packages/skeleton/CHANGELOG.md
index f5192d7f0e..7a7d8fa669 100644
--- a/packages/skeleton/CHANGELOG.md
+++ b/packages/skeleton/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 5.2.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 5.2.0
### Minor Changes
diff --git a/packages/skeleton/package.json b/packages/skeleton/package.json
index 77b2727267..6e29f5d997 100644
--- a/packages/skeleton/package.json
+++ b/packages/skeleton/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-skeleton",
- "version": "5.2.0",
+ "version": "5.2.1",
"description": "Skeleton component",
"keywords": [],
"license": "MIT",
@@ -15,7 +15,7 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/slider-input/CHANGELOG.md b/packages/slider-input/CHANGELOG.md
index 13d4e43726..487a774f66 100644
--- a/packages/slider-input/CHANGELOG.md
+++ b/packages/slider-input/CHANGELOG.md
@@ -1,5 +1,26 @@
# Change Log
+## 9.0.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input@15.3.4
+ - slider@4.7.2
+
+## 9.0.2
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 9.0.1
### Patch Changes
diff --git a/packages/slider-input/package.json b/packages/slider-input/package.json
index db2a3f9ccb..2469d15d48 100644
--- a/packages/slider-input/package.json
+++ b/packages/slider-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-slider-input",
- "version": "9.0.1",
+ "version": "9.0.3",
"description": "Slider input component",
"keywords": [],
"license": "MIT",
@@ -15,9 +15,9 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
- "@alfalab/core-components-slider": "^4.7.1",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-input": "^15.3.4",
+ "@alfalab/core-components-slider": "^4.7.2",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/slider/CHANGELOG.md b/packages/slider/CHANGELOG.md
index e232ec88c8..9d2a960df5 100644
--- a/packages/slider/CHANGELOG.md
+++ b/packages/slider/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 4.7.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 4.7.1
### Patch Changes
diff --git a/packages/slider/package.json b/packages/slider/package.json
index 4a52108ec1..0911a3df6c 100644
--- a/packages/slider/package.json
+++ b/packages/slider/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-slider",
- "version": "4.7.1",
+ "version": "4.7.2",
"description": "Slider component",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"nouislider": "^15.6.0",
"tslib": "^2.4.0"
},
diff --git a/packages/sortable-list/CHANGELOG.md b/packages/sortable-list/CHANGELOG.md
index 9df386cc4e..4b2a8f53d7 100644
--- a/packages/sortable-list/CHANGELOG.md
+++ b/packages/sortable-list/CHANGELOG.md
@@ -1,5 +1,21 @@
# @alfalab/core-components-sortable-list
+## 1.6.4
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 1.6.3
### Patch Changes
diff --git a/packages/sortable-list/package.json b/packages/sortable-list/package.json
index a9b624c660..486e472e4a 100644
--- a/packages/sortable-list/package.json
+++ b/packages/sortable-list/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-sortable-list",
- "version": "1.6.3",
+ "version": "1.6.4",
"description": "Sortable list component",
"keywords": [],
"license": "MIT",
@@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
@@ -21,7 +22,7 @@
"@dnd-kit/core": "^6.0.7",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/space/CHANGELOG.md b/packages/space/CHANGELOG.md
index 191dbb596c..ccd7e77a35 100644
--- a/packages/space/CHANGELOG.md
+++ b/packages/space/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.4.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 3.4.0
### Minor Changes
diff --git a/packages/space/package.json b/packages/space/package.json
index 904552398d..3be7bf07ee 100644
--- a/packages/space/package.json
+++ b/packages/space/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-space",
- "version": "3.4.0",
+ "version": "3.4.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/spinner/CHANGELOG.md b/packages/spinner/CHANGELOG.md
index 34076ad113..a130197209 100644
--- a/packages/spinner/CHANGELOG.md
+++ b/packages/spinner/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 4.0.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 4.0.0
### Major Changes
diff --git a/packages/spinner/package.json b/packages/spinner/package.json
index 03bda0d12a..a3ab06007f 100644
--- a/packages/spinner/package.json
+++ b/packages/spinner/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-spinner",
- "version": "4.0.0",
+ "version": "4.0.1",
"description": "Spinner component",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/stack/CHANGELOG.md b/packages/stack/CHANGELOG.md
index fb7254212e..6a06fd3e04 100644
--- a/packages/stack/CHANGELOG.md
+++ b/packages/stack/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 5.0.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 5.0.0
### Major Changes
diff --git a/packages/stack/package.json b/packages/stack/package.json
index 5a290a139a..3fd0b99fb8 100644
--- a/packages/stack/package.json
+++ b/packages/stack/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-stack",
- "version": "5.0.0",
+ "version": "5.0.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,6 +10,7 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"@alfalab/stack-context": "^1.16.0",
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
diff --git a/packages/status-badge/CHANGELOG.md b/packages/status-badge/CHANGELOG.md
index fb383fd809..b57977b35e 100644
--- a/packages/status-badge/CHANGELOG.md
+++ b/packages/status-badge/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 1.2.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 1.2.0
### Minor Changes
diff --git a/packages/status-badge/package.json b/packages/status-badge/package.json
index 4a7547d45a..f4550728ab 100644
--- a/packages/status-badge/package.json
+++ b/packages/status-badge/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-status-badge",
- "version": "1.2.0",
+ "version": "1.2.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,7 +15,7 @@
},
"dependencies": {
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/status/CHANGELOG.md b/packages/status/CHANGELOG.md
index 7a90c79056..2576dca03d 100644
--- a/packages/status/CHANGELOG.md
+++ b/packages/status/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 3.6.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 3.6.1
### Patch Changes
diff --git a/packages/status/package.json b/packages/status/package.json
index de971a6195..c28c9c85cc 100644
--- a/packages/status/package.json
+++ b/packages/status/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-status",
- "version": "3.6.1",
+ "version": "3.6.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,11 +10,12 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/stepped-progress-bar/CHANGELOG.md b/packages/stepped-progress-bar/CHANGELOG.md
index 0c504b6173..f3ba8d04f1 100644
--- a/packages/stepped-progress-bar/CHANGELOG.md
+++ b/packages/stepped-progress-bar/CHANGELOG.md
@@ -1,5 +1,24 @@
# Change Log
+## 2.4.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - typography@4.11.1
+
## 2.4.4
### Patch Changes
diff --git a/packages/stepped-progress-bar/package.json b/packages/stepped-progress-bar/package.json
index ce4febd442..1677d534da 100644
--- a/packages/stepped-progress-bar/package.json
+++ b/packages/stepped-progress-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-stepped-progress-bar",
- "version": "2.4.4",
+ "version": "2.4.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -14,8 +14,8 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/stepped-progress-bar/src/Component.tsx b/packages/stepped-progress-bar/src/Component.tsx
index ab73d2d303..d3b17ca555 100644
--- a/packages/stepped-progress-bar/src/Component.tsx
+++ b/packages/stepped-progress-bar/src/Component.tsx
@@ -1,7 +1,7 @@
import React, { FC } from 'react';
import cn from 'classnames';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { StepBar } from './components/step-bar';
@@ -86,13 +86,13 @@ export const SteppedProgressBar: FC = ({
))}
{description && (
-
Шаг {step} из {maxStep}: {description}
-
+
)}
);
diff --git a/packages/steps/CHANGELOG.md b/packages/steps/CHANGELOG.md
index ebce4866ba..ec5ff81107 100644
--- a/packages/steps/CHANGELOG.md
+++ b/packages/steps/CHANGELOG.md
@@ -1,5 +1,31 @@
# @alfalab/core-components-steps
+## 1.7.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - badge@5.6.3
+
+## 1.7.2
+
+### Patch Changes
+
+- Обновлены зависимости
+ - badge@5.6.2
+
## 1.7.1
### Patch Changes
diff --git a/packages/steps/package.json b/packages/steps/package.json
index a4b826f2ad..98d4141afc 100644
--- a/packages/steps/package.json
+++ b/packages/steps/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-steps",
- "version": "1.7.1",
+ "version": "1.7.3",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,14 +10,15 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-badge": "^5.6.1",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/core-components-badge": "^5.6.3",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/switch/CHANGELOG.md b/packages/switch/CHANGELOG.md
index 46b80db980..85648ebf84 100644
--- a/packages/switch/CHANGELOG.md
+++ b/packages/switch/CHANGELOG.md
@@ -1,5 +1,15 @@
# Change Log
+## 4.5.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 4.5.1
### Patch Changes
diff --git a/packages/switch/package.json b/packages/switch/package.json
index 4894476b0f..8600288461 100644
--- a/packages/switch/package.json
+++ b/packages/switch/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-switch",
- "version": "4.5.1",
+ "version": "4.5.2",
"description": "",
"gitHead": "f054fef20200664c65e2501ef1f916c555cdf05d",
"keywords": [],
@@ -15,9 +15,9 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/system-message/CHANGELOG.md b/packages/system-message/CHANGELOG.md
index 23fa011e25..190a53fed9 100644
--- a/packages/system-message/CHANGELOG.md
+++ b/packages/system-message/CHANGELOG.md
@@ -1,5 +1,15 @@
# @alfalab/core-components-system-message
+## 2.5.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
## 2.5.2
### Patch Changes
diff --git a/packages/system-message/package.json b/packages/system-message/package.json
index e6978412f6..9b059dca42 100644
--- a/packages/system-message/package.json
+++ b/packages/system-message/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-system-message",
- "version": "2.5.2",
+ "version": "2.5.3",
"description": "System message component",
"keywords": [],
"license": "MIT",
@@ -17,7 +17,7 @@
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
"@alfalab/core-components-types": "^0.0.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/tab-bar/CHANGELOG.md b/packages/tab-bar/CHANGELOG.md
index d4f0c7227f..2bd799aab4 100644
--- a/packages/tab-bar/CHANGELOG.md
+++ b/packages/tab-bar/CHANGELOG.md
@@ -1,5 +1,31 @@
# Change Log
+## 2.1.7
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+13.12.2024
+
+### [#1473](https://github.com/core-ds/core-components/pull/1473)
+
+- Переход на атомарные импорты Typography.\[Name] -> \[Name]
+
+- Обновлены зависимости
+ - indicator@2.2.2
+ - typography@4.11.1
+
## 2.1.6
### Patch Changes
diff --git a/packages/tab-bar/package.json b/packages/tab-bar/package.json
index 2c22c2ae23..012a8c78e0 100644
--- a/packages/tab-bar/package.json
+++ b/packages/tab-bar/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-tab-bar",
- "version": "2.1.6",
+ "version": "2.1.7",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"dependencies": {
- "@alfalab/core-components-typography": "^4.11.0",
- "@alfalab/core-components-indicator": "^2.2.1",
+ "@alfalab/core-components-typography": "^4.11.1",
+ "@alfalab/core-components-indicator": "^2.2.2",
"@alfalab/core-components-shared": "^0.14.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/tab-bar/src/components/tab/Component.tsx b/packages/tab-bar/src/components/tab/Component.tsx
index effdc29e53..5fe16586dd 100644
--- a/packages/tab-bar/src/components/tab/Component.tsx
+++ b/packages/tab-bar/src/components/tab/Component.tsx
@@ -2,7 +2,7 @@ import React, { cloneElement, forwardRef, isValidElement, MouseEvent } from 'rea
import cn from 'classnames';
import { Indicator } from '@alfalab/core-components-indicator';
-import { Typography } from '@alfalab/core-components-typography';
+import { Text } from '@alfalab/core-components-typography';
import { INDICATOR_BG_COLOR, INDICATOR_BORDER_COLOR } from '../../consts';
import { PrivateTabProps, TabProps } from '../../types';
@@ -71,7 +71,7 @@ const TabComponent = forwardRef(
{isValidElement(icon) ? cloneElement(icon, { selected }) : icon}
-
{isValidElement(label) ? cloneElement(label, { selected }) : label}
-
+
{showIndicator && (
diff --git a/packages/table/CHANGELOG.md b/packages/table/CHANGELOG.md
index 9a7ee622eb..c3254dac28 100644
--- a/packages/table/CHANGELOG.md
+++ b/packages/table/CHANGELOG.md
@@ -1,5 +1,34 @@
# Change Log
+## 2.8.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - button@11.11.1
+ - pagination@2.4.6
+ - select@17.18.0
+
+## 2.8.1
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+ - select@17.17.5
+
## 2.8.0
### Minor Changes
diff --git a/packages/table/package.json b/packages/table/package.json
index a590dc1894..a397df4631 100644
--- a/packages/table/package.json
+++ b/packages/table/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-table",
- "version": "2.8.0",
+ "version": "2.8.2",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-pagination": "^2.4.5",
- "@alfalab/core-components-select": "^17.17.4",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-pagination": "^2.4.6",
+ "@alfalab/core-components-select": "^17.18.0",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/tabs/CHANGELOG.md b/packages/tabs/CHANGELOG.md
index 63c3ba48cf..6b2f1cc5c1 100644
--- a/packages/tabs/CHANGELOG.md
+++ b/packages/tabs/CHANGELOG.md
@@ -1,5 +1,43 @@
# Change Log
+## 8.12.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1477](https://github.com/core-ds/core-components/pull/1477)
+
+- Замена использование lodash на коммон пакет
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - badge@5.6.3
+ - icon-button@6.11.4
+ - picker-button@11.12.8
+ - skeleton@5.2.1
+ - tag@8.6.3
+
+## 8.12.7
+
+### Patch Changes
+
+- Обновлены зависимости
+ - badge@5.6.2
+ - picker-button@11.12.7
+ - icon-button@6.11.3
+
## 8.12.6
### Patch Changes
diff --git a/packages/tabs/package.json b/packages/tabs/package.json
index 7cfd898210..bcf3860782 100644
--- a/packages/tabs/package.json
+++ b/packages/tabs/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-tabs",
- "version": "8.12.6",
+ "version": "8.12.8",
"description": "Tabs components",
"keywords": [],
"license": "MIT",
@@ -10,21 +10,25 @@
"access": "public",
"directory": "dist"
},
+ "devDependencies": {
+ "@types/lodash": "^4.17.13"
+ },
+ "sideEffects": false,
"dependencies": {
"@alfalab/core-components-keyboard-focusable": "^4.1.0",
- "@alfalab/core-components-tag": "^8.6.2",
- "@alfalab/core-components-picker-button": "^11.12.6",
- "@alfalab/core-components-badge": "^5.6.1",
+ "@alfalab/core-components-tag": "^8.6.3",
+ "@alfalab/core-components-picker-button": "^11.12.8",
+ "@alfalab/core-components-badge": "^5.6.3",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
+ "@alfalab/hooks": "^1.13.1",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/core-components-icon-button": "^6.11.2",
- "@alfalab/core-components-skeleton": "^5.2.0",
- "@alfalab/icons-glyph": "^2.189.0",
"@types/lodash.debounce": "^4.0.6",
- "classnames": "^2.3.1",
+ "@alfalab/core-components-icon-button": "^6.11.4",
+ "@alfalab/core-components-skeleton": "^5.2.1",
+ "@alfalab/icons-glyph": "^2.189.0",
+ "classnames": "^2.5.1",
"compute-scroll-into-view": "^3.1.0",
- "lodash.debounce": "^4.0.8",
+ "lodash": "^4.17.21",
"@juggle/resize-observer": "^3.3.1",
"tslib": "^2.4.0"
},
diff --git a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-13-snap.png b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-13-snap.png
index a058a0179c..143035f38b 100644
--- a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-13-snap.png
+++ b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-13-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:aaeca8b5f785f95ddab2b87b1b8b774352914381330a7ed7c4a77c435ed45cd7
-size 6514
+oid sha256:36430c5f8bb9992a75386cfd79cd5bdf9d6e52913a4b1fe999e9827595eeb44b
+size 6593
diff --git a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-2-snap.png b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-2-snap.png
index 1a581b930c..6cc1c46f8d 100644
--- a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-2-snap.png
+++ b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-2-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7c9add4c6515c04982dc939f74ef1c827c8e09581605abf8b24f59e890c23511
-size 6833
+oid sha256:e20d6ff21a16a231f1b463cb3d79d5cc8a4666a07087413fac8058f54ce73ff8
+size 6868
diff --git a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-5-snap.png b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-5-snap.png
index 1a581b930c..6cc1c46f8d 100644
--- a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-5-snap.png
+++ b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-5-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:7c9add4c6515c04982dc939f74ef1c827c8e09581605abf8b24f59e890c23511
-size 6833
+oid sha256:e20d6ff21a16a231f1b463cb3d79d5cc8a4666a07087413fac8058f54ce73ff8
+size 6868
diff --git a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-8-snap.png b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-8-snap.png
index b747378738..578ed625cc 100644
--- a/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-8-snap.png
+++ b/packages/tabs/src/__image_snapshots__/tabs-text-style-prop-text-style-8-snap.png
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0d8924ea97502ec98daeac320a3622e2fda0402e7402697868e5c5f0140b912f
-size 6808
+oid sha256:e33a82912452b8838c5babf103b547bc5cc0d2730888c56820258aab890d14af
+size 6838
diff --git a/packages/tabs/src/components/scroll-controls/Component.tsx b/packages/tabs/src/components/scroll-controls/Component.tsx
index dc8639a64c..b760f44545 100644
--- a/packages/tabs/src/components/scroll-controls/Component.tsx
+++ b/packages/tabs/src/components/scroll-controls/Component.tsx
@@ -1,6 +1,6 @@
import React, { forwardRef, RefObject, useEffect, useState } from 'react';
import cn from 'classnames';
-import _debounce from 'lodash.debounce';
+import _debounce from 'lodash/debounce';
import { IconButton } from '@alfalab/core-components-icon-button';
import { ChevronLeftCompactSIcon } from '@alfalab/icons-glyph/ChevronLeftCompactSIcon';
diff --git a/packages/tag/CHANGELOG.md b/packages/tag/CHANGELOG.md
index 76f4ecc616..bb5257aa85 100644
--- a/packages/tag/CHANGELOG.md
+++ b/packages/tag/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 8.6.3
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 8.6.2
### Patch Changes
diff --git a/packages/tag/package.json b/packages/tag/package.json
index 70951992e7..ee87049396 100644
--- a/packages/tag/package.json
+++ b/packages/tag/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-tag",
- "version": "8.6.2",
+ "version": "8.6.3",
"description": "Tag component",
"keywords": [],
"license": "MIT",
@@ -10,13 +10,14 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
diff --git a/packages/text/CHANGELOG.md b/packages/text/CHANGELOG.md
index 9124869868..a21c703d08 100644
--- a/packages/text/CHANGELOG.md
+++ b/packages/text/CHANGELOG.md
@@ -1,5 +1,21 @@
# Change Log
+## 1.2.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
## 1.2.1
### Patch Changes
diff --git a/packages/text/package.json b/packages/text/package.json
index 6580f45f46..6c0212d242 100644
--- a/packages/text/package.json
+++ b/packages/text/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-text",
- "version": "1.2.1",
+ "version": "1.2.2",
"description": "Text",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-types": "^0.0.1",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/textarea/CHANGELOG.md b/packages/textarea/CHANGELOG.md
index 5e98ba4447..8d795fcdad 100644
--- a/packages/textarea/CHANGELOG.md
+++ b/packages/textarea/CHANGELOG.md
@@ -1,5 +1,24 @@
# Change Log
+## 8.8.8
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - form-control@12.7.3
+
## 8.8.7
### Patch Changes
diff --git a/packages/textarea/package.json b/packages/textarea/package.json
index 9bd45a42df..c07d671ead 100644
--- a/packages/textarea/package.json
+++ b/packages/textarea/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-textarea",
- "version": "8.8.7",
+ "version": "8.8.8",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,15 +10,16 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-form-control": "^12.7.2",
+ "@alfalab/core-components-form-control": "^12.7.3",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"react-textarea-autosize": "^8.3.4",
"tslib": "^2.4.0"
diff --git a/packages/time-input/CHANGELOG.md b/packages/time-input/CHANGELOG.md
index 1fa4e069a3..19c8be5c49 100644
--- a/packages/time-input/CHANGELOG.md
+++ b/packages/time-input/CHANGELOG.md
@@ -1,5 +1,19 @@
# @alfalab/core-components-time-input
+## 2.2.48
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.4
+
+## 2.2.47
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 2.2.46
### Patch Changes
diff --git a/packages/time-input/package.json b/packages/time-input/package.json
index 02075d238e..36dbafc852 100644
--- a/packages/time-input/package.json
+++ b/packages/time-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-time-input",
- "version": "2.2.46",
+ "version": "2.2.48",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,7 +15,7 @@
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-input": "^15.3.4",
"tslib": "^2.4.0"
},
"themesVersion": "13.6.0",
diff --git a/packages/toast-plate/CHANGELOG.md b/packages/toast-plate/CHANGELOG.md
index c56fd71f8f..526b892077 100644
--- a/packages/toast-plate/CHANGELOG.md
+++ b/packages/toast-plate/CHANGELOG.md
@@ -1,5 +1,32 @@
# Change Log
+## 7.3.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - icon-button@6.11.4
+ - status-badge@1.2.1
+
+## 7.3.4
+
+### Patch Changes
+
+- Обновлены зависимости
+ - icon-button@6.11.3
+
## 7.3.3
### Patch Changes
diff --git a/packages/toast-plate/package.json b/packages/toast-plate/package.json
index 4ec3279f8c..82e2a0b1d1 100644
--- a/packages/toast-plate/package.json
+++ b/packages/toast-plate/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-toast-plate",
- "version": "7.3.3",
+ "version": "7.3.5",
"description": "Toast plate component",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-status-badge": "^1.2.0",
- "@alfalab/core-components-icon-button": "^6.11.2",
+ "@alfalab/core-components-status-badge": "^1.2.1",
+ "@alfalab/core-components-icon-button": "^6.11.4",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/icons-glyph": "^2.189.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
},
diff --git a/packages/toast/CHANGELOG.md b/packages/toast/CHANGELOG.md
index ca1fd18f3e..7c601ff738 100644
--- a/packages/toast/CHANGELOG.md
+++ b/packages/toast/CHANGELOG.md
@@ -1,5 +1,33 @@
# Change Log
+## 6.3.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1486](https://github.com/core-ds/core-components/pull/1486)
+
+- Добавлены sideEffects: false. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 2.
+
+- Обновлены зависимости
+ - popover@6.3.4
+ - toast-plate@7.3.5
+ - stack@5.0.1
+
+## 6.3.4
+
+### Patch Changes
+
+- Обновлены зависимости
+ - toast-plate@7.3.4
+
## 6.3.3
### Patch Changes
diff --git a/packages/toast/package.json b/packages/toast/package.json
index 4eb40eff34..314835a180 100644
--- a/packages/toast/package.json
+++ b/packages/toast/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-toast",
- "version": "6.3.3",
+ "version": "6.3.5",
"description": "Toast component",
"keywords": [],
"license": "MIT",
@@ -10,18 +10,19 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-popover": "^6.3.3",
+ "@alfalab/core-components-popover": "^6.3.4",
"@alfalab/core-components-portal": "^3.3.4",
- "@alfalab/core-components-stack": "^5.0.0",
- "@alfalab/core-components-toast-plate": "^7.3.3",
+ "@alfalab/core-components-stack": "^5.0.1",
+ "@alfalab/core-components-toast-plate": "^7.3.5",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"react-transition-group": "^4.4.5",
"tslib": "^2.4.0",
diff --git a/packages/tooltip/CHANGELOG.md b/packages/tooltip/CHANGELOG.md
index fa14744e75..a5542977cd 100644
--- a/packages/tooltip/CHANGELOG.md
+++ b/packages/tooltip/CHANGELOG.md
@@ -1,5 +1,34 @@
# Change Log
+## 7.8.2
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
+- Обновлены зависимости
+ - bottom-sheet@6.17.13
+ - button@11.11.1
+ - popover@6.3.4
+
+## 7.8.1
+
+### Patch Changes
+
+- Обновлены зависимости
+ - button@11.11.0
+ - bottom-sheet@6.17.12
+
## 7.8.0
### Minor Changes
diff --git a/packages/tooltip/package.json b/packages/tooltip/package.json
index c6f9e5266e..bf0a78bbd1 100644
--- a/packages/tooltip/package.json
+++ b/packages/tooltip/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-tooltip",
- "version": "7.8.0",
+ "version": "7.8.2",
"description": "Tooltip component",
"keywords": [],
"license": "MIT",
@@ -10,16 +10,17 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0",
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-bottom-sheet": "^6.17.11",
- "@alfalab/core-components-button": "^11.10.2",
- "@alfalab/core-components-popover": "^6.3.3",
+ "@alfalab/core-components-bottom-sheet": "^6.17.13",
+ "@alfalab/core-components-button": "^11.11.1",
+ "@alfalab/core-components-popover": "^6.3.4",
"@alfalab/core-components-mq": "^4.4.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0",
"@alfalab/core-components-shared": "^0.14.0"
diff --git a/packages/typography/CHANGELOG.md b/packages/typography/CHANGELOG.md
index 3d7d27819a..278aa8d32c 100644
--- a/packages/typography/CHANGELOG.md
+++ b/packages/typography/CHANGELOG.md
@@ -1,5 +1,18 @@
# Change Log
+## 4.11.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - skeleton@5.2.1
+
## 4.11.0
### Minor Changes
diff --git a/packages/typography/package.json b/packages/typography/package.json
index 6663026cf5..466d176dbe 100644
--- a/packages/typography/package.json
+++ b/packages/typography/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-typography",
- "version": "4.11.0",
+ "version": "4.11.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -15,10 +15,10 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-skeleton": "^5.2.0",
+ "@alfalab/core-components-skeleton": "^5.2.1",
"@alfalab/core-components-mq": "^4.4.0",
- "@alfalab/hooks": "^1.13.0",
- "classnames": "^2.3.1",
+ "@alfalab/hooks": "^1.13.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/packages/underlay/CHANGELOG.md b/packages/underlay/CHANGELOG.md
index 93e73a03ff..4b940b38e4 100644
--- a/packages/underlay/CHANGELOG.md
+++ b/packages/underlay/CHANGELOG.md
@@ -1,5 +1,21 @@
# @alfalab/core-components-underlay
+## 1.5.1
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+13.12.2024
+
+### [#1491](https://github.com/core-ds/core-components/pull/1491)
+
+- Добавлено sideEffects: false в package.json. Помогает бандлерам убирать неиспользуемые части кода при сборке (treeshake). Часть 3.
+
## 1.5.0
### Minor Changes
diff --git a/packages/underlay/package.json b/packages/underlay/package.json
index 41df9fe6f3..6de33fe357 100644
--- a/packages/underlay/package.json
+++ b/packages/underlay/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-underlay",
- "version": "1.5.0",
+ "version": "1.5.1",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,12 +10,13 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-types": "^0.0.1",
- "classnames": "^2.3.1"
+ "classnames": "^2.5.1"
},
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
diff --git a/packages/universal-date-input/CHANGELOG.md b/packages/universal-date-input/CHANGELOG.md
index 88a6facb09..ae7444e56b 100644
--- a/packages/universal-date-input/CHANGELOG.md
+++ b/packages/universal-date-input/CHANGELOG.md
@@ -1,5 +1,32 @@
# @alfalab/core-components-universal-date-input
+## 2.6.5
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input@15.3.4
+ - popover@6.3.4
+
+## 2.6.4
+
+### Patch Changes
+
+10.12.2024
+
+### [#1480](https://github.com/core-ds/core-components/pull/1480)
+
+- Добавлено sideEffects: false
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 2.6.3
### Patch Changes
diff --git a/packages/universal-date-input/package.json b/packages/universal-date-input/package.json
index 0dffafaecb..0276c62cde 100644
--- a/packages/universal-date-input/package.json
+++ b/packages/universal-date-input/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-universal-date-input",
- "version": "2.6.3",
+ "version": "2.6.5",
"description": "",
"keywords": [],
"license": "MIT",
@@ -10,23 +10,27 @@
"access": "public",
"directory": "dist"
},
+ "sideEffects": false,
"peerDependencies": {
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
"@alfalab/core-components-calendar": "^7.15.4",
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-input": "^15.3.4",
"@alfalab/core-components-shared": "^0.14.0",
- "@alfalab/core-components-popover": "^6.3.3",
+ "@alfalab/core-components-popover": "^6.3.4",
"@alfalab/core-components-mq": "^4.4.0",
"@alfalab/icons-glyph": "^2.189.0",
"@maskito/core": "^1.7.0",
"@maskito/react": "^1.7.0",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"date-fns": "^2.16.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
+ "devDependencies": {
+ "@alfalab/core-components-calendar": "^7.17.1"
+ },
"themesVersion": "13.6.0",
"varsVersion": "9.16.0"
}
diff --git a/packages/with-suffix/CHANGELOG.md b/packages/with-suffix/CHANGELOG.md
index d2bf880c20..c5f230bc05 100644
--- a/packages/with-suffix/CHANGELOG.md
+++ b/packages/with-suffix/CHANGELOG.md
@@ -1,5 +1,25 @@
# Change Log
+## 4.2.10
+
+### Patch Changes
+
+13.12.2024
+
+### [#1478](https://github.com/core-ds/core-components/pull/1478)
+
+- Вендор classnames обновлён 2.3.1 -> 2.5.1
+
+- Обновлены зависимости
+ - input@15.3.4
+
+## 4.2.9
+
+### Patch Changes
+
+- Обновлены зависимости
+ - input@15.3.3
+
## 4.2.8
### Patch Changes
diff --git a/packages/with-suffix/package.json b/packages/with-suffix/package.json
index a931622f8c..c47c13cbde 100644
--- a/packages/with-suffix/package.json
+++ b/packages/with-suffix/package.json
@@ -1,6 +1,6 @@
{
"name": "@alfalab/core-components-with-suffix",
- "version": "4.2.8",
+ "version": "4.2.10",
"description": "",
"keywords": [],
"license": "MIT",
@@ -14,9 +14,9 @@
"react": "^16.9.0 || ^17.0.1 || ^18.0.0"
},
"dependencies": {
- "@alfalab/core-components-input": "^15.3.2",
+ "@alfalab/core-components-input": "^15.3.4",
"@alfalab/core-components-portal": "^3.3.4",
- "classnames": "^2.3.1",
+ "classnames": "^2.5.1",
"react-merge-refs": "^1.1.0",
"tslib": "^2.4.0"
},
diff --git a/yarn.lock b/yarn.lock
index 71e4a69988..2bad685e9e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -67,10 +67,10 @@
resolved "https://registry.yarnpkg.com/@alfalab/data/-/data-1.7.0.tgz#87e1525d2b653b9312d5b008df62b13193d1dc0c"
integrity sha512-aw1zL8TktUn3wCLcHVns2ndHypmMqINmqAc6E2nL90FFnh4ieWzw9gRRfUesNmbFNTRnkdp9VpI0ASS7l4kyEQ==
-"@alfalab/data@^1.8.0":
- version "1.8.0"
- resolved "https://registry.yarnpkg.com/@alfalab/data/-/data-1.8.0.tgz#2f991e196946336541de5a7d64eabf7caf02b58c"
- integrity sha512-hyYAw8tbx099ibX9r9T3YiOkxI+s7p/Hi7WOQC6cF+Uy5KX/0usghFyt/gUjj+7acf6G+zx1VwAtcI9tSUle9w==
+"@alfalab/data@^1.9.1":
+ version "1.9.1"
+ resolved "https://registry.yarnpkg.com/@alfalab/data/-/data-1.9.1.tgz#1bb3dcf5dd062ddb3aa458022bbf81c0c0ef6b0c"
+ integrity sha512-RJQjs01k0MYtv9UwWxz5rL5XiOCsRO1gfrgQxZj8CqQShyLNfBuNTxcvKKY/5uuY2rBv9kN1PZrW57Fsc/DyGg==
"@alfalab/hooks@^1.13.0":
version "1.13.0"
@@ -80,6 +80,14 @@
"@alfalab/utils" "^1.13.2"
uuid "^8.3.2"
+"@alfalab/hooks@^1.13.1":
+ version "1.13.1"
+ resolved "https://registry.yarnpkg.com/@alfalab/hooks/-/hooks-1.13.1.tgz#735b802c3bf753417e36c2a7e641d3c448676c16"
+ integrity sha512-K3vWoksc9pY0s7+ZOkd/fPeHI+ZPdtj7YhF9GwEZxBYMxdlFbKIhcIn0y8fPuz5fa+B6qvlJL2n+jGCMK3Lnaw==
+ dependencies:
+ "@alfalab/utils" "^1.17.1"
+ uuid "^8.3.2"
+
"@alfalab/icons-glyph@^2.108.0", "@alfalab/icons-glyph@^2.66.0":
version "2.140.0"
resolved "https://registry.yarnpkg.com/@alfalab/icons-glyph/-/icons-glyph-2.140.0.tgz#31cb75bf2495b082a0b8d0e3f4a8c2c47e3e2eb6"
@@ -121,13 +129,13 @@
"@alfalab/data" "^1.7.0"
lodash "4.17.21"
-"@alfalab/utils@^1.15.2":
- version "1.15.2"
- resolved "https://registry.yarnpkg.com/@alfalab/utils/-/utils-1.15.2.tgz#309d0c9add52a59244f9d74eb720c2ad5fe14209"
- integrity sha512-FD6eH06OHwNB4wr6A81aIAnJjXosXalTnfUiRMA6VALSQBCsvcvxH8BmLUxsLb5Hb84rJS01Q+zk3onT2JBjYA==
+"@alfalab/utils@^1.17.1":
+ version "1.17.1"
+ resolved "https://registry.yarnpkg.com/@alfalab/utils/-/utils-1.17.1.tgz#5e509bafb3b1482c48047767985df1f76e1a2065"
+ integrity sha512-MniVTU5muLg2f8uX0jp3wQRB5LiadhqCSvNfasLYJA+EHksjXwc5vZm1mh/n+Mku5e8B72rpSnUmGRU1DESArg==
dependencies:
- "@alfalab/data" "^1.8.0"
- lodash "4.17.21"
+ "@alfalab/data" "^1.9.1"
+ lodash "^4.17.21"
"@alloc/quick-lru@^5.2.0":
version "5.2.0"
@@ -5327,11 +5335,6 @@
dependencies:
"@types/ms" "*"
-"@types/deep-equal@^1.0.4":
- version "1.0.4"
- resolved "https://registry.yarnpkg.com/@types/deep-equal/-/deep-equal-1.0.4.tgz#c0a854be62d6b9fae665137a6639aab53389a147"
- integrity sha512-tqdiS4otQP4KmY0PR3u6KbZ5EWvhNdUoS/jc93UuK23C220lOZ/9TvjfxdPcKvqwwDVtmtSCrnr0p/2dirAxkA==
-
"@types/detect-port@^1.3.0":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@types/detect-port/-/detect-port-1.3.2.tgz#8c06a975e472803b931ee73740aeebd0a2eb27ae"
@@ -5543,42 +5546,26 @@
resolved "https://registry.yarnpkg.com/@types/lockfile/-/lockfile-1.0.2.tgz#3f77e84171a2b7e3198bd5717c7547a54393baf8"
integrity sha512-jD5VbvhfMhaYN4M3qPJuhMVUg3Dfc4tvPvLEAXn6GXbs/ajDFtCQahX37GIE65ipTI3I+hEvNaXS3MYAn9Ce3Q==
-"@types/lodash.camelcase@^4.3.6":
- version "4.3.6"
- resolved "https://registry.npmjs.org/@types/lodash.camelcase/-/lodash.camelcase-4.3.6.tgz"
- integrity sha512-hd/TEuPd76Jtf1xEq85CHbCqR+iqvs5IOKyrYbiaOg69BRQgPN9XkvLj8Jl8rBp/dfJ2wQ1AVcP8mZmybq7kIg==
- dependencies:
- "@types/lodash" "*"
-
"@types/lodash.debounce@^4.0.6":
- version "4.0.6"
- resolved "https://registry.npmjs.org/@types/lodash.debounce/-/lodash.debounce-4.0.6.tgz"
- integrity sha512-4WTmnnhCfDvvuLMaF3KV4Qfki93KebocUF45msxhYyjMttZDQYzHkO639ohhk8+oco2cluAFL3t5+Jn4mleylQ==
- dependencies:
- "@types/lodash" "*"
-
-"@types/lodash.kebabcase@^4.1.6":
- version "4.1.6"
- resolved "https://registry.npmjs.org/@types/lodash.kebabcase/-/lodash.kebabcase-4.1.6.tgz"
- integrity sha512-+RAD9pCAa8kuVyCYTeDNiwBXwD/0u0p+hos3NSqD+tXTjJextbfF3farfYB+ssAKgEssoewXEtBsfwBpsI7gsA==
+ version "4.0.9"
+ resolved "https://registry.yarnpkg.com/@types/lodash.debounce/-/lodash.debounce-4.0.9.tgz#0f5f21c507bce7521b5e30e7a24440975ac860a5"
+ integrity sha512-Ma5JcgTREwpLRwMM+XwBR7DaWe96nC38uCBDFKZWbNKD+osjVzdpnUSwBcqCptrp16sSOLBAUb50Car5I0TCsQ==
dependencies:
"@types/lodash" "*"
"@types/lodash.throttle@^4.1.7":
- version "4.1.7"
- resolved "https://registry.yarnpkg.com/@types/lodash.throttle/-/lodash.throttle-4.1.7.tgz#4ef379eb4f778068022310ef166625f420b6ba58"
- integrity sha512-znwGDpjCHQ4FpLLx19w4OXDqq8+OvREa05H89obtSyXyOFKL3dDjCslsmfBz0T2FU8dmf5Wx1QvogbINiGIu9g==
+ version "4.1.9"
+ resolved "https://registry.yarnpkg.com/@types/lodash.throttle/-/lodash.throttle-4.1.9.tgz#f17a6ae084f7c0117bd7df145b379537bc9615c5"
+ integrity sha512-PCPVfpfueguWZQB7pJQK890F2scYKoDUL3iM522AptHWn7d5NQmeS/LTEHIcLr5PaTzl3dK2Z0xSUHHTHwaL5g==
dependencies:
"@types/lodash" "*"
-"@types/lodash.upperfirst@^4.3.6":
- version "4.3.6"
- resolved "https://registry.npmjs.org/@types/lodash.upperfirst/-/lodash.upperfirst-4.3.6.tgz"
- integrity sha512-op4ctKkT1eD/Nt8MCPlN7O2IQrYWIcH1rOPHM86SKzbliLG50eVXM6+qzkdxtBV7DZb3W/1Up2+k43WK9F0Bgg==
- dependencies:
- "@types/lodash" "*"
+"@types/lodash@*", "@types/lodash@^4.17.13":
+ version "4.17.13"
+ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.13.tgz#786e2d67cfd95e32862143abe7463a7f90c300eb"
+ integrity sha512-lfx+dftrEZcdBPczf9d0Qv0x+j/rfNCMuC6OcfXmO8gkfeNAY88PgKUbvG56whcN23gc27yenwF6oJZXGFpYxg==
-"@types/lodash@*", "@types/lodash@^4.14.167":
+"@types/lodash@^4.14.167":
version "4.14.182"
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz"
integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
@@ -6764,13 +6751,6 @@ available-typed-arrays@^1.0.5:
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==
-available-typed-arrays@^1.0.7:
- version "1.0.7"
- resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846"
- integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==
- dependencies:
- possible-typed-array-names "^1.0.0"
-
axe-core@^4.2.0, axe-core@^4.6.2:
version "4.7.0"
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.7.0.tgz#34ba5a48a8b564f67e103f0aa5768d76e15bbbbf"
@@ -7367,17 +7347,6 @@ call-bind@^1.0.0, call-bind@^1.0.2:
function-bind "^1.1.1"
get-intrinsic "^1.0.2"
-call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7:
- version "1.0.7"
- resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9"
- integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==
- dependencies:
- es-define-property "^1.0.0"
- es-errors "^1.3.0"
- function-bind "^1.1.2"
- get-intrinsic "^1.2.4"
- set-function-length "^1.2.1"
-
call-me-maybe@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz"
@@ -7631,6 +7600,11 @@ classnames@^2.2.5, classnames@^2.3.1:
resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.3.1.tgz#dfcfa3891e306ec1dad105d0e88f4417b8535e8e"
integrity sha512-OlQdbZ7gLfGarSqxesMesDa5uz7KFbID8Kpq/SxIoNGDqY8lSYs0D+hhtBXhcdB3rcbXArFr7vlHheLk1voeNA==
+classnames@^2.5.1:
+ version "2.5.1"
+ resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b"
+ integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==
+
clean-css@^5.2.2:
version "5.3.2"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.2.tgz#70ecc7d4d4114921f5d298349ff86a31a9975224"
@@ -8959,30 +8933,6 @@ deep-equal@^2.0.5:
which-collection "^1.0.1"
which-typed-array "^1.1.9"
-deep-equal@^2.2.3:
- version "2.2.3"
- resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.3.tgz#af89dafb23a396c7da3e862abc0be27cf51d56e1"
- integrity sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==
- dependencies:
- array-buffer-byte-length "^1.0.0"
- call-bind "^1.0.5"
- es-get-iterator "^1.1.3"
- get-intrinsic "^1.2.2"
- is-arguments "^1.1.1"
- is-array-buffer "^3.0.2"
- is-date-object "^1.0.5"
- is-regex "^1.1.4"
- is-shared-array-buffer "^1.0.2"
- isarray "^2.0.5"
- object-is "^1.1.5"
- object-keys "^1.1.1"
- object.assign "^4.1.4"
- regexp.prototype.flags "^1.5.1"
- side-channel "^1.0.4"
- which-boxed-primitive "^1.0.2"
- which-collection "^1.0.1"
- which-typed-array "^1.1.13"
-
deep-is@^0.1.3:
version "0.1.4"
resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831"
@@ -9015,15 +8965,6 @@ defaults@^1.0.3:
dependencies:
clone "^1.0.2"
-define-data-property@^1.0.1, define-data-property@^1.1.4:
- version "1.1.4"
- resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e"
- integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==
- dependencies:
- es-define-property "^1.0.0"
- es-errors "^1.3.0"
- gopd "^1.0.1"
-
define-lazy-prop@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz"
@@ -9037,15 +8978,6 @@ define-properties@^1.1.3, define-properties@^1.1.4, define-properties@^1.2.0:
has-property-descriptors "^1.0.0"
object-keys "^1.1.1"
-define-properties@^1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c"
- integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==
- dependencies:
- define-data-property "^1.0.1"
- has-property-descriptors "^1.0.0"
- object-keys "^1.1.1"
-
define-property@^0.2.5:
version "0.2.5"
resolved "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz"
@@ -9711,18 +9643,6 @@ es-abstract@^1.17.2, es-abstract@^1.18.0-next.1, es-abstract@^1.19.0, es-abstrac
unbox-primitive "^1.0.2"
which-typed-array "^1.1.9"
-es-define-property@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845"
- integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==
- dependencies:
- get-intrinsic "^1.2.4"
-
-es-errors@^1.3.0:
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f"
- integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==
-
es-get-iterator@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz#3ef87523c5d464d41084b2c3c9c214f1199763d6"
@@ -10953,11 +10873,6 @@ function-bind@^1.1.1:
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
-function-bind@^1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
- integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
-
function.prototype.name@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621"
@@ -11014,17 +10929,6 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@
has-proto "^1.0.1"
has-symbols "^1.0.3"
-get-intrinsic@^1.2.2, get-intrinsic@^1.2.4:
- version "1.2.4"
- resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd"
- integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==
- dependencies:
- es-errors "^1.3.0"
- function-bind "^1.1.2"
- has-proto "^1.0.1"
- has-symbols "^1.0.3"
- hasown "^2.0.0"
-
get-nonce@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/get-nonce/-/get-nonce-1.0.1.tgz#fdf3f0278073820d2ce9426c18f07481b1e0cdf3"
@@ -11527,13 +11431,6 @@ has-property-descriptors@^1.0.0:
dependencies:
get-intrinsic "^1.1.1"
-has-property-descriptors@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854"
- integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==
- dependencies:
- es-define-property "^1.0.0"
-
has-proto@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0"
@@ -11551,13 +11448,6 @@ has-tostringtag@^1.0.0:
dependencies:
has-symbols "^1.0.2"
-has-tostringtag@^1.0.2:
- version "1.0.2"
- resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc"
- integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==
- dependencies:
- has-symbols "^1.0.3"
-
has-unicode@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz"
@@ -11601,13 +11491,6 @@ has@^1.0.3:
dependencies:
function-bind "^1.1.1"
-hasown@^2.0.0:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
- integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
- dependencies:
- function-bind "^1.1.2"
-
hast-util-to-string@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/hast-util-to-string/-/hast-util-to-string-2.0.0.tgz#b008b0a4ea472bf34dd390b7eea1018726ae152a"
@@ -14309,11 +14192,6 @@ lodash.uniq@^4.5.0:
resolved "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
-lodash.upperfirst@^4.3.1:
- version "4.3.1"
- resolved "https://registry.npmjs.org/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz"
- integrity sha1-E2Xt9DFIBIHvDRxolXpe2Z1J984=
-
lodash@4.17.21, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0:
version "4.17.21"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz"
@@ -16202,11 +16080,6 @@ posix-character-classes@^0.1.0:
resolved "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
-possible-typed-array-names@^1.0.0:
- version "1.0.0"
- resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
- integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==
-
postcss-attribute-case-insensitive@^4.0.1:
version "4.0.2"
resolved "https://registry.npmjs.org/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz"
@@ -17752,6 +17625,11 @@ react-fast-compare@^3.0.1:
resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.0.tgz"
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
+react-fast-compare@^3.2.2:
+ version "3.2.2"
+ resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.2.tgz#929a97a532304ce9fee4bcae44234f1ce2c21d49"
+ integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==
+
react-focus-lock@^2.12.1:
version "2.12.1"
resolved "https://registry.yarnpkg.com/react-focus-lock/-/react-focus-lock-2.12.1.tgz#0eaefd5fc34de8998967043d902e426352393349"
@@ -18325,16 +18203,6 @@ regexp.prototype.flags@^1.4.3, regexp.prototype.flags@^1.5.0:
define-properties "^1.2.0"
functions-have-names "^1.2.3"
-regexp.prototype.flags@^1.5.1:
- version "1.5.2"
- resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334"
- integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==
- dependencies:
- call-bind "^1.0.6"
- define-properties "^1.2.1"
- es-errors "^1.3.0"
- set-function-name "^2.0.1"
-
regexpu-core@^4.2.0:
version "4.7.1"
resolved "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.7.1.tgz"
@@ -18989,28 +18857,6 @@ set-blocking@^2.0.0:
resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"
integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
-set-function-length@^1.2.1:
- version "1.2.2"
- resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449"
- integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==
- dependencies:
- define-data-property "^1.1.4"
- es-errors "^1.3.0"
- function-bind "^1.1.2"
- get-intrinsic "^1.2.4"
- gopd "^1.0.1"
- has-property-descriptors "^1.0.2"
-
-set-function-name@^2.0.1:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985"
- integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==
- dependencies:
- define-data-property "^1.1.4"
- es-errors "^1.3.0"
- functions-have-names "^1.2.3"
- has-property-descriptors "^1.0.2"
-
set-value@^2.0.0, set-value@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz"
@@ -21478,17 +21324,6 @@ which-pm@2.0.0:
load-yaml-file "^0.2.0"
path-exists "^4.0.0"
-which-typed-array@^1.1.13:
- version "1.1.15"
- resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d"
- integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==
- dependencies:
- available-typed-arrays "^1.0.7"
- call-bind "^1.0.7"
- for-each "^0.3.3"
- gopd "^1.0.1"
- has-tostringtag "^1.0.2"
-
which-typed-array@^1.1.2, which-typed-array@^1.1.9:
version "1.1.9"
resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6"