@semcore/inline-input 4.48.2-prerelease.0 → 4.49.0-prerelease.0
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/CHANGELOG.md +6 -0
- package/lib/cjs/InlineInput.js +128 -139
- package/lib/cjs/InlineInput.js.map +1 -1
- package/lib/cjs/index.js +2 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/index.type.js +2 -0
- package/lib/cjs/index.type.js.map +1 -0
- package/lib/cjs/style/inline-input.shadow.css +66 -69
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/InlineInput.js +122 -130
- package/lib/es6/InlineInput.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/index.type.js +2 -0
- package/lib/es6/index.type.js.map +1 -0
- package/lib/es6/style/inline-input.shadow.css +66 -69
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/InlineInput.mjs +123 -133
- package/lib/esm/style/inline-input.shadow.css +66 -69
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/InlineInput.d.ts +4 -0
- package/lib/types/index.d.ts +4 -162
- package/lib/types/index.type.d.ts +107 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +58 -0
- package/package.json +11 -11
- package/lib/cjs/index.d.js +0 -2
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/es6/index.d.js +0 -2
- package/lib/es6/index.d.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.49.0] - 2026-05-06
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/flex-box` [5.41.4 ~> 5.42.0], `@semcore/icon` [4.62.1 ~> 4.63.0], `@semcore/utils` [4.48.5 ~> 4.49.0], `@semcore/core` [2.39.4 ~> 2.40.0], `@semcore/button` [5.43.3 ~> 5.44.0]).
|
|
10
|
+
|
|
5
11
|
## [4.48.2] - 2025-05-13
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/InlineInput.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -9,111 +8,93 @@ exports["default"] = void 0;
|
|
|
9
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var
|
|
11
|
+
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
13
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
14
|
+
var _core = require("@semcore/core");
|
|
15
|
+
var _baseComponents = require("@semcore/base-components");
|
|
16
|
+
var _button = require("@semcore/button");
|
|
17
|
+
var _i18nEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/i18nEnhance"));
|
|
18
|
+
var _hasParent = require("@semcore/core/lib/utils/hasParent");
|
|
21
19
|
var _m = _interopRequireDefault(require("@semcore/icon/Check/m"));
|
|
22
20
|
var _m2 = _interopRequireDefault(require("@semcore/icon/Close/m"));
|
|
21
|
+
var _inputNumber = _interopRequireDefault(require("@semcore/input-number"));
|
|
23
22
|
var _spin = _interopRequireDefault(require("@semcore/spin"));
|
|
24
|
-
var
|
|
23
|
+
var _react = _interopRequireDefault(require("react"));
|
|
25
24
|
var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynamic-locales");
|
|
26
|
-
var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
|
|
27
|
-
var _inputNumber = _interopRequireDefault(require("@semcore/input-number"));
|
|
28
|
-
var _hasParent = require("@semcore/utils/lib/hasParent");
|
|
29
25
|
/*!__reshadow-styles__:"./style/inline-input.shadow.css"*/
|
|
30
|
-
var style = (
|
|
26
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SInlineInput_t1wpj_gg_{display:inline-flex;width:100%;height:100%;align-items:center;position:relative;z-index:0;vertical-align:middle;padding:1px;box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}.___SInlineInput_t1wpj_gg_ .___SConfirmIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-success, rgb(0, 190, 142));cursor:pointer}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_ .___SConfirmIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-success, rgb(0, 190, 142))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_ .___SConfirmIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-success, color(display-p3 0.33388 0.7337 0.56959))}}}@media (hover:hover){.___SInlineInput_t1wpj_gg_ .___SConfirmIcon_t1wpj_gg_:not(.__color_t1wpj_gg_):hover{color:var(--intergalactic-icon-secondary-success-hover-active, rgb(1, 176, 131))}}.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385));cursor:pointer}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_){color:var(--intergalactic-icon-secondary-neutral, color(display-p3 0.0036 0.02041 0.00996 / 0.385))}}}@media (hover:hover){.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_):hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, rgba(0, 5, 2, 0.433))}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_):hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, rgba(0, 5, 2, 0.433))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_ .___SCancelIcon_t1wpj_gg_:not(.__color_t1wpj_gg_):hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, color(display-p3 0.00333 0.01824 0.00791 / 0.433))}}}}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_{min-width:0;width:100%;height:100%;padding:0 var(--intergalactic-spacing-1x, 4px);border:0;box-sizing:border-box;color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));font-size:inherit;line-height:1.2;text-overflow:ellipsis;font-family:inherit;background:0 0;min-height:1em}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_:focus,.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_:focus-visible{outline:0}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, rgba(0, 5, 2, 0.457))}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_::placeholder{color:var(--intergalactic-text-placeholder, rgba(0, 5, 2, 0.457))}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_.__disabled_t1wpj_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_::-webkit-inner-spin-button,.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.___SInlineInput_t1wpj_gg_ .___SValue_t1wpj_gg_._type_number_t1wpj_gg_{-moz-appearance:textfield}.___SUnderline_t1wpj_gg_{display:flex;flex-direction:row;align-items:center;flex-grow:1;width:100%;height:100%;min-height:1em;border:1px solid transparent;border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SUnderline_t1wpj_gg_{border-bottom:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SUnderline_t1wpj_gg_{border-bottom:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SAddon_t1wpj_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;height:100%;color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385));padding:0 var(--intergalactic-spacing-1x, 4px)}@supports (color:color(display-p3 0 0 0%)){.___SAddon_t1wpj_gg_{color:var(--intergalactic-icon-secondary-neutral, rgba(0, 5, 2, 0.385))}@media (color-gamut:p3){.___SAddon_t1wpj_gg_{color:var(--intergalactic-icon-secondary-neutral, color(display-p3 0.0036 0.02041 0.00996 / 0.385))}}}.___SAddon_t1wpj_gg_.__disabled_t1wpj_gg_,.___SInlineInput_t1wpj_gg_.__disabled_t1wpj_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none}.___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386))}@media (color-gamut:p3){.___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-info-active, color(display-p3 0.01805 0.08334 0.73488 / 0.386))}}}.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-success-active, rgb(0, 204, 154))}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-success-active, rgb(0, 204, 154))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-success-active, color(display-p3 0.36013 0.78771 0.61714))}}}.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-success-active, rgb(0, 204, 154));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-success-active, rgb(0, 204, 154))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-success-active, color(display-p3 0.36013 0.78771 0.61714))}}}@supports (color:oklab(0%0 0%)){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){outline-color:var(--intergalactic-keyboard-focus-valid-outline, rgb(0, 190, 142))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_._state_valid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){outline-color:var(--intergalactic-keyboard-focus-valid-outline, oklch(0.711 0.146 166.9))}}}.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_{border-bottom-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}@supports (color:oklab(0%0 0%)){.___SInlineInput_t1wpj_gg_._state_invalid_t1wpj_gg_ .___SUnderline_t1wpj_gg_:has(input:focus-visible){outline-color:var(--intergalactic-keyboard-focus-invalid-outline, oklch(0.628 0.257 28.9 / 0.652))}}.___SValue_t1wpj_gg_:focus~.___SControls_t1wpj_gg_{display:flex}.___SInvalidPattern_t1wpj_gg_{margin-left:-1px;margin-top:-1px;border-radius:0;height:calc(100% - 3px)}", /*__inner_css_end__*/"t1wpj_gg_"),
|
|
31
27
|
/*__reshadow_css_end__*/
|
|
32
28
|
{
|
|
33
|
-
"__SInlineInput": "
|
|
34
|
-
"_disabled": "
|
|
35
|
-
"__SUnderline": "
|
|
36
|
-
"__SAddon": "
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"__SCancelIcon": "
|
|
45
|
-
"_type_number": "
|
|
29
|
+
"__SInlineInput": "___SInlineInput_t1wpj_gg_",
|
|
30
|
+
"_disabled": "__disabled_t1wpj_gg_",
|
|
31
|
+
"__SUnderline": "___SUnderline_t1wpj_gg_",
|
|
32
|
+
"__SAddon": "___SAddon_t1wpj_gg_",
|
|
33
|
+
"_state_valid": "_state_valid_t1wpj_gg_",
|
|
34
|
+
"_state_invalid": "_state_invalid_t1wpj_gg_",
|
|
35
|
+
"__SValue": "___SValue_t1wpj_gg_",
|
|
36
|
+
"__SControls": "___SControls_t1wpj_gg_",
|
|
37
|
+
"__SInvalidPattern": "___SInvalidPattern_t1wpj_gg_",
|
|
38
|
+
"__SConfirmIcon": "___SConfirmIcon_t1wpj_gg_",
|
|
39
|
+
"_color": "__color_t1wpj_gg_",
|
|
40
|
+
"__SCancelIcon": "___SCancelIcon_t1wpj_gg_",
|
|
41
|
+
"_type_number": "_type_number_t1wpj_gg_"
|
|
46
42
|
});
|
|
47
|
-
var pointInsideOfRect = function pointInsideOfRect(
|
|
48
|
-
var x =
|
|
49
|
-
y =
|
|
50
|
-
rect =
|
|
43
|
+
var pointInsideOfRect = function pointInsideOfRect(_ref15) {
|
|
44
|
+
var x = _ref15.x,
|
|
45
|
+
y = _ref15.y,
|
|
46
|
+
rect = _ref15.rect;
|
|
51
47
|
return x >= rect.x && x <= rect.x + rect.width && y >= rect.y && y <= rect.y + rect.height;
|
|
52
48
|
};
|
|
53
49
|
var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
54
|
-
(0, _inherits2["default"])(InlineInputBase, _Component);
|
|
55
|
-
var _super = (0, _createSuper2["default"])(InlineInputBase);
|
|
56
50
|
function InlineInputBase() {
|
|
57
51
|
var _this;
|
|
58
52
|
(0, _classCallCheck2["default"])(this, InlineInputBase);
|
|
59
53
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
60
54
|
args[_key] = arguments[_key];
|
|
61
55
|
}
|
|
62
|
-
_this =
|
|
63
|
-
(0, _defineProperty2["default"])(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(0, _defineProperty2["default"])(
|
|
67
|
-
(0, _defineProperty2["default"])(
|
|
68
|
-
(0, _defineProperty2["default"])(
|
|
69
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "initValue", '');
|
|
70
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lastMouseDownPosition", null);
|
|
71
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "lastHandledKeyboardEvent", -1);
|
|
72
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleDocumentMouseDown", function (event) {
|
|
56
|
+
_this = (0, _callSuper2["default"])(this, InlineInputBase, [].concat(args));
|
|
57
|
+
(0, _defineProperty2["default"])(_this, "rootRef", /*#__PURE__*/_react["default"].createRef());
|
|
58
|
+
(0, _defineProperty2["default"])(_this, "inputRef", /*#__PURE__*/_react["default"].createRef());
|
|
59
|
+
(0, _defineProperty2["default"])(_this, "initValue", '');
|
|
60
|
+
(0, _defineProperty2["default"])(_this, "lastMouseDownPosition", null);
|
|
61
|
+
(0, _defineProperty2["default"])(_this, "lastHandledKeyboardEvent", -1);
|
|
62
|
+
(0, _defineProperty2["default"])(_this, "handleDocumentMouseDown", function (event) {
|
|
73
63
|
_this.lastMouseDownPosition = {
|
|
74
64
|
x: event.clientX,
|
|
75
65
|
y: event.clientY
|
|
76
66
|
};
|
|
77
67
|
_this.lastHandledKeyboardEvent = -1;
|
|
78
68
|
});
|
|
79
|
-
(0, _defineProperty2["default"])(
|
|
69
|
+
(0, _defineProperty2["default"])(_this, "handleDocumentKeyDown", function () {
|
|
80
70
|
_this.lastMouseDownPosition = null;
|
|
81
71
|
});
|
|
82
|
-
(0, _defineProperty2["default"])(
|
|
83
|
-
var _this$inputRef$curren, _this$inputRef$curren2, _this$inputRef$curren3
|
|
72
|
+
(0, _defineProperty2["default"])(_this, "increment", function (event) {
|
|
73
|
+
var _this$inputRef$curren, _this$inputRef$curren2, _this$inputRef$curren3;
|
|
84
74
|
// https://stackoverflow.com/questions/68010124/safari-number-input-stepup-stepdown-not-functioning-with-empty-value
|
|
85
75
|
if (((_this$inputRef$curren = _this.inputRef.current) === null || _this$inputRef$curren === void 0 ? void 0 : _this$inputRef$curren.value) === '') _this.inputRef.current.value = _this.inputRef.current.min || '0';
|
|
86
|
-
(_this$inputRef$curren2 = _this.inputRef.current) === null || _this$inputRef$curren2 === void 0
|
|
87
|
-
(_this$inputHandlersRe = _this.inputHandlersRef.current) === null || _this$inputHandlersRe === void 0 ? void 0 : _this$inputHandlersRe.value((_this$inputRef$curren4 = _this.inputRef.current) === null || _this$inputRef$curren4 === void 0 ? void 0 : _this$inputRef$curren4.value, event);
|
|
76
|
+
(_this$inputRef$curren2 = _this.inputRef.current) === null || _this$inputRef$curren2 === void 0 || (_this$inputRef$curren3 = _this$inputRef$curren2.stepUp) === null || _this$inputRef$curren3 === void 0 || _this$inputRef$curren3.call(_this$inputRef$curren2, event);
|
|
88
77
|
});
|
|
89
|
-
(0, _defineProperty2["default"])(
|
|
90
|
-
var _this$inputRef$
|
|
91
|
-
if (((_this$inputRef$
|
|
92
|
-
(_this$inputRef$
|
|
93
|
-
(_this$inputHandlersRe2 = _this.inputHandlersRef.current) === null || _this$inputHandlersRe2 === void 0 ? void 0 : _this$inputHandlersRe2.value((_this$inputRef$curren8 = _this.inputRef.current) === null || _this$inputRef$curren8 === void 0 ? void 0 : _this$inputRef$curren8.value, event);
|
|
94
|
-
});
|
|
95
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "bindHandlerValueFocused", function (focused) {
|
|
96
|
-
return function () {
|
|
97
|
-
_this.setState({
|
|
98
|
-
focused: focused
|
|
99
|
-
});
|
|
100
|
-
};
|
|
78
|
+
(0, _defineProperty2["default"])(_this, "decrement", function (event) {
|
|
79
|
+
var _this$inputRef$curren4, _this$inputRef$curren5, _this$inputRef$curren6;
|
|
80
|
+
if (((_this$inputRef$curren4 = _this.inputRef.current) === null || _this$inputRef$curren4 === void 0 ? void 0 : _this$inputRef$curren4.value) === '') _this.inputRef.current.value = _this.inputRef.current.max || '0';
|
|
81
|
+
(_this$inputRef$curren5 = _this.inputRef.current) === null || _this$inputRef$curren5 === void 0 || (_this$inputRef$curren6 = _this$inputRef$curren5.stepDown) === null || _this$inputRef$curren6 === void 0 || _this$inputRef$curren6.call(_this$inputRef$curren5, event);
|
|
101
82
|
});
|
|
102
|
-
(0, _defineProperty2["default"])(
|
|
103
|
-
var _this$inputRef$
|
|
83
|
+
(0, _defineProperty2["default"])(_this, "handleMouseDownAddon", function (event) {
|
|
84
|
+
var _this$inputRef$curren7;
|
|
104
85
|
event.preventDefault();
|
|
105
|
-
(_this$inputRef$
|
|
86
|
+
(_this$inputRef$curren7 = _this.inputRef.current) === null || _this$inputRef$curren7 === void 0 || _this$inputRef$curren7.focus();
|
|
106
87
|
});
|
|
107
|
-
(0, _defineProperty2["default"])(
|
|
88
|
+
(0, _defineProperty2["default"])(_this, "handleConfirm", function (text, event) {
|
|
108
89
|
var _this$asProps$onConfi, _this$asProps;
|
|
109
|
-
(_this$asProps$onConfi = (_this$asProps = _this.asProps).onConfirm) === null || _this$asProps$onConfi === void 0
|
|
90
|
+
(_this$asProps$onConfi = (_this$asProps = _this.asProps).onConfirm) === null || _this$asProps$onConfi === void 0 || _this$asProps$onConfi.call(_this$asProps, text, event);
|
|
110
91
|
});
|
|
111
|
-
(0, _defineProperty2["default"])(
|
|
92
|
+
(0, _defineProperty2["default"])(_this, "handleCancel", function (prevText, event) {
|
|
112
93
|
var _this$asProps$onCance, _this$asProps2;
|
|
113
|
-
(_this$asProps$onCance = (_this$asProps2 = _this.asProps).onCancel) === null || _this$asProps$onCance === void 0
|
|
94
|
+
(_this$asProps$onCance = (_this$asProps2 = _this.asProps).onCancel) === null || _this$asProps$onCance === void 0 || _this$asProps$onCance.call(_this$asProps2, prevText, event);
|
|
114
95
|
});
|
|
115
|
-
(0, _defineProperty2["default"])(
|
|
116
|
-
var _this$inputRef$
|
|
96
|
+
(0, _defineProperty2["default"])(_this, "handleBlur", function (event) {
|
|
97
|
+
var _this$inputRef$curren8, _this$inputRef$curren9;
|
|
117
98
|
var _this$asProps3 = _this.asProps,
|
|
118
99
|
onConfirm = _this$asProps3.onConfirm,
|
|
119
100
|
onCancel = _this$asProps3.onCancel,
|
|
@@ -134,32 +115,41 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
134
115
|
return;
|
|
135
116
|
}
|
|
136
117
|
}
|
|
137
|
-
if (onBlurBehavior === 'confirm') onConfirm === null || onConfirm === void 0
|
|
138
|
-
if (onBlurBehavior === 'cancel') onCancel === null || onCancel === void 0
|
|
118
|
+
if (onBlurBehavior === 'confirm') onConfirm === null || onConfirm === void 0 || onConfirm((_this$inputRef$curren8 = (_this$inputRef$curren9 = _this.inputRef.current) === null || _this$inputRef$curren9 === void 0 ? void 0 : _this$inputRef$curren9.value) !== null && _this$inputRef$curren8 !== void 0 ? _this$inputRef$curren8 : '', event);
|
|
119
|
+
if (onBlurBehavior === 'cancel') onCancel === null || onCancel === void 0 || onCancel(_this.initValue, event);
|
|
139
120
|
});
|
|
140
|
-
(0, _defineProperty2["default"])(
|
|
121
|
+
(0, _defineProperty2["default"])(_this, "handleKeyDown", function (event) {
|
|
141
122
|
var _this$asProps4 = _this.asProps,
|
|
142
123
|
onConfirm = _this$asProps4.onConfirm,
|
|
143
124
|
onCancel = _this$asProps4.onCancel;
|
|
144
125
|
if (event.key === 'Enter') {
|
|
145
|
-
var _this$inputRef$
|
|
146
|
-
onConfirm === null || onConfirm === void 0
|
|
126
|
+
var _this$inputRef$curren0, _this$inputRef$curren1;
|
|
127
|
+
onConfirm === null || onConfirm === void 0 || onConfirm((_this$inputRef$curren0 = (_this$inputRef$curren1 = _this.inputRef.current) === null || _this$inputRef$curren1 === void 0 ? void 0 : _this$inputRef$curren1.value) !== null && _this$inputRef$curren0 !== void 0 ? _this$inputRef$curren0 : '', event);
|
|
147
128
|
_this.lastHandledKeyboardEvent = Date.now();
|
|
148
129
|
}
|
|
149
130
|
if (event.key === 'Escape') {
|
|
150
|
-
onCancel === null || onCancel === void 0
|
|
131
|
+
onCancel === null || onCancel === void 0 || onCancel(_this.initValue, event);
|
|
151
132
|
_this.lastHandledKeyboardEvent = Date.now();
|
|
152
133
|
}
|
|
153
134
|
});
|
|
154
135
|
return _this;
|
|
155
136
|
}
|
|
156
|
-
(0,
|
|
137
|
+
(0, _inherits2["default"])(InlineInputBase, _Component);
|
|
138
|
+
return (0, _createClass2["default"])(InlineInputBase, [{
|
|
157
139
|
key: "componentDidMount",
|
|
158
140
|
value: function componentDidMount() {
|
|
141
|
+
this.updateInert();
|
|
159
142
|
if (!this.asProps.onBlurBehavior) return;
|
|
160
143
|
document.body.addEventListener('mousedown', this.handleDocumentMouseDown);
|
|
161
144
|
document.body.addEventListener('keydown', this.handleDocumentKeyDown);
|
|
162
145
|
}
|
|
146
|
+
}, {
|
|
147
|
+
key: "componentDidUpdate",
|
|
148
|
+
value: function componentDidUpdate(prevProps) {
|
|
149
|
+
if (prevProps.disabled !== this.asProps.disabled) {
|
|
150
|
+
this.updateInert();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
163
153
|
}, {
|
|
164
154
|
key: "componentWillUnmount",
|
|
165
155
|
value: function componentWillUnmount() {
|
|
@@ -177,12 +167,11 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
177
167
|
}, {
|
|
178
168
|
key: "getConfirmControlProps",
|
|
179
169
|
value: function getConfirmControlProps() {
|
|
180
|
-
var _this$inputRef$curren14;
|
|
181
170
|
var _this$asProps5 = this.asProps,
|
|
182
171
|
loading = _this$asProps5.loading,
|
|
183
172
|
getI18nText = _this$asProps5.getI18nText;
|
|
184
173
|
return {
|
|
185
|
-
|
|
174
|
+
inputRef: this.inputRef,
|
|
186
175
|
loading: loading,
|
|
187
176
|
onConfirm: this.handleConfirm,
|
|
188
177
|
getI18nText: getI18nText
|
|
@@ -210,9 +199,7 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
210
199
|
return {
|
|
211
200
|
ref: this.inputRef,
|
|
212
201
|
state: state,
|
|
213
|
-
onKeyDown: this.handleKeyDown
|
|
214
|
-
onFocus: this.bindHandlerValueFocused(true),
|
|
215
|
-
onBlur: this.bindHandlerValueFocused(false)
|
|
202
|
+
onKeyDown: this.handleKeyDown
|
|
216
203
|
};
|
|
217
204
|
}
|
|
218
205
|
}, {
|
|
@@ -224,11 +211,8 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
224
211
|
return {
|
|
225
212
|
numberFormatter: numberFormatter,
|
|
226
213
|
inputRef: this.inputRef,
|
|
227
|
-
inputHandlerRefs: this.inputHandlersRef,
|
|
228
214
|
increment: this.increment,
|
|
229
|
-
decrement: this.decrement
|
|
230
|
-
onFocus: this.bindHandlerValueFocused(true),
|
|
231
|
-
onBlur: this.bindHandlerValueFocused(false)
|
|
215
|
+
decrement: this.decrement
|
|
232
216
|
};
|
|
233
217
|
}
|
|
234
218
|
}, {
|
|
@@ -241,27 +225,35 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
241
225
|
getI18nText: getI18nText
|
|
242
226
|
};
|
|
243
227
|
}
|
|
228
|
+
}, {
|
|
229
|
+
key: "updateInert",
|
|
230
|
+
value: function updateInert() {
|
|
231
|
+
var disabled = this.asProps.disabled;
|
|
232
|
+
if (!this.rootRef.current) return;
|
|
233
|
+
if (disabled) {
|
|
234
|
+
this.rootRef.current.setAttribute('inert', '');
|
|
235
|
+
} else {
|
|
236
|
+
this.rootRef.current.removeAttribute('inert');
|
|
237
|
+
}
|
|
238
|
+
}
|
|
244
239
|
}, {
|
|
245
240
|
key: "render",
|
|
246
241
|
value: function render() {
|
|
247
242
|
var _ref = this.asProps,
|
|
248
243
|
_ref8;
|
|
249
|
-
var SInlineInput =
|
|
244
|
+
var SInlineInput = _baseComponents.Box;
|
|
250
245
|
var SUnderline = 'div';
|
|
251
|
-
var SInvalidPattern =
|
|
246
|
+
var SInvalidPattern = _baseComponents.InvalidStateBox;
|
|
252
247
|
var _this$asProps7 = this.asProps,
|
|
253
248
|
Children = _this$asProps7.Children,
|
|
254
249
|
styles = _this$asProps7.styles,
|
|
255
250
|
state = _this$asProps7.state;
|
|
256
|
-
var focused = this.state.focused;
|
|
257
251
|
return _ref8 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SInlineInput, _ref8.cn("SInlineInput", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
258
252
|
"ref": this.rootRef,
|
|
259
|
-
"focused": focused,
|
|
260
253
|
"onBlur": this.handleBlur
|
|
261
254
|
}, _ref))), /*#__PURE__*/_react["default"].createElement(SUnderline, _ref8.cn("SUnderline", {}), state === 'invalid' && /*#__PURE__*/_react["default"].createElement(SInvalidPattern, _ref8.cn("SInvalidPattern", {})), /*#__PURE__*/_react["default"].createElement(Children, _ref8.cn("Children", {}))));
|
|
262
255
|
}
|
|
263
256
|
}]);
|
|
264
|
-
return InlineInputBase;
|
|
265
257
|
}(_core.Component);
|
|
266
258
|
(0, _defineProperty2["default"])(InlineInputBase, "displayName", 'InlineInput');
|
|
267
259
|
(0, _defineProperty2["default"])(InlineInputBase, "enhance", [(0, _i18nEnhance["default"])(_intergalacticDynamicLocales.localizedMessages)]);
|
|
@@ -273,13 +265,12 @@ var InlineInputBase = /*#__PURE__*/function (_Component) {
|
|
|
273
265
|
});
|
|
274
266
|
(0, _defineProperty2["default"])(InlineInputBase, "style", style);
|
|
275
267
|
var Value = /*#__PURE__*/function (_Component2) {
|
|
276
|
-
(0, _inherits2["default"])(Value, _Component2);
|
|
277
|
-
var _super2 = (0, _createSuper2["default"])(Value);
|
|
278
268
|
function Value() {
|
|
279
269
|
(0, _classCallCheck2["default"])(this, Value);
|
|
280
|
-
return
|
|
270
|
+
return (0, _callSuper2["default"])(this, Value, arguments);
|
|
281
271
|
}
|
|
282
|
-
(0,
|
|
272
|
+
(0, _inherits2["default"])(Value, _Component2);
|
|
273
|
+
return (0, _createClass2["default"])(Value, [{
|
|
283
274
|
key: "uncontrolledProps",
|
|
284
275
|
value: function uncontrolledProps() {
|
|
285
276
|
return {
|
|
@@ -293,39 +284,37 @@ var Value = /*#__PURE__*/function (_Component2) {
|
|
|
293
284
|
value: function render() {
|
|
294
285
|
var _ref2 = this.asProps,
|
|
295
286
|
_ref9;
|
|
296
|
-
var SValue =
|
|
287
|
+
var SValue = _baseComponents.Box;
|
|
297
288
|
return _ref9 = (0, _core.sstyled)(this.asProps.styles), /*#__PURE__*/_react["default"].createElement(SValue, _ref9.cn("SValue", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
298
289
|
"tag": 'input',
|
|
299
290
|
"type": 'text'
|
|
300
291
|
}, _ref2))));
|
|
301
292
|
}
|
|
302
293
|
}]);
|
|
303
|
-
return Value;
|
|
304
294
|
}(_core.Component);
|
|
305
295
|
(0, _defineProperty2["default"])(Value, "defaultProps", {
|
|
306
296
|
defaultValue: ''
|
|
307
297
|
});
|
|
308
|
-
(
|
|
309
|
-
(0, _defineProperty2["default"])(Value, "hoistProps", ['disabled']);
|
|
310
|
-
var Addon = function Addon(props) {
|
|
298
|
+
function Addon(props) {
|
|
311
299
|
var _ref3 = arguments[0],
|
|
312
|
-
|
|
313
|
-
var SAddon =
|
|
314
|
-
return
|
|
315
|
-
}
|
|
316
|
-
|
|
300
|
+
_ref0;
|
|
301
|
+
var SAddon = _baseComponents.Box;
|
|
302
|
+
return _ref0 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref0.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref3))));
|
|
303
|
+
}
|
|
304
|
+
function ConfirmControl(props) {
|
|
317
305
|
var _ref4 = arguments[0],
|
|
318
|
-
|
|
306
|
+
_ref10,
|
|
319
307
|
_props$title,
|
|
320
|
-
|
|
321
|
-
var SAddon =
|
|
308
|
+
_ref16;
|
|
309
|
+
var SAddon = _baseComponents.Box;
|
|
322
310
|
var Children = props.Children,
|
|
323
|
-
hasChildren = props.children
|
|
311
|
+
hasChildren = props.children,
|
|
312
|
+
inputRef = props.inputRef;
|
|
324
313
|
var title = (_props$title = props.title) !== null && _props$title !== void 0 ? _props$title : props.getI18nText('confirm');
|
|
325
314
|
var handleConfirm = _react["default"].useCallback(function (event) {
|
|
326
|
-
var _props$onConfirm,
|
|
327
|
-
(_props$onConfirm = props.onConfirm) === null || _props$onConfirm === void 0
|
|
328
|
-
}, [props.onConfirm,
|
|
315
|
+
var _props$onConfirm, _inputRef$current$val, _inputRef$current;
|
|
316
|
+
(_props$onConfirm = props.onConfirm) === null || _props$onConfirm === void 0 || _props$onConfirm.call(props, (_inputRef$current$val = inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.value) !== null && _inputRef$current$val !== void 0 ? _inputRef$current$val : '', event);
|
|
317
|
+
}, [props.onConfirm, inputRef === null || inputRef === void 0 ? void 0 : inputRef.current]);
|
|
329
318
|
var handleKeydown = _react["default"].useCallback(function (event) {
|
|
330
319
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
331
320
|
event.preventDefault();
|
|
@@ -334,36 +323,36 @@ var ConfirmControl = function ConfirmControl(props) {
|
|
|
334
323
|
}
|
|
335
324
|
}, [handleConfirm]);
|
|
336
325
|
if (props.loading) {
|
|
337
|
-
var
|
|
338
|
-
return
|
|
326
|
+
var _ref1;
|
|
327
|
+
return _ref1 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref1.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref4))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children, _ref1.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(_spin["default"], _ref1.cn("Spin", {
|
|
339
328
|
"size": 'xs'
|
|
340
329
|
})));
|
|
341
330
|
}
|
|
342
331
|
var sstyles = (0, _core.sstyled)(props.styles);
|
|
343
332
|
var sConfirmIconStyles = sstyles.cn('SConfirmIcon', {});
|
|
344
|
-
return
|
|
333
|
+
return _ref10 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref10.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
345
334
|
"onKeyDown": handleKeydown
|
|
346
|
-
}, _ref4))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children,
|
|
347
|
-
"addonLeft": (
|
|
335
|
+
}, _ref4))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children, _ref10.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(_button.ButtonLink, _ref10.cn("ButtonLink", {
|
|
336
|
+
"addonLeft": (_ref16 = props.icon) !== null && _ref16 !== void 0 ? _ref16 : _m["default"],
|
|
348
337
|
"use": 'secondary',
|
|
349
338
|
"onClick": handleConfirm,
|
|
350
339
|
"className": sConfirmIconStyles.className,
|
|
351
340
|
"style": sConfirmIconStyles.style,
|
|
352
341
|
"aria-label": title
|
|
353
342
|
})));
|
|
354
|
-
}
|
|
355
|
-
|
|
343
|
+
}
|
|
344
|
+
function CancelControl(props) {
|
|
356
345
|
var _ref5 = arguments[0],
|
|
357
|
-
|
|
346
|
+
_ref12,
|
|
358
347
|
_props$title2,
|
|
359
|
-
|
|
360
|
-
var SAddon =
|
|
348
|
+
_ref17;
|
|
349
|
+
var SAddon = _baseComponents.Box;
|
|
361
350
|
var Children = props.Children,
|
|
362
351
|
hasChildren = props.children;
|
|
363
352
|
var title = (_props$title2 = props.title) !== null && _props$title2 !== void 0 ? _props$title2 : props.getI18nText('discard');
|
|
364
353
|
var handleCancel = _react["default"].useCallback(function (event) {
|
|
365
|
-
var _props$onCancel, _props$
|
|
366
|
-
(_props$onCancel = props.onCancel) === null || _props$onCancel === void 0
|
|
354
|
+
var _props$onCancel, _props$value;
|
|
355
|
+
(_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 || _props$onCancel.call(props, (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : '', event);
|
|
367
356
|
}, [props.onCancel, props.value]);
|
|
368
357
|
var handleKeydown = _react["default"].useCallback(function (event) {
|
|
369
358
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -373,39 +362,40 @@ var CancelControl = function CancelControl(props) {
|
|
|
373
362
|
}
|
|
374
363
|
}, [handleCancel]);
|
|
375
364
|
if (props.disabled) {
|
|
376
|
-
var
|
|
377
|
-
return
|
|
365
|
+
var _ref11;
|
|
366
|
+
return _ref11 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref11.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref5))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children, _ref11.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(_m2["default"], _ref11.cn("CloseM", {})));
|
|
378
367
|
}
|
|
379
368
|
var sstyles = (0, _core.sstyled)(props.styles);
|
|
380
369
|
var sCancelIconStyles = sstyles.cn('SCancelIcon', {});
|
|
381
|
-
return
|
|
370
|
+
return _ref12 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref12.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
382
371
|
"onKeyDown": handleKeydown
|
|
383
|
-
}, _ref5))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children,
|
|
372
|
+
}, _ref5))), hasChildren ? /*#__PURE__*/_react["default"].createElement(Children, _ref12.cn("Children", {})) : /*#__PURE__*/_react["default"].createElement(_button.ButtonLink, _ref12.cn("ButtonLink", {
|
|
384
373
|
"use": 'secondary',
|
|
385
|
-
"addonLeft": (
|
|
374
|
+
"addonLeft": (_ref17 = props.icon) !== null && _ref17 !== void 0 ? _ref17 : _m2["default"],
|
|
386
375
|
"onClick": handleCancel,
|
|
387
376
|
"className": sCancelIconStyles.className,
|
|
388
377
|
"style": sCancelIconStyles.style,
|
|
389
378
|
"aria-label": title
|
|
390
379
|
})));
|
|
391
|
-
}
|
|
392
|
-
|
|
380
|
+
}
|
|
381
|
+
function NumberValue(props) {
|
|
393
382
|
var _ref6 = arguments[0],
|
|
394
|
-
|
|
383
|
+
_ref13;
|
|
395
384
|
var SValue = _inputNumber["default"].Value;
|
|
396
|
-
return
|
|
397
|
-
}
|
|
385
|
+
return _ref13 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SValue, _ref13.cn("SValue", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({}, _ref6))));
|
|
386
|
+
}
|
|
387
|
+
;
|
|
398
388
|
function NumberControls(props) {
|
|
399
389
|
var _ref7 = arguments[0],
|
|
400
|
-
|
|
390
|
+
_ref14;
|
|
401
391
|
var SControls = _inputNumber["default"].Controls;
|
|
402
|
-
return
|
|
392
|
+
return _ref14 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SControls, _ref14.cn("SControls", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
403
393
|
"tag": InlineInput.Addon
|
|
404
394
|
}, _ref7))));
|
|
405
395
|
}
|
|
406
396
|
|
|
407
397
|
/** `createComponent` currently exposes unrelated junk instead of typings, that the reason of to any cast */
|
|
408
|
-
var InlineInput = (0, _core
|
|
398
|
+
var InlineInput = (0, _core.createComponent)(InlineInputBase, {
|
|
409
399
|
Addon: Addon,
|
|
410
400
|
Value: Value,
|
|
411
401
|
ConfirmControl: ConfirmControl,
|
|
@@ -413,6 +403,5 @@ var InlineInput = (0, _core["default"])(InlineInputBase, {
|
|
|
413
403
|
NumberValue: NumberValue,
|
|
414
404
|
NumberControls: NumberControls
|
|
415
405
|
});
|
|
416
|
-
var _default = InlineInput;
|
|
417
|
-
exports["default"] = _default;
|
|
406
|
+
var _default = exports["default"] = InlineInput;
|
|
418
407
|
//# sourceMappingURL=InlineInput.js.map
|