@salutejs/plasma-new-hope 0.345.0-canary.2423.20958341938.0 → 0.345.0-canary.2423.20994461674.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/dist/css/cjs/components/TextArea/TextArea.js +12 -3
- package/dist/css/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/cjs/components/TextArea/TextArea.styles.js +16 -9
- package/dist/css/cjs/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/cjs/components/TextArea/{TextArea.styles_1tn1ff1.css → TextArea.styles_1y5shlb.css} +1 -1
- package/dist/css/cjs/components/TextArea/ui/Hint/Hint.css +22 -22
- package/dist/css/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base.js.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base_3zc8u3.css +1 -0
- package/dist/css/cjs/index.css +24 -24
- package/dist/css/es/components/TextArea/TextArea.js +12 -3
- package/dist/css/es/components/TextArea/TextArea.js.map +1 -1
- package/dist/css/es/components/TextArea/TextArea.styles.js +16 -9
- package/dist/css/es/components/TextArea/TextArea.styles.js.map +1 -1
- package/dist/css/es/components/TextArea/{TextArea.styles_1tn1ff1.css → TextArea.styles_1y5shlb.css} +1 -1
- package/dist/css/es/components/TextArea/ui/Hint/Hint.css +22 -22
- package/dist/css/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base.js.map +1 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base_3zc8u3.css +1 -0
- package/dist/css/es/index.css +24 -24
- package/dist/emotion/cjs/components/TextArea/TextArea.js +14 -4
- package/dist/emotion/cjs/components/TextArea/TextArea.styles.js +52 -49
- package/dist/emotion/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/emotion/es/components/TextArea/TextArea.js +14 -4
- package/dist/emotion/es/components/TextArea/TextArea.styles.js +52 -49
- package/dist/emotion/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/emotion/es/examples/components/Combobox/Combobox.js +7 -0
- package/dist/styled-components/cjs/components/TextArea/TextArea.js +13 -3
- package/dist/styled-components/cjs/components/TextArea/TextArea.styles.js +29 -25
- package/dist/styled-components/cjs/components/TextArea/variations/_read-only/base.js +1 -1
- package/dist/styled-components/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/dist/styled-components/es/components/TextArea/TextArea.js +13 -3
- package/dist/styled-components/es/components/TextArea/TextArea.styles.js +29 -25
- package/dist/styled-components/es/components/TextArea/variations/_read-only/base.js +1 -1
- package/package.json +6 -6
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +1 -0
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/dist/css/cjs/components/TextArea/variations/_read-only/base_l5o3oz.css +0 -1
- package/dist/css/es/components/TextArea/variations/_read-only/base_l5o3oz.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from "@emotion/react";
|
|
2
2
|
import { StyledContainer, StyledContent, StyledHelpers, StyledTextArea, StyledTextAreaWrapper } from "../../TextArea.styles";
|
|
3
3
|
import { classes, tokens } from "../../TextArea.tokens";
|
|
4
|
-
export var base = /*#__PURE__*/ css("&[readonly]{", StyledTextArea, "{color:var(", tokens.inputColorReadOnly, ");}", StyledContent, "{opacity:var(", tokens.contentSlotRightOpacityReadOnly, ");&:hover{color:var(", tokens.rightContentColor, ");}&:active{color:var(", tokens.rightContentColor, ");}}&.", classes.clear, "{", StyledTextAreaWrapper, "{&:before{background-color:var(", tokens.
|
|
4
|
+
export var base = /*#__PURE__*/ css("&[readonly]{", StyledTextArea, "{color:var(", tokens.inputColorReadOnly, ");}", StyledContent, "{opacity:var(", tokens.contentSlotRightOpacityReadOnly, ");&:hover{color:var(", tokens.rightContentColor, ");}&:active{color:var(", tokens.rightContentColor, ");}}&.", classes.clear, "{", StyledTextAreaWrapper, "{&:before{background-color:var(", tokens.dividerColor, ");}}}:not(&.", classes.clear, "){", StyledTextAreaWrapper, ",", StyledHelpers, "{background:transparent;}", StyledTextAreaWrapper, "{position:relative;box-shadow:none;:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 var(", tokens.borderSize, ",1px) var(", tokens.borderColorReadOnly, ");border-radius:var(", tokens.borderRadius, ");z-index:-1;}}", StyledContainer, "{background:transparent;position:relative;:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;background:var(", tokens.backgroundColorReadOnly, ");border-radius:var(", tokens.borderRadius, ");opacity:var(", tokens.readOnlyOpacity, ");z-index:-1;}:hover{background:transparent;}}}}", "base", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS92YXJpYXRpb25zL19yZWFkLW9ubHkvYmFzZS50cyIsInNvdXJjZXMiOlsic3JjLWVtb3Rpb24vY29tcG9uZW50cy9UZXh0QXJlYS92YXJpYXRpb25zL19yZWFkLW9ubHkvYmFzZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gICAgU3R5bGVkQ29udGFpbmVyLFxuICAgIFN0eWxlZENvbnRlbnQsXG4gICAgU3R5bGVkSGVscGVycyxcbiAgICBTdHlsZWRUZXh0QXJlYSxcbiAgICBTdHlsZWRUZXh0QXJlYVdyYXBwZXIsXG59IGZyb20gJy4uLy4uL1RleHRBcmVhLnN0eWxlcyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9UZXh0QXJlYS50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmW3JlYWRvbmx5XSB7XG4gICAgICAgICR7U3R5bGVkVGV4dEFyZWF9IHtcbiAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMuaW5wdXRDb2xvclJlYWRPbmx5fSk7XG4gICAgICAgIH1cblxuICAgICAgICAke1N0eWxlZENvbnRlbnR9IHtcbiAgICAgICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5jb250ZW50U2xvdFJpZ2h0T3BhY2l0eVJlYWRPbmx5fSk7XG5cbiAgICAgICAgICAgICY6aG92ZXIge1xuICAgICAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMucmlnaHRDb250ZW50Q29sb3J9KTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgJjphY3RpdmUge1xuICAgICAgICAgICAgICAgIGNvbG9yOiB2YXIoJHt0b2tlbnMucmlnaHRDb250ZW50Q29sb3J9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgICYuJHtjbGFzc2VzLmNsZWFyfSB7XG4gICAgICAgICAgICAke1N0eWxlZFRleHRBcmVhV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgICY6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKCR7dG9rZW5zLmRpdmlkZXJDb2xvcn0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIDpub3QoJi4ke2NsYXNzZXMuY2xlYXJ9KSB7XG4gICAgICAgICAgICAke1N0eWxlZFRleHRBcmVhV3JhcHBlcn0sICR7U3R5bGVkSGVscGVyc30ge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAke1N0eWxlZFRleHRBcmVhV3JhcHBlcn0ge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgICAgICAgICAgICBib3gtc2hhZG93OiBub25lO1xuXG4gICAgICAgICAgICAgICAgOmJlZm9yZSB7XG4gICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICAgICAgY29udGVudDogJyc7XG4gICAgICAgICAgICAgICAgICAgIHRvcDogMDtcbiAgICAgICAgICAgICAgICAgICAgbGVmdDogMDtcbiAgICAgICAgICAgICAgICAgICAgcmlnaHQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICAgICAgYm94LXNoYWRvdzogaW5zZXQgMCAwIDAgdmFyKCR7dG9rZW5zLmJvcmRlclNpemV9LCAxcHgpIHZhcigke3Rva2Vucy5ib3JkZXJDb2xvclJlYWRPbmx5fSk7XG4gICAgICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5ib3JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgICAgICAgICAgei1pbmRleDogLTE7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAke1N0eWxlZENvbnRhaW5lcn0ge1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuICAgICAgICAgICAgICAgIDpiZWZvcmUge1xuICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6ICcnO1xuICAgICAgICAgICAgICAgICAgICB0b3A6IDA7XG4gICAgICAgICAgICAgICAgICAgIGxlZnQ6IDA7XG4gICAgICAgICAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgICAgICBib3R0b206IDA7XG4gICAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6IHZhcigke3Rva2Vucy5iYWNrZ3JvdW5kQ29sb3JSZWFkT25seX0pO1xuICAgICAgICAgICAgICAgICAgICBib3JkZXItcmFkaXVzOiB2YXIoJHt0b2tlbnMuYm9yZGVyUmFkaXVzfSk7XG4gICAgICAgICAgICAgICAgICAgIG9wYWNpdHk6IHZhcigke3Rva2Vucy5yZWFkT25seU9wYWNpdHl9KTtcblxuICAgICAgICAgICAgICAgICAgICB6LWluZGV4OiAtMTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICA6aG92ZXIge1xuICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVdvQiJ9 */");
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { component, mergeConfig } from "../../../engines";
|
|
2
|
+
import { comboboxNewConfig } from "../../..";
|
|
3
|
+
import { config } from "./Combobox.config";
|
|
4
|
+
var mergedConfig = mergeConfig(comboboxNewConfig, config);
|
|
5
|
+
var ComboboxComponent = component(mergedConfig);
|
|
6
|
+
var Combobox = ComboboxComponent;
|
|
7
|
+
export { Combobox };
|
|
@@ -336,9 +336,18 @@ var textAreaRoot = function(Root) {
|
|
|
336
336
|
}, [
|
|
337
337
|
outerRef
|
|
338
338
|
]);
|
|
339
|
+
(0, _react.useLayoutEffect)(function() {
|
|
340
|
+
if (!hiddenRef.current || !cols) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
var _hiddenRef_current_getBoundingClientRect = hiddenRef.current.getBoundingClientRect(), elementWidth = _hiddenRef_current_getBoundingClientRect.width;
|
|
344
|
+
setHelperWidth("".concat(elementWidth / _hooks1.ROOT_FONT_SIZE, "rem"));
|
|
345
|
+
}, [
|
|
346
|
+
cols
|
|
347
|
+
]);
|
|
339
348
|
(0, _plasmacore.useResizeObserver)(outerRef, function(currentElement) {
|
|
340
349
|
var _currentElement_style = currentElement.style, inlineWidth = _currentElement_style.width;
|
|
341
|
-
if (inlineWidth
|
|
350
|
+
if (inlineWidth) {
|
|
342
351
|
var _currentElement_getBoundingClientRect = currentElement.getBoundingClientRect(), elementWidth = _currentElement_getBoundingClientRect.width;
|
|
343
352
|
setHelperWidth("".concat(elementWidth / _hooks1.ROOT_FONT_SIZE, "rem"));
|
|
344
353
|
}
|
|
@@ -474,12 +483,13 @@ var textAreaRoot = function(Root) {
|
|
|
474
483
|
defaultValue: defaultValue,
|
|
475
484
|
onChange: onChangeHandler,
|
|
476
485
|
"data-tour": true
|
|
477
|
-
}, rest)), applyAutoResize && /*#__PURE__*/ _react.default.createElement(_TextAreastyles.StyledHiddenTextArea, {
|
|
486
|
+
}, rest)), Boolean(applyAutoResize || cols) && /*#__PURE__*/ _react.default.createElement(_TextAreastyles.StyledHiddenTextArea, {
|
|
478
487
|
"aria-hidden": true,
|
|
479
488
|
ref: hiddenRef,
|
|
480
489
|
hasContentRight: Boolean(contentRight),
|
|
481
490
|
value: value || uncontrolledValue || ' ',
|
|
482
|
-
defaultValue: defaultValue
|
|
491
|
+
defaultValue: defaultValue,
|
|
492
|
+
cols: cols
|
|
483
493
|
})), hasHelper && /*#__PURE__*/ _react.default.createElement(_TextAreastyles.StyledHelpers, {
|
|
484
494
|
className: styledHelpers,
|
|
485
495
|
id: textareaHelperId
|
|
@@ -96,13 +96,13 @@ var mergedConfig = (0, _engines.mergeConfig)(_Tooltip.tooltipConfig);
|
|
|
96
96
|
var Tooltip = (0, _engines.component)(mergedConfig);
|
|
97
97
|
var Hint = (0, _styledcomponents.default)(Tooltip).withConfig({
|
|
98
98
|
displayName: "TextArea.styles__Hint",
|
|
99
|
-
componentId: "sc-
|
|
99
|
+
componentId: "sc-9436bd8f-0"
|
|
100
100
|
})([
|
|
101
101
|
""
|
|
102
102
|
]);
|
|
103
103
|
var OuterLabelWrapper = _styledcomponents.default.div.withConfig({
|
|
104
104
|
displayName: "TextArea.styles__OuterLabelWrapper",
|
|
105
|
-
componentId: "sc-
|
|
105
|
+
componentId: "sc-9436bd8f-1"
|
|
106
106
|
})([
|
|
107
107
|
"display:flex;align-items:center;max-width:",
|
|
108
108
|
";margin-bottom:",
|
|
@@ -116,7 +116,7 @@ var OuterLabelWrapper = _styledcomponents.default.div.withConfig({
|
|
|
116
116
|
});
|
|
117
117
|
var StyledLabel = _styledcomponents.default.div.withConfig({
|
|
118
118
|
displayName: "TextArea.styles__StyledLabel",
|
|
119
|
-
componentId: "sc-
|
|
119
|
+
componentId: "sc-9436bd8f-2"
|
|
120
120
|
})([
|
|
121
121
|
"position:relative;display:inline-flex;color:var(",
|
|
122
122
|
",var(",
|
|
@@ -136,7 +136,7 @@ var StyledLabel = _styledcomponents.default.div.withConfig({
|
|
|
136
136
|
], _TextAreatokens.tokens.labelOuterColor, _TextAreatokens.tokens.inputColor, _TextAreatokens.tokens.labelOuterFontFamily, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.labelOuterFontSize, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.labelOuterFontStyle, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.labelOuterFontWeight, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.labelOuterLetterSpacing, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.labelOuterLineHeight, _TextAreatokens.tokens.inputLineHeight);
|
|
137
137
|
var TitleCaption = _styledcomponents.default.div.withConfig({
|
|
138
138
|
displayName: "TextArea.styles__TitleCaption",
|
|
139
|
-
componentId: "sc-
|
|
139
|
+
componentId: "sc-9436bd8f-3"
|
|
140
140
|
})([
|
|
141
141
|
"display:inline-block;margin-left:auto;font-family:var(",
|
|
142
142
|
");font-size:var(",
|
|
@@ -148,13 +148,13 @@ var TitleCaption = _styledcomponents.default.div.withConfig({
|
|
|
148
148
|
], _TextAreatokens.tokens.titleCaptionFontFamily, _TextAreatokens.tokens.titleCaptionFontSize, _TextAreatokens.tokens.titleCaptionFontStyle, _TextAreatokens.tokens.titleCaptionFontWeight, _TextAreatokens.tokens.titleCaptionLetterSpacing, _TextAreatokens.tokens.titleCaptionLineHeight);
|
|
149
149
|
var StyledIndicatorWrapper = _styledcomponents.default.div.withConfig({
|
|
150
150
|
displayName: "TextArea.styles__StyledIndicatorWrapper",
|
|
151
|
-
componentId: "sc-
|
|
151
|
+
componentId: "sc-9436bd8f-4"
|
|
152
152
|
})([
|
|
153
153
|
"position:relative;display:inline-flex;align-items:center;"
|
|
154
154
|
]);
|
|
155
155
|
var StyledOptionalText = _styledcomponents.default.span.withConfig({
|
|
156
156
|
displayName: "TextArea.styles__StyledOptionalText",
|
|
157
|
-
componentId: "sc-
|
|
157
|
+
componentId: "sc-9436bd8f-5"
|
|
158
158
|
})([
|
|
159
159
|
"color:var(",
|
|
160
160
|
");font-family:",
|
|
@@ -185,7 +185,7 @@ var StyledOptionalText = _styledcomponents.default.span.withConfig({
|
|
|
185
185
|
});
|
|
186
186
|
var StyledHintWrapper = _styledcomponents.default.div.withConfig({
|
|
187
187
|
displayName: "TextArea.styles__StyledHintWrapper",
|
|
188
|
-
componentId: "sc-
|
|
188
|
+
componentId: "sc-9436bd8f-6"
|
|
189
189
|
})([
|
|
190
190
|
"display:inline-flex;line-height:0;margin:var(",
|
|
191
191
|
");&.",
|
|
@@ -194,7 +194,7 @@ var StyledHintWrapper = _styledcomponents.default.div.withConfig({
|
|
|
194
194
|
], _TextAreatokens.tokens.hintMargin, _TextAreatokens.classes.innerLabelPlacement, _TextAreatokens.tokens.hintInnerLabelPlacementOffset);
|
|
195
195
|
var HintTargetWrapper = _styledcomponents.default.div.withConfig({
|
|
196
196
|
displayName: "TextArea.styles__HintTargetWrapper",
|
|
197
|
-
componentId: "sc-
|
|
197
|
+
componentId: "sc-9436bd8f-7"
|
|
198
198
|
})([
|
|
199
199
|
"color:var(",
|
|
200
200
|
");width:var(",
|
|
@@ -203,13 +203,13 @@ var HintTargetWrapper = _styledcomponents.default.div.withConfig({
|
|
|
203
203
|
], _TextAreatokens.tokens.hintIconColor, _TextAreatokens.tokens.hintTargetSize, _TextAreatokens.tokens.hintTargetSize);
|
|
204
204
|
var HintIconWrapper = _styledcomponents.default.div.withConfig({
|
|
205
205
|
displayName: "TextArea.styles__HintIconWrapper",
|
|
206
|
-
componentId: "sc-
|
|
206
|
+
componentId: "sc-9436bd8f-8"
|
|
207
207
|
})([
|
|
208
208
|
""
|
|
209
209
|
]);
|
|
210
210
|
var StyledTextAreaWrapper = _styledcomponents.default.div.withConfig({
|
|
211
211
|
displayName: "TextArea.styles__StyledTextAreaWrapper",
|
|
212
|
-
componentId: "sc-
|
|
212
|
+
componentId: "sc-9436bd8f-9"
|
|
213
213
|
})([
|
|
214
214
|
"display:flex;flex-direction:column;background-color:var(",
|
|
215
215
|
");padding-top:",
|
|
@@ -228,7 +228,7 @@ var StyledTextAreaWrapper = _styledcomponents.default.div.withConfig({
|
|
|
228
228
|
});
|
|
229
229
|
var StyledContentWrapper = _styledcomponents.default.div.withConfig({
|
|
230
230
|
displayName: "TextArea.styles__StyledContentWrapper",
|
|
231
|
-
componentId: "sc-
|
|
231
|
+
componentId: "sc-9436bd8f-10"
|
|
232
232
|
})([
|
|
233
233
|
"position:relative;width:100%;height:0;padding-top:",
|
|
234
234
|
";"
|
|
@@ -238,7 +238,7 @@ var StyledContentWrapper = _styledcomponents.default.div.withConfig({
|
|
|
238
238
|
});
|
|
239
239
|
var StyledContent = _styledcomponents.default.div.withConfig({
|
|
240
240
|
displayName: "TextArea.styles__StyledContent",
|
|
241
|
-
componentId: "sc-
|
|
241
|
+
componentId: "sc-9436bd8f-11"
|
|
242
242
|
})([
|
|
243
243
|
"position:absolute;display:flex;align-items:center;z-index:1;color:var(",
|
|
244
244
|
");top:",
|
|
@@ -253,27 +253,27 @@ var StyledContent = _styledcomponents.default.div.withConfig({
|
|
|
253
253
|
}, _TextAreatokens.tokens.rightContentRight, _TextAreatokens.tokens.rightContentHeight, _TextAreatokens.tokens.rightContentColorHover, _TextAreatokens.tokens.rightContentColorActive);
|
|
254
254
|
var StyledHeaderSlot = _styledcomponents.default.div.withConfig({
|
|
255
255
|
displayName: "TextArea.styles__StyledHeaderSlot",
|
|
256
|
-
componentId: "sc-
|
|
256
|
+
componentId: "sc-9436bd8f-12"
|
|
257
257
|
})([
|
|
258
258
|
"display:flex;flex-direction:column;"
|
|
259
259
|
]);
|
|
260
260
|
var DividerWrapper = _styledcomponents.default.div.withConfig({
|
|
261
261
|
displayName: "TextArea.styles__DividerWrapper",
|
|
262
|
-
componentId: "sc-
|
|
262
|
+
componentId: "sc-9436bd8f-13"
|
|
263
263
|
})([
|
|
264
264
|
"background:var(",
|
|
265
265
|
");"
|
|
266
266
|
], _TextAreatokens.tokens.backgroundColor);
|
|
267
267
|
var Divider = _styledcomponents.default.div.withConfig({
|
|
268
268
|
displayName: "TextArea.styles__Divider",
|
|
269
|
-
componentId: "sc-
|
|
269
|
+
componentId: "sc-9436bd8f-14"
|
|
270
270
|
})([
|
|
271
271
|
"height:0.0625rem;background:var(",
|
|
272
272
|
");"
|
|
273
273
|
], _TextAreatokens.tokens.dividerColor);
|
|
274
274
|
var StyledContainer = _styledcomponents.default.div.withConfig({
|
|
275
275
|
displayName: "TextArea.styles__StyledContainer",
|
|
276
|
-
componentId: "sc-
|
|
276
|
+
componentId: "sc-9436bd8f-15"
|
|
277
277
|
})([
|
|
278
278
|
"display:inline-flex;flex-direction:column;width:",
|
|
279
279
|
";position:relative;"
|
|
@@ -283,7 +283,7 @@ var StyledContainer = _styledcomponents.default.div.withConfig({
|
|
|
283
283
|
});
|
|
284
284
|
var StyledTextArea = _styledcomponents.default.textarea.withConfig({
|
|
285
285
|
displayName: "TextArea.styles__StyledTextArea",
|
|
286
|
-
componentId: "sc-
|
|
286
|
+
componentId: "sc-9436bd8f-16"
|
|
287
287
|
})([
|
|
288
288
|
"display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(",
|
|
289
289
|
");caret-color:var(",
|
|
@@ -346,10 +346,11 @@ var StyledTextArea = _styledcomponents.default.textarea.withConfig({
|
|
|
346
346
|
}, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight, _TextAreatokens.tokens.inputColorFocus, _TextAreatokens.tokens.scrollbarWidth, _TextAreatokens.tokens.scrollbarThumbBackgroundColor, _TextAreatokens.tokens.scrollbarBorderWidth, _TextAreatokens.tokens.scrollbarTrackBackgroundColor, _TextAreatokens.tokens.scrollbarBorderWidth);
|
|
347
347
|
var StyledHiddenTextArea = _styledcomponents.default.textarea.withConfig({
|
|
348
348
|
displayName: "TextArea.styles__StyledHiddenTextArea",
|
|
349
|
-
componentId: "sc-
|
|
349
|
+
componentId: "sc-9436bd8f-17"
|
|
350
350
|
})([
|
|
351
351
|
"max-height:none !important;min-height:var(",
|
|
352
|
-
") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:
|
|
352
|
+
") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:",
|
|
353
|
+
";border-width:0;padding-right:",
|
|
353
354
|
";padding-left:var(",
|
|
354
355
|
",0);padding-top:0;padding-bottom:0;box-sizing:border-box;text-indent:0;text-rendering:auto;text-transform:none;tab-size:8;font-family:var(",
|
|
355
356
|
");font-size:var(",
|
|
@@ -359,12 +360,15 @@ var StyledHiddenTextArea = _styledcomponents.default.textarea.withConfig({
|
|
|
359
360
|
");line-height:var(",
|
|
360
361
|
");"
|
|
361
362
|
], _TextAreatokens.tokens.inputMinHeight, function(param) {
|
|
363
|
+
var cols = param.cols;
|
|
364
|
+
return cols ? 'unset' : '0.0625rem !important';
|
|
365
|
+
}, function(param) {
|
|
362
366
|
var hasContentRight = param.hasContentRight;
|
|
363
367
|
return hasContentRight ? "var(".concat(_TextAreatokens.tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(_TextAreatokens.tokens.inputPaddingRight, ", 0)");
|
|
364
368
|
}, _TextAreatokens.tokens.inputPaddingLeft, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight);
|
|
365
369
|
var StyledHelpers = _styledcomponents.default.div.withConfig({
|
|
366
370
|
displayName: "TextArea.styles__StyledHelpers",
|
|
367
|
-
componentId: "sc-
|
|
371
|
+
componentId: "sc-9436bd8f-18"
|
|
368
372
|
})([
|
|
369
373
|
"box-sizing:border-box;display:flex;justify-content:space-between;transition:background-color 0.1s ease-in-out;background-color:var(",
|
|
370
374
|
");padding-top:var(",
|
|
@@ -377,14 +381,14 @@ var StyledHelpers = _styledcomponents.default.div.withConfig({
|
|
|
377
381
|
], _TextAreatokens.tokens.helpersBackgroundColor, _TextAreatokens.tokens.helpersPaddingTop, _TextAreatokens.tokens.helpersPaddingRight, _TextAreatokens.tokens.helpersPaddingBottom, _TextAreatokens.tokens.helpersPaddingLeft, _TextAreatokens.tokens.borderRadius, _TextAreatokens.tokens.borderRadius);
|
|
378
382
|
var StyledOutsideHelpersWrapper = _styledcomponents.default.div.withConfig({
|
|
379
383
|
displayName: "TextArea.styles__StyledOutsideHelpersWrapper",
|
|
380
|
-
componentId: "sc-
|
|
384
|
+
componentId: "sc-9436bd8f-19"
|
|
381
385
|
})([
|
|
382
386
|
"box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(",
|
|
383
387
|
");"
|
|
384
388
|
], _TextAreatokens.tokens.clearHelpersPaddingTop);
|
|
385
389
|
var StyledLeftHelper = _styledcomponents.default.span.withConfig({
|
|
386
390
|
displayName: "TextArea.styles__StyledLeftHelper",
|
|
387
|
-
componentId: "sc-
|
|
391
|
+
componentId: "sc-9436bd8f-20"
|
|
388
392
|
})([
|
|
389
393
|
"",
|
|
390
394
|
";display:block;font-family:var(",
|
|
@@ -401,14 +405,14 @@ var StyledLeftHelper = _styledcomponents.default.span.withConfig({
|
|
|
401
405
|
], (0, _mixins.applyEllipsis)(), _TextAreatokens.tokens.helpersFontFamily, _TextAreatokens.tokens.helpersFontSize, _TextAreatokens.tokens.helpersFontStyle, _TextAreatokens.tokens.helpersFontWeight, _TextAreatokens.tokens.helpersLetterSpacing, _TextAreatokens.tokens.helpersLineHeight, _TextAreatokens.tokens.leftHelperColor, _TextAreatokens.classes.leftHelperFocus, _TextAreatokens.tokens.leftHelperColorFocus, _TextAreatokens.tokens.leftHelperColor);
|
|
402
406
|
var StyledRightHelper = (0, _styledcomponents.default)(StyledLeftHelper).withConfig({
|
|
403
407
|
displayName: "TextArea.styles__StyledRightHelper",
|
|
404
|
-
componentId: "sc-
|
|
408
|
+
componentId: "sc-9436bd8f-21"
|
|
405
409
|
})([
|
|
406
410
|
"color:var(",
|
|
407
411
|
");margin-left:auto;"
|
|
408
412
|
], _TextAreatokens.tokens.rightHelperColor);
|
|
409
413
|
var StyledPlaceholder = _styledcomponents.default.label.withConfig({
|
|
410
414
|
displayName: "TextArea.styles__StyledPlaceholder",
|
|
411
|
-
componentId: "sc-
|
|
415
|
+
componentId: "sc-9436bd8f-22"
|
|
412
416
|
})([
|
|
413
417
|
"box-sizing:border-box;position:absolute;pointer-events:none;display:inline-flex;align-items:center;transition:all 0.1s ease-in-out;transform-origin:top left;color:var(",
|
|
414
418
|
");width:100%;height:auto;top:var(",
|
|
@@ -427,7 +431,7 @@ var StyledPlaceholder = _styledcomponents.default.label.withConfig({
|
|
|
427
431
|
}, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight);
|
|
428
432
|
var StyledIndicator = _styledcomponents.default.div.withConfig({
|
|
429
433
|
displayName: "TextArea.styles__StyledIndicator",
|
|
430
|
-
componentId: "sc-
|
|
434
|
+
componentId: "sc-9436bd8f-23"
|
|
431
435
|
})([
|
|
432
436
|
"position:absolute;border-radius:50%;background-color:var(",
|
|
433
437
|
");&.",
|
|
@@ -33,4 +33,4 @@ var base = (0, _styledcomponents.css)([
|
|
|
33
33
|
");border-radius:var(",
|
|
34
34
|
");opacity:var(",
|
|
35
35
|
");z-index:-1;}:hover{background:transparent;}}}}"
|
|
36
|
-
], _TextAreastyles.StyledTextArea, _TextAreatokens.tokens.inputColorReadOnly, _TextAreastyles.StyledContent, _TextAreatokens.tokens.contentSlotRightOpacityReadOnly, _TextAreatokens.tokens.rightContentColor, _TextAreatokens.tokens.rightContentColor, _TextAreatokens.classes.clear, _TextAreastyles.StyledTextAreaWrapper, _TextAreatokens.tokens.
|
|
36
|
+
], _TextAreastyles.StyledTextArea, _TextAreatokens.tokens.inputColorReadOnly, _TextAreastyles.StyledContent, _TextAreatokens.tokens.contentSlotRightOpacityReadOnly, _TextAreatokens.tokens.rightContentColor, _TextAreatokens.tokens.rightContentColor, _TextAreatokens.classes.clear, _TextAreastyles.StyledTextAreaWrapper, _TextAreatokens.tokens.dividerColor, _TextAreatokens.classes.clear, _TextAreastyles.StyledTextAreaWrapper, _TextAreastyles.StyledHelpers, _TextAreastyles.StyledTextAreaWrapper, _TextAreatokens.tokens.borderSize, _TextAreatokens.tokens.borderColorReadOnly, _TextAreatokens.tokens.borderRadius, _TextAreastyles.StyledContainer, _TextAreatokens.tokens.backgroundColorReadOnly, _TextAreatokens.tokens.borderRadius, _TextAreatokens.tokens.readOnlyOpacity);
|
|
@@ -1,16 +1 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "Combobox", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return Combobox;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _engines = require("../../../engines");
|
|
12
|
-
var _ = require("../../..");
|
|
13
|
-
var _Comboboxconfig = require("./Combobox.config");
|
|
14
|
-
var mergedConfig = (0, _engines.mergeConfig)(_.comboboxNewConfig, _Comboboxconfig.config);
|
|
15
|
-
var ComboboxComponent = (0, _engines.component)(mergedConfig);
|
|
16
|
-
var Combobox = ComboboxComponent;
|
|
@@ -275,9 +275,18 @@ export var textAreaRoot = function(Root) {
|
|
|
275
275
|
}, [
|
|
276
276
|
outerRef
|
|
277
277
|
]);
|
|
278
|
+
useLayoutEffect(function() {
|
|
279
|
+
if (!hiddenRef.current || !cols) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
var _hiddenRef_current_getBoundingClientRect = hiddenRef.current.getBoundingClientRect(), elementWidth = _hiddenRef_current_getBoundingClientRect.width;
|
|
283
|
+
setHelperWidth("".concat(elementWidth / ROOT_FONT_SIZE, "rem"));
|
|
284
|
+
}, [
|
|
285
|
+
cols
|
|
286
|
+
]);
|
|
278
287
|
useResizeObserver(outerRef, function(currentElement) {
|
|
279
288
|
var _currentElement_style = currentElement.style, inlineWidth = _currentElement_style.width;
|
|
280
|
-
if (inlineWidth
|
|
289
|
+
if (inlineWidth) {
|
|
281
290
|
var _currentElement_getBoundingClientRect = currentElement.getBoundingClientRect(), elementWidth = _currentElement_getBoundingClientRect.width;
|
|
282
291
|
setHelperWidth("".concat(elementWidth / ROOT_FONT_SIZE, "rem"));
|
|
283
292
|
}
|
|
@@ -413,12 +422,13 @@ export var textAreaRoot = function(Root) {
|
|
|
413
422
|
defaultValue: defaultValue,
|
|
414
423
|
onChange: onChangeHandler,
|
|
415
424
|
"data-tour": true
|
|
416
|
-
}, rest)), applyAutoResize && /*#__PURE__*/ React.createElement(StyledHiddenTextArea, {
|
|
425
|
+
}, rest)), Boolean(applyAutoResize || cols) && /*#__PURE__*/ React.createElement(StyledHiddenTextArea, {
|
|
417
426
|
"aria-hidden": true,
|
|
418
427
|
ref: hiddenRef,
|
|
419
428
|
hasContentRight: Boolean(contentRight),
|
|
420
429
|
value: value || uncontrolledValue || ' ',
|
|
421
|
-
defaultValue: defaultValue
|
|
430
|
+
defaultValue: defaultValue,
|
|
431
|
+
cols: cols
|
|
422
432
|
})), hasHelper && /*#__PURE__*/ React.createElement(StyledHelpers, {
|
|
423
433
|
className: styledHelpers,
|
|
424
434
|
id: textareaHelperId
|
|
@@ -7,13 +7,13 @@ var mergedConfig = mergeConfig(tooltipConfig);
|
|
|
7
7
|
var Tooltip = component(mergedConfig);
|
|
8
8
|
export var Hint = styled(Tooltip).withConfig({
|
|
9
9
|
displayName: "TextArea.styles__Hint",
|
|
10
|
-
componentId: "sc-
|
|
10
|
+
componentId: "sc-9436bd8f-0"
|
|
11
11
|
})([
|
|
12
12
|
""
|
|
13
13
|
]);
|
|
14
14
|
export var OuterLabelWrapper = styled.div.withConfig({
|
|
15
15
|
displayName: "TextArea.styles__OuterLabelWrapper",
|
|
16
|
-
componentId: "sc-
|
|
16
|
+
componentId: "sc-9436bd8f-1"
|
|
17
17
|
})([
|
|
18
18
|
"display:flex;align-items:center;max-width:",
|
|
19
19
|
";margin-bottom:",
|
|
@@ -27,7 +27,7 @@ export var OuterLabelWrapper = styled.div.withConfig({
|
|
|
27
27
|
});
|
|
28
28
|
export var StyledLabel = styled.div.withConfig({
|
|
29
29
|
displayName: "TextArea.styles__StyledLabel",
|
|
30
|
-
componentId: "sc-
|
|
30
|
+
componentId: "sc-9436bd8f-2"
|
|
31
31
|
})([
|
|
32
32
|
"position:relative;display:inline-flex;color:var(",
|
|
33
33
|
",var(",
|
|
@@ -47,7 +47,7 @@ export var StyledLabel = styled.div.withConfig({
|
|
|
47
47
|
], tokens.labelOuterColor, tokens.inputColor, tokens.labelOuterFontFamily, tokens.inputFontFamily, tokens.labelOuterFontSize, tokens.inputFontSize, tokens.labelOuterFontStyle, tokens.inputFontStyle, tokens.labelOuterFontWeight, tokens.inputFontWeight, tokens.labelOuterLetterSpacing, tokens.inputLetterSpacing, tokens.labelOuterLineHeight, tokens.inputLineHeight);
|
|
48
48
|
export var TitleCaption = styled.div.withConfig({
|
|
49
49
|
displayName: "TextArea.styles__TitleCaption",
|
|
50
|
-
componentId: "sc-
|
|
50
|
+
componentId: "sc-9436bd8f-3"
|
|
51
51
|
})([
|
|
52
52
|
"display:inline-block;margin-left:auto;font-family:var(",
|
|
53
53
|
");font-size:var(",
|
|
@@ -59,13 +59,13 @@ export var TitleCaption = styled.div.withConfig({
|
|
|
59
59
|
], tokens.titleCaptionFontFamily, tokens.titleCaptionFontSize, tokens.titleCaptionFontStyle, tokens.titleCaptionFontWeight, tokens.titleCaptionLetterSpacing, tokens.titleCaptionLineHeight);
|
|
60
60
|
export var StyledIndicatorWrapper = styled.div.withConfig({
|
|
61
61
|
displayName: "TextArea.styles__StyledIndicatorWrapper",
|
|
62
|
-
componentId: "sc-
|
|
62
|
+
componentId: "sc-9436bd8f-4"
|
|
63
63
|
})([
|
|
64
64
|
"position:relative;display:inline-flex;align-items:center;"
|
|
65
65
|
]);
|
|
66
66
|
export var StyledOptionalText = styled.span.withConfig({
|
|
67
67
|
displayName: "TextArea.styles__StyledOptionalText",
|
|
68
|
-
componentId: "sc-
|
|
68
|
+
componentId: "sc-9436bd8f-5"
|
|
69
69
|
})([
|
|
70
70
|
"color:var(",
|
|
71
71
|
");font-family:",
|
|
@@ -96,7 +96,7 @@ export var StyledOptionalText = styled.span.withConfig({
|
|
|
96
96
|
});
|
|
97
97
|
export var StyledHintWrapper = styled.div.withConfig({
|
|
98
98
|
displayName: "TextArea.styles__StyledHintWrapper",
|
|
99
|
-
componentId: "sc-
|
|
99
|
+
componentId: "sc-9436bd8f-6"
|
|
100
100
|
})([
|
|
101
101
|
"display:inline-flex;line-height:0;margin:var(",
|
|
102
102
|
");&.",
|
|
@@ -105,7 +105,7 @@ export var StyledHintWrapper = styled.div.withConfig({
|
|
|
105
105
|
], tokens.hintMargin, classes.innerLabelPlacement, tokens.hintInnerLabelPlacementOffset);
|
|
106
106
|
export var HintTargetWrapper = styled.div.withConfig({
|
|
107
107
|
displayName: "TextArea.styles__HintTargetWrapper",
|
|
108
|
-
componentId: "sc-
|
|
108
|
+
componentId: "sc-9436bd8f-7"
|
|
109
109
|
})([
|
|
110
110
|
"color:var(",
|
|
111
111
|
");width:var(",
|
|
@@ -114,13 +114,13 @@ export var HintTargetWrapper = styled.div.withConfig({
|
|
|
114
114
|
], tokens.hintIconColor, tokens.hintTargetSize, tokens.hintTargetSize);
|
|
115
115
|
export var HintIconWrapper = styled.div.withConfig({
|
|
116
116
|
displayName: "TextArea.styles__HintIconWrapper",
|
|
117
|
-
componentId: "sc-
|
|
117
|
+
componentId: "sc-9436bd8f-8"
|
|
118
118
|
})([
|
|
119
119
|
""
|
|
120
120
|
]);
|
|
121
121
|
export var StyledTextAreaWrapper = styled.div.withConfig({
|
|
122
122
|
displayName: "TextArea.styles__StyledTextAreaWrapper",
|
|
123
|
-
componentId: "sc-
|
|
123
|
+
componentId: "sc-9436bd8f-9"
|
|
124
124
|
})([
|
|
125
125
|
"display:flex;flex-direction:column;background-color:var(",
|
|
126
126
|
");padding-top:",
|
|
@@ -139,7 +139,7 @@ export var StyledTextAreaWrapper = styled.div.withConfig({
|
|
|
139
139
|
});
|
|
140
140
|
export var StyledContentWrapper = styled.div.withConfig({
|
|
141
141
|
displayName: "TextArea.styles__StyledContentWrapper",
|
|
142
|
-
componentId: "sc-
|
|
142
|
+
componentId: "sc-9436bd8f-10"
|
|
143
143
|
})([
|
|
144
144
|
"position:relative;width:100%;height:0;padding-top:",
|
|
145
145
|
";"
|
|
@@ -149,7 +149,7 @@ export var StyledContentWrapper = styled.div.withConfig({
|
|
|
149
149
|
});
|
|
150
150
|
export var StyledContent = styled.div.withConfig({
|
|
151
151
|
displayName: "TextArea.styles__StyledContent",
|
|
152
|
-
componentId: "sc-
|
|
152
|
+
componentId: "sc-9436bd8f-11"
|
|
153
153
|
})([
|
|
154
154
|
"position:absolute;display:flex;align-items:center;z-index:1;color:var(",
|
|
155
155
|
");top:",
|
|
@@ -164,27 +164,27 @@ export var StyledContent = styled.div.withConfig({
|
|
|
164
164
|
}, tokens.rightContentRight, tokens.rightContentHeight, tokens.rightContentColorHover, tokens.rightContentColorActive);
|
|
165
165
|
export var StyledHeaderSlot = styled.div.withConfig({
|
|
166
166
|
displayName: "TextArea.styles__StyledHeaderSlot",
|
|
167
|
-
componentId: "sc-
|
|
167
|
+
componentId: "sc-9436bd8f-12"
|
|
168
168
|
})([
|
|
169
169
|
"display:flex;flex-direction:column;"
|
|
170
170
|
]);
|
|
171
171
|
export var DividerWrapper = styled.div.withConfig({
|
|
172
172
|
displayName: "TextArea.styles__DividerWrapper",
|
|
173
|
-
componentId: "sc-
|
|
173
|
+
componentId: "sc-9436bd8f-13"
|
|
174
174
|
})([
|
|
175
175
|
"background:var(",
|
|
176
176
|
");"
|
|
177
177
|
], tokens.backgroundColor);
|
|
178
178
|
export var Divider = styled.div.withConfig({
|
|
179
179
|
displayName: "TextArea.styles__Divider",
|
|
180
|
-
componentId: "sc-
|
|
180
|
+
componentId: "sc-9436bd8f-14"
|
|
181
181
|
})([
|
|
182
182
|
"height:0.0625rem;background:var(",
|
|
183
183
|
");"
|
|
184
184
|
], tokens.dividerColor);
|
|
185
185
|
export var StyledContainer = styled.div.withConfig({
|
|
186
186
|
displayName: "TextArea.styles__StyledContainer",
|
|
187
|
-
componentId: "sc-
|
|
187
|
+
componentId: "sc-9436bd8f-15"
|
|
188
188
|
})([
|
|
189
189
|
"display:inline-flex;flex-direction:column;width:",
|
|
190
190
|
";position:relative;"
|
|
@@ -194,7 +194,7 @@ export var StyledContainer = styled.div.withConfig({
|
|
|
194
194
|
});
|
|
195
195
|
export var StyledTextArea = styled.textarea.withConfig({
|
|
196
196
|
displayName: "TextArea.styles__StyledTextArea",
|
|
197
|
-
componentId: "sc-
|
|
197
|
+
componentId: "sc-9436bd8f-16"
|
|
198
198
|
})([
|
|
199
199
|
"display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(",
|
|
200
200
|
");caret-color:var(",
|
|
@@ -257,10 +257,11 @@ export var StyledTextArea = styled.textarea.withConfig({
|
|
|
257
257
|
}, tokens.inputFontFamily, tokens.inputFontSize, tokens.inputFontStyle, tokens.inputFontWeight, tokens.inputLetterSpacing, tokens.inputLineHeight, tokens.inputColorFocus, tokens.scrollbarWidth, tokens.scrollbarThumbBackgroundColor, tokens.scrollbarBorderWidth, tokens.scrollbarTrackBackgroundColor, tokens.scrollbarBorderWidth);
|
|
258
258
|
export var StyledHiddenTextArea = styled.textarea.withConfig({
|
|
259
259
|
displayName: "TextArea.styles__StyledHiddenTextArea",
|
|
260
|
-
componentId: "sc-
|
|
260
|
+
componentId: "sc-9436bd8f-17"
|
|
261
261
|
})([
|
|
262
262
|
"max-height:none !important;min-height:var(",
|
|
263
|
-
") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:
|
|
263
|
+
") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:",
|
|
264
|
+
";border-width:0;padding-right:",
|
|
264
265
|
";padding-left:var(",
|
|
265
266
|
",0);padding-top:0;padding-bottom:0;box-sizing:border-box;text-indent:0;text-rendering:auto;text-transform:none;tab-size:8;font-family:var(",
|
|
266
267
|
");font-size:var(",
|
|
@@ -270,12 +271,15 @@ export var StyledHiddenTextArea = styled.textarea.withConfig({
|
|
|
270
271
|
");line-height:var(",
|
|
271
272
|
");"
|
|
272
273
|
], tokens.inputMinHeight, function(param) {
|
|
274
|
+
var cols = param.cols;
|
|
275
|
+
return cols ? 'unset' : '0.0625rem !important';
|
|
276
|
+
}, function(param) {
|
|
273
277
|
var hasContentRight = param.hasContentRight;
|
|
274
278
|
return hasContentRight ? "var(".concat(tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(tokens.inputPaddingRight, ", 0)");
|
|
275
279
|
}, tokens.inputPaddingLeft, tokens.inputFontFamily, tokens.inputFontSize, tokens.inputFontStyle, tokens.inputFontWeight, tokens.inputLetterSpacing, tokens.inputLineHeight);
|
|
276
280
|
export var StyledHelpers = styled.div.withConfig({
|
|
277
281
|
displayName: "TextArea.styles__StyledHelpers",
|
|
278
|
-
componentId: "sc-
|
|
282
|
+
componentId: "sc-9436bd8f-18"
|
|
279
283
|
})([
|
|
280
284
|
"box-sizing:border-box;display:flex;justify-content:space-between;transition:background-color 0.1s ease-in-out;background-color:var(",
|
|
281
285
|
");padding-top:var(",
|
|
@@ -288,14 +292,14 @@ export var StyledHelpers = styled.div.withConfig({
|
|
|
288
292
|
], tokens.helpersBackgroundColor, tokens.helpersPaddingTop, tokens.helpersPaddingRight, tokens.helpersPaddingBottom, tokens.helpersPaddingLeft, tokens.borderRadius, tokens.borderRadius);
|
|
289
293
|
export var StyledOutsideHelpersWrapper = styled.div.withConfig({
|
|
290
294
|
displayName: "TextArea.styles__StyledOutsideHelpersWrapper",
|
|
291
|
-
componentId: "sc-
|
|
295
|
+
componentId: "sc-9436bd8f-19"
|
|
292
296
|
})([
|
|
293
297
|
"box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(",
|
|
294
298
|
");"
|
|
295
299
|
], tokens.clearHelpersPaddingTop);
|
|
296
300
|
export var StyledLeftHelper = styled.span.withConfig({
|
|
297
301
|
displayName: "TextArea.styles__StyledLeftHelper",
|
|
298
|
-
componentId: "sc-
|
|
302
|
+
componentId: "sc-9436bd8f-20"
|
|
299
303
|
})([
|
|
300
304
|
"",
|
|
301
305
|
";display:block;font-family:var(",
|
|
@@ -312,14 +316,14 @@ export var StyledLeftHelper = styled.span.withConfig({
|
|
|
312
316
|
], applyEllipsis(), tokens.helpersFontFamily, tokens.helpersFontSize, tokens.helpersFontStyle, tokens.helpersFontWeight, tokens.helpersLetterSpacing, tokens.helpersLineHeight, tokens.leftHelperColor, classes.leftHelperFocus, tokens.leftHelperColorFocus, tokens.leftHelperColor);
|
|
313
317
|
export var StyledRightHelper = styled(StyledLeftHelper).withConfig({
|
|
314
318
|
displayName: "TextArea.styles__StyledRightHelper",
|
|
315
|
-
componentId: "sc-
|
|
319
|
+
componentId: "sc-9436bd8f-21"
|
|
316
320
|
})([
|
|
317
321
|
"color:var(",
|
|
318
322
|
");margin-left:auto;"
|
|
319
323
|
], tokens.rightHelperColor);
|
|
320
324
|
export var StyledPlaceholder = styled.label.withConfig({
|
|
321
325
|
displayName: "TextArea.styles__StyledPlaceholder",
|
|
322
|
-
componentId: "sc-
|
|
326
|
+
componentId: "sc-9436bd8f-22"
|
|
323
327
|
})([
|
|
324
328
|
"box-sizing:border-box;position:absolute;pointer-events:none;display:inline-flex;align-items:center;transition:all 0.1s ease-in-out;transform-origin:top left;color:var(",
|
|
325
329
|
");width:100%;height:auto;top:var(",
|
|
@@ -338,7 +342,7 @@ export var StyledPlaceholder = styled.label.withConfig({
|
|
|
338
342
|
}, tokens.inputFontFamily, tokens.inputFontSize, tokens.inputFontStyle, tokens.inputFontWeight, tokens.inputLetterSpacing, tokens.inputLineHeight);
|
|
339
343
|
export var StyledIndicator = styled.div.withConfig({
|
|
340
344
|
displayName: "TextArea.styles__StyledIndicator",
|
|
341
|
-
componentId: "sc-
|
|
345
|
+
componentId: "sc-9436bd8f-23"
|
|
342
346
|
})([
|
|
343
347
|
"position:absolute;border-radius:50%;background-color:var(",
|
|
344
348
|
");&.",
|
|
@@ -23,4 +23,4 @@ export var base = css([
|
|
|
23
23
|
");border-radius:var(",
|
|
24
24
|
");opacity:var(",
|
|
25
25
|
");z-index:-1;}:hover{background:transparent;}}}}"
|
|
26
|
-
], StyledTextArea, tokens.inputColorReadOnly, StyledContent, tokens.contentSlotRightOpacityReadOnly, tokens.rightContentColor, tokens.rightContentColor, classes.clear, StyledTextAreaWrapper, tokens.
|
|
26
|
+
], StyledTextArea, tokens.inputColorReadOnly, StyledContent, tokens.contentSlotRightOpacityReadOnly, tokens.rightContentColor, tokens.rightContentColor, classes.clear, StyledTextAreaWrapper, tokens.dividerColor, classes.clear, StyledTextAreaWrapper, StyledHelpers, StyledTextAreaWrapper, tokens.borderSize, tokens.borderColorReadOnly, tokens.borderRadius, StyledContainer, tokens.backgroundColorReadOnly, tokens.borderRadius, tokens.readOnlyOpacity);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
|
3
|
-
"version": "0.345.0-canary.2423.
|
|
3
|
+
"version": "0.345.0-canary.2423.20994461674.0",
|
|
4
4
|
"description": "Salute Design System blueprint",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"@rollup/plugin-babel": "^6.0.4",
|
|
93
93
|
"@rollup/plugin-commonjs": "^25.0.4",
|
|
94
94
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
95
|
-
"@salutejs/plasma-cy-utils": "0.143.0-canary.2423.
|
|
96
|
-
"@salutejs/plasma-sb-utils": "0.213.0-canary.2423.
|
|
97
|
-
"@salutejs/plasma-themes": "0.39.0-canary.2423.
|
|
95
|
+
"@salutejs/plasma-cy-utils": "0.143.0-canary.2423.20994461674.0",
|
|
96
|
+
"@salutejs/plasma-sb-utils": "0.213.0-canary.2423.20994461674.0",
|
|
97
|
+
"@salutejs/plasma-themes": "0.39.0-canary.2423.20994461674.0",
|
|
98
98
|
"@types/lodash": "^4.14.191",
|
|
99
99
|
"@types/lodash.chunk": "4.2.9",
|
|
100
100
|
"@types/lodash.throttle": "4.1.6",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@linaria/react": "5.0.3",
|
|
123
123
|
"@popperjs/core": "2.11.8",
|
|
124
124
|
"@salutejs/input-core": "2.1.2",
|
|
125
|
-
"@salutejs/plasma-core": "1.213.0-canary.2423.
|
|
125
|
+
"@salutejs/plasma-core": "1.213.0-canary.2423.20994461674.0",
|
|
126
126
|
"@salutejs/react-maskinput": "3.3.2",
|
|
127
127
|
"@tanstack/react-table": "8.21.2",
|
|
128
128
|
"@tanstack/react-virtual": "3.13.2",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"sideEffects": [
|
|
143
143
|
"*.css"
|
|
144
144
|
],
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "51cc03d7c2859b31d538a7a3d6630ce970a4f94a"
|
|
146
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmG,MAAM,OAAO,CAAC;AAKxH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAiCrD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAkCzE,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA2B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmG,MAAM,OAAO,CAAC;AAKxH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAiCrD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAkCzE,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA2B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,8FAmX9E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBArXQ,SAAS,CAAC,mBAAmB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoZnF,CAAC"}
|
|
@@ -39,6 +39,7 @@ export declare const StyledTextArea: import("@linaria/react").StyledComponent<im
|
|
|
39
39
|
export declare const StyledHiddenTextArea: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLTextAreaElement> & import("react").TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
40
40
|
hasContentRight: boolean;
|
|
41
41
|
resize?: string;
|
|
42
|
+
cols?: number;
|
|
42
43
|
}>;
|
|
43
44
|
export declare const StyledHelpers: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
44
45
|
export declare const StyledOutsideHelpersWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI,8OAAoB,CAAC;AAEtC,eAAO,MAAM,iBAAiB;kBAA8B,OAAO;WAAS,MAAM;EAOjF,CAAC;AAEF,eAAO,MAAM,WAAW,qKAWvB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAUxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAIlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;kBAA+B,OAAO;EAepE,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAU7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAQ7B,CAAC;AAEF,eAAO,MAAM,eAAe,qKAAe,CAAC;AAE5C,eAAO,MAAM,qBAAqB;eACnB,OAAO;eACP,OAAO;EAYrB,CAAC;AAEF,eAAO,MAAM,oBAAoB;eAA2B,OAAO;EAKlE,CAAC;AAEF,eAAO,MAAM,aAAa;gBAA4B,OAAO;EAoB5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAG5B,CAAC;AAEF,eAAO,MAAM,cAAc,qKAE1B,CAAC;AAEF,eAAO,MAAM,OAAO,qKAGnB,CAAC;AAEF,eAAO,MAAM,eAAe;WAAuB,MAAM;EAOxD,CAAC;AAEF,eAAO,MAAM,cAAc;eACZ,OAAO;qBACD,OAAO;sBACN,OAAO;YACjB,MAAM,GAAG,MAAM;aACd,MAAM,GAAG,MAAM;aACf,MAAM;EAiGlB,CAAC;AAEF,eAAO,MAAM,oBAAoB;qBACZ,OAAO;aACf,MAAM;EA+
|
|
1
|
+
{"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,IAAI,8OAAoB,CAAC;AAEtC,eAAO,MAAM,iBAAiB;kBAA8B,OAAO;WAAS,MAAM;EAOjF,CAAC;AAEF,eAAO,MAAM,WAAW,qKAWvB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAUxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,qKAIlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;kBAA+B,OAAO;EAepE,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAU7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAQ7B,CAAC;AAEF,eAAO,MAAM,eAAe,qKAAe,CAAC;AAE5C,eAAO,MAAM,qBAAqB;eACnB,OAAO;eACP,OAAO;EAYrB,CAAC;AAEF,eAAO,MAAM,oBAAoB;eAA2B,OAAO;EAKlE,CAAC;AAEF,eAAO,MAAM,aAAa;gBAA4B,OAAO;EAoB5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAG5B,CAAC;AAEF,eAAO,MAAM,cAAc,qKAE1B,CAAC;AAEF,eAAO,MAAM,OAAO,qKAGnB,CAAC;AAEF,eAAO,MAAM,eAAe;WAAuB,MAAM;EAOxD,CAAC;AAEF,eAAO,MAAM,cAAc;eACZ,OAAO;qBACD,OAAO;sBACN,OAAO;YACjB,MAAM,GAAG,MAAM;aACd,MAAM,GAAG,MAAM;aACf,MAAM;EAiGlB,CAAC;AAEF,eAAO,MAAM,oBAAoB;qBACZ,OAAO;aACf,MAAM;WACR,MAAM;EA+BhB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAgBzB,CAAC;AAEF,eAAO,MAAM,2BAA2B,qKAMvC,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAiB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;SArTM,MAAO,WAAW;EAwTrD,CAAC;AAEF,eAAO,MAAM,iBAAiB;qBACT,OAAO;EA2B3B,CAAC;AAEF,eAAO,MAAM,eAAe,qKA+B3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.b1xxdrt2[readonly] .s7jal92{color:var(--plasma-textarea-input-color-read-only);}.b1xxdrt2[readonly] .salwx57{opacity:var(--plasma-textarea-right-content-opacity-readonly);}.b1xxdrt2[readonly] .salwx57:hover{color:var(--plasma-textarea-right-content-color);}.b1xxdrt2[readonly] .salwx57:active{color:var(--plasma-textarea-right-content-color);}.b1xxdrt2[readonly].textarea-clear .s3wsw3p:before{background-color:var(--plasma-textarea-divider-color-readonly);}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .s3wsw3p,.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .s14zw9ik{background:transparent;}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .s3wsw3p{position:relative;box-shadow:none;}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .s3wsw3p:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;box-shadow:inset 0 0 0 var(--plasma-textarea-border-size,1px) var(--plasma-textarea-border-color-readonly);border-radius:var(--plasma-textarea-border-radius);z-index:-1;}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .suev9vb{background:transparent;position:relative;}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .suev9vb:before{position:absolute;content:'';top:0;left:0;right:0;bottom:0;background:var(--plasma-textarea-background-color-read-only);border-radius:var(--plasma-textarea-border-radius);opacity:var(--plasma-textarea-read-only-opacity);z-index:-1;}.b1xxdrt2[readonly]:not(.b1xxdrt2[readonly].textarea-clear) .suev9vb:hover{background:transparent;}
|