@semcore/inline-input 16.0.0-prerelease.6 → 16.0.0-prerelease.7

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.
@@ -1,156 +1,195 @@
1
- import y from "@babel/runtime/helpers/esm/objectSpread2";
2
- import R from "@babel/runtime/helpers/esm/classCallCheck";
3
- import k from "@babel/runtime/helpers/esm/createClass";
4
- import f from "@babel/runtime/helpers/esm/assertThisInitialized";
5
- import E from "@babel/runtime/helpers/esm/inherits";
6
- import $ from "@babel/runtime/helpers/esm/createSuper";
7
- import s from "@babel/runtime/helpers/esm/defineProperty";
8
- import { sstyled as m, createComponent as M, assignProps as b, Component as D } from "@semcore/core";
9
- import _ from "react";
10
- import { Box as I, InvalidStateBox as K } from "@semcore/flex-box";
11
- import N from "@semcore/core/lib/utils/enhances/autoFocusEnhance";
12
- import U from "@semcore/icon/Check/m";
13
- import w from "@semcore/icon/Close/m";
14
- import H from "@semcore/spin";
15
- import { ButtonLink as V } from "@semcore/button";
16
- import { localizedMessages as B } from "./translations/__intergalactic-dynamic-locales.mjs";
17
- import z from "@semcore/core/lib/utils/enhances/i18nEnhance";
18
- import A from "@semcore/input-number";
19
- import { hasParent as T } from "@semcore/core/lib/utils/hasParent";
20
- var L = (
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
7
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
8
+ import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
9
+ import React from "react";
10
+ import { Box, InvalidStateBox } from "@semcore/flex-box";
11
+ import autoFocusEnhance from "@semcore/core/lib/utils/enhances/autoFocusEnhance";
12
+ import CheckM from "@semcore/icon/Check/m";
13
+ import CloseM from "@semcore/icon/Close/m";
14
+ import Spin from "@semcore/spin";
15
+ import { ButtonLink } from "@semcore/button";
16
+ import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
17
+ import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
18
+ import InputNumber from "@semcore/input-number";
19
+ import { hasParent } from "@semcore/core/lib/utils/hasParent";
20
+ var style = (
21
21
  /*__reshadow_css_start__*/
22
- (m.insert(
22
+ (sstyled.insert(
23
23
  /*__inner_css_start__*/
24
24
  ".___SInlineInput_xoujo_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, #ffffff)}.___SInlineInput_xoujo_gg_ .___SConfirmIcon_xoujo_gg_{color:var(--intergalactic-icon-secondary-success, #00c192);cursor:pointer}@media (hover:hover){.___SInlineInput_xoujo_gg_ .___SConfirmIcon_xoujo_gg_:hover{color:var(--intergalactic-icon-secondary-success-hover-active, #049B75)}}.___SInlineInput_xoujo_gg_ .___SCancelIcon_xoujo_gg_{color:var(--intergalactic-icon-secondary-neutral, #a9abb6);cursor:pointer}@media (hover:hover){.___SInlineInput_xoujo_gg_ .___SCancelIcon_xoujo_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #878992)}}.___SInlineInput_xoujo_gg_.__disabled_xoujo_gg_{cursor:default;pointer-events:none;opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SValue_xoujo_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, #191b23);font-size:inherit;line-height:1.2;text-overflow:ellipsis;font-family:inherit;background:0 0;min-height:1em}.___SValue_xoujo_gg_:focus{outline:0}.___SValue_xoujo_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_xoujo_gg_::placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_xoujo_gg_.__disabled_xoujo_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_xoujo_gg_::-webkit-inner-spin-button,.___SValue_xoujo_gg_::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.___SValue_xoujo_gg_._type_number_xoujo_gg_{-moz-appearance:textfield}.___SUnderline_xoujo_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, #c4c7cf)}.___SAddon_xoujo_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;height:100%;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);padding:0 var(--intergalactic-spacing-1x, 4px)}.___SAddon_xoujo_gg_.__disabled_xoujo_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SUnderline_xoujo_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-info-active, #006dca);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SInlineInput_xoujo_gg_._state_valid_xoujo_gg_ .___SUnderline_xoujo_gg_{border-bottom-color:var(--intergalactic-border-success-active, #007c65)}.___SInlineInput_xoujo_gg_._state_valid_xoujo_gg_ .___SUnderline_xoujo_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-success-active, #007c65);box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.5))}.___SInlineInput_xoujo_gg_._state_invalid_xoujo_gg_ .___SUnderline_xoujo_gg_{border-bottom-color:var(--intergalactic-border-critical-active, #d1002f)}.___SInlineInput_xoujo_gg_._state_invalid_xoujo_gg_ .___SUnderline_xoujo_gg_:has(input:focus-visible){border-bottom-color:var(--intergalactic-border-critical-active, #d1002f);box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SValue_xoujo_gg_:focus~.___SControls_xoujo_gg_{display:flex}.___SInvalidPattern_xoujo_gg_{margin-left:-1px;margin-top:-1px;border-radius:0;height:calc(100% - 3px)}",
25
25
  "xoujo_gg_"
26
26
  ), {
27
- __SInlineInput: "___SInlineInput_xoujo_gg_",
28
- _disabled: "__disabled_xoujo_gg_",
29
- __SUnderline: "___SUnderline_xoujo_gg_",
30
- __SAddon: "___SAddon_xoujo_gg_",
31
- _state_valid: "_state_valid_xoujo_gg_",
32
- _state_invalid: "_state_invalid_xoujo_gg_",
33
- __SValue: "___SValue_xoujo_gg_",
34
- __SControls: "___SControls_xoujo_gg_",
35
- __SInvalidPattern: "___SInvalidPattern_xoujo_gg_",
36
- __SConfirmIcon: "___SConfirmIcon_xoujo_gg_",
37
- __SCancelIcon: "___SCancelIcon_xoujo_gg_",
38
- _type_number: "_type_number_xoujo_gg_"
27
+ "__SInlineInput": "___SInlineInput_xoujo_gg_",
28
+ "_disabled": "__disabled_xoujo_gg_",
29
+ "__SUnderline": "___SUnderline_xoujo_gg_",
30
+ "__SAddon": "___SAddon_xoujo_gg_",
31
+ "_state_valid": "_state_valid_xoujo_gg_",
32
+ "_state_invalid": "_state_invalid_xoujo_gg_",
33
+ "__SValue": "___SValue_xoujo_gg_",
34
+ "__SControls": "___SControls_xoujo_gg_",
35
+ "__SInvalidPattern": "___SInvalidPattern_xoujo_gg_",
36
+ "__SConfirmIcon": "___SConfirmIcon_xoujo_gg_",
37
+ "__SCancelIcon": "___SCancelIcon_xoujo_gg_",
38
+ "_type_number": "_type_number_xoujo_gg_"
39
39
  })
40
- ), F = function(n) {
41
- var l = n.x, e = n.y, o = n.rect;
42
- return l >= o.x && l <= o.x + o.width && e >= o.y && e <= o.y + o.height;
43
- }, j = /* @__PURE__ */ function(p) {
44
- E(l, p);
45
- var n = $(l);
46
- function l() {
47
- var e;
48
- R(this, l);
49
- for (var o = arguments.length, c = new Array(o), v = 0; v < o; v++)
50
- c[v] = arguments[v];
51
- return e = n.call.apply(n, [this].concat(c)), s(f(e), "rootRef", /* @__PURE__ */ _.createRef()), s(f(e), "inputRef", /* @__PURE__ */ _.createRef()), s(f(e), "inputHandlersRef", /* @__PURE__ */ _.createRef()), s(f(e), "initValue", ""), s(f(e), "lastMouseDownPosition", null), s(f(e), "lastHandledKeyboardEvent", -1), s(f(e), "handleDocumentMouseDown", function(t) {
52
- e.lastMouseDownPosition = {
53
- x: t.clientX,
54
- y: t.clientY
55
- }, e.lastHandledKeyboardEvent = -1;
56
- }), s(f(e), "handleDocumentKeyDown", function() {
57
- e.lastMouseDownPosition = null;
58
- }), s(f(e), "increment", function(t) {
59
- var a, r, i, d, u;
60
- ((a = e.inputRef.current) === null || a === void 0 ? void 0 : a.value) === "" && (e.inputRef.current.value = e.inputRef.current.min || "0"), (r = e.inputRef.current) === null || r === void 0 || (i = r.stepUp) === null || i === void 0 || i.call(r, t), (d = e.inputHandlersRef.current) === null || d === void 0 || d.value((u = e.inputRef.current) === null || u === void 0 ? void 0 : u.value, t);
61
- }), s(f(e), "decrement", function(t) {
62
- var a, r, i, d, u;
63
- ((a = e.inputRef.current) === null || a === void 0 ? void 0 : a.value) === "" && (e.inputRef.current.value = e.inputRef.current.max || "0"), (r = e.inputRef.current) === null || r === void 0 || (i = r.stepDown) === null || i === void 0 || i.call(r, t), (d = e.inputHandlersRef.current) === null || d === void 0 || d.value((u = e.inputRef.current) === null || u === void 0 ? void 0 : u.value, t);
64
- }), s(f(e), "handleMouseDownAddon", function(t) {
65
- var a;
66
- t.preventDefault(), (a = e.inputRef.current) === null || a === void 0 || a.focus();
67
- }), s(f(e), "handleConfirm", function(t, a) {
68
- var r, i;
69
- (r = (i = e.asProps).onConfirm) === null || r === void 0 || r.call(i, t, a);
70
- }), s(f(e), "handleCancel", function(t, a) {
71
- var r, i;
72
- (r = (i = e.asProps).onCancel) === null || r === void 0 || r.call(i, t, a);
73
- }), s(f(e), "handleBlur", function(t) {
74
- var a, r, i = e.asProps, d = i.onConfirm, u = i.onCancel, S = i.onBlurBehavior;
75
- if (S && !(Date.now() - e.lastHandledKeyboardEvent < 250) && !T(t.relatedTarget, e.rootRef.current)) {
76
- if (e.lastMouseDownPosition && e.rootRef.current) {
77
- var C = e.lastMouseDownPosition, g = C.x, h = C.y, x = e.rootRef.current.getBoundingClientRect();
78
- if (F({
79
- x: g,
80
- y: h,
81
- rect: x
82
- }))
83
- return;
40
+ );
41
+ var pointInsideOfRect = function pointInsideOfRect2(_ref17) {
42
+ var x = _ref17.x, y = _ref17.y, rect = _ref17.rect;
43
+ return x >= rect.x && x <= rect.x + rect.width && y >= rect.y && y <= rect.y + rect.height;
44
+ };
45
+ var InlineInputBase = /* @__PURE__ */ function(_Component) {
46
+ _inherits(InlineInputBase2, _Component);
47
+ var _super = _createSuper(InlineInputBase2);
48
+ function InlineInputBase2() {
49
+ var _this;
50
+ _classCallCheck(this, InlineInputBase2);
51
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52
+ args[_key] = arguments[_key];
53
+ }
54
+ _this = _super.call.apply(_super, [this].concat(args));
55
+ _defineProperty(_assertThisInitialized(_this), "rootRef", /* @__PURE__ */ React.createRef());
56
+ _defineProperty(_assertThisInitialized(_this), "inputRef", /* @__PURE__ */ React.createRef());
57
+ _defineProperty(_assertThisInitialized(_this), "inputHandlersRef", /* @__PURE__ */ React.createRef());
58
+ _defineProperty(_assertThisInitialized(_this), "initValue", "");
59
+ _defineProperty(_assertThisInitialized(_this), "lastMouseDownPosition", null);
60
+ _defineProperty(_assertThisInitialized(_this), "lastHandledKeyboardEvent", -1);
61
+ _defineProperty(_assertThisInitialized(_this), "handleDocumentMouseDown", function(event) {
62
+ _this.lastMouseDownPosition = {
63
+ x: event.clientX,
64
+ y: event.clientY
65
+ };
66
+ _this.lastHandledKeyboardEvent = -1;
67
+ });
68
+ _defineProperty(_assertThisInitialized(_this), "handleDocumentKeyDown", function() {
69
+ _this.lastMouseDownPosition = null;
70
+ });
71
+ _defineProperty(_assertThisInitialized(_this), "increment", function(event) {
72
+ var _this$inputRef$curren, _this$inputRef$curren2, _this$inputRef$curren3, _this$inputHandlersRe, _this$inputRef$curren4;
73
+ 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";
74
+ (_this$inputRef$curren2 = _this.inputRef.current) === null || _this$inputRef$curren2 === void 0 ? void 0 : (_this$inputRef$curren3 = _this$inputRef$curren2.stepUp) === null || _this$inputRef$curren3 === void 0 ? void 0 : _this$inputRef$curren3.call(_this$inputRef$curren2, event);
75
+ (_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
+ });
77
+ _defineProperty(_assertThisInitialized(_this), "decrement", function(event) {
78
+ var _this$inputRef$curren5, _this$inputRef$curren6, _this$inputRef$curren7, _this$inputHandlersRe2, _this$inputRef$curren8;
79
+ if (((_this$inputRef$curren5 = _this.inputRef.current) === null || _this$inputRef$curren5 === void 0 ? void 0 : _this$inputRef$curren5.value) === "") _this.inputRef.current.value = _this.inputRef.current.max || "0";
80
+ (_this$inputRef$curren6 = _this.inputRef.current) === null || _this$inputRef$curren6 === void 0 ? void 0 : (_this$inputRef$curren7 = _this$inputRef$curren6.stepDown) === null || _this$inputRef$curren7 === void 0 ? void 0 : _this$inputRef$curren7.call(_this$inputRef$curren6, event);
81
+ (_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);
82
+ });
83
+ _defineProperty(_assertThisInitialized(_this), "handleMouseDownAddon", function(event) {
84
+ var _this$inputRef$curren9;
85
+ event.preventDefault();
86
+ (_this$inputRef$curren9 = _this.inputRef.current) === null || _this$inputRef$curren9 === void 0 ? void 0 : _this$inputRef$curren9.focus();
87
+ });
88
+ _defineProperty(_assertThisInitialized(_this), "handleConfirm", function(text, event) {
89
+ var _this$asProps$onConfi, _this$asProps;
90
+ (_this$asProps$onConfi = (_this$asProps = _this.asProps).onConfirm) === null || _this$asProps$onConfi === void 0 ? void 0 : _this$asProps$onConfi.call(_this$asProps, text, event);
91
+ });
92
+ _defineProperty(_assertThisInitialized(_this), "handleCancel", function(prevText, event) {
93
+ var _this$asProps$onCance, _this$asProps2;
94
+ (_this$asProps$onCance = (_this$asProps2 = _this.asProps).onCancel) === null || _this$asProps$onCance === void 0 ? void 0 : _this$asProps$onCance.call(_this$asProps2, prevText, event);
95
+ });
96
+ _defineProperty(_assertThisInitialized(_this), "handleBlur", function(event) {
97
+ var _this$inputRef$curren10, _this$inputRef$curren11;
98
+ var _this$asProps3 = _this.asProps, onConfirm = _this$asProps3.onConfirm, onCancel = _this$asProps3.onCancel, onBlurBehavior = _this$asProps3.onBlurBehavior;
99
+ if (!onBlurBehavior) return;
100
+ if (Date.now() - _this.lastHandledKeyboardEvent < 250) return;
101
+ if (hasParent(event.relatedTarget, _this.rootRef.current)) return;
102
+ if (_this.lastMouseDownPosition && _this.rootRef.current) {
103
+ var _this$lastMouseDownPo = _this.lastMouseDownPosition, x = _this$lastMouseDownPo.x, y = _this$lastMouseDownPo.y;
104
+ var rect = _this.rootRef.current.getBoundingClientRect();
105
+ if (pointInsideOfRect({
106
+ x,
107
+ y,
108
+ rect
109
+ })) {
110
+ return;
84
111
  }
85
- S === "confirm" && (d == null || d((a = (r = e.inputRef.current) === null || r === void 0 ? void 0 : r.value) !== null && a !== void 0 ? a : "", t)), S === "cancel" && (u == null || u(e.initValue, t));
86
112
  }
87
- }), s(f(e), "handleKeyDown", function(t) {
88
- var a = e.asProps, r = a.onConfirm, i = a.onCancel;
89
- if (t.key === "Enter") {
90
- var d, u;
91
- r == null || r((d = (u = e.inputRef.current) === null || u === void 0 ? void 0 : u.value) !== null && d !== void 0 ? d : "", t), e.lastHandledKeyboardEvent = Date.now();
113
+ if (onBlurBehavior === "confirm") onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm((_this$inputRef$curren10 = (_this$inputRef$curren11 = _this.inputRef.current) === null || _this$inputRef$curren11 === void 0 ? void 0 : _this$inputRef$curren11.value) !== null && _this$inputRef$curren10 !== void 0 ? _this$inputRef$curren10 : "", event);
114
+ if (onBlurBehavior === "cancel") onCancel === null || onCancel === void 0 ? void 0 : onCancel(_this.initValue, event);
115
+ });
116
+ _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function(event) {
117
+ var _this$asProps4 = _this.asProps, onConfirm = _this$asProps4.onConfirm, onCancel = _this$asProps4.onCancel;
118
+ if (event.key === "Enter") {
119
+ var _this$inputRef$curren12, _this$inputRef$curren13;
120
+ onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm((_this$inputRef$curren12 = (_this$inputRef$curren13 = _this.inputRef.current) === null || _this$inputRef$curren13 === void 0 ? void 0 : _this$inputRef$curren13.value) !== null && _this$inputRef$curren12 !== void 0 ? _this$inputRef$curren12 : "", event);
121
+ _this.lastHandledKeyboardEvent = Date.now();
92
122
  }
93
- t.key === "Escape" && (i == null || i(e.initValue, t), e.lastHandledKeyboardEvent = Date.now());
94
- }), e;
123
+ if (event.key === "Escape") {
124
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel(_this.initValue, event);
125
+ _this.lastHandledKeyboardEvent = Date.now();
126
+ }
127
+ });
128
+ return _this;
95
129
  }
96
- return k(l, [{
130
+ _createClass(InlineInputBase2, [{
97
131
  key: "componentDidMount",
98
- value: function() {
99
- this.asProps.onBlurBehavior && (document.body.addEventListener("mousedown", this.handleDocumentMouseDown), document.body.addEventListener("keydown", this.handleDocumentKeyDown));
132
+ value: function componentDidMount() {
133
+ if (!this.asProps.onBlurBehavior) return;
134
+ document.body.addEventListener("mousedown", this.handleDocumentMouseDown);
135
+ document.body.addEventListener("keydown", this.handleDocumentKeyDown);
100
136
  }
101
137
  }, {
102
138
  key: "componentWillUnmount",
103
- value: function() {
104
- this.asProps.onBlurBehavior && (document.body.removeEventListener("mousedown", this.handleDocumentMouseDown), document.body.removeEventListener("keydown", this.handleDocumentKeyDown));
139
+ value: function componentWillUnmount() {
140
+ if (!this.asProps.onBlurBehavior) return;
141
+ document.body.removeEventListener("mousedown", this.handleDocumentMouseDown);
142
+ document.body.removeEventListener("keydown", this.handleDocumentKeyDown);
105
143
  }
106
144
  }, {
107
145
  key: "getAddonProps",
108
- value: function() {
146
+ value: function getAddonProps() {
109
147
  return {
110
148
  onMouseDown: this.handleMouseDownAddon
111
149
  };
112
150
  }
113
151
  }, {
114
152
  key: "getConfirmControlProps",
115
- value: function() {
116
- var o, c = this.asProps, v = c.loading, t = c.getI18nText;
153
+ value: function getConfirmControlProps() {
154
+ var _this$inputRef$curren14;
155
+ var _this$asProps5 = this.asProps, loading = _this$asProps5.loading, getI18nText = _this$asProps5.getI18nText;
117
156
  return {
118
- value: (o = this.inputRef.current) === null || o === void 0 ? void 0 : o.value,
119
- loading: v,
157
+ value: (_this$inputRef$curren14 = this.inputRef.current) === null || _this$inputRef$curren14 === void 0 ? void 0 : _this$inputRef$curren14.value,
158
+ loading,
120
159
  onConfirm: this.handleConfirm,
121
- getI18nText: t
160
+ getI18nText
122
161
  };
123
162
  }
124
163
  }, {
125
164
  key: "getCancelControlProps",
126
- value: function() {
127
- var o = this.asProps, c = o.loading, v = o.disabled, t = o.getI18nText;
165
+ value: function getCancelControlProps() {
166
+ var _this$asProps6 = this.asProps, loading = _this$asProps6.loading, disabled = _this$asProps6.disabled, getI18nText = _this$asProps6.getI18nText;
128
167
  return {
129
168
  value: this.initValue,
130
169
  // because double disabled(root disabled and addon disabled)
131
- disabled: c && !v,
170
+ disabled: loading && !disabled,
132
171
  onCancel: this.handleCancel,
133
- getI18nText: t
172
+ getI18nText
134
173
  };
135
174
  }
136
175
  }, {
137
176
  key: "getValueProps",
138
- value: function() {
139
- var o = this.asProps.state;
177
+ value: function getValueProps() {
178
+ var state = this.asProps.state;
140
179
  return {
141
180
  ref: this.inputRef,
142
- state: o,
181
+ state,
143
182
  onKeyDown: this.handleKeyDown
144
183
  };
145
184
  }
146
185
  }, {
147
186
  key: "getNumberValueProps",
148
- value: function() {
149
- var o = new Intl.NumberFormat(this.asProps.locale, {
187
+ value: function getNumberValueProps() {
188
+ var numberFormatter = new Intl.NumberFormat(this.asProps.locale, {
150
189
  style: "decimal"
151
190
  });
152
191
  return {
153
- numberFormatter: o,
192
+ numberFormatter,
154
193
  inputRef: this.inputRef,
155
194
  inputHandlerRefs: this.inputHandlersRef,
156
195
  increment: this.increment,
@@ -159,132 +198,166 @@ var L = (
159
198
  }
160
199
  }, {
161
200
  key: "getNumberControlsProps",
162
- value: function() {
163
- var o = this.asProps.getI18nText;
201
+ value: function getNumberControlsProps() {
202
+ var getI18nText = this.asProps.getI18nText;
164
203
  return {
165
204
  increment: this.increment,
166
205
  decrement: this.decrement,
167
- getI18nText: o
206
+ getI18nText
168
207
  };
169
208
  }
170
209
  }, {
171
210
  key: "render",
172
- value: function() {
173
- var o = this.asProps, c, v = I, t = "div", a = K, r = this.asProps, i = r.Children, d = r.styles, u = r.state;
174
- return c = m(d), /* @__PURE__ */ _.createElement(v, c.cn("SInlineInput", y({}, b({
175
- ref: this.rootRef,
176
- onBlur: this.handleBlur
177
- }, o))), /* @__PURE__ */ _.createElement(t, c.cn("SUnderline", {}), u === "invalid" && /* @__PURE__ */ _.createElement(a, c.cn("SInvalidPattern", {})), /* @__PURE__ */ _.createElement(i, c.cn("Children", {}))));
211
+ value: function render() {
212
+ var _ref = this.asProps, _ref8;
213
+ var SInlineInput = Box;
214
+ var SUnderline = "div";
215
+ var SInvalidPattern = InvalidStateBox;
216
+ var _this$asProps7 = this.asProps, Children = _this$asProps7.Children, styles = _this$asProps7.styles, state = _this$asProps7.state;
217
+ return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SInlineInput, _ref8.cn("SInlineInput", _objectSpread({}, assignProps({
218
+ "ref": this.rootRef,
219
+ "onBlur": this.handleBlur
220
+ }, _ref))), /* @__PURE__ */ React.createElement(SUnderline, _ref8.cn("SUnderline", {}), state === "invalid" && /* @__PURE__ */ React.createElement(SInvalidPattern, _ref8.cn("SInvalidPattern", {})), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {}))));
178
221
  }
179
- }]), l;
180
- }(D);
181
- s(j, "displayName", "InlineInput");
182
- s(j, "enhance", [z(B)]);
183
- s(j, "defaultProps", {
222
+ }]);
223
+ return InlineInputBase2;
224
+ }(Component);
225
+ _defineProperty(InlineInputBase, "displayName", "InlineInput");
226
+ _defineProperty(InlineInputBase, "enhance", [i18nEnhance(localizedMessages)]);
227
+ _defineProperty(InlineInputBase, "defaultProps", {
184
228
  state: "normal",
185
229
  onBlurBehavior: "confirm",
186
- i18n: B,
230
+ i18n: localizedMessages,
187
231
  locale: "en"
188
232
  });
189
- s(j, "style", L);
190
- var P = /* @__PURE__ */ function(p) {
191
- E(l, p);
192
- var n = $(l);
193
- function l() {
194
- return R(this, l), n.apply(this, arguments);
233
+ _defineProperty(InlineInputBase, "style", style);
234
+ var Value = /* @__PURE__ */ function(_Component2) {
235
+ _inherits(Value2, _Component2);
236
+ var _super2 = _createSuper(Value2);
237
+ function Value2() {
238
+ _classCallCheck(this, Value2);
239
+ return _super2.apply(this, arguments);
195
240
  }
196
- return k(l, [{
241
+ _createClass(Value2, [{
197
242
  key: "uncontrolledProps",
198
- value: function() {
243
+ value: function uncontrolledProps() {
199
244
  return {
200
- value: function(c) {
201
- return c.target.value;
245
+ value: function value(event) {
246
+ return event.target.value;
202
247
  }
203
248
  };
204
249
  }
205
250
  }, {
206
251
  key: "render",
207
- value: function() {
208
- var o = this.asProps, c, v = I;
209
- return c = m(this.asProps.styles), /* @__PURE__ */ _.createElement(v, c.cn("SValue", y({}, b({
210
- tag: "input",
211
- type: "text"
212
- }, o))));
252
+ value: function render() {
253
+ var _ref2 = this.asProps, _ref9;
254
+ var SValue = Box;
255
+ return _ref9 = sstyled(this.asProps.styles), /* @__PURE__ */ React.createElement(SValue, _ref9.cn("SValue", _objectSpread({}, assignProps({
256
+ "tag": "input",
257
+ "type": "text"
258
+ }, _ref2))));
213
259
  }
214
- }]), l;
215
- }(D);
216
- s(P, "defaultProps", {
260
+ }]);
261
+ return Value2;
262
+ }(Component);
263
+ _defineProperty(Value, "defaultProps", {
217
264
  defaultValue: ""
218
265
  });
219
- s(P, "enhance", [N()]);
220
- s(P, "hoistProps", ["disabled"]);
221
- var O = function(n) {
222
- var l = arguments[0], e, o = I;
223
- return e = m(n.styles), /* @__PURE__ */ _.createElement(o, e.cn("SAddon", y({}, b({}, l))));
224
- }, W = function(n) {
225
- var l = arguments[0], e, o, c, v = I, t = n.Children, a = n.children, r = (o = n.title) !== null && o !== void 0 ? o : n.getI18nText("confirm"), i = _.useCallback(function(g) {
226
- var h, x;
227
- (h = n.onConfirm) === null || h === void 0 || h.call(n, (x = n.value) !== null && x !== void 0 ? x : "", g);
228
- }, [n.onConfirm, n.value]), d = _.useCallback(function(g) {
229
- (g.key === "Enter" || g.key === " ") && (g.preventDefault(), g.stopPropagation(), i(g));
230
- }, [i]);
231
- if (n.loading) {
232
- var u;
233
- return u = m(n.styles), /* @__PURE__ */ _.createElement(v, u.cn("SAddon", y({}, b({}, l))), a ? /* @__PURE__ */ _.createElement(t, u.cn("Children", {})) : /* @__PURE__ */ _.createElement(H, u.cn("Spin", {
234
- size: "xs"
266
+ _defineProperty(Value, "enhance", [autoFocusEnhance()]);
267
+ _defineProperty(Value, "hoistProps", ["disabled"]);
268
+ var Addon = function Addon2(props) {
269
+ var _ref3 = arguments[0], _ref10;
270
+ var SAddon = Box;
271
+ return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref10.cn("SAddon", _objectSpread({}, assignProps({}, _ref3))));
272
+ };
273
+ var ConfirmControl = function ConfirmControl2(props) {
274
+ var _ref4 = arguments[0], _ref12, _props$title, _ref18;
275
+ var SAddon = Box;
276
+ var Children = props.Children, hasChildren = props.children;
277
+ var title = (_props$title = props.title) !== null && _props$title !== void 0 ? _props$title : props.getI18nText("confirm");
278
+ var handleConfirm = React.useCallback(function(event) {
279
+ var _props$onConfirm, _props$value;
280
+ (_props$onConfirm = props.onConfirm) === null || _props$onConfirm === void 0 ? void 0 : _props$onConfirm.call(props, (_props$value = props.value) !== null && _props$value !== void 0 ? _props$value : "", event);
281
+ }, [props.onConfirm, props.value]);
282
+ var handleKeydown = React.useCallback(function(event) {
283
+ if (event.key === "Enter" || event.key === " ") {
284
+ event.preventDefault();
285
+ event.stopPropagation();
286
+ handleConfirm(event);
287
+ }
288
+ }, [handleConfirm]);
289
+ if (props.loading) {
290
+ var _ref11;
291
+ return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref11.cn("SAddon", _objectSpread({}, assignProps({}, _ref4))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})) : /* @__PURE__ */ React.createElement(Spin, _ref11.cn("Spin", {
292
+ "size": "xs"
235
293
  })));
236
294
  }
237
- var S = m(n.styles), C = S.cn("SConfirmIcon", {});
238
- return e = m(n.styles), /* @__PURE__ */ _.createElement(v, e.cn("SAddon", y({}, b({
239
- onKeyDown: d
240
- }, l))), a ? /* @__PURE__ */ _.createElement(t, e.cn("Children", {})) : /* @__PURE__ */ _.createElement(V, e.cn("ButtonLink", {
241
- addonLeft: (c = n.icon) !== null && c !== void 0 ? c : U,
242
- use: "secondary",
243
- onClick: i,
244
- className: C.className,
245
- style: C.style,
246
- "aria-label": r
295
+ var sstyles = sstyled(props.styles);
296
+ var sConfirmIconStyles = sstyles.cn("SConfirmIcon", {});
297
+ return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref12.cn("SAddon", _objectSpread({}, assignProps({
298
+ "onKeyDown": handleKeydown
299
+ }, _ref4))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref12.cn("Children", {})) : /* @__PURE__ */ React.createElement(ButtonLink, _ref12.cn("ButtonLink", {
300
+ "addonLeft": (_ref18 = props.icon) !== null && _ref18 !== void 0 ? _ref18 : CheckM,
301
+ "use": "secondary",
302
+ "onClick": handleConfirm,
303
+ "className": sConfirmIconStyles.className,
304
+ "style": sConfirmIconStyles.style,
305
+ "aria-label": title
247
306
  })));
248
- }, X = function(n) {
249
- var l = arguments[0], e, o, c, v = I, t = n.Children, a = n.children, r = (o = n.title) !== null && o !== void 0 ? o : n.getI18nText("discard"), i = _.useCallback(function(g) {
250
- var h, x;
251
- (h = n.onCancel) === null || h === void 0 || h.call(n, (x = n.value) !== null && x !== void 0 ? x : "", g);
252
- }, [n.onCancel, n.value]), d = _.useCallback(function(g) {
253
- (g.key === "Enter" || g.key === " ") && (g.preventDefault(), g.stopPropagation(), i(g));
254
- }, [i]);
255
- if (n.disabled) {
256
- var u;
257
- return u = m(n.styles), /* @__PURE__ */ _.createElement(v, u.cn("SAddon", y({}, b({}, l))), a ? /* @__PURE__ */ _.createElement(t, u.cn("Children", {})) : /* @__PURE__ */ _.createElement(w, u.cn("CloseM", {})));
307
+ };
308
+ var CancelControl = function CancelControl2(props) {
309
+ var _ref5 = arguments[0], _ref14, _props$title2, _ref19;
310
+ var SAddon = Box;
311
+ var Children = props.Children, hasChildren = props.children;
312
+ var title = (_props$title2 = props.title) !== null && _props$title2 !== void 0 ? _props$title2 : props.getI18nText("discard");
313
+ var handleCancel = React.useCallback(function(event) {
314
+ var _props$onCancel, _props$value2;
315
+ (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, (_props$value2 = props.value) !== null && _props$value2 !== void 0 ? _props$value2 : "", event);
316
+ }, [props.onCancel, props.value]);
317
+ var handleKeydown = React.useCallback(function(event) {
318
+ if (event.key === "Enter" || event.key === " ") {
319
+ event.preventDefault();
320
+ event.stopPropagation();
321
+ handleCancel(event);
322
+ }
323
+ }, [handleCancel]);
324
+ if (props.disabled) {
325
+ var _ref13;
326
+ return _ref13 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref13.cn("SAddon", _objectSpread({}, assignProps({}, _ref5))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref13.cn("Children", {})) : /* @__PURE__ */ React.createElement(CloseM, _ref13.cn("CloseM", {})));
258
327
  }
259
- var S = m(n.styles), C = S.cn("SCancelIcon", {});
260
- return e = m(n.styles), /* @__PURE__ */ _.createElement(v, e.cn("SAddon", y({}, b({
261
- onKeyDown: d
262
- }, l))), a ? /* @__PURE__ */ _.createElement(t, e.cn("Children", {})) : /* @__PURE__ */ _.createElement(V, e.cn("ButtonLink", {
263
- use: "secondary",
264
- addonLeft: (c = n.icon) !== null && c !== void 0 ? c : w,
265
- onClick: i,
266
- className: C.className,
267
- style: C.style,
268
- "aria-label": r
328
+ var sstyles = sstyled(props.styles);
329
+ var sCancelIconStyles = sstyles.cn("SCancelIcon", {});
330
+ return _ref14 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref14.cn("SAddon", _objectSpread({}, assignProps({
331
+ "onKeyDown": handleKeydown
332
+ }, _ref5))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref14.cn("Children", {})) : /* @__PURE__ */ React.createElement(ButtonLink, _ref14.cn("ButtonLink", {
333
+ "use": "secondary",
334
+ "addonLeft": (_ref19 = props.icon) !== null && _ref19 !== void 0 ? _ref19 : CloseM,
335
+ "onClick": handleCancel,
336
+ "className": sCancelIconStyles.className,
337
+ "style": sCancelIconStyles.style,
338
+ "aria-label": title
269
339
  })));
270
- }, Y = function(n) {
271
- var l = arguments[0], e, o = A.Value;
272
- return e = m(n.styles), /* @__PURE__ */ _.createElement(o, e.cn("SValue", y({}, b({}, l))));
273
340
  };
274
- function q(p) {
275
- var n = arguments[0], l, e = A.Controls;
276
- return l = m(p.styles), /* @__PURE__ */ _.createElement(e, l.cn("SControls", y({}, b({
277
- tag: G.Addon
278
- }, n))));
341
+ var NumberValue = function NumberValue2(props) {
342
+ var _ref6 = arguments[0], _ref15;
343
+ var SValue = InputNumber.Value;
344
+ return _ref15 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SValue, _ref15.cn("SValue", _objectSpread({}, assignProps({}, _ref6))));
345
+ };
346
+ function NumberControls(props) {
347
+ var _ref7 = arguments[0], _ref16;
348
+ var SControls = InputNumber.Controls;
349
+ return _ref16 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SControls, _ref16.cn("SControls", _objectSpread({}, assignProps({
350
+ "tag": InlineInput.Addon
351
+ }, _ref7))));
279
352
  }
280
- var G = M(j, {
281
- Addon: O,
282
- Value: P,
283
- ConfirmControl: W,
284
- CancelControl: X,
285
- NumberValue: Y,
286
- NumberControls: q
353
+ var InlineInput = createComponent(InlineInputBase, {
354
+ Addon,
355
+ Value,
356
+ ConfirmControl,
357
+ CancelControl,
358
+ NumberValue,
359
+ NumberControls
287
360
  });
288
361
  export {
289
- G as default
362
+ InlineInput as default
290
363
  };
package/lib/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import e from "./InlineInput.mjs";
1
+ import InlineInput from "./InlineInput.mjs";
2
2
  export {
3
- e as default
3
+ InlineInput as default
4
4
  };
@@ -1,33 +1,33 @@
1
- import r from "./de.json.mjs";
2
- import o from "./en.json.mjs";
3
- import m from "./es.json.mjs";
4
- import t from "./fr.json.mjs";
5
- import i from "./it.json.mjs";
6
- import p from "./ja.json.mjs";
7
- import f from "./ko.json.mjs";
8
- import e from "./nl.json.mjs";
9
- import s from "./pt.json.mjs";
10
- import a from "./tr.json.mjs";
11
- import l from "./vi.json.mjs";
12
- import v from "./zh.json.mjs";
13
- import d from "./pl.json.mjs";
14
- import n from "./sv.json.mjs";
15
- var B = {
16
- de: r,
17
- en: o,
18
- es: m,
19
- fr: t,
20
- it: i,
21
- ja: p,
22
- ko: f,
23
- nl: e,
24
- pt: s,
25
- tr: a,
26
- vi: l,
27
- zh: v,
28
- pl: d,
29
- sv: n
1
+ import de from "./de.json.mjs";
2
+ import en from "./en.json.mjs";
3
+ import es from "./es.json.mjs";
4
+ import fr from "./fr.json.mjs";
5
+ import it from "./it.json.mjs";
6
+ import ja from "./ja.json.mjs";
7
+ import ko from "./ko.json.mjs";
8
+ import nl from "./nl.json.mjs";
9
+ import pt from "./pt.json.mjs";
10
+ import tr from "./tr.json.mjs";
11
+ import vi from "./vi.json.mjs";
12
+ import zh from "./zh.json.mjs";
13
+ import pl from "./pl.json.mjs";
14
+ import sv from "./sv.json.mjs";
15
+ var localizedMessages = {
16
+ de,
17
+ en,
18
+ es,
19
+ fr,
20
+ it,
21
+ ja,
22
+ ko,
23
+ nl,
24
+ pt,
25
+ tr,
26
+ vi,
27
+ zh,
28
+ pl,
29
+ sv
30
30
  };
31
31
  export {
32
- B as localizedMessages
32
+ localizedMessages
33
33
  };
@@ -1,9 +1,11 @@
1
- const c = "Speichern", e = "Abbrechen", n = {
2
- confirm: c,
3
- discard: e
1
+ const confirm = "Speichern";
2
+ const discard = "Abbrechen";
3
+ const de = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- n as default,
8
- e as discard
8
+ confirm,
9
+ de as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "Save", n = "Cancel", a = {
2
- confirm: c,
3
- discard: n
1
+ const confirm = "Save";
2
+ const discard = "Cancel";
3
+ const en = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- a as default,
8
- n as discard
8
+ confirm,
9
+ en as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const a = "Guardar", c = "Cancelar", r = {
2
- confirm: a,
3
- discard: c
1
+ const confirm = "Guardar";
2
+ const discard = "Cancelar";
3
+ const es = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- a as confirm,
7
- r as default,
8
- c as discard
8
+ confirm,
9
+ es as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const r = "Enregistrer", n = "Annuler", c = {
2
- confirm: r,
3
- discard: n
1
+ const confirm = "Enregistrer";
2
+ const discard = "Annuler";
3
+ const fr = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- r as confirm,
7
- c as default,
8
- n as discard
8
+ confirm,
9
+ fr as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const a = "Salva", c = "Annulla", n = {
2
- confirm: a,
3
- discard: c
1
+ const confirm = "Salva";
2
+ const discard = "Annulla";
3
+ const it = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- a as confirm,
7
- n as default,
8
- c as discard
8
+ confirm,
9
+ it as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "保存", o = "取り消す", s = {
2
- confirm: c,
3
- discard: o
1
+ const confirm = "保存";
2
+ const discard = "取り消す";
3
+ const ja = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- s as default,
8
- o as discard
8
+ confirm,
9
+ ja as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "저장", o = "취소", s = {
2
- confirm: c,
3
- discard: o
1
+ const confirm = "저장";
2
+ const discard = "취소";
3
+ const ko = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- s as default,
8
- o as discard
8
+ confirm,
9
+ ko as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const n = "Opslaan", c = "Annuleren", s = {
2
- confirm: n,
3
- discard: c
1
+ const confirm = "Opslaan";
2
+ const discard = "Annuleren";
3
+ const nl = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- n as confirm,
7
- s as default,
8
- c as discard
8
+ confirm,
9
+ nl as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "Zapisz", s = "Anuluj", n = {
2
- confirm: c,
3
- discard: s
1
+ const confirm = "Zapisz";
2
+ const discard = "Anuluj";
3
+ const pl = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- n as default,
8
- s as discard
8
+ confirm,
9
+ pl as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const a = "Salvar", c = "Cancelar", r = {
2
- confirm: a,
3
- discard: c
1
+ const confirm = "Salvar";
2
+ const discard = "Cancelar";
3
+ const pt = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- a as confirm,
7
- r as default,
8
- c as discard
8
+ confirm,
9
+ pt as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "Spara", r = "Avbryt", s = {
2
- confirm: c,
3
- discard: r
1
+ const confirm = "Spara";
2
+ const discard = "Avbryt";
3
+ const sv = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- s as default,
8
- r as discard
8
+ confirm,
9
+ sv as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = "Kaydet", c = "İptal et", a = {
2
- confirm: t,
3
- discard: c
1
+ const confirm = "Kaydet";
2
+ const discard = "İptal et";
3
+ const tr = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- t as confirm,
7
- a as default,
8
- c as discard
8
+ confirm,
9
+ tr as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "Lưu", o = "Hủy", s = {
2
- confirm: c,
3
- discard: o
1
+ const confirm = "Lưu";
2
+ const discard = "Hủy";
3
+ const vi = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- s as default,
8
- o as discard
8
+ confirm,
9
+ vi as default,
10
+ discard
9
11
  };
@@ -1,9 +1,11 @@
1
- const c = "保存", o = "取消", s = {
2
- confirm: c,
3
- discard: o
1
+ const confirm = "保存";
2
+ const discard = "取消";
3
+ const zh = {
4
+ confirm,
5
+ discard
4
6
  };
5
7
  export {
6
- c as confirm,
7
- s as default,
8
- o as discard
8
+ confirm,
9
+ zh as default,
10
+ discard
9
11
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/inline-input",
3
3
  "description": "Semrush Input Component",
4
- "version": "16.0.0-prerelease.6",
4
+ "version": "16.0.0-prerelease.7",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,13 +14,13 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/flex-box": "16.0.0-prerelease.6",
18
- "@semcore/icon": "16.0.0-prerelease.6",
19
- "@semcore/spin": "16.0.0-prerelease.6",
20
- "@semcore/tooltip": "16.0.0-prerelease.6",
21
- "@semcore/input-number": "16.0.0-prerelease.6",
22
- "@semcore/input": "16.0.0-prerelease.6",
23
- "@semcore/button": "16.0.0-prerelease.6"
17
+ "@semcore/flex-box": "16.0.0-prerelease.7",
18
+ "@semcore/icon": "16.0.0-prerelease.7",
19
+ "@semcore/spin": "16.0.0-prerelease.7",
20
+ "@semcore/tooltip": "16.0.0-prerelease.7",
21
+ "@semcore/input-number": "16.0.0-prerelease.7",
22
+ "@semcore/input": "16.0.0-prerelease.7",
23
+ "@semcore/button": "16.0.0-prerelease.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/react": "18.0.21",
@@ -29,7 +29,7 @@
29
29
  "@semcore/tooltip": "*"
30
30
  },
31
31
  "peerDependencies": {
32
- "@semcore/base-components": "^16.0.0-prerelease.6"
32
+ "@semcore/base-components": "^16.0.0-prerelease.7"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",