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
|
@@ -35,12 +35,14 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
35
35
|
$borderRadius?: string | undefined;
|
|
36
36
|
$borderTopLeftRadius?: string | undefined;
|
|
37
37
|
$borderTopRightRadius?: string | undefined;
|
|
38
|
+
$borderTop?: string | undefined;
|
|
38
39
|
$borderBottom?: string | undefined;
|
|
39
40
|
$borderLeft?: string | undefined;
|
|
40
41
|
$fontWeight?: string | undefined;
|
|
41
42
|
$hoverBackground?: string | undefined;
|
|
42
43
|
$hoverColor?: string | undefined;
|
|
43
44
|
$transition?: string | undefined;
|
|
45
|
+
$boxShadow?: string | undefined;
|
|
44
46
|
}>> & string;
|
|
45
47
|
export declare const Span: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
46
48
|
$fontFamily?: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -2971,7 +2971,7 @@ var Icon = function Icon(_ref2) {
|
|
|
2971
2971
|
};
|
|
2972
2972
|
|
|
2973
2973
|
var _templateObject$1, _templateObject2$1;
|
|
2974
|
-
var Container = styled__default.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) {
|
|
2974
|
+
var Container = styled__default.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) {
|
|
2975
2975
|
var $flex = _ref.$flex;
|
|
2976
2976
|
return $flex;
|
|
2977
2977
|
}, function (_ref2) {
|
|
@@ -3080,47 +3080,53 @@ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _t
|
|
|
3080
3080
|
var $border = _ref36.$border;
|
|
3081
3081
|
return $border;
|
|
3082
3082
|
}, function (_ref37) {
|
|
3083
|
-
var $
|
|
3084
|
-
return $
|
|
3083
|
+
var $borderTop = _ref37.$borderTop;
|
|
3084
|
+
return $borderTop;
|
|
3085
3085
|
}, function (_ref38) {
|
|
3086
|
-
var $
|
|
3087
|
-
return $
|
|
3086
|
+
var $borderBottom = _ref38.$borderBottom;
|
|
3087
|
+
return $borderBottom;
|
|
3088
3088
|
}, function (_ref39) {
|
|
3089
|
-
var $
|
|
3090
|
-
return $
|
|
3089
|
+
var $borderLeft = _ref39.$borderLeft;
|
|
3090
|
+
return $borderLeft;
|
|
3091
3091
|
}, function (_ref40) {
|
|
3092
|
-
var $
|
|
3093
|
-
return $
|
|
3092
|
+
var $transition = _ref40.$transition;
|
|
3093
|
+
return $transition;
|
|
3094
3094
|
}, function (_ref41) {
|
|
3095
|
-
var $
|
|
3095
|
+
var $boxShadow = _ref41.$boxShadow;
|
|
3096
|
+
return $boxShadow;
|
|
3097
|
+
}, function (_ref42) {
|
|
3098
|
+
var $hoverBackground = _ref42.$hoverBackground;
|
|
3099
|
+
return $hoverBackground;
|
|
3100
|
+
}, function (_ref43) {
|
|
3101
|
+
var $hoverColor = _ref43.$hoverColor;
|
|
3096
3102
|
return $hoverColor;
|
|
3097
3103
|
});
|
|
3098
|
-
var Span = styled__default.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 (
|
|
3099
|
-
var $fontFamily =
|
|
3104
|
+
var Span = styled__default.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) {
|
|
3105
|
+
var $fontFamily = _ref44.$fontFamily;
|
|
3100
3106
|
return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
|
|
3101
|
-
}, function (
|
|
3102
|
-
var $fontWeight =
|
|
3107
|
+
}, function (_ref45) {
|
|
3108
|
+
var $fontWeight = _ref45.$fontWeight;
|
|
3103
3109
|
return $fontWeight ? $fontWeight : '500';
|
|
3104
|
-
}, function (
|
|
3105
|
-
var $fontSize =
|
|
3110
|
+
}, function (_ref46) {
|
|
3111
|
+
var $fontSize = _ref46.$fontSize;
|
|
3106
3112
|
return $fontSize ? $fontSize : '16px';
|
|
3107
|
-
}, function (
|
|
3108
|
-
var $color =
|
|
3113
|
+
}, function (_ref47) {
|
|
3114
|
+
var $color = _ref47.$color;
|
|
3109
3115
|
return $color ? $color : colorVariables.text.medium;
|
|
3110
|
-
}, function (
|
|
3111
|
-
var $lineHeight =
|
|
3116
|
+
}, function (_ref48) {
|
|
3117
|
+
var $lineHeight = _ref48.$lineHeight;
|
|
3112
3118
|
return $lineHeight ? $lineHeight : '100%';
|
|
3113
|
-
}, function (
|
|
3114
|
-
var $textAlign =
|
|
3119
|
+
}, function (_ref49) {
|
|
3120
|
+
var $textAlign = _ref49.$textAlign;
|
|
3115
3121
|
return $textAlign ? $textAlign : 'center';
|
|
3116
|
-
}, function (
|
|
3117
|
-
var $minWidth =
|
|
3122
|
+
}, function (_ref50) {
|
|
3123
|
+
var $minWidth = _ref50.$minWidth;
|
|
3118
3124
|
return $minWidth;
|
|
3119
|
-
}, function (
|
|
3120
|
-
var $width =
|
|
3125
|
+
}, function (_ref51) {
|
|
3126
|
+
var $width = _ref51.$width;
|
|
3121
3127
|
return $width;
|
|
3122
|
-
}, function (
|
|
3123
|
-
var $overflowWrap =
|
|
3128
|
+
}, function (_ref52) {
|
|
3129
|
+
var $overflowWrap = _ref52.$overflowWrap;
|
|
3124
3130
|
return $overflowWrap;
|
|
3125
3131
|
});
|
|
3126
3132
|
|
|
@@ -5128,8 +5134,11 @@ var SearchBox = function SearchBox(_ref6) {
|
|
|
5128
5134
|
};
|
|
5129
5135
|
|
|
5130
5136
|
var _templateObject$e, _templateObject2$b, _templateObject3$7, _templateObject4$5, _templateObject5$5;
|
|
5131
|
-
var Label = styled__default.label(_templateObject$e || (_templateObject$e = _taggedTemplateLiteralLoose(["\n cursor: auto;\n width: 100%;\n font-weight:
|
|
5132
|
-
var $
|
|
5137
|
+
var Label = styled__default.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) {
|
|
5138
|
+
var $fontWeight = _ref.$fontWeight;
|
|
5139
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5140
|
+
}, function (_ref2) {
|
|
5141
|
+
var $size = _ref2.$size;
|
|
5133
5142
|
switch ($size) {
|
|
5134
5143
|
case 'small':
|
|
5135
5144
|
return "\n font-size: 12px;\n line-height: 12px;\n ";
|
|
@@ -5140,8 +5149,8 @@ var Label = styled__default.label(_templateObject$e || (_templateObject$e = _tag
|
|
|
5140
5149
|
default:
|
|
5141
5150
|
return "\n font-size: 14px;\n line-height: 14px;\n ";
|
|
5142
5151
|
}
|
|
5143
|
-
}, function (
|
|
5144
|
-
var $titlecolor =
|
|
5152
|
+
}, function (_ref3) {
|
|
5153
|
+
var $titlecolor = _ref3.$titlecolor;
|
|
5145
5154
|
switch ($titlecolor) {
|
|
5146
5155
|
case 'dark':
|
|
5147
5156
|
return colorVariables.text.dark;
|
|
@@ -5163,22 +5172,22 @@ var Label = styled__default.label(_templateObject$e || (_templateObject$e = _tag
|
|
|
5163
5172
|
return $titlecolor;
|
|
5164
5173
|
}
|
|
5165
5174
|
});
|
|
5166
|
-
var Input = styled__default.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 (
|
|
5167
|
-
var $disabled =
|
|
5175
|
+
var Input = styled__default.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) {
|
|
5176
|
+
var $disabled = _ref4.$disabled;
|
|
5168
5177
|
return $disabled ? 'not-allowed' : 'auto';
|
|
5169
|
-
}, function (_ref4) {
|
|
5170
|
-
var $disabled = _ref4.$disabled,
|
|
5171
|
-
$background = _ref4.$background;
|
|
5172
|
-
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5173
5178
|
}, function (_ref5) {
|
|
5174
|
-
var $
|
|
5175
|
-
|
|
5179
|
+
var $disabled = _ref5.$disabled,
|
|
5180
|
+
$background = _ref5.$background;
|
|
5181
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5176
5182
|
}, function (_ref6) {
|
|
5177
|
-
var $
|
|
5178
|
-
return $
|
|
5183
|
+
var $color = _ref6.$color;
|
|
5184
|
+
return $color;
|
|
5179
5185
|
}, function (_ref7) {
|
|
5180
|
-
var $
|
|
5181
|
-
|
|
5186
|
+
var $disabled = _ref7.$disabled;
|
|
5187
|
+
return $disabled ? 'none' : 'auto';
|
|
5188
|
+
}, function (_ref8) {
|
|
5189
|
+
var $size = _ref8.$size,
|
|
5190
|
+
$type = _ref8.$type;
|
|
5182
5191
|
switch ($size) {
|
|
5183
5192
|
case 'small':
|
|
5184
5193
|
return "\n font-size: 12px;\n padding: " + ($type === 'password' ? '5px 38px 5px 10px' : '5px 10px') + ";\n ";
|
|
@@ -5189,8 +5198,8 @@ var Input = styled__default.input(_templateObject2$b || (_templateObject2$b = _t
|
|
|
5189
5198
|
default:
|
|
5190
5199
|
return "\n font-size: 14px;\n padding: " + ($type === 'password' ? '7px 38px 7px 12px' : '7px 12px') + ";\n ";
|
|
5191
5200
|
}
|
|
5192
|
-
}, function (
|
|
5193
|
-
var $color =
|
|
5201
|
+
}, function (_ref9) {
|
|
5202
|
+
var $color = _ref9.$color;
|
|
5194
5203
|
switch ($color) {
|
|
5195
5204
|
case 'dark':
|
|
5196
5205
|
return colorVariables.text.dark;
|
|
@@ -5213,39 +5222,40 @@ var Input = styled__default.input(_templateObject2$b || (_templateObject2$b = _t
|
|
|
5213
5222
|
}
|
|
5214
5223
|
}, colorVariables.text.light);
|
|
5215
5224
|
var InputWrapper$1 = styled__default.div(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
5216
|
-
var IconWrapper$1 = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (
|
|
5217
|
-
var $disabled =
|
|
5225
|
+
var IconWrapper$1 = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 12px;\n cursor: pointer;\n\n > div {\n cursor: ", ";\n }\n"])), function (_ref10) {
|
|
5226
|
+
var $disabled = _ref10.$disabled;
|
|
5218
5227
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
5219
5228
|
});
|
|
5220
5229
|
var Asterisk$1 = styled__default.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);
|
|
5221
|
-
var TextField = function TextField(
|
|
5222
|
-
var
|
|
5223
|
-
type =
|
|
5224
|
-
title =
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
disabled =
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
size =
|
|
5232
|
-
|
|
5233
|
-
color =
|
|
5234
|
-
|
|
5235
|
-
padding =
|
|
5236
|
-
|
|
5237
|
-
titlecolor =
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
iconsize =
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
required =
|
|
5245
|
-
|
|
5246
|
-
background =
|
|
5247
|
-
|
|
5248
|
-
|
|
5230
|
+
var TextField = function TextField(_ref11) {
|
|
5231
|
+
var _ref11$type = _ref11.type,
|
|
5232
|
+
type = _ref11$type === void 0 ? 'text' : _ref11$type,
|
|
5233
|
+
title = _ref11.title,
|
|
5234
|
+
titleWeight = _ref11.titleWeight,
|
|
5235
|
+
placeholder = _ref11.placeholder,
|
|
5236
|
+
_ref11$disabled = _ref11.disabled,
|
|
5237
|
+
disabled = _ref11$disabled === void 0 ? false : _ref11$disabled,
|
|
5238
|
+
inputValue = _ref11.inputValue,
|
|
5239
|
+
onChange = _ref11.onChange,
|
|
5240
|
+
_ref11$size = _ref11.size,
|
|
5241
|
+
size = _ref11$size === void 0 ? 'medium' : _ref11$size,
|
|
5242
|
+
_ref11$color = _ref11.color,
|
|
5243
|
+
color = _ref11$color === void 0 ? colorVariables.text.dark : _ref11$color,
|
|
5244
|
+
_ref11$padding = _ref11.padding,
|
|
5245
|
+
padding = _ref11$padding === void 0 ? '0px' : _ref11$padding,
|
|
5246
|
+
_ref11$titlecolor = _ref11.titlecolor,
|
|
5247
|
+
titlecolor = _ref11$titlecolor === void 0 ? colorVariables.text.dark : _ref11$titlecolor,
|
|
5248
|
+
icon = _ref11.icon,
|
|
5249
|
+
_ref11$iconsize = _ref11.iconsize,
|
|
5250
|
+
iconsize = _ref11$iconsize === void 0 ? 18 : _ref11$iconsize,
|
|
5251
|
+
iconweight = _ref11.iconweight,
|
|
5252
|
+
iconcolor = _ref11.iconcolor,
|
|
5253
|
+
_ref11$required = _ref11.required,
|
|
5254
|
+
required = _ref11$required === void 0 ? false : _ref11$required,
|
|
5255
|
+
_ref11$background = _ref11.background,
|
|
5256
|
+
background = _ref11$background === void 0 ? colorVariables["default"].tertiary : _ref11$background,
|
|
5257
|
+
onEnter = _ref11.onEnter,
|
|
5258
|
+
titleRightNode = _ref11.titleRightNode;
|
|
5249
5259
|
var _useState = React.useState(disabled),
|
|
5250
5260
|
isDisabled = _useState[0],
|
|
5251
5261
|
setIsDisabled = _useState[1];
|
|
@@ -5274,6 +5284,7 @@ var TextField = function TextField(_ref10) {
|
|
|
5274
5284
|
"$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
|
|
5275
5285
|
}, title && React__default.createElement(Label, {
|
|
5276
5286
|
"$size": size,
|
|
5287
|
+
"$fontWeight": titleWeight,
|
|
5277
5288
|
htmlFor: title,
|
|
5278
5289
|
"$titlecolor": titlecolor
|
|
5279
5290
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React__default.createElement(InputWrapper$1, null, React__default.createElement(Input, {
|
|
@@ -5319,8 +5330,11 @@ var Container$3 = styled__default.div(_templateObject$f || (_templateObject$f =
|
|
|
5319
5330
|
var $padding = _ref.$padding;
|
|
5320
5331
|
return $padding;
|
|
5321
5332
|
});
|
|
5322
|
-
var Label$1 = styled__default.label(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteralLoose(["\n cursor: auto;\n font-weight:
|
|
5323
|
-
var $
|
|
5333
|
+
var Label$1 = styled__default.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) {
|
|
5334
|
+
var $fontWeight = _ref2.$fontWeight;
|
|
5335
|
+
return $fontWeight != null ? $fontWeight : '500';
|
|
5336
|
+
}, function (_ref3) {
|
|
5337
|
+
var $size = _ref3.$size;
|
|
5324
5338
|
switch ($size) {
|
|
5325
5339
|
case 'small':
|
|
5326
5340
|
return 'font-size: 12px; line-height: 12px;';
|
|
@@ -5331,22 +5345,22 @@ var Label$1 = styled__default.label(_templateObject2$c || (_templateObject2$c =
|
|
|
5331
5345
|
default:
|
|
5332
5346
|
return 'font-size: 14px; line-height: 14px;';
|
|
5333
5347
|
}
|
|
5334
|
-
}, function (
|
|
5335
|
-
var $titlecolor =
|
|
5348
|
+
}, function (_ref4) {
|
|
5349
|
+
var $titlecolor = _ref4.$titlecolor;
|
|
5336
5350
|
return $titlecolor || colorVariables.text.dark;
|
|
5337
5351
|
});
|
|
5338
|
-
var TextAreaComponent = styled__default.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 (
|
|
5339
|
-
var $disabled =
|
|
5352
|
+
var TextAreaComponent = styled__default.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) {
|
|
5353
|
+
var $disabled = _ref5.$disabled;
|
|
5340
5354
|
return $disabled ? 'not-allowed' : 'auto';
|
|
5341
|
-
}, function (_ref5) {
|
|
5342
|
-
var $disabled = _ref5.$disabled,
|
|
5343
|
-
$background = _ref5.$background;
|
|
5344
|
-
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5345
5355
|
}, function (_ref6) {
|
|
5346
|
-
var $
|
|
5347
|
-
|
|
5356
|
+
var $disabled = _ref6.$disabled,
|
|
5357
|
+
$background = _ref6.$background;
|
|
5358
|
+
return $disabled ? colorVariables.disabled.secondary : $background;
|
|
5348
5359
|
}, function (_ref7) {
|
|
5349
|
-
var $
|
|
5360
|
+
var $color = _ref7.$color;
|
|
5361
|
+
return $color;
|
|
5362
|
+
}, function (_ref8) {
|
|
5363
|
+
var $size = _ref8.$size;
|
|
5350
5364
|
switch ($size) {
|
|
5351
5365
|
case 'small':
|
|
5352
5366
|
return 'font-size: 12px; padding: 5px 10px;';
|
|
@@ -5357,29 +5371,30 @@ var TextAreaComponent = styled__default.textarea(_templateObject3$8 || (_templat
|
|
|
5357
5371
|
default:
|
|
5358
5372
|
return 'font-size: 14px; padding: 7px 12px;';
|
|
5359
5373
|
}
|
|
5360
|
-
}, function (
|
|
5361
|
-
var $color =
|
|
5374
|
+
}, function (_ref9) {
|
|
5375
|
+
var $color = _ref9.$color;
|
|
5362
5376
|
return $color || colorVariables.text.dark;
|
|
5363
5377
|
}, colorVariables.text.light);
|
|
5364
|
-
var TextArea = function TextArea(
|
|
5365
|
-
var title =
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
disabled =
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
size =
|
|
5373
|
-
|
|
5374
|
-
color =
|
|
5375
|
-
|
|
5376
|
-
padding =
|
|
5377
|
-
|
|
5378
|
-
titlecolor =
|
|
5379
|
-
|
|
5380
|
-
required =
|
|
5381
|
-
|
|
5382
|
-
background =
|
|
5378
|
+
var TextArea = function TextArea(_ref10) {
|
|
5379
|
+
var title = _ref10.title,
|
|
5380
|
+
titleWeight = _ref10.titleWeight,
|
|
5381
|
+
placeholder = _ref10.placeholder,
|
|
5382
|
+
_ref10$disabled = _ref10.disabled,
|
|
5383
|
+
disabled = _ref10$disabled === void 0 ? false : _ref10$disabled,
|
|
5384
|
+
inputValue = _ref10.inputValue,
|
|
5385
|
+
onChange = _ref10.onChange,
|
|
5386
|
+
_ref10$size = _ref10.size,
|
|
5387
|
+
size = _ref10$size === void 0 ? 'medium' : _ref10$size,
|
|
5388
|
+
_ref10$color = _ref10.color,
|
|
5389
|
+
color = _ref10$color === void 0 ? colorVariables.text.dark : _ref10$color,
|
|
5390
|
+
_ref10$padding = _ref10.padding,
|
|
5391
|
+
padding = _ref10$padding === void 0 ? '0px' : _ref10$padding,
|
|
5392
|
+
_ref10$titlecolor = _ref10.titlecolor,
|
|
5393
|
+
titlecolor = _ref10$titlecolor === void 0 ? colorVariables.text.dark : _ref10$titlecolor,
|
|
5394
|
+
_ref10$required = _ref10.required,
|
|
5395
|
+
required = _ref10$required === void 0 ? false : _ref10$required,
|
|
5396
|
+
_ref10$background = _ref10.background,
|
|
5397
|
+
background = _ref10$background === void 0 ? colorVariables["default"].tertiary : _ref10$background;
|
|
5383
5398
|
var _useState = React.useState(disabled),
|
|
5384
5399
|
isDisabled = _useState[0],
|
|
5385
5400
|
setIsDisabled = _useState[1];
|
|
@@ -5390,6 +5405,7 @@ var TextArea = function TextArea(_ref9) {
|
|
|
5390
5405
|
"$padding": padding
|
|
5391
5406
|
}, title && React__default.createElement(Label$1, {
|
|
5392
5407
|
"$size": size,
|
|
5408
|
+
"$fontWeight": titleWeight,
|
|
5393
5409
|
htmlFor: title,
|
|
5394
5410
|
"$titlecolor": titlecolor
|
|
5395
5411
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), React__default.createElement(TextAreaComponent, {
|