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