labsense-ui-kit 1.1.19 → 1.1.21
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/Container&Span/StyledComponents.d.ts +2 -0
- package/dist/Inputs/TextArea.d.ts +1 -0
- package/dist/Inputs/TextField.d.ts +1 -0
- package/dist/index.js +126 -110
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +126 -110
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2967,7 +2967,7 @@ var Icon = function Icon(_ref2) {
|
|
|
2967
2967
|
};
|
|
2968
2968
|
|
|
2969
2969
|
var _templateObject$1, _templateObject2$1;
|
|
2970
|
-
var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
|
|
2970
|
+
var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n box-shadow: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
|
|
2971
2971
|
var $flex = _ref.$flex;
|
|
2972
2972
|
return $flex;
|
|
2973
2973
|
}, function (_ref2) {
|
|
@@ -3076,47 +3076,53 @@ var Container = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemp
|
|
|
3076
3076
|
var $border = _ref36.$border;
|
|
3077
3077
|
return $border;
|
|
3078
3078
|
}, function (_ref37) {
|
|
3079
|
-
var $
|
|
3080
|
-
return $
|
|
3079
|
+
var $borderTop = _ref37.$borderTop;
|
|
3080
|
+
return $borderTop;
|
|
3081
3081
|
}, function (_ref38) {
|
|
3082
|
-
var $
|
|
3083
|
-
return $
|
|
3082
|
+
var $borderBottom = _ref38.$borderBottom;
|
|
3083
|
+
return $borderBottom;
|
|
3084
3084
|
}, function (_ref39) {
|
|
3085
|
-
var $
|
|
3086
|
-
return $
|
|
3085
|
+
var $borderLeft = _ref39.$borderLeft;
|
|
3086
|
+
return $borderLeft;
|
|
3087
3087
|
}, function (_ref40) {
|
|
3088
|
-
var $
|
|
3089
|
-
return $
|
|
3088
|
+
var $transition = _ref40.$transition;
|
|
3089
|
+
return $transition;
|
|
3090
3090
|
}, function (_ref41) {
|
|
3091
|
-
var $
|
|
3091
|
+
var $boxShadow = _ref41.$boxShadow;
|
|
3092
|
+
return $boxShadow;
|
|
3093
|
+
}, function (_ref42) {
|
|
3094
|
+
var $hoverBackground = _ref42.$hoverBackground;
|
|
3095
|
+
return $hoverBackground;
|
|
3096
|
+
}, function (_ref43) {
|
|
3097
|
+
var $hoverColor = _ref43.$hoverColor;
|
|
3092
3098
|
return $hoverColor;
|
|
3093
3099
|
});
|
|
3094
|
-
var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (
|
|
3095
|
-
var $fontFamily =
|
|
3100
|
+
var Span = styled.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (_ref44) {
|
|
3101
|
+
var $fontFamily = _ref44.$fontFamily;
|
|
3096
3102
|
return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
|
|
3097
|
-
}, function (
|
|
3098
|
-
var $fontWeight =
|
|
3103
|
+
}, function (_ref45) {
|
|
3104
|
+
var $fontWeight = _ref45.$fontWeight;
|
|
3099
3105
|
return $fontWeight ? $fontWeight : '500';
|
|
3100
|
-
}, function (
|
|
3101
|
-
var $fontSize =
|
|
3106
|
+
}, function (_ref46) {
|
|
3107
|
+
var $fontSize = _ref46.$fontSize;
|
|
3102
3108
|
return $fontSize ? $fontSize : '16px';
|
|
3103
|
-
}, function (
|
|
3104
|
-
var $color =
|
|
3109
|
+
}, function (_ref47) {
|
|
3110
|
+
var $color = _ref47.$color;
|
|
3105
3111
|
return $color ? $color : colorVariables.text.medium;
|
|
3106
|
-
}, function (
|
|
3107
|
-
var $lineHeight =
|
|
3112
|
+
}, function (_ref48) {
|
|
3113
|
+
var $lineHeight = _ref48.$lineHeight;
|
|
3108
3114
|
return $lineHeight ? $lineHeight : '100%';
|
|
3109
|
-
}, function (
|
|
3110
|
-
var $textAlign =
|
|
3115
|
+
}, function (_ref49) {
|
|
3116
|
+
var $textAlign = _ref49.$textAlign;
|
|
3111
3117
|
return $textAlign ? $textAlign : 'center';
|
|
3112
|
-
}, function (
|
|
3113
|
-
var $minWidth =
|
|
3118
|
+
}, function (_ref50) {
|
|
3119
|
+
var $minWidth = _ref50.$minWidth;
|
|
3114
3120
|
return $minWidth;
|
|
3115
|
-
}, function (
|
|
3116
|
-
var $width =
|
|
3121
|
+
}, function (_ref51) {
|
|
3122
|
+
var $width = _ref51.$width;
|
|
3117
3123
|
return $width;
|
|
3118
|
-
}, function (
|
|
3119
|
-
var $overflowWrap =
|
|
3124
|
+
}, function (_ref52) {
|
|
3125
|
+
var $overflowWrap = _ref52.$overflowWrap;
|
|
3120
3126
|
return $overflowWrap;
|
|
3121
3127
|
});
|
|
3122
3128
|
|
|
@@ -5124,8 +5130,11 @@ var SearchBox = function SearchBox(_ref6) {
|
|
|
5124
5130
|
};
|
|
5125
5131
|
|
|
5126
5132
|
var _templateObject$e, _templateObject2$b, _templateObject3$7, _templateObject4$5, _templateObject5$5;
|
|
5127
|
-
var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n cursor: auto;\n width: 100%;\n font-weight:
|
|
5128
|
-
var $
|
|
5133
|
+
var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n cursor: auto;\n width: 100%;\n font-weight: ", ";\n position: relative;\n width: max-content;\n\n ", "\n\n color: ", ";\n"])), function (_ref) {
|
|
5134
|
+
var $fontWeight = _ref.$fontWeight;
|
|
5135
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5136
|
+
}, function (_ref2) {
|
|
5137
|
+
var $size = _ref2.$size;
|
|
5129
5138
|
switch ($size) {
|
|
5130
5139
|
case 'small':
|
|
5131
5140
|
return "\n font-size: 12px;\n line-height: 12px;\n ";
|
|
@@ -5136,8 +5145,8 @@ var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTempla
|
|
|
5136
5145
|
default:
|
|
5137
5146
|
return "\n font-size: 14px;\n line-height: 14px;\n ";
|
|
5138
5147
|
}
|
|
5139
|
-
}, function (
|
|
5140
|
-
var $titlecolor =
|
|
5148
|
+
}, function (_ref3) {
|
|
5149
|
+
var $titlecolor = _ref3.$titlecolor;
|
|
5141
5150
|
switch ($titlecolor) {
|
|
5142
5151
|
case 'dark':
|
|
5143
5152
|
return colorVariables.text.dark;
|
|
@@ -5159,22 +5168,22 @@ var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTempla
|
|
|
5159
5168
|
return $titlecolor;
|
|
5160
5169
|
}
|
|
5161
5170
|
});
|
|
5162
|
-
var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n pointer-events: ", ";\n\n ", "\n\n &:focus {\n border: 1px solid\n ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n font-family: NotoSans, sans-serif;\n }\n"])), colorVariables.border.light, function (
|
|
5163
|
-
var $disabled =
|
|
5171
|
+
var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n pointer-events: ", ";\n\n ", "\n\n &:focus {\n border: 1px solid\n ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n font-family: NotoSans, sans-serif;\n }\n"])), colorVariables.border.light, function (_ref4) {
|
|
5172
|
+
var $disabled = _ref4.$disabled;
|
|
5164
5173
|
return $disabled ? 'not-allowed' : 'auto';
|
|
5165
|
-
}, function (_ref4) {
|
|
5166
|
-
var $disabled = _ref4.$disabled,
|
|
5167
|
-
$background = _ref4.$background;
|
|
5168
|
-
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5169
5174
|
}, function (_ref5) {
|
|
5170
|
-
var $
|
|
5171
|
-
|
|
5175
|
+
var $disabled = _ref5.$disabled,
|
|
5176
|
+
$background = _ref5.$background;
|
|
5177
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5172
5178
|
}, function (_ref6) {
|
|
5173
|
-
var $
|
|
5174
|
-
return $
|
|
5179
|
+
var $color = _ref6.$color;
|
|
5180
|
+
return $color;
|
|
5175
5181
|
}, function (_ref7) {
|
|
5176
|
-
var $
|
|
5177
|
-
|
|
5182
|
+
var $disabled = _ref7.$disabled;
|
|
5183
|
+
return $disabled ? 'none' : 'auto';
|
|
5184
|
+
}, function (_ref8) {
|
|
5185
|
+
var $size = _ref8.$size,
|
|
5186
|
+
$type = _ref8.$type;
|
|
5178
5187
|
switch ($size) {
|
|
5179
5188
|
case 'small':
|
|
5180
5189
|
return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
|
|
@@ -5185,8 +5194,8 @@ var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemp
|
|
|
5185
5194
|
default:
|
|
5186
5195
|
return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
|
|
5187
5196
|
}
|
|
5188
|
-
}, function (
|
|
5189
|
-
var $color =
|
|
5197
|
+
}, function (_ref9) {
|
|
5198
|
+
var $color = _ref9.$color;
|
|
5190
5199
|
switch ($color) {
|
|
5191
5200
|
case 'dark':
|
|
5192
5201
|
return colorVariables.text.dark;
|
|
@@ -5209,39 +5218,40 @@ var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemp
|
|
|
5209
5218
|
}
|
|
5210
5219
|
}, colorVariables.text.light);
|
|
5211
5220
|
var InputWrapper$1 = styled.div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
5212
|
-
var IconWrapper$1 = styled.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (
|
|
5213
|
-
var $disabled =
|
|
5221
|
+
var IconWrapper$1 = styled.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (_ref10) {
|
|
5222
|
+
var $disabled = _ref10.$disabled;
|
|
5214
5223
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
5215
5224
|
});
|
|
5216
5225
|
var Asterisk$1 = styled.span(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), colorVariables["default"].error);
|
|
5217
|
-
var TextField = function TextField(
|
|
5218
|
-
var
|
|
5219
|
-
type =
|
|
5220
|
-
title =
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
disabled =
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
size =
|
|
5228
|
-
|
|
5229
|
-
color =
|
|
5230
|
-
|
|
5231
|
-
padding =
|
|
5232
|
-
|
|
5233
|
-
titlecolor =
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
iconsize =
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
required =
|
|
5241
|
-
|
|
5242
|
-
background =
|
|
5243
|
-
|
|
5244
|
-
|
|
5226
|
+
var TextField = function TextField(_ref11) {
|
|
5227
|
+
var _ref11$type = _ref11.type,
|
|
5228
|
+
type = _ref11$type === void 0 ? 'text' : _ref11$type,
|
|
5229
|
+
title = _ref11.title,
|
|
5230
|
+
titleWeight = _ref11.titleWeight,
|
|
5231
|
+
placeholder = _ref11.placeholder,
|
|
5232
|
+
_ref11$disabled = _ref11.disabled,
|
|
5233
|
+
disabled = _ref11$disabled === void 0 ? false : _ref11$disabled,
|
|
5234
|
+
inputValue = _ref11.inputValue,
|
|
5235
|
+
onChange = _ref11.onChange,
|
|
5236
|
+
_ref11$size = _ref11.size,
|
|
5237
|
+
size = _ref11$size === void 0 ? 'medium' : _ref11$size,
|
|
5238
|
+
_ref11$color = _ref11.color,
|
|
5239
|
+
color = _ref11$color === void 0 ? colorVariables.text.dark : _ref11$color,
|
|
5240
|
+
_ref11$padding = _ref11.padding,
|
|
5241
|
+
padding = _ref11$padding === void 0 ? '0px' : _ref11$padding,
|
|
5242
|
+
_ref11$titlecolor = _ref11.titlecolor,
|
|
5243
|
+
titlecolor = _ref11$titlecolor === void 0 ? colorVariables.text.dark : _ref11$titlecolor,
|
|
5244
|
+
icon = _ref11.icon,
|
|
5245
|
+
_ref11$iconsize = _ref11.iconsize,
|
|
5246
|
+
iconsize = _ref11$iconsize === void 0 ? 18 : _ref11$iconsize,
|
|
5247
|
+
iconweight = _ref11.iconweight,
|
|
5248
|
+
iconcolor = _ref11.iconcolor,
|
|
5249
|
+
_ref11$required = _ref11.required,
|
|
5250
|
+
required = _ref11$required === void 0 ? false : _ref11$required,
|
|
5251
|
+
_ref11$background = _ref11.background,
|
|
5252
|
+
background = _ref11$background === void 0 ? colorVariables["default"].tertiary : _ref11$background,
|
|
5253
|
+
onEnter = _ref11.onEnter,
|
|
5254
|
+
titleRightNode = _ref11.titleRightNode;
|
|
5245
5255
|
var _useState = useState(disabled),
|
|
5246
5256
|
isDisabled = _useState[0],
|
|
5247
5257
|
setIsDisabled = _useState[1];
|
|
@@ -5270,6 +5280,7 @@ var TextField = function TextField(_ref10) {
|
|
|
5270
5280
|
"$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
|
|
5271
5281
|
}, title && React.createElement(Label, {
|
|
5272
5282
|
"$size": size,
|
|
5283
|
+
"$fontWeight": titleWeight,
|
|
5273
5284
|
htmlFor: title,
|
|
5274
5285
|
"$titlecolor": titlecolor
|
|
5275
5286
|
}, title, required && React.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React.createElement(InputWrapper$1, null, React.createElement(Input, {
|
|
@@ -5315,8 +5326,11 @@ var Container$3 = styled.div(_templateObject$f || (_templateObject$f = _taggedTe
|
|
|
5315
5326
|
var $padding = _ref.$padding;
|
|
5316
5327
|
return $padding;
|
|
5317
5328
|
});
|
|
5318
|
-
var Label$1 = styled.label(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n cursor: auto;\n font-weight:
|
|
5319
|
-
var $
|
|
5329
|
+
var Label$1 = styled.label(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n cursor: auto;\n font-weight: ", ";\n position: relative;\n width: max-content;\n\n ", "\n\n color: ", ";\n"])), function (_ref2) {
|
|
5330
|
+
var $fontWeight = _ref2.$fontWeight;
|
|
5331
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5332
|
+
}, function (_ref3) {
|
|
5333
|
+
var $size = _ref3.$size;
|
|
5320
5334
|
switch ($size) {
|
|
5321
5335
|
case 'small':
|
|
5322
5336
|
return 'font-size: 12px; line-height: 12px;';
|
|
@@ -5327,22 +5341,22 @@ var Label$1 = styled.label(_templateObject2$c || (_templateObject2$c = _taggedTe
|
|
|
5327
5341
|
default:
|
|
5328
5342
|
return 'font-size: 14px; line-height: 14px;';
|
|
5329
5343
|
}
|
|
5330
|
-
}, function (
|
|
5331
|
-
var $titlecolor =
|
|
5344
|
+
}, function (_ref4) {
|
|
5345
|
+
var $titlecolor = _ref4.$titlecolor;
|
|
5332
5346
|
return $titlecolor || colorVariables.text.dark;
|
|
5333
5347
|
});
|
|
5334
|
-
var TextAreaComponent = styled.textarea(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n resize: none;\n height: 100%;\n \n ", "\n\n &:focus {\n border-color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n font-family: NotoSans, sans-serif;\n }\n"])), colorVariables.border.light, function (
|
|
5335
|
-
var $disabled =
|
|
5348
|
+
var TextAreaComponent = styled.textarea(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteralLoose(["\n width: 100%;\n border: 1px solid ", ";\n border-radius: 8px;\n cursor: ", ";\n background: ", ";\n transition: all 0.3s ease;\n color: ", ";\n resize: none;\n height: 100%;\n \n ", "\n\n &:focus {\n border-color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n font-style: italic;\n font-family: NotoSans, sans-serif;\n }\n"])), colorVariables.border.light, function (_ref5) {
|
|
5349
|
+
var $disabled = _ref5.$disabled;
|
|
5336
5350
|
return $disabled ? 'not-allowed' : 'auto';
|
|
5337
|
-
}, function (_ref5) {
|
|
5338
|
-
var $disabled = _ref5.$disabled,
|
|
5339
|
-
$background = _ref5.$background;
|
|
5340
|
-
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5341
5351
|
}, function (_ref6) {
|
|
5342
|
-
var $
|
|
5343
|
-
|
|
5352
|
+
var $disabled = _ref6.$disabled,
|
|
5353
|
+
$background = _ref6.$background;
|
|
5354
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5344
5355
|
}, function (_ref7) {
|
|
5345
|
-
var $
|
|
5356
|
+
var $color = _ref7.$color;
|
|
5357
|
+
return $color;
|
|
5358
|
+
}, function (_ref8) {
|
|
5359
|
+
var $size = _ref8.$size;
|
|
5346
5360
|
switch ($size) {
|
|
5347
5361
|
case 'small':
|
|
5348
5362
|
return 'font-size: 12px; padding: 5px 10px;';
|
|
@@ -5353,29 +5367,30 @@ var TextAreaComponent = styled.textarea(_templateObject3$8 || (_templateObject3$
|
|
|
5353
5367
|
default:
|
|
5354
5368
|
return 'font-size: 14px; padding: 7px 12px;';
|
|
5355
5369
|
}
|
|
5356
|
-
}, function (
|
|
5357
|
-
var $color =
|
|
5370
|
+
}, function (_ref9) {
|
|
5371
|
+
var $color = _ref9.$color;
|
|
5358
5372
|
return $color || colorVariables.text.dark;
|
|
5359
5373
|
}, colorVariables.text.light);
|
|
5360
|
-
var TextArea = function TextArea(
|
|
5361
|
-
var title =
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
disabled =
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
size =
|
|
5369
|
-
|
|
5370
|
-
color =
|
|
5371
|
-
|
|
5372
|
-
padding =
|
|
5373
|
-
|
|
5374
|
-
titlecolor =
|
|
5375
|
-
|
|
5376
|
-
required =
|
|
5377
|
-
|
|
5378
|
-
background =
|
|
5374
|
+
var TextArea = function TextArea(_ref10) {
|
|
5375
|
+
var title = _ref10.title,
|
|
5376
|
+
titleWeight = _ref10.titleWeight,
|
|
5377
|
+
placeholder = _ref10.placeholder,
|
|
5378
|
+
_ref10$disabled = _ref10.disabled,
|
|
5379
|
+
disabled = _ref10$disabled === void 0 ? false : _ref10$disabled,
|
|
5380
|
+
inputValue = _ref10.inputValue,
|
|
5381
|
+
onChange = _ref10.onChange,
|
|
5382
|
+
_ref10$size = _ref10.size,
|
|
5383
|
+
size = _ref10$size === void 0 ? 'medium' : _ref10$size,
|
|
5384
|
+
_ref10$color = _ref10.color,
|
|
5385
|
+
color = _ref10$color === void 0 ? colorVariables.text.dark : _ref10$color,
|
|
5386
|
+
_ref10$padding = _ref10.padding,
|
|
5387
|
+
padding = _ref10$padding === void 0 ? '0px' : _ref10$padding,
|
|
5388
|
+
_ref10$titlecolor = _ref10.titlecolor,
|
|
5389
|
+
titlecolor = _ref10$titlecolor === void 0 ? colorVariables.text.dark : _ref10$titlecolor,
|
|
5390
|
+
_ref10$required = _ref10.required,
|
|
5391
|
+
required = _ref10$required === void 0 ? false : _ref10$required,
|
|
5392
|
+
_ref10$background = _ref10.background,
|
|
5393
|
+
background = _ref10$background === void 0 ? colorVariables["default"].tertiary : _ref10$background;
|
|
5379
5394
|
var _useState = useState(disabled),
|
|
5380
5395
|
isDisabled = _useState[0],
|
|
5381
5396
|
setIsDisabled = _useState[1];
|
|
@@ -5386,6 +5401,7 @@ var TextArea = function TextArea(_ref9) {
|
|
|
5386
5401
|
"$padding": padding
|
|
5387
5402
|
}, title && React.createElement(Label$1, {
|
|
5388
5403
|
"$size": size,
|
|
5404
|
+
"$fontWeight": titleWeight,
|
|
5389
5405
|
htmlFor: title,
|
|
5390
5406
|
"$titlecolor": titlecolor
|
|
5391
5407
|
}, title, required && React.createElement(Asterisk$1, null, "*")), React.createElement(TextAreaComponent, {
|