@dxc-technology/halstack-react 0.0.0-bd24f1d → 0.0.0-beebecd

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.
Files changed (71) hide show
  1. package/dist/ThemeContext.js +131 -99
  2. package/dist/accordion/Accordion.js +44 -39
  3. package/dist/accordion-group/AccordionGroup.js +1 -3
  4. package/dist/alert/Alert.js +5 -5
  5. package/dist/alert/index.d.ts +51 -0
  6. package/dist/button/Button.js +29 -22
  7. package/dist/common/variables.js +419 -280
  8. package/dist/date/Date.js +5 -7
  9. package/dist/{new-date/NewDate.js → date-input/DateInput.js} +69 -72
  10. package/dist/date-input/index.d.ts +95 -0
  11. package/dist/dropdown/Dropdown.js +108 -68
  12. package/dist/file-input/FileInput.js +644 -0
  13. package/dist/file-input/FileItem.js +280 -0
  14. package/dist/file-input/index.d.ts +81 -0
  15. package/dist/header/Header.js +3 -23
  16. package/dist/input-text/InputText.js +3 -3
  17. package/dist/layout/ApplicationLayout.js +1 -1
  18. package/dist/link/Link.js +4 -8
  19. package/dist/main.d.ts +8 -0
  20. package/dist/main.js +29 -13
  21. package/dist/new-select/NewSelect.js +836 -0
  22. package/dist/new-select/index.d.ts +53 -0
  23. package/dist/new-textarea/NewTextarea.js +62 -39
  24. package/dist/new-textarea/index.d.ts +117 -0
  25. package/dist/{number/Number.js → number-input/NumberInput.js} +9 -11
  26. package/dist/{number/NumberContext.js → number-input/NumberInputContext.js} +2 -2
  27. package/dist/number-input/index.d.ts +113 -0
  28. package/dist/{password/Password.js → password-input/PasswordInput.js} +11 -13
  29. package/dist/password-input/index.d.ts +94 -0
  30. package/dist/progress-bar/ProgressBar.js +62 -26
  31. package/dist/select/Select.js +122 -158
  32. package/dist/sidenav/Sidenav.js +6 -4
  33. package/dist/slider/Slider.js +89 -14
  34. package/dist/spinner/Spinner.js +217 -54
  35. package/dist/tag/Tag.js +26 -32
  36. package/dist/{new-input-text/NewInputText.js → text-input/TextInput.js} +180 -170
  37. package/dist/text-input/index.d.ts +135 -0
  38. package/dist/toggle-group/ToggleGroup.js +132 -28
  39. package/dist/upload/transaction/Transaction.js +2 -2
  40. package/package.json +2 -1
  41. package/test/{NewDate.test.js → DateInput.test.js} +66 -27
  42. package/test/FileInput.test.js +201 -0
  43. package/test/InputText.test.js +24 -16
  44. package/test/NewTextarea.test.js +95 -101
  45. package/test/{Number.test.js → NumberInput.test.js} +84 -66
  46. package/test/Paginator.test.js +1 -1
  47. package/test/PasswordInput.test.js +83 -0
  48. package/test/ResultsetTable.test.js +1 -2
  49. package/test/Select.test.js +40 -17
  50. package/test/Spinner.test.js +5 -0
  51. package/test/{NewInputText.test.js → TextInput.test.js} +146 -231
  52. package/test/ToggleGroup.test.js +5 -1
  53. package/dist/accordion/Accordion.stories.js +0 -207
  54. package/dist/accordion/readme.md +0 -96
  55. package/dist/accordion-group/AccordionGroup.stories.js +0 -207
  56. package/dist/accordion-group/readme.md +0 -70
  57. package/dist/button/Button.stories.js +0 -224
  58. package/dist/button/readme.md +0 -93
  59. package/dist/dropdown/Dropdown.stories.js +0 -249
  60. package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
  61. package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
  62. package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
  63. package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
  64. package/dist/dropdown/readme.md +0 -69
  65. package/dist/footer/Footer.stories.js +0 -94
  66. package/dist/input-text/InputText.stories.js +0 -209
  67. package/dist/password/styles.css +0 -3
  68. package/dist/select/Select.stories.js +0 -235
  69. package/dist/select/readme.md +0 -72
  70. package/dist/slider/Slider.stories.js +0 -241
  71. package/test/Password.test.js +0 -76
