@cloud-ru/uikit-product-mobile-fields 0.12.3 → 0.12.4

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
+ ## 0.12.4 (2025-12-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **PDS-3335:** FieldSelect disabled tag background-color ([8e169bd](https://gitverse.ru/cloud-ru-tech/uikit-product/commits/8e169bd5f5c2857c661b1bb819742e0173e744d0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 0.12.3 (2025-12-17)
7
18
 
8
19
  ### Only dependencies have been changed
@@ -149,6 +149,6 @@ exports.MobileFieldSelectMultiple = (0, react_1.forwardRef)((_a, ref) => {
149
149
  }, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.contentWrapper, ref: contentRef, children: [selectedItems &&
150
150
  selectedItems.map(option => {
151
151
  var _a;
152
- return ((0, jsx_runtime_1.jsx)(tag_1.Tag, { size: size === 'l' ? 's' : 'xs', tabIndex: -1, label: selectedOptionFormatter(option), appearance: (_a = option.appearance) !== null && _a !== void 0 ? _a : 'neutral' }, option.id));
152
+ return ((0, jsx_runtime_1.jsx)(tag_1.Tag, { size: size === 'l' ? 's' : 'xs', tabIndex: -1, label: selectedOptionFormatter(option), appearance: (_a = option.appearance) !== null && _a !== void 0 ? _a : 'neutral', className: styles_module_scss_1.default.tag, "data-disabled": disabled || undefined }, option.id));
153
153
  }), (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.inputWrapper, children: (0, jsx_runtime_1.jsx)(input_private_1.InputPrivate, { id: id, name: name, type: 'text', disabled: disabled, placeholder: !selectedItems || !selectedItems.length ? placeholder : undefined, ref: (0, merge_refs_1.default)(ref, localRef), onChange: undefined, value: '', inputMode: 'none', "data-test-id": 'field-select__input', onBlur: handleBlur, className: styles_module_scss_1.default.readonlyCursor, autoFocus: autoFocus }) })] }), (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.postfix, children: [postfixButtons, postfixSettings.show && postfixSettings.render({ key: postfixSettings.id }), (0, jsx_runtime_1.jsx)(ArrowIcon, { size: arrowIconSize, className: styles_module_scss_1.default.arrowIcon })] })] }) }) })), (0, jsx_runtime_1.jsxs)(uikit_product_mobile_modal_1.MobileModalCustom, { open: open, onClose: () => handleOpenChange(false), size: searchable ? 'full' : 'auto', children: [rest.label && (0, jsx_runtime_1.jsx)(uikit_product_mobile_modal_1.MobileModalCustom.Header, { title: rest.label }), searchable ? listJsx : (0, jsx_runtime_1.jsx)(uikit_product_mobile_modal_1.MobileModalCustom.Body, { className: styles_module_scss_1.default.bodyNoPadding, content: listJsx }), (0, jsx_runtime_1.jsx)(uikit_product_mobile_modal_1.MobileModalCustom.Footer, { actions: (0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.footer, children: [(0, jsx_runtime_1.jsxs)("div", { className: styles_module_scss_1.default.footerTopLine, children: [(0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_1.default.counter, children: `${t('selectedN')}${(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) || 0}` }), (0, jsx_runtime_1.jsx)(button_1.ButtonFunction, { size: 'm', label: t('resetAll'), onClick: onClear, "data-test-id": 'field-select__reset-all-button' })] }), (0, jsx_runtime_1.jsx)(button_1.ButtonFilled, { fullWidth: true, label: t('select'), "data-test-id": 'field-select__approve-button', onClick: handleApplyChange, size: 'l' })] }) })] })] }));
154
154
  });
@@ -53,6 +53,12 @@
53
53
  .tagContainer[data-size=l] .contentWrapper{
54
54
  gap:var(--space-fields-single-line-container-l-gap, 8px);
55
55
  }
