labsense-ui-kit 1.1.19 → 1.1.20
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 +1 -0
- package/dist/Inputs/TextArea.d.ts +1 -0
- package/dist/Inputs/TextField.d.ts +1 -0
- package/dist/index.js +123 -110
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +123 -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\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,50 @@ 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 $hoverBackground = _ref41.$hoverBackground;
|
|
3092
|
+
return $hoverBackground;
|
|
3093
|
+
}, function (_ref42) {
|
|
3094
|
+
var $hoverColor = _ref42.$hoverColor;
|
|
3092
3095
|
return $hoverColor;
|
|
3093
3096
|
});
|
|
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 =
|
|
3097
|
+
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 (_ref43) {
|
|
3098
|
+
var $fontFamily = _ref43.$fontFamily;
|
|
3096
3099
|
return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
|
|
3097
|
-
}, function (_ref43) {
|
|
3098
|
-
var $fontWeight = _ref43.$fontWeight;
|
|
3099
|
-
return $fontWeight ? $fontWeight : '500';
|
|
3100
3100
|
}, function (_ref44) {
|
|
3101
|
-
var $
|
|
3102
|
-
return $
|
|
3101
|
+
var $fontWeight = _ref44.$fontWeight;
|
|
3102
|
+
return $fontWeight ? $fontWeight : '500';
|
|
3103
3103
|
}, function (_ref45) {
|
|
3104
|
-
var $
|
|
3105
|
-
return $
|
|
3104
|
+
var $fontSize = _ref45.$fontSize;
|
|
3105
|
+
return $fontSize ? $fontSize : '16px';
|
|
3106
3106
|
}, function (_ref46) {
|
|
3107
|
-
var $
|
|
3108
|
-
return $
|
|
3107
|
+
var $color = _ref46.$color;
|
|
3108
|
+
return $color ? $color : colorVariables.text.medium;
|
|
3109
3109
|
}, function (_ref47) {
|
|
3110
|
-
var $
|
|
3111
|
-
return $
|
|
3110
|
+
var $lineHeight = _ref47.$lineHeight;
|
|
3111
|
+
return $lineHeight ? $lineHeight : '100%';
|
|
3112
3112
|
}, function (_ref48) {
|
|
3113
|
-
var $
|
|
3114
|
-
return $
|
|
3113
|
+
var $textAlign = _ref48.$textAlign;
|
|
3114
|
+
return $textAlign ? $textAlign : 'center';
|
|
3115
3115
|
}, function (_ref49) {
|
|
3116
|
-
var $
|
|
3117
|
-
return $
|
|
3116
|
+
var $minWidth = _ref49.$minWidth;
|
|
3117
|
+
return $minWidth;
|
|
3118
3118
|
}, function (_ref50) {
|
|
3119
|
-
var $
|
|
3119
|
+
var $width = _ref50.$width;
|
|
3120
|
+
return $width;
|
|
3121
|
+
}, function (_ref51) {
|
|
3122
|
+
var $overflowWrap = _ref51.$overflowWrap;
|
|
3120
3123
|
return $overflowWrap;
|
|
3121
3124
|
});
|
|
3122
3125
|
|
|
@@ -5124,8 +5127,11 @@ var SearchBox = function SearchBox(_ref6) {
|
|
|
5124
5127
|
};
|
|
5125
5128
|
|
|
5126
5129
|
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 $
|
|
5130
|
+
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) {
|
|
5131
|
+
var $fontWeight = _ref.$fontWeight;
|
|
5132
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5133
|
+
}, function (_ref2) {
|
|
5134
|
+
var $size = _ref2.$size;
|
|
5129
5135
|
switch ($size) {
|
|
5130
5136
|
case 'small':
|
|
5131
5137
|
return "\n font-size: 12px;\n line-height: 12px;\n ";
|
|
@@ -5136,8 +5142,8 @@ var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTempla
|
|
|
5136
5142
|
default:
|
|
5137
5143
|
return "\n font-size: 14px;\n line-height: 14px;\n ";
|
|
5138
5144
|
}
|
|
5139
|
-
}, function (
|
|
5140
|
-
var $titlecolor =
|
|
5145
|
+
}, function (_ref3) {
|
|
5146
|
+
var $titlecolor = _ref3.$titlecolor;
|
|
5141
5147
|
switch ($titlecolor) {
|
|
5142
5148
|
case 'dark':
|
|
5143
5149
|
return colorVariables.text.dark;
|
|
@@ -5159,22 +5165,22 @@ var Label = styled.label(_templateObject$e || (_templateObject$e = _taggedTempla
|
|
|
5159
5165
|
return $titlecolor;
|
|
5160
5166
|
}
|
|
5161
5167
|
});
|
|
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 =
|
|
5168
|
+
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) {
|
|
5169
|
+
var $disabled = _ref4.$disabled;
|
|
5164
5170
|
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
5171
|
}, function (_ref5) {
|
|
5170
|
-
var $
|
|
5171
|
-
|
|
5172
|
+
var $disabled = _ref5.$disabled,
|
|
5173
|
+
$background = _ref5.$background;
|
|
5174
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5172
5175
|
}, function (_ref6) {
|
|
5173
|
-
var $
|
|
5174
|
-
return $
|
|
5176
|
+
var $color = _ref6.$color;
|
|
5177
|
+
return $color;
|
|
5175
5178
|
}, function (_ref7) {
|
|
5176
|
-
var $
|
|
5177
|
-
|
|
5179
|
+
var $disabled = _ref7.$disabled;
|
|
5180
|
+
return $disabled ? 'none' : 'auto';
|
|
5181
|
+
}, function (_ref8) {
|
|
5182
|
+
var $size = _ref8.$size,
|
|
5183
|
+
$type = _ref8.$type;
|
|
5178
5184
|
switch ($size) {
|
|
5179
5185
|
case 'small':
|
|
5180
5186
|
return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
|
|
@@ -5185,8 +5191,8 @@ var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemp
|
|
|
5185
5191
|
default:
|
|
5186
5192
|
return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
|
|
5187
5193
|
}
|
|
5188
|
-
}, function (
|
|
5189
|
-
var $color =
|
|
5194
|
+
}, function (_ref9) {
|
|
5195
|
+
var $color = _ref9.$color;
|
|
5190
5196
|
switch ($color) {
|
|
5191
5197
|
case 'dark':
|
|
5192
5198
|
return colorVariables.text.dark;
|
|
@@ -5209,39 +5215,40 @@ var Input = styled.input(_templateObject2$b || (_templateObject2$b = _taggedTemp
|
|
|
5209
5215
|
}
|
|
5210
5216
|
}, colorVariables.text.light);
|
|
5211
5217
|
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 =
|
|
5218
|
+
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) {
|
|
5219
|
+
var $disabled = _ref10.$disabled;
|
|
5214
5220
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
5215
5221
|
});
|
|
5216
5222
|
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
|
-
|
|
5223
|
+
var TextField = function TextField(_ref11) {
|
|
5224
|
+
var _ref11$type = _ref11.type,
|
|
5225
|
+
type = _ref11$type === void 0 ? 'text' : _ref11$type,
|
|
5226
|
+
title = _ref11.title,
|
|
5227
|
+
titleWeight = _ref11.titleWeight,
|
|
5228
|
+
placeholder = _ref11.placeholder,
|
|
5229
|
+
_ref11$disabled = _ref11.disabled,
|
|
5230
|
+
disabled = _ref11$disabled === void 0 ? false : _ref11$disabled,
|
|
5231
|
+
inputValue = _ref11.inputValue,
|
|
5232
|
+
onChange = _ref11.onChange,
|
|
5233
|
+
_ref11$size = _ref11.size,
|
|
5234
|
+
size = _ref11$size === void 0 ? 'medium' : _ref11$size,
|
|
5235
|
+
_ref11$color = _ref11.color,
|
|
5236
|
+
color = _ref11$color === void 0 ? colorVariables.text.dark : _ref11$color,
|
|
5237
|
+
_ref11$padding = _ref11.padding,
|
|
5238
|
+
padding = _ref11$padding === void 0 ? '0px' : _ref11$padding,
|
|
5239
|
+
_ref11$titlecolor = _ref11.titlecolor,
|
|
5240
|
+
titlecolor = _ref11$titlecolor === void 0 ? colorVariables.text.dark : _ref11$titlecolor,
|
|
5241
|
+
icon = _ref11.icon,
|
|
5242
|
+
_ref11$iconsize = _ref11.iconsize,
|
|
5243
|
+
iconsize = _ref11$iconsize === void 0 ? 18 : _ref11$iconsize,
|
|
5244
|
+
iconweight = _ref11.iconweight,
|
|
5245
|
+
iconcolor = _ref11.iconcolor,
|
|
5246
|
+
_ref11$required = _ref11.required,
|
|
5247
|
+
required = _ref11$required === void 0 ? false : _ref11$required,
|
|
5248
|
+
_ref11$background = _ref11.background,
|
|
5249
|
+
background = _ref11$background === void 0 ? colorVariables["default"].tertiary : _ref11$background,
|
|
5250
|
+
onEnter = _ref11.onEnter,
|
|
5251
|
+
titleRightNode = _ref11.titleRightNode;
|
|
5245
5252
|
var _useState = useState(disabled),
|
|
5246
5253
|
isDisabled = _useState[0],
|
|
5247
5254
|
setIsDisabled = _useState[1];
|
|
@@ -5270,6 +5277,7 @@ var TextField = function TextField(_ref10) {
|
|
|
5270
5277
|
"$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
|
|
5271
5278
|
}, title && React.createElement(Label, {
|
|
5272
5279
|
"$size": size,
|
|
5280
|
+
"$fontWeight": titleWeight,
|
|
5273
5281
|
htmlFor: title,
|
|
5274
5282
|
"$titlecolor": titlecolor
|
|
5275
5283
|
}, 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 +5323,11 @@ var Container$3 = styled.div(_templateObject$f || (_templateObject$f = _taggedTe
|
|
|
5315
5323
|
var $padding = _ref.$padding;
|
|
5316
5324
|
return $padding;
|
|
5317
5325
|
});
|
|
5318
|
-
var Label$1 = styled.label(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n cursor: auto;\n font-weight:
|
|
5319
|
-
var $
|
|
5326
|
+
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) {
|
|
5327
|
+
var $fontWeight = _ref2.$fontWeight;
|
|
5328
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5329
|
+
}, function (_ref3) {
|
|
5330
|
+
var $size = _ref3.$size;
|
|
5320
5331
|
switch ($size) {
|
|
5321
5332
|
case 'small':
|
|
5322
5333
|
return 'font-size: 12px; line-height: 12px;';
|
|
@@ -5327,22 +5338,22 @@ var Label$1 = styled.label(_templateObject2$c || (_templateObject2$c = _taggedTe
|
|
|
5327
5338
|
default:
|
|
5328
5339
|
return 'font-size: 14px; line-height: 14px;';
|
|
5329
5340
|
}
|
|
5330
|
-
}, function (
|
|
5331
|
-
var $titlecolor =
|
|
5341
|
+
}, function (_ref4) {
|
|
5342
|
+
var $titlecolor = _ref4.$titlecolor;
|
|
5332
5343
|
return $titlecolor || colorVariables.text.dark;
|
|
5333
5344
|
});
|
|
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 =
|
|
5345
|
+
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) {
|
|
5346
|
+
var $disabled = _ref5.$disabled;
|
|
5336
5347
|
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
5348
|
}, function (_ref6) {
|
|
5342
|
-
var $
|
|
5343
|
-
|
|
5349
|
+
var $disabled = _ref6.$disabled,
|
|
5350
|
+
$background = _ref6.$background;
|
|
5351
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5344
5352
|
}, function (_ref7) {
|
|
5345
|
-
var $
|
|
5353
|
+
var $color = _ref7.$color;
|
|
5354
|
+
return $color;
|
|
5355
|
+
}, function (_ref8) {
|
|
5356
|
+
var $size = _ref8.$size;
|
|
5346
5357
|
switch ($size) {
|
|
5347
5358
|
case 'small':
|
|
5348
5359
|
return 'font-size: 12px; padding: 5px 10px;';
|
|
@@ -5353,29 +5364,30 @@ var TextAreaComponent = styled.textarea(_templateObject3$8 || (_templateObject3$
|
|
|
5353
5364
|
default:
|
|
5354
5365
|
return 'font-size: 14px; padding: 7px 12px;';
|
|
5355
5366
|
}
|
|
5356
|
-
}, function (
|
|
5357
|
-
var $color =
|
|
5367
|
+
}, function (_ref9) {
|
|
5368
|
+
var $color = _ref9.$color;
|
|
5358
5369
|
return $color || colorVariables.text.dark;
|
|
5359
5370
|
}, 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 =
|
|
5371
|
+
var TextArea = function TextArea(_ref10) {
|
|
5372
|
+
var title = _ref10.title,
|
|
5373
|
+
titleWeight = _ref10.titleWeight,
|
|
5374
|
+
placeholder = _ref10.placeholder,
|
|
5375
|
+
_ref10$disabled = _ref10.disabled,
|
|
5376
|
+
disabled = _ref10$disabled === void 0 ? false : _ref10$disabled,
|
|
5377
|
+
inputValue = _ref10.inputValue,
|
|
5378
|
+
onChange = _ref10.onChange,
|
|
5379
|
+
_ref10$size = _ref10.size,
|
|
5380
|
+
size = _ref10$size === void 0 ? 'medium' : _ref10$size,
|
|
5381
|
+
_ref10$color = _ref10.color,
|
|
5382
|
+
color = _ref10$color === void 0 ? colorVariables.text.dark : _ref10$color,
|
|
5383
|
+
_ref10$padding = _ref10.padding,
|
|
5384
|
+
padding = _ref10$padding === void 0 ? '0px' : _ref10$padding,
|
|
5385
|
+
_ref10$titlecolor = _ref10.titlecolor,
|
|
5386
|
+
titlecolor = _ref10$titlecolor === void 0 ? colorVariables.text.dark : _ref10$titlecolor,
|
|
5387
|
+
_ref10$required = _ref10.required,
|
|
5388
|
+
required = _ref10$required === void 0 ? false : _ref10$required,
|
|
5389
|
+
_ref10$background = _ref10.background,
|
|
5390
|
+
background = _ref10$background === void 0 ? colorVariables["default"].tertiary : _ref10$background;
|
|
5379
5391
|
var _useState = useState(disabled),
|
|
5380
5392
|
isDisabled = _useState[0],
|
|
5381
5393
|
setIsDisabled = _useState[1];
|
|
@@ -5386,6 +5398,7 @@ var TextArea = function TextArea(_ref9) {
|
|
|
5386
5398
|
"$padding": padding
|
|
5387
5399
|
}, title && React.createElement(Label$1, {
|
|
5388
5400
|
"$size": size,
|
|
5401
|
+
"$fontWeight": titleWeight,
|
|
5389
5402
|
htmlFor: title,
|
|
5390
5403
|
"$titlecolor": titlecolor
|
|
5391
5404
|
}, title, required && React.createElement(Asterisk$1, null, "*")), React.createElement(TextAreaComponent, {
|