@cloud-ru/ds-fields 3.0.14-preview-e89a5d25.0 → 3.0.15
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 +10 -0
- package/dist/cjs/components/FieldTextArea/FieldTextArea.js +1 -1
- package/dist/cjs/components/FieldTextArea/styles.module.css +12 -3
- package/dist/cjs/style.css +12 -3
- package/dist/esm/components/FieldTextArea/FieldTextArea.js +1 -1
- package/dist/esm/components/FieldTextArea/styles.module.css +12 -3
- package/dist/esm/style.css +12 -3
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +20 -20
- package/src/components/FieldTextArea/FieldTextArea.tsx +1 -1
- package/src/components/FieldTextArea/styles.module.scss +16 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.0.15 (2026-11-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **FF-9422:** make resize work in Safari ([b791878](https://github.com/cloud-ru-tech/snack-v2/commit/b791878ea32b5c1ec8efccebfef874e2debe467d))
|
|
11
|
+
|
|
12
|
+
## 3.0.14 (2026-11-13)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @ds/fields
|
|
15
|
+
|
|
6
16
|
## 3.0.13 (2026-11-12)
|
|
7
17
|
|
|
8
18
|
### Bug Fixes
|
|
@@ -114,6 +114,6 @@ exports.FieldTextArea = (0, react_1.forwardRef)(function FieldTextArea({ label =
|
|
|
114
114
|
const handleMouseLeave = (0, react_1.useCallback)(() => {
|
|
115
115
|
setHover(false);
|
|
116
116
|
}, []);
|
|
117
|
-
const shell = ((0, jsx_runtime_1.jsx)(shared_1.FieldShell, { "data-test-id": constants_1.TEST_IDS.fieldTextAreaShell, className: (0, classnames_1.default)(styles_module_scss_2.default.field, fieldClassName), size: size, validationState: effectiveValidationState, disabled: disabled, readonly: readOnly, background: background, focusVisible: focusVisible, hover: hover, header: header, footer: footer, resizable: isResizable, style: { '--field-textarea-min-rows': minRows, '--field-textarea-max-rows': maxRows }, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.contentWrapper, styles_module_scss_2.default.contentArea), onClick: handleContentClick, children: [(0, jsx_runtime_1.jsx)(scroll_1.Scroll, { className: (0, classnames_1.default)(styles_module_scss_2.default.scrollContainer, { [styles_module_scss_2.default.scrollContainerResizable]: isResizable }), size: scroll_1.SIZE.S, barHideStrategy: scroll_1.BAR_HIDE_STRATEGY.Never, resize: isResizable ? scroll_1.RESIZE.Vertical : scroll_1.RESIZE.None, overflow: { x: 'hidden' }, "data-test-id": constants_1.TEST_IDS.fieldTextAreaScrollArea, children: (0, jsx_runtime_1.jsx)("div", { className: styles_module_scss_1.default.inputArea, children: (0, jsx_runtime_1.jsx)(react_textarea_autosize_1.default, { ref: (0, merge_refs_1.default)(ref, localRef), className: styles_module_scss_2.default.textarea, value: value, onChange: handleChange, placeholder: placeholder, disabled: disabled, readOnly: readOnly, id: id, name: name, maxLength: allowMoreThanMaxLength ? undefined : maxLength, autoFocus: resolvedAutoFocus, inputMode: inputMode, spellCheck: spellCheck, minRows: minRows, tabIndex: inputTabIndex, "data-test-id": constants_1.TEST_IDS.fieldTextAreaInput, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, ...(0, utils_1.extractSupportProps)(rest) }) }) }), postfixButtons && (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_2.default.postfixColumn, children: postfixButtons })] }) }));
|
|
117
|
+
const shell = ((0, jsx_runtime_1.jsx)(shared_1.FieldShell, { "data-test-id": constants_1.TEST_IDS.fieldTextAreaShell, className: (0, classnames_1.default)(styles_module_scss_2.default.field, fieldClassName), size: size, validationState: effectiveValidationState, disabled: disabled, readonly: readOnly, background: background, focusVisible: focusVisible, hover: hover, header: header, footer: footer, resizable: isResizable, style: { '--field-textarea-min-rows': minRows, '--field-textarea-max-rows': maxRows }, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.contentWrapper, styles_module_scss_2.default.contentArea), onClick: handleContentClick, children: [(0, jsx_runtime_1.jsx)(scroll_1.Scroll, { className: (0, classnames_1.default)(styles_module_scss_2.default.scrollContainer, { [styles_module_scss_2.default.scrollContainerResizable]: isResizable }), size: scroll_1.SIZE.S, barHideStrategy: scroll_1.BAR_HIDE_STRATEGY.Never, resize: isResizable ? scroll_1.RESIZE.Vertical : scroll_1.RESIZE.None, overflow: { x: 'hidden' }, "data-test-id": constants_1.TEST_IDS.fieldTextAreaScrollArea, children: (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(styles_module_scss_1.default.inputArea, styles_module_scss_2.default.inputArea), children: (0, jsx_runtime_1.jsx)(react_textarea_autosize_1.default, { ref: (0, merge_refs_1.default)(ref, localRef), className: styles_module_scss_2.default.textarea, value: value, onChange: handleChange, placeholder: placeholder, disabled: disabled, readOnly: readOnly, id: id, name: name, maxLength: allowMoreThanMaxLength ? undefined : maxLength, autoFocus: resolvedAutoFocus, inputMode: inputMode, spellCheck: spellCheck, minRows: minRows, tabIndex: inputTabIndex, "data-test-id": constants_1.TEST_IDS.fieldTextAreaInput, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, ...(0, utils_1.extractSupportProps)(rest) }) }) }), postfixButtons && (0, jsx_runtime_1.jsx)("span", { className: styles_module_scss_2.default.postfixColumn, children: postfixButtons })] }) }));
|
|
118
118
|
return ((0, jsx_runtime_1.jsx)(field_decorator_1.FieldDecorator, { className: className, label: label, labelTooltip: labelTooltip, caption: caption, hint: hint, error: error, validationState: validationState, showHintIcon: showHintIcon, length: length ?? (maxLength ? { current: stringValue.length, max: maxLength } : undefined), required: required, labelFor: id, disabled: disabled, readonly: readOnly, size: size, "data-test-id": dataTestId, children: shell }));
|
|
119
119
|
});
|
|
@@ -24,6 +24,15 @@
|
|
|
24
24
|
.scrollContainerResizable{
|
|
25
25
|
height:calc(var(--field-textarea-min-rows, 3) * var(--field-textarea-row-height));
|
|
26
26
|
}
|
|
27
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents]{
|
|
28
|
+
pointer-events:none;
|
|
29
|
+
}
|
|
30
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea{
|
|
31
|
+
pointer-events:none;
|
|
32
|
+
}
|
|
33
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea *{
|
|
34
|
+
pointer-events:auto;
|
|
35
|
+
}
|
|
27
36
|
|
|
28
37
|
.textarea{
|
|
29
38
|
resize:none;
|
|
@@ -51,7 +60,7 @@
|
|
|
51
60
|
visibility:hidden;
|
|
52
61
|
}
|
|
53
62
|
.field[data-size=s] .textarea{
|
|
54
|
-
|
|
63
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-s-fieldContainer-centeredWrapper-width, var(--sn-density-icon-xs, var(--sn-platform-comfort-icon-xs, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-s-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-s, var(--sn-platform-comfort-spacing-control-container-horizontal-s, var(--sn-platform-comfort-scale-050-2xs, var(--sn-primitive-dimension-4, 4px)))))));
|
|
55
64
|
font-family:var(--sn-regular-body-s-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
56
65
|
font-weight:var(--sn-regular-body-s-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-s, var(--sn-brand-font-fontWeight-light-regular-body-s, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
57
66
|
line-height:var(--sn-regular-body-s-lineHeight, var(--sn-density-typography-roleBody-lineHeightS, var(--sn-platform-comfort-typography-roleBody-lineHeightS, var(--sn-primitive-font-lineHeight-20, 20px))));
|
|
@@ -60,7 +69,7 @@
|
|
|
60
69
|
paragraph-spacing:var(--sn-regular-body-s-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize12, 6px));
|
|
61
70
|
}
|
|
62
71
|
.field[data-size=m] .textarea{
|
|
63
|
-
|
|
72
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-m-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-m-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-m, var(--sn-platform-comfort-spacing-control-container-horizontal-m, var(--sn-platform-comfort-scale-050-xs, var(--sn-primitive-dimension-8, 8px)))))));
|
|
64
73
|
font-family:var(--sn-regular-body-m-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
65
74
|
font-weight:var(--sn-regular-body-m-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-m, var(--sn-brand-font-fontWeight-light-regular-body-m, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
66
75
|
line-height:var(--sn-regular-body-m-lineHeight, var(--sn-density-typography-roleBody-lineHeightM, var(--sn-platform-comfort-typography-roleBody-lineHeightM, var(--sn-primitive-font-lineHeight-24, 24px))));
|
|
@@ -69,7 +78,7 @@
|
|
|
69
78
|
paragraph-spacing:var(--sn-regular-body-m-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize14, 7px));
|
|
70
79
|
}
|
|
71
80
|
.field[data-size=l] .textarea{
|
|
72
|
-
|
|
81
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-l-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-l-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-l, var(--sn-platform-comfort-spacing-control-container-horizontal-l, var(--sn-platform-comfort-scale-050-s, var(--sn-primitive-dimension-12, 12px)))))));
|
|
73
82
|
font-family:var(--sn-regular-body-l-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
74
83
|
font-weight:var(--sn-regular-body-l-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-l, var(--sn-brand-font-fontWeight-light-regular-body-l, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
75
84
|
line-height:var(--sn-regular-body-l-lineHeight, var(--sn-density-typography-roleBody-lineHeightL, var(--sn-platform-comfort-typography-roleBody-lineHeightL, var(--sn-primitive-font-lineHeight-28, 28px))));
|
package/dist/cjs/style.css
CHANGED
|
@@ -307,6 +307,15 @@
|
|
|
307
307
|
.scrollContainerResizable{
|
|
308
308
|
height:calc(var(--field-textarea-min-rows, 3) * var(--field-textarea-row-height));
|
|
309
309
|
}
|
|
310
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents]{
|
|
311
|
+
pointer-events:none;
|
|
312
|
+
}
|
|
313
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea{
|
|
314
|
+
pointer-events:none;
|
|
315
|
+
}
|
|
316
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea *{
|
|
317
|
+
pointer-events:auto;
|
|
318
|
+
}
|
|
310
319
|
|
|
311
320
|
.textarea{
|
|
312
321
|
resize:none;
|
|
@@ -334,7 +343,7 @@
|
|
|
334
343
|
visibility:hidden;
|
|
335
344
|
}
|
|
336
345
|
.field[data-size=s] .textarea{
|
|
337
|
-
|
|
346
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-s-fieldContainer-centeredWrapper-width, var(--sn-density-icon-xs, var(--sn-platform-comfort-icon-xs, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-s-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-s, var(--sn-platform-comfort-spacing-control-container-horizontal-s, var(--sn-platform-comfort-scale-050-2xs, var(--sn-primitive-dimension-4, 4px)))))));
|
|
338
347
|
font-family:var(--sn-regular-body-s-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
339
348
|
font-weight:var(--sn-regular-body-s-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-s, var(--sn-brand-font-fontWeight-light-regular-body-s, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
340
349
|
line-height:var(--sn-regular-body-s-lineHeight, var(--sn-density-typography-roleBody-lineHeightS, var(--sn-platform-comfort-typography-roleBody-lineHeightS, var(--sn-primitive-font-lineHeight-20, 20px))));
|
|
@@ -343,7 +352,7 @@
|
|
|
343
352
|
paragraph-spacing:var(--sn-regular-body-s-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize12, 6px));
|
|
344
353
|
}
|
|
345
354
|
.field[data-size=m] .textarea{
|
|
346
|
-
|
|
355
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-m-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-m-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-m, var(--sn-platform-comfort-spacing-control-container-horizontal-m, var(--sn-platform-comfort-scale-050-xs, var(--sn-primitive-dimension-8, 8px)))))));
|
|
347
356
|
font-family:var(--sn-regular-body-m-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
348
357
|
font-weight:var(--sn-regular-body-m-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-m, var(--sn-brand-font-fontWeight-light-regular-body-m, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
349
358
|
line-height:var(--sn-regular-body-m-lineHeight, var(--sn-density-typography-roleBody-lineHeightM, var(--sn-platform-comfort-typography-roleBody-lineHeightM, var(--sn-primitive-font-lineHeight-24, 24px))));
|
|
@@ -352,7 +361,7 @@
|
|
|
352
361
|
paragraph-spacing:var(--sn-regular-body-m-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize14, 7px));
|
|
353
362
|
}
|
|
354
363
|
.field[data-size=l] .textarea{
|
|
355
|
-
|
|
364
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-l-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-l-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-l, var(--sn-platform-comfort-spacing-control-container-horizontal-l, var(--sn-platform-comfort-scale-050-s, var(--sn-primitive-dimension-12, 12px)))))));
|
|
356
365
|
font-family:var(--sn-regular-body-l-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
357
366
|
font-weight:var(--sn-regular-body-l-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-l, var(--sn-brand-font-fontWeight-light-regular-body-l, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
358
367
|
line-height:var(--sn-regular-body-l-lineHeight, var(--sn-density-typography-roleBody-lineHeightL, var(--sn-platform-comfort-typography-roleBody-lineHeightL, var(--sn-primitive-font-lineHeight-28, 28px))));
|
|
@@ -108,6 +108,6 @@ export const FieldTextArea = forwardRef(function FieldTextArea({ label = '', lab
|
|
|
108
108
|
const handleMouseLeave = useCallback(() => {
|
|
109
109
|
setHover(false);
|
|
110
110
|
}, []);
|
|
111
|
-
const shell = (_jsx(FieldShell, { "data-test-id": TEST_IDS.fieldTextAreaShell, className: cn(styles.field, fieldClassName), size: size, validationState: effectiveValidationState, disabled: disabled, readonly: readOnly, background: background, focusVisible: focusVisible, hover: hover, header: header, footer: footer, resizable: isResizable, style: { '--field-textarea-min-rows': minRows, '--field-textarea-max-rows': maxRows }, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: _jsxs("div", { className: cn(fieldStyles.contentWrapper, styles.contentArea), onClick: handleContentClick, children: [_jsx(Scroll, { className: cn(styles.scrollContainer, { [styles.scrollContainerResizable]: isResizable }), size: SCROLL_SIZE.S, barHideStrategy: BAR_HIDE_STRATEGY.Never, resize: isResizable ? RESIZE.Vertical : RESIZE.None, overflow: { x: 'hidden' }, "data-test-id": TEST_IDS.fieldTextAreaScrollArea, children: _jsx("div", { className: fieldStyles.inputArea, children: _jsx(TextareaAutosize, { ref: mergeRefs(ref, localRef), className: styles.textarea, value: value, onChange: handleChange, placeholder: placeholder, disabled: disabled, readOnly: readOnly, id: id, name: name, maxLength: allowMoreThanMaxLength ? undefined : maxLength, autoFocus: resolvedAutoFocus, inputMode: inputMode, spellCheck: spellCheck, minRows: minRows, tabIndex: inputTabIndex, "data-test-id": TEST_IDS.fieldTextAreaInput, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, ...extractSupportProps(rest) }) }) }), postfixButtons && _jsx("span", { className: styles.postfixColumn, children: postfixButtons })] }) }));
|
|
111
|
+
const shell = (_jsx(FieldShell, { "data-test-id": TEST_IDS.fieldTextAreaShell, className: cn(styles.field, fieldClassName), size: size, validationState: effectiveValidationState, disabled: disabled, readonly: readOnly, background: background, focusVisible: focusVisible, hover: hover, header: header, footer: footer, resizable: isResizable, style: { '--field-textarea-min-rows': minRows, '--field-textarea-max-rows': maxRows }, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: _jsxs("div", { className: cn(fieldStyles.contentWrapper, styles.contentArea), onClick: handleContentClick, children: [_jsx(Scroll, { className: cn(styles.scrollContainer, { [styles.scrollContainerResizable]: isResizable }), size: SCROLL_SIZE.S, barHideStrategy: BAR_HIDE_STRATEGY.Never, resize: isResizable ? RESIZE.Vertical : RESIZE.None, overflow: { x: 'hidden' }, "data-test-id": TEST_IDS.fieldTextAreaScrollArea, children: _jsx("div", { className: cn(fieldStyles.inputArea, styles.inputArea), children: _jsx(TextareaAutosize, { ref: mergeRefs(ref, localRef), className: styles.textarea, value: value, onChange: handleChange, placeholder: placeholder, disabled: disabled, readOnly: readOnly, id: id, name: name, maxLength: allowMoreThanMaxLength ? undefined : maxLength, autoFocus: resolvedAutoFocus, inputMode: inputMode, spellCheck: spellCheck, minRows: minRows, tabIndex: inputTabIndex, "data-test-id": TEST_IDS.fieldTextAreaInput, onFocus: handleFocus, onBlur: handleBlur, onKeyDown: handleKeyDown, ...extractSupportProps(rest) }) }) }), postfixButtons && _jsx("span", { className: styles.postfixColumn, children: postfixButtons })] }) }));
|
|
112
112
|
return (_jsx(FieldDecorator, { className: className, label: label, labelTooltip: labelTooltip, caption: caption, hint: hint, error: error, validationState: validationState, showHintIcon: showHintIcon, length: length ?? (maxLength ? { current: stringValue.length, max: maxLength } : undefined), required: required, labelFor: id, disabled: disabled, readonly: readOnly, size: size, "data-test-id": dataTestId, children: shell }));
|
|
113
113
|
});
|
|
@@ -24,6 +24,15 @@
|
|
|
24
24
|
.scrollContainerResizable{
|
|
25
25
|
height:calc(var(--field-textarea-min-rows, 3) * var(--field-textarea-row-height));
|
|
26
26
|
}
|
|
27
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents]{
|
|
28
|
+
pointer-events:none;
|
|
29
|
+
}
|
|
30
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea{
|
|
31
|
+
pointer-events:none;
|
|
32
|
+
}
|
|
33
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea *{
|
|
34
|
+
pointer-events:auto;
|
|
35
|
+
}
|
|
27
36
|
|
|
28
37
|
.textarea{
|
|
29
38
|
resize:none;
|
|
@@ -51,7 +60,7 @@
|
|
|
51
60
|
visibility:hidden;
|
|
52
61
|
}
|
|
53
62
|
.field[data-size=s] .textarea{
|
|
54
|
-
|
|
63
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-s-fieldContainer-centeredWrapper-width, var(--sn-density-icon-xs, var(--sn-platform-comfort-icon-xs, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-s-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-s, var(--sn-platform-comfort-spacing-control-container-horizontal-s, var(--sn-platform-comfort-scale-050-2xs, var(--sn-primitive-dimension-4, 4px)))))));
|
|
55
64
|
font-family:var(--sn-regular-body-s-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
56
65
|
font-weight:var(--sn-regular-body-s-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-s, var(--sn-brand-font-fontWeight-light-regular-body-s, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
57
66
|
line-height:var(--sn-regular-body-s-lineHeight, var(--sn-density-typography-roleBody-lineHeightS, var(--sn-platform-comfort-typography-roleBody-lineHeightS, var(--sn-primitive-font-lineHeight-20, 20px))));
|
|
@@ -60,7 +69,7 @@
|
|
|
60
69
|
paragraph-spacing:var(--sn-regular-body-s-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize12, 6px));
|
|
61
70
|
}
|
|
62
71
|
.field[data-size=m] .textarea{
|
|
63
|
-
|
|
72
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-m-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-m-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-m, var(--sn-platform-comfort-spacing-control-container-horizontal-m, var(--sn-platform-comfort-scale-050-xs, var(--sn-primitive-dimension-8, 8px)))))));
|
|
64
73
|
font-family:var(--sn-regular-body-m-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
65
74
|
font-weight:var(--sn-regular-body-m-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-m, var(--sn-brand-font-fontWeight-light-regular-body-m, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
66
75
|
line-height:var(--sn-regular-body-m-lineHeight, var(--sn-density-typography-roleBody-lineHeightM, var(--sn-platform-comfort-typography-roleBody-lineHeightM, var(--sn-primitive-font-lineHeight-24, 24px))));
|
|
@@ -69,7 +78,7 @@
|
|
|
69
78
|
paragraph-spacing:var(--sn-regular-body-m-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize14, 7px));
|
|
70
79
|
}
|
|
71
80
|
.field[data-size=l] .textarea{
|
|
72
|
-
|
|
81
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-l-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-l-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-l, var(--sn-platform-comfort-spacing-control-container-horizontal-l, var(--sn-platform-comfort-scale-050-s, var(--sn-primitive-dimension-12, 12px)))))));
|
|
73
82
|
font-family:var(--sn-regular-body-l-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
74
83
|
font-weight:var(--sn-regular-body-l-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-l, var(--sn-brand-font-fontWeight-light-regular-body-l, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
75
84
|
line-height:var(--sn-regular-body-l-lineHeight, var(--sn-density-typography-roleBody-lineHeightL, var(--sn-platform-comfort-typography-roleBody-lineHeightL, var(--sn-primitive-font-lineHeight-28, 28px))));
|
package/dist/esm/style.css
CHANGED
|
@@ -307,6 +307,15 @@
|
|
|
307
307
|
.scrollContainerResizable{
|
|
308
308
|
height:calc(var(--field-textarea-min-rows, 3) * var(--field-textarea-row-height));
|
|
309
309
|
}
|
|
310
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents]{
|
|
311
|
+
pointer-events:none;
|
|
312
|
+
}
|
|
313
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea{
|
|
314
|
+
pointer-events:none;
|
|
315
|
+
}
|
|
316
|
+
.scrollContainerResizable > [data-overlayscrollbars-contents] .inputArea *{
|
|
317
|
+
pointer-events:auto;
|
|
318
|
+
}
|
|
310
319
|
|
|
311
320
|
.textarea{
|
|
312
321
|
resize:none;
|
|
@@ -334,7 +343,7 @@
|
|
|
334
343
|
visibility:hidden;
|
|
335
344
|
}
|
|
336
345
|
.field[data-size=s] .textarea{
|
|
337
|
-
|
|
346
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-s-fieldContainer-centeredWrapper-width, var(--sn-density-icon-xs, var(--sn-platform-comfort-icon-xs, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-s-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-s, var(--sn-platform-comfort-spacing-control-container-horizontal-s, var(--sn-platform-comfort-scale-050-2xs, var(--sn-primitive-dimension-4, 4px)))))));
|
|
338
347
|
font-family:var(--sn-regular-body-s-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
339
348
|
font-weight:var(--sn-regular-body-s-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-s, var(--sn-brand-font-fontWeight-light-regular-body-s, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
340
349
|
line-height:var(--sn-regular-body-s-lineHeight, var(--sn-density-typography-roleBody-lineHeightS, var(--sn-platform-comfort-typography-roleBody-lineHeightS, var(--sn-primitive-font-lineHeight-20, 20px))));
|
|
@@ -343,7 +352,7 @@
|
|
|
343
352
|
paragraph-spacing:var(--sn-regular-body-s-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize12, 6px));
|
|
344
353
|
}
|
|
345
354
|
.field[data-size=m] .textarea{
|
|
346
|
-
|
|
355
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-m-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-m-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-m, var(--sn-platform-comfort-spacing-control-container-horizontal-m, var(--sn-platform-comfort-scale-050-xs, var(--sn-primitive-dimension-8, 8px)))))));
|
|
347
356
|
font-family:var(--sn-regular-body-m-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
348
357
|
font-weight:var(--sn-regular-body-m-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-m, var(--sn-brand-font-fontWeight-light-regular-body-m, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
349
358
|
line-height:var(--sn-regular-body-m-lineHeight, var(--sn-density-typography-roleBody-lineHeightM, var(--sn-platform-comfort-typography-roleBody-lineHeightM, var(--sn-primitive-font-lineHeight-24, 24px))));
|
|
@@ -352,7 +361,7 @@
|
|
|
352
361
|
paragraph-spacing:var(--sn-regular-body-m-paragraphSpacing, var(--sn-primitive-font-paragraphSpacing-byFontSize14, 7px));
|
|
353
362
|
}
|
|
354
363
|
.field[data-size=l] .textarea{
|
|
355
|
-
|
|
364
|
+
max-width:calc(100% - (var(--sn-field-anatomy-size-l-fieldContainer-centeredWrapper-width, var(--sn-density-icon-s, var(--sn-platform-comfort-icon-s, var(--sn-primitive-dimension-24, 24px)))) + var(--sn-field-anatomy-size-l-fieldContainer-paddingRight, var(--sn-density-spacing-control-container-horizontal-l, var(--sn-platform-comfort-spacing-control-container-horizontal-l, var(--sn-platform-comfort-scale-050-s, var(--sn-primitive-dimension-12, 12px)))))));
|
|
356
365
|
font-family:var(--sn-regular-body-l-fontFamily, var(--sn-brand-font-fontFamily-regular-body, SB Sans Text));
|
|
357
366
|
font-weight:var(--sn-regular-body-l-fontWeight, var(--sn-theme-typography-fontWeight-regular-body-l, var(--sn-brand-font-fontWeight-light-regular-body-l, var(--sn-primitive-font-fontWeightValue-400, 400))));
|
|
358
367
|
line-height:var(--sn-regular-body-l-lineHeight, var(--sn-density-typography-roleBody-lineHeightL, var(--sn-platform-comfort-typography-roleBody-lineHeightL, var(--sn-primitive-font-lineHeight-28, 28px))));
|