@cloud-ru/uikit-product-site-banner 0.4.1 → 0.5.1

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,26 @@
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
+ ## 0.5.1 (2026-01-29)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@cloud-ru/uikit-product-button-predefined@0.7.16](https://gitverse.ru/cloud-ru-tech/uikit-product/-/blob/master/packages/button-predefined/CHANGELOG.md)
10
+
11
+
12
+
13
+
14
+
15
+ # 0.5.0 (2026-01-13)
16
+
17
+
18
+ ### Features
19
+
20
+ * **SITE-10478:** add border radius for banner primary ([a6accec](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/a6accecb766c5ef90ae767b6f39dc2acfb5acfa1))
21
+
22
+
23
+
24
+
25
+
6
26
  ## 0.4.1 (2025-12-17)
7
27
 
8
28
  ### Only dependencies have been changed
@@ -29,5 +29,5 @@ const IMAGE_SIZE = {
29
29
  };
30
30
  function BannerPrimary(_a) {
31
31
  var { tags, imgType, layoutType, expirationDate } = _a, props = __rest(_a, ["tags", "imgType", "layoutType", "expirationDate"]);
32
- return ((0, jsx_runtime_1.jsx)(BannerCommon_1.BannerCommon, Object.assign({ sizes: { image: IMAGE_SIZE[layoutType][imgType], mainGap: layoutType === 'mobile' ? 24 : 32 }, layoutType: layoutType, topSlot: (tags || expirationDate) && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.tags, children: [expirationDate && ((0, jsx_runtime_1.jsx)(promo_tag_1.PromoTag, { size: 'xs', text: `Действует до ${expirationDate}`, appearance: 'neutral', color: 'decor', className: styles_module_scss_1.default.promoTag })), tags === null || tags === void 0 ? void 0 : tags.map((props, index) => ((0, jsx_runtime_1.jsx)(uikit_product_site_tag_1.TagSpecial, Object.assign({}, props), index)))] })) }, props)));
32
+ return ((0, jsx_runtime_1.jsx)(BannerCommon_1.BannerCommon, Object.assign({ sizes: { image: IMAGE_SIZE[layoutType][imgType], mainGap: layoutType === 'mobile' ? 24 : 32 }, layoutType: layoutType, className: styles_module_scss_1.default.wrapper, topSlot: (tags || expirationDate) && ((0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.tags, children: [expirationDate && ((0, jsx_runtime_1.jsx)(promo_tag_1.PromoTag, { size: 'xs', text: `Действует до ${expirationDate}`, appearance: 'neutral', color: 'decor', className: styles_module_scss_1.default.promoTag })), tags === null || tags === void 0 ? void 0 : tags.map((props, index) => ((0, jsx_runtime_1.jsx)(uikit_product_site_tag_1.TagSpecial, Object.assign({}, props), index)))] })) }, props)));
33
33
  }
@@ -5,4 +5,8 @@
5
5
  }
6
6
  .tags .promoTag{
7
7
  border-radius:2px;
8
+ }
9
+
10
+ .wrapper{
11
+ border-radius:4px;
8
12
  }
@@ -23,5 +23,5 @@ const IMAGE_SIZE = {
23
23
  };
24
24
  export function BannerPrimary(_a) {
25
25
  var { tags, imgType, layoutType, expirationDate } = _a, props = __rest(_a, ["tags", "imgType", "layoutType", "expirationDate"]);
26
- return (_jsx(BannerCommon, Object.assign({ sizes: { image: IMAGE_SIZE[layoutType][imgType], mainGap: layoutType === 'mobile' ? 24 : 32 }, layoutType: layoutType, topSlot: (tags || expirationDate) && (_jsxs("div", { className: styles.tags, children: [expirationDate && (_jsx(PromoTag, { size: 'xs', text: `Действует до ${expirationDate}`, appearance: 'neutral', color: 'decor', className: styles.promoTag })), tags === null || tags === void 0 ? void 0 : tags.map((props, index) => (_jsx(TagSpecial, Object.assign({}, props), index)))] })) }, props)));
26
+ return (_jsx(BannerCommon, Object.assign({ sizes: { image: IMAGE_SIZE[layoutType][imgType], mainGap: layoutType === 'mobile' ? 24 : 32 }, layoutType: layoutType, className: styles.wrapper, topSlot: (tags || expirationDate) && (_jsxs("div", { className: styles.tags, children: [expirationDate && (_jsx(PromoTag, { size: 'xs', text: `Действует до ${expirationDate}`, appearance: 'neutral', color: 'decor', className: styles.promoTag })), tags === null || tags === void 0 ? void 0 : tags.map((props, index) => (_jsx(TagSpecial, Object.assign({}, props), index)))] })) }, props)));
27
27
  }
@@ -5,4 +5,8 @@
5
5
  }
6
6
  .tags .promoTag{
7
7
  border-radius:2px;
8
+ }
9
+
10
+ .wrapper{
11
+ border-radius:4px;
8
12
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-site-banner",
3
3
  "title": "Site Banner",
4
- "version": "0.4.1",
4
+ "version": "0.5.1",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-button-predefined": "0.7.15",
39
+ "@cloud-ru/uikit-product-button-predefined": "0.7.16",
40
40
  "@cloud-ru/uikit-product-site-rich-text": "0.2.17",
41
41
  "@cloud-ru/uikit-product-site-tag": "0.4.1",
42
42
  "@cloud-ru/uikit-product-utils": "8.1.0",
@@ -45,5 +45,5 @@
45
45
  "@snack-uikit/utils": "3.7.0",
46
46
  "classnames": "2.5.1"
47
47
  },
48
- "gitHead": "1a98d6d9bff32edcbb3f9b0be0a14dce3f2abe5d"
48
+ "gitHead": "f4fa36c232b7f4dd934a902694108db993d8b676"
49
49
  }
@@ -26,6 +26,7 @@ export function BannerPrimary({ tags, imgType, layoutType, expirationDate, ...pr
26
26
  <BannerCommon
27
27
  sizes={{ image: IMAGE_SIZE[layoutType][imgType], mainGap: layoutType === 'mobile' ? 24 : 32 }}
28
28
  layoutType={layoutType}
29
+ className={styles.wrapper}
29
30
  topSlot={
30
31
  (tags || expirationDate) && (
31
32
  <div className={styles.tags}>
@@ -7,3 +7,7 @@
7
7
  border-radius: 2px;
8
8
  }
9
9
  }
10
+
11
+ .wrapper {
12
+ border-radius: 4px;
13
+ }