@cloud-ru/uikit-product-site-header 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.1.0 (2026-09-25)
7
+
8
+
9
+ ### Features
10
+
11
+ * **SITE-12116:** update Avatar view in site-header ([1022640](https://github.com/cloud-ru-tech/uikit-product/commit/102264064b495b1ae93f2bb5d797322f01fc6e5d))
12
+
13
+
14
+
15
+
16
+
6
17
  # 3.0.0 (2026-09-22)
7
18
 
8
19
 
@@ -10,6 +10,6 @@ const avatar_1 = require("@snack-uikit/avatar");
10
10
  const typography_1 = require("@snack-uikit/typography");
11
11
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
12
12
  function UserInfo({ userName, lastName, className }) {
13
- const fullName = `${lastName} ${userName}`;
13
+ const fullName = `${userName} ${lastName}`;
14
14
  return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.root, className), children: [(0, jsx_runtime_1.jsx)(avatar_1.Avatar, { name: fullName, size: 'xs', showTwoSymbols: true, appearance: 'green' }), (0, jsx_runtime_1.jsx)(typography_1.Typography, { tag: 'div', size: 's', purpose: 'body', family: 'sans', className: styles_module_scss_1.default.text, children: fullName })] }));
15
15
  }
@@ -4,6 +4,6 @@ import { Avatar } from '@snack-uikit/avatar';
4
4
  import { Typography } from '@snack-uikit/typography';
5
5
  import styles from './styles.module.css';
6
6
  export function UserInfo({ userName, lastName, className }) {
7
- const fullName = `${lastName} ${userName}`;
7
+ const fullName = `${userName} ${lastName}`;
8
8
  return (_jsxs("div", { className: cn(styles.root, className), children: [_jsx(Avatar, { name: fullName, size: 'xs', showTwoSymbols: true, appearance: 'green' }), _jsx(Typography, { tag: 'div', size: 's', purpose: 'body', family: 'sans', className: styles.text, children: fullName })] }));
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-header",
3
3
  "title": "Siteheader",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -44,10 +44,10 @@
44
44
  "@snack-uikit/typography": "^1.0.1",
45
45
  "classnames": "^2.5.1",
46
46
  "@cloud-ru/uikit-product-button-predefined": "^2.0.0",
47
- "@cloud-ru/uikit-product-icons": "^19.0.0",
48
- "@cloud-ru/uikit-product-mobile-alert": "^2.0.0",
49
- "@cloud-ru/uikit-product-mobile-modal": "^3.0.0",
50
47
  "@cloud-ru/uikit-product-site-layout": "^2.0.0",
48
+ "@cloud-ru/uikit-product-mobile-modal": "^3.0.0",
49
+ "@cloud-ru/uikit-product-mobile-alert": "^2.0.0",
50
+ "@cloud-ru/uikit-product-icons": "^19.0.0",
51
51
  "@cloud-ru/uikit-product-utils": "^10.0.0"
52
52
  },
53
53
  "peerDependencies": {
@@ -12,7 +12,7 @@ type UserInfoProps = {
12
12
  };
13
13
 
14
14
  export function UserInfo({ userName, lastName, className }: UserInfoProps) {
15
- const fullName = `${lastName} ${userName}`;
15
+ const fullName = `${userName} ${lastName}`;
16
16
 
17
17
  return (
18
18
  <div className={cn(styles.root, className)}>