@oliasoft-open-source/react-ui-library 4.19.6 → 4.20.0-beta-1
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/index.d.ts +3 -1
- package/dist/index.js +64 -73
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare enum BreadcrumbLinkType {
|
|
|
43
43
|
CUSTOM = "custom"
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export declare const Button: ({ active, basic, colored, disabled, ignoreDisabledContext, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, }: IButtonProps) => JSX_2.Element;
|
|
46
|
+
export declare const Button: ({ active, basic, colored, disabled, ignoreDisabledContext, groupOrder, icon, label, loading, name, pill, round, small, styles, width, title, type, onClick, error, warning, testId, tooltip, inverted, component: Component, url, tabIndex, }: IButtonProps) => JSX_2.Element;
|
|
47
47
|
|
|
48
48
|
export declare const ButtonGroup: (props: IButtonGroupProps) => JSX_2.Element;
|
|
49
49
|
|
|
@@ -227,6 +227,7 @@ export declare interface IButtonProps {
|
|
|
227
227
|
inverted?: boolean;
|
|
228
228
|
component?: default_2.ElementType;
|
|
229
229
|
url?: string;
|
|
230
|
+
tabIndex?: number;
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
export declare interface ICardProps {
|
|
@@ -766,6 +767,7 @@ export declare interface IMenuProps {
|
|
|
766
767
|
warning?: any;
|
|
767
768
|
title?: string;
|
|
768
769
|
selected?: boolean;
|
|
770
|
+
tabIndex?: number;
|
|
769
771
|
}
|
|
770
772
|
|
|
771
773
|
export declare interface IMenuSection {
|
package/dist/index.js
CHANGED
|
@@ -199,27 +199,21 @@ function _objectWithoutPropertiesLoose$5(r2, e2) {
|
|
|
199
199
|
}
|
|
200
200
|
return t;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
(function(module) {
|
|
208
|
-
function _extends3() {
|
|
209
|
-
return module.exports = _extends3 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
210
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
211
|
-
var t = arguments[e2];
|
|
212
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
213
|
-
}
|
|
214
|
-
return n2;
|
|
215
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends3.apply(null, arguments);
|
|
202
|
+
function _extends$4() {
|
|
203
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
204
|
+
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
205
|
+
var t = arguments[e2];
|
|
206
|
+
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
216
207
|
}
|
|
217
|
-
|
|
218
|
-
}
|
|
219
|
-
return _extends$6.exports;
|
|
208
|
+
return n2;
|
|
209
|
+
}, _extends$4.apply(null, arguments);
|
|
220
210
|
}
|
|
221
|
-
|
|
222
|
-
|
|
211
|
+
const _extends$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
212
|
+
__proto__: null,
|
|
213
|
+
get default() {
|
|
214
|
+
return _extends$4;
|
|
215
|
+
}
|
|
216
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
223
217
|
function _setPrototypeOf$3(t, e2) {
|
|
224
218
|
return _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
|
|
225
219
|
return t2.__proto__ = e3, t2;
|
|
@@ -798,7 +792,7 @@ var ReactSVG = /* @__PURE__ */ function(_React$Component) {
|
|
|
798
792
|
};
|
|
799
793
|
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
800
794
|
var _this3 = this;
|
|
801
|
-
if (shallowDiffers(_extends$
|
|
795
|
+
if (shallowDiffers(_extends$4({}, prevProps), this.props)) {
|
|
802
796
|
this.setState(function() {
|
|
803
797
|
return _this3.initialState;
|
|
804
798
|
}, function() {
|
|
@@ -826,7 +820,7 @@ var ReactSVG = /* @__PURE__ */ function(_React$Component) {
|
|
|
826
820
|
_this$props2.useRequestCache;
|
|
827
821
|
var wrapper2 = _this$props2.wrapper, rest = _objectWithoutPropertiesLoose$5(_this$props2, _excluded$8);
|
|
828
822
|
var Wrapper2 = wrapper2;
|
|
829
|
-
return /* @__PURE__ */ React$4.createElement(Wrapper2, _extends$
|
|
823
|
+
return /* @__PURE__ */ React$4.createElement(Wrapper2, _extends$4({}, rest, {
|
|
830
824
|
ref: this.refCallback
|
|
831
825
|
}, wrapper2 === "svg" ? {
|
|
832
826
|
xmlns: svgNamespace,
|
|
@@ -2241,8 +2235,8 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2241
2235
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
2242
2236
|
return Constructor;
|
|
2243
2237
|
}
|
|
2244
|
-
function _extends$
|
|
2245
|
-
_extends$
|
|
2238
|
+
function _extends$3() {
|
|
2239
|
+
_extends$3 = Object.assign || function(target) {
|
|
2246
2240
|
for (var i = 1; i < arguments.length; i++) {
|
|
2247
2241
|
var source = arguments[i];
|
|
2248
2242
|
for (var key2 in source) {
|
|
@@ -2253,7 +2247,7 @@ function _extends$4() {
|
|
|
2253
2247
|
}
|
|
2254
2248
|
return target;
|
|
2255
2249
|
};
|
|
2256
|
-
return _extends$
|
|
2250
|
+
return _extends$3.apply(this, arguments);
|
|
2257
2251
|
}
|
|
2258
2252
|
function _inheritsLoose$2(subClass, superClass) {
|
|
2259
2253
|
subClass.prototype = Object.create(superClass.prototype);
|
|
@@ -2577,7 +2571,7 @@ function useTrackElements(_ref) {
|
|
|
2577
2571
|
var layerRef = useTrackRef(useCallback(function(layer2) {
|
|
2578
2572
|
var _get3 = get3(), previousLayer = _get3.layer;
|
|
2579
2573
|
set2(function(state) {
|
|
2580
|
-
return _extends$
|
|
2574
|
+
return _extends$3({}, state, {
|
|
2581
2575
|
layer: layer2
|
|
2582
2576
|
});
|
|
2583
2577
|
});
|
|
@@ -2600,7 +2594,7 @@ function useTrackElements(_ref) {
|
|
|
2600
2594
|
var scrollContainers = getScrollContainers(trigger2);
|
|
2601
2595
|
var _get4 = get3(), previousTrigger = _get4.trigger;
|
|
2602
2596
|
set2(function(state) {
|
|
2603
|
-
return _extends$
|
|
2597
|
+
return _extends$3({}, state, {
|
|
2604
2598
|
trigger: trigger2,
|
|
2605
2599
|
scrollContainers
|
|
2606
2600
|
});
|
|
@@ -2613,7 +2607,7 @@ function useTrackElements(_ref) {
|
|
|
2613
2607
|
return;
|
|
2614
2608
|
}
|
|
2615
2609
|
set2(function(state) {
|
|
2616
|
-
return _extends$
|
|
2610
|
+
return _extends$3({}, state, {
|
|
2617
2611
|
scrollContainers: getScrollContainers(triggerOptionParent)
|
|
2618
2612
|
});
|
|
2619
2613
|
});
|
|
@@ -2780,7 +2774,7 @@ var BoundSide = {
|
|
|
2780
2774
|
left: /* @__PURE__ */ createSide("left"),
|
|
2781
2775
|
right: /* @__PURE__ */ createSide("right")
|
|
2782
2776
|
};
|
|
2783
|
-
var Side = /* @__PURE__ */ _extends$
|
|
2777
|
+
var Side = /* @__PURE__ */ _extends$3({}, BoundSide, {
|
|
2784
2778
|
center: /* @__PURE__ */ createSide("center")
|
|
2785
2779
|
});
|
|
2786
2780
|
var SIDES = ["top", "left", "bottom", "right"];
|
|
@@ -2876,7 +2870,7 @@ var Bounds = /* @__PURE__ */ function() {
|
|
|
2876
2870
|
var _environment$getCompu = environment2.getComputedStyle(element), width2 = _environment$getCompu.width, height2 = _environment$getCompu.height, boxSizing = _environment$getCompu.boxSizing, borderLeft = _environment$getCompu.borderLeft, borderRight = _environment$getCompu.borderRight, borderTop = _environment$getCompu.borderTop, borderBottom = _environment$getCompu.borderBottom, paddingLeft = _environment$getCompu.paddingLeft, paddingRight = _environment$getCompu.paddingRight, paddingTop = _environment$getCompu.paddingTop, paddingBottom = _environment$getCompu.paddingBottom;
|
|
2877
2871
|
var boxWidth = boxSizing === "border-box" ? getPixelValue(width2) : sumOfPropertyValues(width2, borderLeft, borderRight, paddingLeft, paddingRight);
|
|
2878
2872
|
var boxHeight = boxSizing === "border-box" ? getPixelValue(height2) : sumOfPropertyValues(height2, borderTop, borderBottom, paddingTop, paddingBottom);
|
|
2879
|
-
bounds = new Bounds2(_extends$
|
|
2873
|
+
bounds = new Bounds2(_extends$3({}, bounds, {
|
|
2880
2874
|
width: boxWidth,
|
|
2881
2875
|
height: boxHeight
|
|
2882
2876
|
}));
|
|
@@ -2923,7 +2917,7 @@ var Bounds = /* @__PURE__ */ function() {
|
|
|
2923
2917
|
};
|
|
2924
2918
|
_proto.merge = function merge(partialBoundsOrMergeFn) {
|
|
2925
2919
|
var current = this.toObject();
|
|
2926
|
-
return new Bounds2(_extends$
|
|
2920
|
+
return new Bounds2(_extends$3({}, current, typeof partialBoundsOrMergeFn === "function" ? partialBoundsOrMergeFn(current) : partialBoundsOrMergeFn));
|
|
2927
2921
|
};
|
|
2928
2922
|
_proto.substract = function substract(bounds) {
|
|
2929
2923
|
var result = this.toObject();
|
|
@@ -2990,7 +2984,7 @@ var Placement = /* @__PURE__ */ function() {
|
|
|
2990
2984
|
typeof layerDimensions === "function" ? layerDimensions(this.primary.prop) : layerDimensions
|
|
2991
2985
|
);
|
|
2992
2986
|
this.subjectsBounds = subjectBounds.merge({
|
|
2993
|
-
layer: _extends$
|
|
2987
|
+
layer: _extends$3({}, subjectBounds.layer, dimensions)
|
|
2994
2988
|
});
|
|
2995
2989
|
};
|
|
2996
2990
|
_proto.getLayerBounds = function getLayerBounds(secondaryOffset) {
|
|
@@ -3165,7 +3159,7 @@ function getArrowStyle(subjectsBounds, placement, arrowOffset) {
|
|
|
3165
3159
|
var primarySide = placement.primary.prop;
|
|
3166
3160
|
var secondarySide = placement.primary.oppositeCssProp;
|
|
3167
3161
|
var secondaryValue = triggerIsBigger ? layer2[sizeProperty] / 2 + negativeOffset : trigger2[secondarySide] + trigger2[sizeProperty] / 2 - layer2[secondarySide];
|
|
3168
|
-
return _extends$
|
|
3162
|
+
return _extends$3({}, STYLE_BASE, (_extends22 = {}, _extends22[primarySide] = "100%", _extends22[secondarySide] = limit(secondaryValue, min, max), _extends22));
|
|
3169
3163
|
}
|
|
3170
3164
|
var Placements = /* @__PURE__ */ function() {
|
|
3171
3165
|
function Placements2(placements, config, subjectsBounds) {
|
|
@@ -3294,11 +3288,11 @@ var Placements = /* @__PURE__ */ function() {
|
|
|
3294
3288
|
var arrow2 = getArrowStyle(this.subjectsBounds.merge({
|
|
3295
3289
|
layer: layerBounds
|
|
3296
3290
|
}), placement, this.config.arrowOffset);
|
|
3297
|
-
var layer2 = this.config.overflowContainer ? _extends$
|
|
3291
|
+
var layer2 = this.config.overflowContainer ? _extends$3({}, layerStyleBase, {
|
|
3298
3292
|
position: "fixed",
|
|
3299
3293
|
top: layerBounds.top,
|
|
3300
3294
|
left: layerBounds.left
|
|
3301
|
-
}) : _extends$
|
|
3295
|
+
}) : _extends$3({}, layerStyleBase, {
|
|
3302
3296
|
position: "absolute",
|
|
3303
3297
|
top: layerBounds.top - this.subjectsBounds.parent.top + scrollOffsets.top - borderOffsets.top,
|
|
3304
3298
|
left: layerBounds.left - this.subjectsBounds.parent.left + scrollOffsets.left - borderOffsets.left
|
|
@@ -3373,7 +3367,7 @@ var SubjectsBounds = /* @__PURE__ */ function() {
|
|
|
3373
3367
|
};
|
|
3374
3368
|
var _proto = SubjectsBounds2.prototype;
|
|
3375
3369
|
_proto.merge = function merge(subjectsBounds) {
|
|
3376
|
-
return new SubjectsBounds2(_extends$
|
|
3370
|
+
return new SubjectsBounds2(_extends$3({}, this, subjectsBounds), this.overflowContainer);
|
|
3377
3371
|
};
|
|
3378
3372
|
_proto.offsetsToScrollContainers = function offsetsToScrollContainers(subject, allContainers) {
|
|
3379
3373
|
if (allContainers === void 0) {
|
|
@@ -3608,10 +3602,10 @@ var Arrow = /* @__PURE__ */ forwardRef(function Arrow2(_ref2, ref) {
|
|
|
3608
3602
|
var sizeA = size2;
|
|
3609
3603
|
var sizeB = getWidthBasedOnAngle(angle, size2) * 2;
|
|
3610
3604
|
var maxSize = Math.max(sizeA, sizeB);
|
|
3611
|
-
return createElement("svg", _extends$
|
|
3605
|
+
return createElement("svg", _extends$3({
|
|
3612
3606
|
ref
|
|
3613
3607
|
}, rest, {
|
|
3614
|
-
style: _extends$
|
|
3608
|
+
style: _extends$3({}, style, {
|
|
3615
3609
|
transform: "translate" + (side.isHorizontal ? "Y" : "X") + "(-50%)"
|
|
3616
3610
|
}),
|
|
3617
3611
|
width: maxSize,
|
|
@@ -4107,7 +4101,8 @@ const Button$1 = ({
|
|
|
4107
4101
|
inverted: inverted2 = false,
|
|
4108
4102
|
// *Deprecated*
|
|
4109
4103
|
component: Component2 = "button",
|
|
4110
|
-
url
|
|
4104
|
+
url,
|
|
4105
|
+
tabIndex
|
|
4111
4106
|
}) => {
|
|
4112
4107
|
const disabledContext = useContext(DisabledContext);
|
|
4113
4108
|
const color2 = (() => {
|
|
@@ -4168,6 +4163,7 @@ const Button$1 = ({
|
|
|
4168
4163
|
"data-warning": warning2 || null,
|
|
4169
4164
|
"data-testid": testId,
|
|
4170
4165
|
to: url,
|
|
4166
|
+
tabIndex,
|
|
4171
4167
|
children: [
|
|
4172
4168
|
icon2 && /* @__PURE__ */ jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }),
|
|
4173
4169
|
loading && /* @__PURE__ */ jsx("span", { className: buttonStyles.icon, children: /* @__PURE__ */ jsx(
|
|
@@ -4575,7 +4571,8 @@ const Button = ({
|
|
|
4575
4571
|
loading,
|
|
4576
4572
|
error: error2,
|
|
4577
4573
|
warning: warning2,
|
|
4578
|
-
active: active2
|
|
4574
|
+
active: active2,
|
|
4575
|
+
tabIndex
|
|
4579
4576
|
}) => {
|
|
4580
4577
|
const disabledContext = useContext(DisabledContext);
|
|
4581
4578
|
const buttonLabel2 = trigger2 === TriggerType.BUTTON ? label2 : trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsxs("span", { className: styles$M.middleAlignedInline, children: [
|
|
@@ -4604,7 +4601,8 @@ const Button = ({
|
|
|
4604
4601
|
disabled: disabled2,
|
|
4605
4602
|
error: error2,
|
|
4606
4603
|
warning: warning2,
|
|
4607
|
-
active: active2
|
|
4604
|
+
active: active2,
|
|
4605
|
+
tabIndex
|
|
4608
4606
|
}
|
|
4609
4607
|
)
|
|
4610
4608
|
}
|
|
@@ -4698,6 +4696,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4698
4696
|
tooltip: tooltip2,
|
|
4699
4697
|
testId,
|
|
4700
4698
|
selected: selected2,
|
|
4699
|
+
tabIndex,
|
|
4701
4700
|
...restProps
|
|
4702
4701
|
}, ref) => {
|
|
4703
4702
|
const triggerElement = trigger2 === TriggerType.BUTTON || trigger2 === TriggerType.DROP_DOWN_BUTTON ? /* @__PURE__ */ jsx(
|
|
@@ -4713,7 +4712,8 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4713
4712
|
loading,
|
|
4714
4713
|
error: error2,
|
|
4715
4714
|
warning: warning2,
|
|
4716
|
-
active: isOpen2
|
|
4715
|
+
active: isOpen2,
|
|
4716
|
+
tabIndex
|
|
4717
4717
|
}
|
|
4718
4718
|
) : trigger2 === TriggerType.TEXT ? /* @__PURE__ */ jsx(
|
|
4719
4719
|
Text$1,
|
|
@@ -4879,7 +4879,8 @@ const DropDownMenu = ({
|
|
|
4879
4879
|
tooltip: tooltip2,
|
|
4880
4880
|
error: error2,
|
|
4881
4881
|
warning: warning2,
|
|
4882
|
-
selected: selected2
|
|
4882
|
+
selected: selected2,
|
|
4883
|
+
tabIndex
|
|
4883
4884
|
}) => {
|
|
4884
4885
|
const disabledContext = useContext(DisabledContext);
|
|
4885
4886
|
const {
|
|
@@ -4949,7 +4950,8 @@ const DropDownMenu = ({
|
|
|
4949
4950
|
error: error2,
|
|
4950
4951
|
warning: warning2,
|
|
4951
4952
|
testId,
|
|
4952
|
-
selected: selected2
|
|
4953
|
+
selected: selected2,
|
|
4954
|
+
tabIndex
|
|
4953
4955
|
}
|
|
4954
4956
|
),
|
|
4955
4957
|
isOpen2 && renderLayer(
|
|
@@ -8275,8 +8277,8 @@ function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
|
8275
8277
|
}
|
|
8276
8278
|
return newObj;
|
|
8277
8279
|
}
|
|
8278
|
-
function _extends$
|
|
8279
|
-
_extends$
|
|
8280
|
+
function _extends$2() {
|
|
8281
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8280
8282
|
for (var i = 1; i < arguments.length; i++) {
|
|
8281
8283
|
var source = arguments[i];
|
|
8282
8284
|
for (var key2 in source) {
|
|
@@ -8287,7 +8289,7 @@ function _extends$3() {
|
|
|
8287
8289
|
}
|
|
8288
8290
|
return target;
|
|
8289
8291
|
};
|
|
8290
|
-
return _extends$
|
|
8292
|
+
return _extends$2.apply(this, arguments);
|
|
8291
8293
|
}
|
|
8292
8294
|
function _objectWithoutPropertiesLoose$3(source, excluded) {
|
|
8293
8295
|
if (source == null) return {};
|
|
@@ -8492,7 +8494,7 @@ var Resizable$1 = /* @__PURE__ */ function(_React$Component) {
|
|
|
8492
8494
|
children: [].concat(children.props.children, resizeHandles.map(function(handleAxis) {
|
|
8493
8495
|
var _this3$handleRefs$han;
|
|
8494
8496
|
var ref = (_this3$handleRefs$han = _this3.handleRefs[handleAxis]) != null ? _this3$handleRefs$han : _this3.handleRefs[handleAxis] = /* @__PURE__ */ React$2.createRef();
|
|
8495
|
-
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$
|
|
8497
|
+
return /* @__PURE__ */ React$2.createElement(_reactDraggable.DraggableCore, _extends$2({}, draggableOpts, {
|
|
8496
8498
|
nodeRef: ref,
|
|
8497
8499
|
key: "resizableHandle-" + handleAxis,
|
|
8498
8500
|
onStop: _this3.resizeHandler("onResizeStop", handleAxis),
|
|
@@ -8563,8 +8565,8 @@ function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
|
8563
8565
|
}
|
|
8564
8566
|
return newObj;
|
|
8565
8567
|
}
|
|
8566
|
-
function _extends$
|
|
8567
|
-
_extends$
|
|
8568
|
+
function _extends$1() {
|
|
8569
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8568
8570
|
for (var i = 1; i < arguments.length; i++) {
|
|
8569
8571
|
var source = arguments[i];
|
|
8570
8572
|
for (var key2 in source) {
|
|
@@ -8575,7 +8577,7 @@ function _extends$2() {
|
|
|
8575
8577
|
}
|
|
8576
8578
|
return target;
|
|
8577
8579
|
};
|
|
8578
|
-
return _extends$
|
|
8580
|
+
return _extends$1.apply(this, arguments);
|
|
8579
8581
|
}
|
|
8580
8582
|
function ownKeys$1(object2, enumerableOnly) {
|
|
8581
8583
|
var keys2 = Object.keys(object2);
|
|
@@ -8706,7 +8708,7 @@ var ResizableBox = /* @__PURE__ */ function(_React$Component) {
|
|
|
8706
8708
|
resizeHandles,
|
|
8707
8709
|
transformScale,
|
|
8708
8710
|
width: this.state.width
|
|
8709
|
-
}, /* @__PURE__ */ React$1.createElement("div", _extends$
|
|
8711
|
+
}, /* @__PURE__ */ React$1.createElement("div", _extends$1({}, props, {
|
|
8710
8712
|
style: _objectSpread$5(_objectSpread$5({}, style), {}, {
|
|
8711
8713
|
width: this.state.width + "px",
|
|
8712
8714
|
height: this.state.height + "px"
|
|
@@ -9090,7 +9092,7 @@ const Input$1 = forwardRef(
|
|
|
9090
9092
|
},
|
|
9091
9093
|
onPaste = () => {
|
|
9092
9094
|
},
|
|
9093
|
-
selectOnFocus =
|
|
9095
|
+
selectOnFocus = true,
|
|
9094
9096
|
name: name2 = void 0,
|
|
9095
9097
|
type = "text",
|
|
9096
9098
|
tabIndex = 0,
|
|
@@ -9122,7 +9124,7 @@ const Input$1 = forwardRef(
|
|
|
9122
9124
|
const handleFocus = (e2) => {
|
|
9123
9125
|
onFocus(e2);
|
|
9124
9126
|
if (selectOnFocus) {
|
|
9125
|
-
e2.target.select();
|
|
9127
|
+
setTimeout(() => e2.target.select(), 0);
|
|
9126
9128
|
}
|
|
9127
9129
|
};
|
|
9128
9130
|
return /* @__PURE__ */ jsx("div", { style: { width: width2 }, className: order2, children: /* @__PURE__ */ jsx(
|
|
@@ -15698,15 +15700,6 @@ const useWindowWidth = () => {
|
|
|
15698
15700
|
}, []);
|
|
15699
15701
|
return width2;
|
|
15700
15702
|
};
|
|
15701
|
-
function _extends$1() {
|
|
15702
|
-
return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
|
|
15703
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
15704
|
-
var t = arguments[e2];
|
|
15705
|
-
for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
|
|
15706
|
-
}
|
|
15707
|
-
return n2;
|
|
15708
|
-
}, _extends$1.apply(null, arguments);
|
|
15709
|
-
}
|
|
15710
15703
|
function _assertThisInitialized(e2) {
|
|
15711
15704
|
if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15712
15705
|
return e2;
|
|
@@ -16079,7 +16072,7 @@ function createListComponent(_ref) {
|
|
|
16079
16072
|
className,
|
|
16080
16073
|
onScroll,
|
|
16081
16074
|
ref: this._outerRefSetter,
|
|
16082
|
-
style: _extends$
|
|
16075
|
+
style: _extends$4({
|
|
16083
16076
|
position: "relative",
|
|
16084
16077
|
height: height2,
|
|
16085
16078
|
width: width2,
|
|
@@ -48167,6 +48160,7 @@ var interopRequireDefault = { exports: {} };
|
|
|
48167
48160
|
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
48168
48161
|
})(interopRequireDefault);
|
|
48169
48162
|
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
48163
|
+
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(_extends$5);
|
|
48170
48164
|
const richTextToolbar = "_richTextToolbar_1gbkk_1";
|
|
48171
48165
|
const richTextToolbarContainer = "_richTextToolbarContainer_1gbkk_5";
|
|
48172
48166
|
const styles$h = {
|
|
@@ -49467,7 +49461,7 @@ var Handle$2 = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49467
49461
|
}
|
|
49468
49462
|
};
|
|
49469
49463
|
var positionStyle = getDirectionStyle(direction, value, min, max);
|
|
49470
|
-
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$
|
|
49464
|
+
var handleNode = /* @__PURE__ */ React$4.createElement("div", _extends$4({
|
|
49471
49465
|
ref,
|
|
49472
49466
|
className: cx$2(handlePrefixCls, (_classNames = {}, _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-").concat(valueIndex + 1), range2), _defineProperty$7(_classNames, "".concat(handlePrefixCls, "-dragging"), dragging), _classNames)),
|
|
49473
49467
|
style: _objectSpread2$1(_objectSpread2$1({}, positionStyle), style),
|
|
@@ -49511,7 +49505,7 @@ var Handles = /* @__PURE__ */ React$4.forwardRef(function(props, ref) {
|
|
|
49511
49505
|
};
|
|
49512
49506
|
});
|
|
49513
49507
|
return /* @__PURE__ */ React$4.createElement(React$4.Fragment, null, values2.map(function(value, index2) {
|
|
49514
|
-
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$
|
|
49508
|
+
return /* @__PURE__ */ React$4.createElement(Handle$2, _extends$4({
|
|
49515
49509
|
ref: function ref2(node2) {
|
|
49516
49510
|
if (!node2) {
|
|
49517
49511
|
delete handlesRef.current[index2];
|
|
@@ -50881,7 +50875,7 @@ Object.defineProperty(Handle$1, "__esModule", {
|
|
|
50881
50875
|
value: true
|
|
50882
50876
|
});
|
|
50883
50877
|
var default_1 = Handle$1.default = void 0;
|
|
50884
|
-
var _extends2 = _interopRequireDefault(
|
|
50878
|
+
var _extends2 = _interopRequireDefault(require$$2);
|
|
50885
50879
|
var _objectSpread2 = _interopRequireDefault(requireObjectSpread2());
|
|
50886
50880
|
var _defineProperty2 = _interopRequireDefault(requireDefineProperty());
|
|
50887
50881
|
var _objectWithoutProperties2 = _interopRequireDefault(requireObjectWithoutProperties());
|
|
@@ -51474,7 +51468,7 @@ const NumberInput = ({
|
|
|
51474
51468
|
},
|
|
51475
51469
|
onBlur = () => {
|
|
51476
51470
|
},
|
|
51477
|
-
selectOnFocus
|
|
51471
|
+
selectOnFocus,
|
|
51478
51472
|
tabIndex = 0,
|
|
51479
51473
|
testId,
|
|
51480
51474
|
tooltip: tooltip2 = null,
|
|
@@ -51559,11 +51553,7 @@ const NumberInput = ({
|
|
|
51559
51553
|
useEffect(() => {
|
|
51560
51554
|
if (inputRef && (inputRef == null ? void 0 : inputRef.current) && enableDisplayRounding && focus2) {
|
|
51561
51555
|
const textInput = inputRef.current;
|
|
51562
|
-
if (textInput) {
|
|
51563
|
-
if (selectOnFocus) {
|
|
51564
|
-
textInput.select();
|
|
51565
|
-
return;
|
|
51566
|
-
}
|
|
51556
|
+
if (textInput && !selectOnFocus) {
|
|
51567
51557
|
setTimeout(() => {
|
|
51568
51558
|
const { length: length2 } = safeToString(displayValue);
|
|
51569
51559
|
textInput.setSelectionRange(length2, length2);
|
|
@@ -66445,7 +66435,7 @@ const UnitInput = ({
|
|
|
66445
66435
|
enableCosmeticRounding = true,
|
|
66446
66436
|
enableDisplayRounding = false,
|
|
66447
66437
|
roundDisplayValue,
|
|
66448
|
-
selectOnFocus
|
|
66438
|
+
selectOnFocus
|
|
66449
66439
|
}) => {
|
|
66450
66440
|
const context2 = useUnitContext();
|
|
66451
66441
|
const runAfterUpdate = useRunAfterUpdate();
|
|
@@ -66720,6 +66710,7 @@ const UnitInput = ({
|
|
|
66720
66710
|
groupOrder: "last",
|
|
66721
66711
|
disabled: disabledUnit,
|
|
66722
66712
|
testId: testId && `${testId}-menu`,
|
|
66713
|
+
tabIndex: -1,
|
|
66723
66714
|
menu: {
|
|
66724
66715
|
label: displayUnitLabel,
|
|
66725
66716
|
trigger: "DropDownButton",
|