@smart-react-components/ui 2.0.0-alpha-11 → 2.0.0-alpha-13

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.
@@ -104,6 +104,7 @@ exports.default = (0, styled_components_1.default)(Button_1.default).attrs(({ ha
104
104
  : `
105
105
  display: flex;
106
106
  flex: 1 1 auto;
107
+ width: 100%;
107
108
  `}
108
109
  `
109
110
  : ''}
@@ -12,19 +12,19 @@ const styled_components_1 = __importDefault(require("styled-components"));
12
12
  const css_1 = require("../../util/css");
13
13
  const dom_1 = require("../../util/dom");
14
14
  exports.InputPlaceholder = (0, styled_components_1.default)(Div_1.default).attrs(({ children }) => (Object.assign({}, (!children && { children: react_1.default.createElement(react_1.default.Fragment, null, "\u00A0"), userSelect: 'none' })))) ``;
15
- exports.default = (0, styled_components_1.default)(Input_1.default).attrs(({ hasLeftAddon, hasRightAddon, hasSeparatedLeftAddon, hasSeparatedRightAddon, isInput = true }) => (Object.assign(Object.assign({}, (!isInput && { as: 'div' })), { getInputSize: (v, t) => `
15
+ exports.default = (0, styled_components_1.default)(Input_1.default).attrs(({ hasLeftAddon, hasRightAddon, isInput = true }) => (Object.assign(Object.assign({}, (!isInput && { as: 'div' })), { getInputSize: (v, t) => `
16
16
  font-size: ${t.$.size.input[v].fontSize};
17
17
  padding: ${t.$.size.input[v].padding.y} ${t.$.size.input[v].padding.x};
18
18
 
19
19
  ${hasLeftAddon
20
20
  ? `
21
- padding-left: ${hasSeparatedLeftAddon ? (0, css_1.toCSSValue)(t.$.size.input[v].padding.x)(v => v / 2) : 0};
21
+ padding-left: ${(0, css_1.toCSSValue)(t.$.size.input[v].padding.x)(v => v / 2)};
22
22
  `
23
23
  : ''}
24
24
 
25
25
  ${hasRightAddon
26
26
  ? `
27
- padding-right: ${hasSeparatedRightAddon ? (0, css_1.toCSSValue)(t.$.size.input[v].padding.x)(v => v / 2) : 0};
27
+ padding-right: ${(0, css_1.toCSSValue)(t.$.size.input[v].padding.x)(v => v / 2)};
28
28
  `
29
29
  : ''}
30
30
  `, isInput })))(({ theme, hasBorder, hasLeftAddon, hasRightAddon, isDisabled, isFocused, isInput, isOutline, isSoft, palette, shape }) => `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.0.0-alpha-11",
3
+ "version": "2.0.0-alpha-13",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",