@@ -100,7 +100,7 @@ function _templateObject4() {
100
100
  }
101
101
 
102
102
  function _templateObject3() {
103
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: ", ";\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n\n padding-left: 12px;\n padding-right: 12px;\n justify-content: ", ";\n align-items: ", ";\n max-width: ", ";\n width: ", ";\n z-index: ", ";\n"]);
103
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n display: ", ";\n overflow: hidden;\n box-sizing: border-box;\n\n background-color: ", ";\n\n border-radius: ", ";\n border-width: ", ";\n border-style: ", ";\n border-color: ", ";\n\n padding-left: 12px;\n padding-right: 12px;\n justify-content: ", ";\n align-items: ", ";\n max-width: ", ";\n width: ", ";\n z-index: ", ";\n"]);
104
104
 
105
105
  _templateObject3 = function _templateObject3() {
106
106
  return data;
@@ -245,7 +245,7 @@ var sizes = {
245
245
  };
246
246
 
247
247
  var calculateWidth = function calculateWidth(margin, size) {
248
- size === "fillParent" ? "calc(".concat(sizes[size], " - ").concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")") : sizes[size];
248
+ return size === "fillParent" ? "calc(".concat(sizes[size], " - ").concat((0, _utils.getMargin)(margin, "left"), " - ").concat((0, _utils.getMargin)(margin, "right"), ")") : sizes[size];
249
249
  };
250
250
 
251
251
  var AlertModal = _styledComponents["default"].div(_templateObject(), function (props) {
@@ -295,7 +295,7 @@ var AlertContainer = _styledComponents["default"].div(_templateObject3(), functi
295
295
  }, function (props) {
296
296
  return props.margin && (0, _typeof2["default"])(props.margin) === "object" && props.margin.left ? _variables.spaces[props.margin.left] : "";
297
297
  }, function (props) {
298
- return props.children && "inline-block" || "inline-flex";
298
+ return props.size === "fitContent" ? "inline-block" : "block";
299
299
  }, function (props) {
300
300
  return props.type === "info" && props.theme.infoBackgroundColor || props.type === "confirm" && props.theme.successBackgroundColor || props.type === "warning" && props.theme.warningBackgroundColor || props.type === "error" && props.theme.errorBackgroundColor;
301
301
  }, function (props) {
@@ -311,9 +311,9 @@ var AlertContainer = _styledComponents["default"].div(_templateObject3(), functi
311
311
  }, function (props) {
312
312
  return props.mode === "modal" ? "center" : "";
313
313
  }, function (props) {
314
- return props.size === "fitContent" ? calculateWidth(props.margin, "fillParent") : calculateWidth(props.margin, props.size);
314
+ return props.size !== "fillParent" && calculateWidth(props.margin, "fillParent");
315
315
  }, function (props) {
316
- return calculateWidth(props.margin, props.size);
316
+ return props.size !== "fillParent" && calculateWidth(props.margin, props.size);
317
317
  }, function (props) {
318
318
  return props.mode === "modal" ? "1300" : "";
319
319
  });
@@ -0,0 +1,51 @@
1
+ type Size = "small" | "medium" | "large" | "fillParent" | "fitContent";
2
+ type Space = "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge";
3
+ type Margin = {
4
+ top?: Space;
5
+ bottom?: Space;
6
+ left?: Space;
7
+ right?: Space;
8
+ };
9
+
10
+ type Props = {
11
+ /**
12
+ * Uses on of the available alert types.
13
+ */
14
+ type?: "info" | "confirm" | "warning" | "error";
15
+ /**
16
+ * Uses on of the available alert modes:
17
+ * 'inline': If onClose function is received, close button will be visible and the function will be executed when it's clicked.
18
+ * There is no overlay layer. Position should be decided by the user.
19
+ * 'modal': The alert will be displayed in the middle of the screen with an overlay layer behind.
20
+ * The onClose function will be executed when the X button or the overlay is clicked. d
21
+ * The user has the responsibility of hidding the modal in the onClose function, otherwise the modal will remain visible.
22
+ */
23
+ mode?: "inline" | "modal";
24
+ /**
25
+ * Text to display after icon and alert type and before content.
26
+ */
27
+ inlineText?: string;
28
+ /**
29
+ * This function will be called when the user clicks the close button. If there is no function we should close the alert by default.
30
+ */
31
+ onClose?: () => void;
32
+ /**
33
+ * The details section of the alert. Can be used to render custom content in this area.
34
+ */
35
+ children?: React.ReactNode;
36
+ /**
37
+ * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
38
+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.
39
+ */
40
+ margin?: Space | Margin;
41
+ /**
42
+ * Size of the component ('small' | 'medium' | 'large' | 'fillParent' | 'fitContent').
43
+ */
44
+ size?: Size;
45
+ /**
46
+ * Tabindex value given to the close button.
47
+ */
48
+ tabIndex?: number;
49
+ };
50
+
51
+ export default function Alert(props: Props): JSX.Element;
@@ -32,7 +32,7 @@ var _useTheme = _interopRequireDefault(require("../useTheme.js"));
32
32
  var _BackgroundColorContext = _interopRequireDefault(require("../BackgroundColorContext.js"));
33
33
 
34
34
  function _templateObject4() {
35
- var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: inline-block;\n width: ", ";\n cursor: ", ";\n\n .MuiButtonBase-root {\n .MuiButton-label {\n display: flex;\n flex-direction: ", ";\n align-items: center;\n }\n letter-spacing: ", ";\n\n box-shadow: none;\n font-size: ", ";\n font-weight: ", ";\n min-width: ", ";\n\n width: 100%;\n height: ", ";\n font-family: ", ";\n transition: color 0.16s ease-in-out, background-color 0.16s ease-in-out;\n transition: color 0.16s ease-in-out, border-color 0.16s ease-in-out;\n &:hover {\n transition: color 0.16s ease-in-out, background-color 0.16s ease-in-out;\n transition: color 0.16s ease-in-out, border-color 0.16s ease-in-out;\n }\n ", "\n }\n"]);
35
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n margin: ", ";\n margin-top: ", ";\n margin-right: ", ";\n margin-bottom: ", ";\n margin-left: ", ";\n\n display: inline-block;\n width: ", ";\n cursor: ", ";\n\n .MuiButtonBase-root {\n padding-left: ", ";\n padding-right: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n\n .MuiButton-label {\n display: flex;\n flex-direction: ", ";\n align-items: center;\n }\n\n box-shadow: 0 0 0 2px transparent;\n font-family: ", ";\n font-size: ", ";\n font-weight: ", ";\n letter-spacing: ", ";\n min-width: ", ";\n width: 100%;\n height: 40px;\n transition: none !important;\n\n &:focus {\n border-color: transparent;\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n ", "\n }\n"]);
36
36
 
37
37
  _templateObject4 = function _templateObject4() {
38
38
  return data;
@@ -42,7 +42,7 @@ function _templateObject4() {
42
42
  }
43
43
 
44
44
  function _templateObject3() {
45
- var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n max-width: ", ";\n margin-left: ", ";\n margin-right: ", ";\n"]);
45
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: 24px;\n max-width: 24px;\n margin-left: ", ";\n margin-right: ", ";\n"]);
46
46
 
47
47
  _templateObject3 = function _templateObject3() {
48
48
  return data;
@@ -52,7 +52,7 @@ function _templateObject3() {
52
52
  }
53
53
 
54
54
  function _templateObject2() {
55
- var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: ", ";\n max-width: ", ";\n margin-left: ", ";\n margin-right: ", ";\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
55
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n max-height: 24px;\n max-width: 24px;\n margin-left: ", ";\n margin-right: ", ";\n overflow: hidden;\n\n img,\n svg {\n height: 100%;\n width: 100%;\n }\n"]);
56
56
 
57
57
  _templateObject2 = function _templateObject2() {
58
58
  return data;
@@ -62,7 +62,7 @@ function _templateObject2() {
62
62
  }
63
63
 
64
64
  function _templateObject() {
65
- var data = (0, _taggedTemplateLiteral2["default"])(["\n line-height: ", ";\n font-size: ", ";\n text-overflow: ellipsis;\n overflow: hidden;\n text-transform: none;\n"]);
65
+ var data = (0, _taggedTemplateLiteral2["default"])(["\n line-height: ", ";\n font-size: ", ";\n text-overflow: ellipsis;\n overflow: hidden;\n text-transform: none;\n margin-right: ", ";\n margin-left: ", ";\n"]);
66
66
 
67
67
  _templateObject = function _templateObject() {
68
68
  return data;
@@ -116,7 +116,10 @@ var DxcButton = function DxcButton(_ref) {
116
116
  _onClick();
117
117
  }
118
118
  }
119
- }, _react["default"].createElement(LabelContainer, null, label), icon ? _react["default"].createElement(IconContainer, {
119
+ }, label && _react["default"].createElement(LabelContainer, {
120
+ icon: icon,
121
+ iconPosition: iconPosition
122
+ }, label), icon ? _react["default"].createElement(IconContainer, {
120
123
  label: label,
121
124
  iconPosition: iconPosition
122
125
  }, (0, _typeof2["default"])(icon) === "object" ? icon : _react["default"].createElement(icon)) : iconSrc && _react["default"].createElement(ButtonIcon, {
@@ -146,23 +149,19 @@ var LabelContainer = _styledComponents["default"].span(_templateObject(), functi
146
149
  return props.theme.labelFontLineHeight;
147
150
  }, function (props) {
148
151
  return props.theme.fontSize;
152
+ }, function (props) {
153
+ return !props.icon || props.iconPosition === "before" ? "8px" : "0px";
154
+ }, function (props) {
155
+ return !props.icon || props.iconPosition === "after" ? "8px" : "0px";
149
156
  });
150
157
 
151
158
  var IconContainer = _styledComponents["default"].div(_templateObject2(), function (props) {
152
- return props.theme.iconSize;
153
- }, function (props) {
154
- return props.theme.iconSize;
155
- }, function (props) {
156
- return props.iconPosition === "after" && props.label !== "" && "8px" || "0px";
159
+ return !props.label ? "0px" : props.iconPosition === "after" && props.label !== "" && "8px" || "8px";
157
160
  }, function (props) {
158
- return props.iconPosition === "before" && props.label !== "" && "8px" || "0px";
161
+ return !props.label ? "0px" : props.iconPosition === "before" && props.label !== "" && "8px" || "8px";
159
162
  });
160
163
 
161
164
  var ButtonIcon = _styledComponents["default"].img(_templateObject3(), function (props) {
162
- return props.theme.iconSize;
163
- }, function (props) {
164
- return props.theme.iconSize;
165
- }, function (props) {
166
165
  return props.iconPosition === "after" && props.label !== "" && "10px" || "0px";
167
166
  }, function (props) {
168
167
  return props.iconPosition === "before" && props.label !== "" && "10px" || "0px";
@@ -182,30 +181,38 @@ var DxCButton = _styledComponents["default"].div(_templateObject4(), function (p
182
181
  return calculateWidth(props.margin, props.size);
183
182
  }, function (props) {
184
183
  return props.disabled && "not-allowed" || "pointer";
184
+ }, function (props) {
185
+ return props.theme.paddingLeft;
186
+ }, function (props) {
187
+ return props.theme.paddingRight;
188
+ }, function (props) {
189
+ return props.theme.paddingTop;
190
+ }, function (props) {
191
+ return props.theme.paddingBottom;
185
192
  }, function (props) {
186
193
  return props.iconPosition === "after" && "row" || "row-reverse";
187
194
  }, function (props) {
188
- return props.theme.labelLetterSpacing;
195
+ return props.theme.fontFamily;
189
196
  }, function (props) {
190
197
  return props.theme.fontSize;
191
198
  }, function (props) {
192
199
  return props.theme.fontWeight;
193
200
  }, function (props) {
194
- return props.size === "small" && "calc(100% - 22px)" || "unset";
201
+ return props.theme.labelLetterSpacing;
195
202
  }, function (props) {
196
- return props.theme.height;
203
+ return props.size === "small" && "calc(100% - 22px)" || "unset";
197
204
  }, function (props) {
198
- return props.theme.fontFamily;
205
+ return props.backgroundType === "dark" ? props.theme.focusBorderColorOnDark : props.theme.focusBorderColor;
199
206
  }, function (props) {
200
207
  var mode = props.mode,
201
208
  backgroundType = props.backgroundType;
202
209
 
203
210
  if (mode === "primary") {
204
- return "\n border-radius: ".concat(props.theme.primaryBorderRadius, ";\n border-width: ").concat(props.theme.primaryBorderThickness, ";\n border-style: ").concat(props.theme.primaryBorderStyle, ";\n font-family: ").concat(props.theme.primaryFontFamily, ";\n font-size: ").concat(props.theme.primaryFontSize, ";\n font-weight: ").concat(props.theme.primaryFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryBackgroundColorOnDark : props.theme.primaryBackgroundColor, ";\n color: ").concat(backgroundType && backgroundType === "dark" ? props.theme.primaryFontColorOnDark : props.theme.primaryFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.primaryBorderColorOnDark : props.theme.primaryBorderColor, ";\n padding-right:").concat(props.icon && !props.label && props.theme.primaryOnlyIconPaddingRight || props.theme.primaryPaddingRight, ";\n padding-left:").concat(props.icon && !props.label && props.theme.primaryOnlyIconPaddingLeft || props.theme.primaryPaddingLeft, ";\n padding-top:").concat(props.theme.primaryPaddingTop, ";\n padding-bottom:").concat(props.theme.primaryPaddingBottom, ";\n &:hover{\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryHoverBackgroundColorOnDark : props.theme.primaryHoverBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.primaryHoverFontColorOnDark : props.theme.primaryHoverFontColor, " !important; \n border-color: ").concat(backgroundType === "dark" ? props.theme.primaryHoverBorderColorOnDark : props.theme.primaryHoverBorderColor, "\n }\n &:active {\n color: ").concat(backgroundType === "dark" ? props.theme.primaryActiveFontColorOnDark : props.theme.primaryActiveFontColor, " !important; \n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryActiveBackgroundColorOnDark : props.theme.primaryActiveBackgroundColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.primaryActiveBorderColorOnDark : props.theme.primaryActiveBorderColor, ";\n }\n &:focus {\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryFocusBackgroundColorOnDark : props.theme.primaryFocusBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.primaryFocusFontColorOnDark : props.theme.primaryFocusFontColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.primaryFocusBorderColorOnDark : props.theme.primaryFocusBorderColor, ";\n }\n &:disabled{ \n cursor: not-allowed;\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryDisabledBackgroundColorOnDark : props.theme.primaryDisabledBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.primaryDisabledFontColorOnDark : props.theme.primaryDisabledFontColor, "!important; \n border-color: ").concat(backgroundType === "dark" ? props.theme.primaryDisabledBorderColorOnDark : props.theme.primaryDisabledBorderColor, "\n }\n .MuiButton-label {\n z-index: 5\n }\n ");
211
+ return "\n border-radius: ".concat(props.theme.primaryBorderRadius, ";\n border-width: ").concat(props.theme.primaryBorderThickness, ";\n border-style: ").concat(props.theme.primaryBorderStyle, ";\n font-family: ").concat(props.theme.primaryFontFamily, ";\n font-size: ").concat(props.theme.primaryFontSize, ";\n font-weight: ").concat(props.theme.primaryFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryBackgroundColorOnDark : props.theme.primaryBackgroundColor, ";\n color: ").concat(backgroundType && backgroundType === "dark" ? props.theme.primaryFontColorOnDark : props.theme.primaryFontColor, " !important;\n\n &:hover {\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryHoverBackgroundColorOnDark : props.theme.primaryHoverBackgroundColor, ";\n }\n &:active {\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryActiveBackgroundColorOnDark : props.theme.primaryActiveBackgroundColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.focusBorderColorOnDark : props.theme.focusBorderColor, ";\n }\n &:disabled { \n cursor: not-allowed;\n background-color: ").concat(backgroundType === "dark" ? props.theme.primaryDisabledBackgroundColorOnDark : props.theme.primaryDisabledBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.primaryDisabledFontColorOnDark : props.theme.primaryDisabledFontColor, "!important; \n }\n .MuiButton-label {\n z-index: 5;\n }\n ");
205
212
  } else if (mode === "secondary") {
206
- return "\n border-radius: ".concat(props.theme.secondaryBorderRadius, ";\n border-width:").concat(props.theme.secondaryBorderThickness, ";\n border-style:").concat(props.theme.secondaryBorderStyle, ";\n font-family: ").concat(props.theme.secondaryFontFamily, ";\n font-size: ").concat(props.theme.secondaryFontSize, ";\n font-weight: ").concat(props.theme.secondaryFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryBackgroundColorOnDark : props.theme.secondaryBackgroundColor, ";\n padding-right:").concat(props.icon && !props.label && props.theme.secondaryOnlyIconPaddingRight || props.theme.secondaryPaddingRight, ";\n padding-left:").concat(props.icon && !props.label && props.theme.secondaryOnlyIconPaddingLeft || props.theme.secondaryPaddingLeft, ";\n padding-top:").concat(props.theme.secondaryPaddingTop, ";\n padding-bottom:").concat(props.theme.secondaryPaddingBottom, ";\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryFontColorOnDark : props.theme.secondaryFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.secondaryBorderColorOnDark : props.theme.secondaryBorderColor, ";\n &:hover{\n border-color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverBorderColorOnDark : props.theme.secondaryHoverBorderColor, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverBackgroundColorOnDark : props.theme.secondaryHoverBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverFontColorOnDark : props.theme.secondaryHoverFontColor, " !important; \n }\n &:focus {\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryFocusBackgroundColorOnDark : props.theme.secondaryFocusBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryFocusFontColorOnDark : props.theme.secondaryFocusFontColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.secondaryFocusBorderColorOnDark : props.theme.secondaryFocusBorderColor, " !important;\n }\n &:active {\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryActiveBackgroundColorOnDark : props.theme.secondaryActiveBackgroundColor, " !important;\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryActiveFontColorOnDark : props.theme.secondaryActiveFontColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.secondaryActiveBorderColorOnDark : props.theme.secondaryActiveBorderColor, "\n }\n &:disabled{\n cursor: not-allowed;\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledFontColorOnDark : props.theme.secondaryDisabledFontColor, " !important;\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledBackgroundColorOnDark : props.theme.secondaryDisabledBackgroundColor, ";\n border-color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledBorderColorOnDark : props.theme.secondaryDisabledBorderColor, ";\n }\n .MuiButton-label {\n z-index: 5\n }\n ");
213
+ return "\n border-radius: ".concat(props.theme.secondaryBorderRadius, ";\n border-width: ").concat(props.theme.secondaryBorderThickness, ";\n border-style: ").concat(props.theme.secondaryBorderStyle, ";\n font-family: ").concat(props.theme.secondaryFontFamily, ";\n font-size: ").concat(props.theme.secondaryFontSize, ";\n font-weight: ").concat(props.theme.secondaryFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryBackgroundColorOnDark : props.theme.secondaryBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryFontColorOnDark : props.theme.secondaryFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.secondaryBorderColorOnDark : props.theme.secondaryBorderColor, ";\n\n &:hover {\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverBackgroundColorOnDark : props.theme.secondaryHoverBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverFontColorOnDark : props.theme.secondaryHoverFontColor, " !important;\n }\n &:active {\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryActiveBackgroundColorOnDark : props.theme.secondaryActiveBackgroundColor, " !important;\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryHoverFontColorOnDark : props.theme.secondaryHoverFontColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.focusBorderColorOnDark : props.theme.focusBorderColor, ";\n }\n &:disabled {\n cursor: not-allowed;\n background-color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledBackgroundColorOnDark : props.theme.secondaryDisabledBackgroundColor, " !important;\n color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledFontColorOnDark : props.theme.secondaryDisabledFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.secondaryDisabledBorderColorOnDark : props.theme.secondaryDisabledBorderColor, ";\n }\n .MuiButton-label {\n z-index: 5;\n }\n ");
207
214
  } else if (mode === "text") {
208
- return "\n border-radius: ".concat(props.theme.textBorderRadius, ";\n border-width: ").concat(props.theme.textBorderThickness, ";\n border-style: ").concat(props.theme.textBorderStyle, ";\n font-family: ").concat(props.theme.textFontFamily, ";\n font-size: ").concat(props.theme.textFontSize, ";\n font-weight: ").concat(props.theme.textFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.textBackgroundColorOnDark : props.theme.textBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.textFontColorOnDark : props.theme.textFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.textBorderColorOnDark : props.theme.textBorderColor, ";\n padding-right:").concat(props.icon && !props.label && props.theme.textOnlyIconPaddingRight || props.theme.textPaddingRight, ";\n padding-left:").concat(props.icon && !props.label && props.theme.textOnlyIconPaddingLeft || props.theme.textPaddingLeft, ";\n padding-top:").concat(props.theme.textPaddingTop, ";\n padding-bottom:").concat(props.theme.textPaddingBottom, ";\n &:hover{\n background-color: ").concat(backgroundType === "dark" ? props.theme.textHoverBackgroundColorOnDark : props.theme.textHoverBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.textHoverFontColorOnDark : props.theme.textHoverFontColor, " !important;\n border-color: ").concat(backgroundType === "dark" ? props.theme.textHoverBorderColorOnDark : props.theme.textHoverBorderColor, ";\n }\n &:active {\n background-color: ").concat(backgroundType === "dark" ? props.theme.textActiveBackgroundColorOnDark : props.theme.textActiveBackgroundColor, " !important;\n color: ").concat(backgroundType === "dark" ? props.theme.textActiveFontColorOnDark : props.theme.textActiveFontColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.textActiveBorderColorOnDark : props.theme.textActiveBorderColor, ";\n }\n &:focus {\n background-color: ").concat(backgroundType === "dark" ? props.theme.textFocusBackgroundColorOnDark : props.theme.textFocusBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.textFocusFontColorOnDark : props.theme.textFocusFontColor, " !important; \n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.textFocusBorderColorOnDark : props.theme.textFocusBorderColor, ";\n }\n &:disabled{\n cursor:not-allowed;\n color: ").concat(backgroundType === "dark" ? props.theme.textDisabledFontColorOnDark : props.theme.textDisabledFontColor, " !important;\n background-color: ").concat(backgroundType === "dark" ? props.theme.textDisabledBackgroundColorOnDark : props.theme.textDisabledBackgroundColor, ";\n border-color: ").concat(backgroundType === "dark" ? props.theme.textDisabledBorderColorOnDark : props.theme.textDisabledBorderColor, ";\n }\n ");
215
+ return "\n border-radius: ".concat(props.theme.textBorderRadius, ";\n border-width: ").concat(props.theme.textBorderThickness, ";\n border-style: ").concat(props.theme.textBorderStyle, ";\n font-family: ").concat(props.theme.textFontFamily, ";\n font-size: ").concat(props.theme.textFontSize, ";\n font-weight: ").concat(props.theme.textFontWeight, ";\n background-color: ").concat(backgroundType === "dark" ? props.theme.textBackgroundColorOnDark : props.theme.textBackgroundColor, ";\n color: ").concat(backgroundType === "dark" ? props.theme.textFontColorOnDark : props.theme.textFontColor, " !important;\n\n &:hover {\n background-color: ").concat(backgroundType === "dark" ? props.theme.textHoverBackgroundColorOnDark : props.theme.textHoverBackgroundColor, ";\n }\n &:active {\n background-color: ").concat(backgroundType === "dark" ? props.theme.textActiveBackgroundColorOnDark : props.theme.textActiveBackgroundColor, " !important;\n border-color: transparent;\n box-shadow: 0 0 0 2px ").concat(backgroundType === "dark" ? props.theme.focusBorderColorOnDark : props.theme.focusBorderColor, ";\n }\n &:disabled {\n cursor:not-allowed;\n color: ").concat(backgroundType === "dark" ? props.theme.textDisabledFontColorOnDark : props.theme.textDisabledFontColor, " !important;\n background-color: ").concat(backgroundType === "dark" ? props.theme.textDisabledBackgroundColorOnDark : props.theme.textDisabledBackgroundColor, ";\n }\n ");
209
216
  }
210
217
  });
211
218