56
+ .tagContainer[data-disabled] .tag[data-disabled]{
57
+ background-color:var(--sys-neutral-decor-default, #dde0ea);
58
+ }
59
+ .tagContainer[data-disabled] .tag[data-disabled] *{
60
+ background-color:inherit;
61
+ }
56
62
 
57
63
  .container{
58
64
  position:relative;
@@ -143,6 +143,6 @@ export const MobileFieldSelectMultiple = forwardRef((_a, ref) => {
143
143
  }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: styles.contentWrapper, ref: contentRef, children: [selectedItems &&
144
144
  selectedItems.map(option => {
145
145
  var _a;
146
- return (_jsx(Tag, { size: size === 'l' ? 's' : 'xs', tabIndex: -1, label: selectedOptionFormatter(option), appearance: (_a = option.appearance) !== null && _a !== void 0 ? _a : 'neutral' }, option.id));
146
+ return (_jsx(Tag, { size: size === 'l' ? 's' : 'xs', tabIndex: -1, label: selectedOptionFormatter(option), appearance: (_a = option.appearance) !== null && _a !== void 0 ? _a : 'neutral', className: styles.tag, "data-disabled": disabled || undefined }, option.id));
147
147
  }), _jsx("div", { className: styles.inputWrapper, children: _jsx(InputPrivate, { id: id, name: name, type: 'text', disabled: disabled, placeholder: !selectedItems || !selectedItems.length ? placeholder : undefined, ref: mergeRefs(ref, localRef), onChange: undefined, value: '', inputMode: 'none', "data-test-id": 'field-select__input', onBlur: handleBlur, className: styles.readonlyCursor, autoFocus: autoFocus }) })] }), _jsxs("div", { className: styles.postfix, children: [postfixButtons, postfixSettings.show && postfixSettings.render({ key: postfixSettings.id }), _jsx(ArrowIcon, { size: arrowIconSize, className: styles.arrowIcon })] })] }) }) })), _jsxs(MobileModalCustom, { open: open, onClose: () => handleOpenChange(false), size: searchable ? 'full' : 'auto', children: [rest.label && _jsx(MobileModalCustom.Header, { title: rest.label }), searchable ? listJsx : _jsx(MobileModalCustom.Body, { className: styles.bodyNoPadding, content: listJsx }), _jsx(MobileModalCustom.Footer, { actions: _jsxs("div", { className: styles.footer, children: [_jsxs("div", { className: styles.footerTopLine, children: [_jsx("span", { className: styles.counter, children: `${t('selectedN')}${(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) || 0}` }), _jsx(ButtonFunction, { size: 'm', label: t('resetAll'), onClick: onClear, "data-test-id": 'field-select__reset-all-button' })] }), _jsx(ButtonFilled, { fullWidth: true, label: t('select'), "data-test-id": 'field-select__approve-button', onClick: handleApplyChange, size: 'l' })] }) })] })] }));
148
148
  });
@@ -53,6 +53,12 @@
53
53
  .tagContainer[data-size=l] .contentWrapper{
54
54
  gap:var(--space-fields-single-line-container-l-gap, 8px);
55
55
  }
56
+ .tagContainer[data-disabled] .tag[data-disabled]{
57
+ background-color:var(--sys-neutral-decor-default, #dde0ea);
58
+ }
59
+ .tagContainer[data-disabled] .tag[data-disabled] *{
60
+ background-color:inherit;
61
+ }
56
62
 
57
63
  .container{
58
64
  position:relative;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-mobile-fields",
3
3
  "title": "Mobile Fields",
4
- "version": "0.12.3",
4
+ "version": "0.12.4",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -42,7 +42,7 @@
42
42
  "@cloud-ru/uikit-product-utils": "8.1.0",
43
43
  "@snack-uikit/button": "0.19.15",
44
44
  "@snack-uikit/calendar": "0.13.0",
45
- "@snack-uikit/fields": "0.51.12",
45
+ "@snack-uikit/fields": "0.51.14",
46
46
  "@snack-uikit/input-private": "4.8.5",
47
47
  "@snack-uikit/list": "0.32.1",
48
48
  "@snack-uikit/scroll": "0.10.4",
@@ -62,5 +62,5 @@
62
62
  "peerDependencies": {
63
63
  "@cloud-ru/uikit-product-locale": "*"
64
64
  },
65
- "gitHead": "1a98d6d9bff32edcbb3f9b0be0a14dce3f2abe5d"
65
+ "gitHead": "629fe2bd96a28ea24b60a04c913fbbe453d104b7"
66
66
  }
@@ -266,6 +266,8 @@ export const MobileFieldSelectMultiple: ForwardRefExoticComponent<
266
266
  label={selectedOptionFormatter(option)}
267
267
  key={option.id}
268
268
  appearance={option.appearance ?? 'neutral'}
269
+ className={styles.tag}
270
+ data-disabled={disabled || undefined}
269
271
  />
270
272
  ))}
271
273
 
@@ -40,6 +40,18 @@ $base-min-width: 4px;
40
40
  }
41
41
  }
42
42
  }
43
+
44
+ &[data-disabled] {
45
+ .tag {
46
+ &[data-disabled] {
47
+ background-color: styles-tokens-fields.simple-var(styles-tokens-fields.$sys-neutral-decor-default);
48
+
49
+ * {
50
+ background-color: inherit;
51
+ }
52
+ }
53
+ }
54
+ }
43
55
  }
44
56
 
45
57
  .container {