@invoicebox/ui 0.1.0-alpha.42 → 0.1.0-alpha.43
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/components/form/InputLabel/index.js +1 -1
- package/dist/components/form/InputLabel/styles.d.ts +0 -1
- package/dist/components/form/InputLabel/styles.js +2 -6
- package/dist/components/form/PositiveIntegerInput/index.js +2 -2
- package/dist/components/form/PositiveIntegerInput/styles.d.ts +1 -0
- package/dist/components/form/PositiveIntegerInput/styles.js +6 -2
- package/dist/components/form/Select/components/Input/index.js +2 -2
- package/dist/components/form/Select/components/Input/styles.d.ts +1 -0
- package/dist/components/form/Select/components/Input/styles.js +6 -2
- package/package.json +1 -1
|
@@ -28,5 +28,5 @@ var InputLabel = exports.InputLabel = function InputLabel(_ref) {
|
|
|
28
28
|
$palette: mergedPalette,
|
|
29
29
|
$inFocus: inFocus,
|
|
30
30
|
variant: "captionRegular"
|
|
31
|
-
}, label),
|
|
31
|
+
}, label), children);
|
|
32
32
|
};
|
|
@@ -9,4 +9,3 @@ export declare const Wrapper: import("styled-components").IStyledComponent<"web"
|
|
|
9
9
|
$isLabel: boolean;
|
|
10
10
|
$palette: TInputLabelPalette;
|
|
11
11
|
}>>;
|
|
12
|
-
export declare const InputWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Wrapper = exports.Label =
|
|
7
|
+
exports.Wrapper = exports.Label = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
var _Typography = require("../../common/Typography");
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -33,8 +33,4 @@ var Wrapper = exports.Wrapper = _styledComponents["default"].div.withConfig({
|
|
|
33
33
|
var $disabled = _ref5.$disabled,
|
|
34
34
|
$palette = _ref5.$palette;
|
|
35
35
|
return !$disabled && (0, _styledComponents.css)(["color:", ";"], $palette.textHighlight);
|
|
36
|
-
});
|
|
37
|
-
var InputWrapper = exports.InputWrapper = _styledComponents["default"].div.withConfig({
|
|
38
|
-
displayName: "styles__InputWrapper",
|
|
39
|
-
componentId: "sc-1prrc3p-2"
|
|
40
|
-
})(["position:relative;z-index:1;"]);
|
|
36
|
+
});
|
|
@@ -68,7 +68,7 @@ var PositiveIntegerInput = exports.PositiveIntegerInput = function PositiveInteg
|
|
|
68
68
|
return /*#__PURE__*/_react["default"].createElement(_InputLabel.InputLabel, {
|
|
69
69
|
inFocus: inFocus,
|
|
70
70
|
label: label
|
|
71
|
-
}, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, {
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement(S.ControlWrapper, null, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, {
|
|
72
72
|
name: name,
|
|
73
73
|
hasError: hasError,
|
|
74
74
|
inFocus: inFocus,
|
|
@@ -90,5 +90,5 @@ var PositiveIntegerInput = exports.PositiveIntegerInput = function PositiveInteg
|
|
|
90
90
|
}, /*#__PURE__*/_react["default"].createElement(_Arrow.Arrow, {
|
|
91
91
|
isOpen: false,
|
|
92
92
|
outterSize: 12
|
|
93
|
-
}))));
|
|
93
|
+
})))));
|
|
94
94
|
};
|
|
@@ -3,3 +3,4 @@ export declare const Arrows: import("styled-components").IStyledComponent<"web",
|
|
|
3
3
|
export declare const Arrow: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
4
|
$disabled: boolean;
|
|
5
5
|
}>>;
|
|
6
|
+
export declare const ControlWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -4,7 +4,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Arrows = exports.Arrow = void 0;
|
|
7
|
+
exports.ControlWrapper = exports.Arrows = exports.Arrow = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
10
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
@@ -18,4 +18,8 @@ var Arrow = exports.Arrow = _styledComponents["default"].div.withConfig({
|
|
|
18
18
|
})(["cursor:pointer;display:flex;user-select:none;", ""], function (_ref) {
|
|
19
19
|
var $disabled = _ref.$disabled;
|
|
20
20
|
return $disabled && (0, _styledComponents.css)(["opacity:0.4;pointer-events:none;"]);
|
|
21
|
-
});
|
|
21
|
+
});
|
|
22
|
+
var ControlWrapper = exports.ControlWrapper = _styledComponents["default"].div.withConfig({
|
|
23
|
+
displayName: "styles__ControlWrapper",
|
|
24
|
+
componentId: "sc-ctutr8-2"
|
|
25
|
+
})(["position:relative;"]);
|
|
@@ -26,7 +26,7 @@ var Input = exports.Input = function Input(_ref) {
|
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement(_InputLabel.InputLabel, {
|
|
27
27
|
inFocus: inFocus,
|
|
28
28
|
label: label
|
|
29
|
-
}, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, {
|
|
29
|
+
}, /*#__PURE__*/_react["default"].createElement(S.ControlWrapper, null, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, {
|
|
30
30
|
hasError: hasError,
|
|
31
31
|
inFocus: inFocus,
|
|
32
32
|
name: name,
|
|
@@ -38,5 +38,5 @@ var Input = exports.Input = function Input(_ref) {
|
|
|
38
38
|
paddingRight: 52
|
|
39
39
|
}), /*#__PURE__*/_react["default"].createElement(S.IconWrapper, null, /*#__PURE__*/_react["default"].createElement(_Arrow.Arrow, {
|
|
40
40
|
isOpen: isOpen
|
|
41
|
-
})));
|
|
41
|
+
}))));
|
|
42
42
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const IconWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
3
|
+
export declare const ControlWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.IconWrapper = void 0;
|
|
6
|
+
exports.IconWrapper = exports.ControlWrapper = void 0;
|
|
7
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var IconWrapper = exports.IconWrapper = _styledComponents["default"].div.withConfig({
|
|
10
10
|
displayName: "styles__IconWrapper",
|
|
11
11
|
componentId: "sc-1fsrle6-0"
|
|
12
|
-
})(["position:absolute;right:14px;height:100%;top:0;display:flex;align-items:center;"]);
|
|
12
|
+
})(["position:absolute;right:14px;height:100%;top:0;display:flex;align-items:center;"]);
|
|
13
|
+
var ControlWrapper = exports.ControlWrapper = _styledComponents["default"].div.withConfig({
|
|
14
|
+
displayName: "styles__ControlWrapper",
|
|
15
|
+
componentId: "sc-1fsrle6-1"
|
|
16
|
+
})(["position:relative;"]);
|