@oliasoft-open-source/react-ui-library 3.9.13 → 3.9.14
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/global.css +233 -131
- package/dist/index.js +117 -60
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2768,7 +2768,7 @@ var index = function() {
|
|
|
2768
2768
|
return ResizeObserver$1;
|
|
2769
2769
|
}();
|
|
2770
2770
|
var isProduction$3 = process.env.NODE_ENV === "production";
|
|
2771
|
-
function warning$
|
|
2771
|
+
function warning$e(condition, message2) {
|
|
2772
2772
|
if (!isProduction$3) {
|
|
2773
2773
|
if (condition) {
|
|
2774
2774
|
return;
|
|
@@ -3042,7 +3042,7 @@ function useTrackElements(_ref) {
|
|
|
3042
3042
|
var enabled = _ref.enabled, onChange = _ref.onChange, environment2 = _ref.environment, ResizeObserverPolyfill = _ref.ResizeObserverPolyfill, overflowContainer = _ref.overflowContainer, triggerOption = _ref.triggerOption;
|
|
3043
3043
|
var ResizeObserver2 = getResizeObserver(environment2, ResizeObserverPolyfill);
|
|
3044
3044
|
useEffect(function() {
|
|
3045
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
3045
|
+
process.env.NODE_ENV !== "production" ? warning$e(ResizeObserver2, "This browser does not support ResizeObserver out of the box. We recommend to add a polyfill in order to utilize the full capabilities of react-laag. See: https://github.com/everweij/react-laag#resize-observer") : void 0;
|
|
3046
3046
|
}, [ResizeObserver2]);
|
|
3047
3047
|
var arrowRef = useRef(null);
|
|
3048
3048
|
var hasTriggerOption = Boolean(triggerOption);
|
|
@@ -3165,7 +3165,7 @@ function useTrackElements(_ref) {
|
|
|
3165
3165
|
if (!closestScrollContainerHasCorrectStyling) {
|
|
3166
3166
|
closestScrollContainer.style.position = "relative";
|
|
3167
3167
|
}
|
|
3168
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
3168
|
+
process.env.NODE_ENV !== "production" ? warning$e(closestScrollContainerHasCorrectStyling, `react-laag: Set the 'position' style of the nearest scroll-container to 'relative', 'absolute' or 'fixed', or set the 'overflowContainer' prop to true. This is needed in order to position the layer properly. Currently the scroll-container is positioned: "` + position3 + '". For now, "position: relative;" is added for you, but this behavior might be removed in the future. Visit https://react-laag.com/docs/#position-relative for more info.') : void 0;
|
|
3169
3169
|
}
|
|
3170
3170
|
return scrollContainers;
|
|
3171
3171
|
}, [environment2, overflowContainer]);
|
|
@@ -3263,7 +3263,7 @@ function useGroup(_ref2) {
|
|
|
3263
3263
|
return possibleRegisterFn({
|
|
3264
3264
|
shouldCloseWhenClickedOutside,
|
|
3265
3265
|
closeChild: function closeChild() {
|
|
3266
|
-
process.env.NODE_ENV !== "production" ? warning$
|
|
3266
|
+
process.env.NODE_ENV !== "production" ? warning$e(onParentClose, "react-laag: You are using useLayer() in a nested setting but forgot to set the 'onParentClose()' callback in the options. This could lead to unexpected behavior.") : void 0;
|
|
3267
3267
|
if (onParentClose) {
|
|
3268
3268
|
onParentClose();
|
|
3269
3269
|
}
|
|
@@ -4271,12 +4271,12 @@ function useHover(_temp) {
|
|
|
4271
4271
|
}];
|
|
4272
4272
|
}
|
|
4273
4273
|
const tooltip = "_tooltip_63bin_333";
|
|
4274
|
-
const error$
|
|
4275
|
-
const warning$
|
|
4274
|
+
const error$9 = "_error_63bin_347";
|
|
4275
|
+
const warning$d = "_warning_63bin_351";
|
|
4276
4276
|
const styles$Q = {
|
|
4277
4277
|
tooltip,
|
|
4278
|
-
error: error$
|
|
4279
|
-
warning: warning$
|
|
4278
|
+
error: error$9,
|
|
4279
|
+
warning: warning$d
|
|
4280
4280
|
};
|
|
4281
4281
|
const TooltipLayer = ({
|
|
4282
4282
|
text: text2,
|
|
@@ -10894,34 +10894,34 @@ Icon.propTypes = {
|
|
|
10894
10894
|
clickable: propTypes$1.exports.bool,
|
|
10895
10895
|
testId: propTypes$1.exports.string
|
|
10896
10896
|
};
|
|
10897
|
-
const wrapper$3 = "
|
|
10898
|
-
const layer$1 = "
|
|
10899
|
-
const layerContainer$1 = "
|
|
10900
|
-
const nested = "
|
|
10901
|
-
const fileInput$1 = "
|
|
10902
|
-
const trigger$2 = "
|
|
10903
|
-
const middleAlignedInline = "
|
|
10904
|
-
const heading$5 = "
|
|
10905
|
-
const headingIcon = "
|
|
10906
|
-
const option$1 = "
|
|
10907
|
-
const active$8 = "
|
|
10908
|
-
const selected$1 = "
|
|
10909
|
-
const optionContent$1 = "
|
|
10910
|
-
const inline$4 = "
|
|
10911
|
-
const icon$5 = "
|
|
10912
|
-
const check$1 = "
|
|
10913
|
-
const text$3 = "
|
|
10914
|
-
const label$a = "
|
|
10915
|
-
const description = "
|
|
10916
|
-
const arrow$1 = "
|
|
10917
|
-
const divider$1 = "
|
|
10918
|
-
const deprecatedSemanticIcon = "
|
|
10919
|
-
const disabled$9 = "
|
|
10920
|
-
const buttonLabel = "
|
|
10921
|
-
const buttonCaret = "
|
|
10922
|
-
const component = "
|
|
10923
|
-
const right$7 = "
|
|
10924
|
-
const actions$2 = "
|
|
10897
|
+
const wrapper$3 = "_wrapper_b0mju_333";
|
|
10898
|
+
const layer$1 = "_layer_b0mju_337";
|
|
10899
|
+
const layerContainer$1 = "_layerContainer_b0mju_340";
|
|
10900
|
+
const nested = "_nested_b0mju_355";
|
|
10901
|
+
const fileInput$1 = "_fileInput_b0mju_367";
|
|
10902
|
+
const trigger$2 = "_trigger_b0mju_373";
|
|
10903
|
+
const middleAlignedInline = "_middleAlignedInline_b0mju_382";
|
|
10904
|
+
const heading$5 = "_heading_b0mju_388";
|
|
10905
|
+
const headingIcon = "_headingIcon_b0mju_394";
|
|
10906
|
+
const option$1 = "_option_b0mju_406";
|
|
10907
|
+
const active$8 = "_active_b0mju_423";
|
|
10908
|
+
const selected$1 = "_selected_b0mju_428";
|
|
10909
|
+
const optionContent$1 = "_optionContent_b0mju_435";
|
|
10910
|
+
const inline$4 = "_inline_b0mju_440";
|
|
10911
|
+
const icon$5 = "_icon_b0mju_445";
|
|
10912
|
+
const check$1 = "_check_b0mju_446";
|
|
10913
|
+
const text$3 = "_text_b0mju_472";
|
|
10914
|
+
const label$a = "_label_b0mju_477";
|
|
10915
|
+
const description = "_description_b0mju_488";
|
|
10916
|
+
const arrow$1 = "_arrow_b0mju_492";
|
|
10917
|
+
const divider$1 = "_divider_b0mju_496";
|
|
10918
|
+
const deprecatedSemanticIcon = "_deprecatedSemanticIcon_b0mju_500";
|
|
10919
|
+
const disabled$9 = "_disabled_b0mju_504";
|
|
10920
|
+
const buttonLabel = "_buttonLabel_b0mju_509";
|
|
10921
|
+
const buttonCaret = "_buttonCaret_b0mju_516";
|
|
10922
|
+
const component = "_component_b0mju_519";
|
|
10923
|
+
const right$7 = "_right_b0mju_525";
|
|
10924
|
+
const actions$2 = "_actions_b0mju_530";
|
|
10925
10925
|
const styles$M = {
|
|
10926
10926
|
wrapper: wrapper$3,
|
|
10927
10927
|
layer: layer$1,
|
|
@@ -11235,24 +11235,40 @@ Badge.propTypes = {
|
|
|
11235
11235
|
margin: propTypes$1.exports.string,
|
|
11236
11236
|
small: propTypes$1.exports.bool
|
|
11237
11237
|
};
|
|
11238
|
-
const
|
|
11239
|
-
const
|
|
11240
|
-
const
|
|
11241
|
-
const
|
|
11242
|
-
const
|
|
11243
|
-
const
|
|
11244
|
-
const
|
|
11245
|
-
const
|
|
11246
|
-
const
|
|
11247
|
-
const
|
|
11248
|
-
const
|
|
11249
|
-
const
|
|
11250
|
-
const
|
|
11251
|
-
const
|
|
11252
|
-
const
|
|
11253
|
-
const
|
|
11254
|
-
const
|
|
11238
|
+
const inputInTable$b = "_inputInTable_mz376_333";
|
|
11239
|
+
const inputHover$b = "_inputHover_mz376_339";
|
|
11240
|
+
const inputFocus$b = "_inputFocus_mz376_344";
|
|
11241
|
+
const inputError$b = "_inputError_mz376_351";
|
|
11242
|
+
const inputWarning$b = "_inputWarning_mz376_352";
|
|
11243
|
+
const inputDisabled$b = "_inputDisabled_mz376_387";
|
|
11244
|
+
const hideScrollbars$b = "_hideScrollbars_mz376_392";
|
|
11245
|
+
const button$3 = "_button_mz376_436";
|
|
11246
|
+
const active$7 = "_active_mz376_473";
|
|
11247
|
+
const green$1 = "_green_mz376_473";
|
|
11248
|
+
const red$1 = "_red_mz376_473";
|
|
11249
|
+
const orange$1 = "_orange_mz376_473";
|
|
11250
|
+
const icon$4 = "_icon_mz376_485";
|
|
11251
|
+
const iconOnly = "_iconOnly_mz376_492";
|
|
11252
|
+
const basic = "_basic_mz376_502";
|
|
11253
|
+
const muted$2 = "_muted_mz376_508";
|
|
11254
|
+
const disabled$8 = "_disabled_mz376_521";
|
|
11255
|
+
const small$c = "_small_mz376_531";
|
|
11256
|
+
const pill = "_pill_mz376_536";
|
|
11257
|
+
const round = "_round_mz376_537";
|
|
11258
|
+
const error$8 = "_error_mz376_614";
|
|
11259
|
+
const warning$c = "_warning_mz376_631";
|
|
11260
|
+
const inverted$1 = "_inverted_mz376_648";
|
|
11261
|
+
const groupOrderFirst$4 = "_groupOrderFirst_mz376_682";
|
|
11262
|
+
const groupOrderMiddle$4 = "_groupOrderMiddle_mz376_683";
|
|
11263
|
+
const groupOrderLast$4 = "_groupOrderLast_mz376_684";
|
|
11255
11264
|
const buttonStyles = {
|
|
11265
|
+
inputInTable: inputInTable$b,
|
|
11266
|
+
inputHover: inputHover$b,
|
|
11267
|
+
inputFocus: inputFocus$b,
|
|
11268
|
+
inputError: inputError$b,
|
|
11269
|
+
inputWarning: inputWarning$b,
|
|
11270
|
+
inputDisabled: inputDisabled$b,
|
|
11271
|
+
hideScrollbars: hideScrollbars$b,
|
|
11256
11272
|
button: button$3,
|
|
11257
11273
|
active: active$7,
|
|
11258
11274
|
green: green$1,
|
|
@@ -11266,6 +11282,8 @@ const buttonStyles = {
|
|
|
11266
11282
|
small: small$c,
|
|
11267
11283
|
pill,
|
|
11268
11284
|
round,
|
|
11285
|
+
error: error$8,
|
|
11286
|
+
warning: warning$c,
|
|
11269
11287
|
inverted: inverted$1,
|
|
11270
11288
|
groupOrderFirst: groupOrderFirst$4,
|
|
11271
11289
|
groupOrderMiddle: groupOrderMiddle$4,
|
|
@@ -11331,6 +11349,8 @@ const Button$1 = ({
|
|
|
11331
11349
|
title: title2,
|
|
11332
11350
|
type,
|
|
11333
11351
|
styles: styles2,
|
|
11352
|
+
error: error2,
|
|
11353
|
+
warning: warning2,
|
|
11334
11354
|
testId
|
|
11335
11355
|
}) => {
|
|
11336
11356
|
const disabledContext = useContext(DisabledContext);
|
|
@@ -11378,6 +11398,7 @@ const Button$1 = ({
|
|
|
11378
11398
|
pill2 ? buttonStyles.pill : "",
|
|
11379
11399
|
round2 ? buttonStyles.round : "",
|
|
11380
11400
|
small2 ? buttonStyles.small : "",
|
|
11401
|
+
error2 ? buttonStyles.error : warning2 ? buttonStyles.warning : "",
|
|
11381
11402
|
styles2
|
|
11382
11403
|
),
|
|
11383
11404
|
disabled: disabled2 || disabledContext,
|
|
@@ -11425,6 +11446,8 @@ Button$1.defaultProps = {
|
|
|
11425
11446
|
type: "button",
|
|
11426
11447
|
onClick: () => {
|
|
11427
11448
|
},
|
|
11449
|
+
error: void 0,
|
|
11450
|
+
warning: void 0,
|
|
11428
11451
|
testId: void 0,
|
|
11429
11452
|
inverted: false
|
|
11430
11453
|
};
|
|
@@ -11448,6 +11471,8 @@ Button$1.propTypes = {
|
|
|
11448
11471
|
styles: propTypes$1.exports.string,
|
|
11449
11472
|
type: propTypes$1.exports.oneOf(["button", "submit"]),
|
|
11450
11473
|
width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
11474
|
+
error: propTypes$1.exports.string,
|
|
11475
|
+
warning: propTypes$1.exports.string,
|
|
11451
11476
|
testId: propTypes$1.exports.string,
|
|
11452
11477
|
pill: propTypes$1.exports.bool,
|
|
11453
11478
|
inverted: propTypes$1.exports.bool
|
|
@@ -11460,7 +11485,9 @@ const Button = ({
|
|
|
11460
11485
|
width,
|
|
11461
11486
|
disabled: disabled2,
|
|
11462
11487
|
groupOrder,
|
|
11463
|
-
loading
|
|
11488
|
+
loading,
|
|
11489
|
+
error: error2,
|
|
11490
|
+
warning: warning2
|
|
11464
11491
|
}) => {
|
|
11465
11492
|
const disabledContext = useContext(DisabledContext);
|
|
11466
11493
|
const buttonLabel2 = trigger2 === "Button" ? label2 : trigger2 === "DropDownButton" ? /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
@@ -11490,7 +11517,9 @@ const Button = ({
|
|
|
11490
11517
|
onClick: () => {
|
|
11491
11518
|
},
|
|
11492
11519
|
loading,
|
|
11493
|
-
disabled: disabled2
|
|
11520
|
+
disabled: disabled2,
|
|
11521
|
+
error: error2,
|
|
11522
|
+
warning: warning2
|
|
11494
11523
|
})
|
|
11495
11524
|
});
|
|
11496
11525
|
};
|
|
@@ -11522,6 +11551,19 @@ const Component = ({ component: component2, disabled: disabled2, testId }) => {
|
|
|
11522
11551
|
children: component2
|
|
11523
11552
|
});
|
|
11524
11553
|
};
|
|
11554
|
+
const isStringNumberOrNode = (value) => lodash.exports.isString(value) || lodash.exports.isNumber(value) || isValidElement(value);
|
|
11555
|
+
const TriggerTooltip = ({ tooltip: tooltip2, error: error2, warning: warning2, children }) => {
|
|
11556
|
+
if (!isStringNumberOrNode(tooltip2) && !isStringNumberOrNode(error2) && !isStringNumberOrNode(warning2)) {
|
|
11557
|
+
return children;
|
|
11558
|
+
}
|
|
11559
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
11560
|
+
error: !!error2,
|
|
11561
|
+
warning: !!warning2,
|
|
11562
|
+
text: tooltip2 || error2 || warning2,
|
|
11563
|
+
display: "inline-block",
|
|
11564
|
+
children
|
|
11565
|
+
});
|
|
11566
|
+
};
|
|
11525
11567
|
const Trigger$1 = React__default.forwardRef(
|
|
11526
11568
|
({
|
|
11527
11569
|
isDisabled,
|
|
@@ -11541,6 +11583,9 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
11541
11583
|
groupOrder,
|
|
11542
11584
|
fullHeight,
|
|
11543
11585
|
isOpen: isOpen2,
|
|
11586
|
+
error: error2,
|
|
11587
|
+
warning: warning2,
|
|
11588
|
+
tooltip: tooltip2,
|
|
11544
11589
|
testId
|
|
11545
11590
|
}, ref2) => {
|
|
11546
11591
|
const triggerElement = trigger2 === "Button" || trigger2 === "DropDownButton" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Button, {
|
|
@@ -11551,7 +11596,9 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
11551
11596
|
width,
|
|
11552
11597
|
disabled: isDisabled,
|
|
11553
11598
|
groupOrder,
|
|
11554
|
-
loading
|
|
11599
|
+
loading,
|
|
11600
|
+
error: error2,
|
|
11601
|
+
warning: warning2
|
|
11555
11602
|
}) : trigger2 === "Text" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Text$1, {
|
|
11556
11603
|
label: label2,
|
|
11557
11604
|
title: title2,
|
|
@@ -11583,7 +11630,12 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
11583
11630
|
onClickTrigger();
|
|
11584
11631
|
},
|
|
11585
11632
|
"data-testid": testId,
|
|
11586
|
-
children:
|
|
11633
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(TriggerTooltip, {
|
|
11634
|
+
tooltip: tooltip2,
|
|
11635
|
+
error: error2,
|
|
11636
|
+
warning: warning2,
|
|
11637
|
+
children: wrappedTrigger
|
|
11638
|
+
})
|
|
11587
11639
|
});
|
|
11588
11640
|
}
|
|
11589
11641
|
);
|
|
@@ -11721,7 +11773,10 @@ const DropDownMenu = ({
|
|
|
11721
11773
|
maxHeight: maxHeight2,
|
|
11722
11774
|
testId,
|
|
11723
11775
|
open: openProp,
|
|
11724
|
-
setOpen: setOpenProp
|
|
11776
|
+
setOpen: setOpenProp,
|
|
11777
|
+
tooltip: tooltip2,
|
|
11778
|
+
error: error2,
|
|
11779
|
+
warning: warning2
|
|
11725
11780
|
}) => {
|
|
11726
11781
|
const disabledContext = useContext(DisabledContext);
|
|
11727
11782
|
const {
|
|
@@ -11786,6 +11841,9 @@ const DropDownMenu = ({
|
|
|
11786
11841
|
component: component2,
|
|
11787
11842
|
groupOrder,
|
|
11788
11843
|
isOpen: isOpen2,
|
|
11844
|
+
tooltip: tooltip2,
|
|
11845
|
+
error: error2,
|
|
11846
|
+
warning: warning2,
|
|
11789
11847
|
testId
|
|
11790
11848
|
}),
|
|
11791
11849
|
isOpen2 && renderLayer(
|
|
@@ -12103,7 +12161,6 @@ const styles$H = {
|
|
|
12103
12161
|
label: label$8,
|
|
12104
12162
|
buttonGroup
|
|
12105
12163
|
};
|
|
12106
|
-
const isStringNumberOrNode = (value) => lodash.exports.isString(value) || lodash.exports.isNumber(value) || isValidElement(value);
|
|
12107
12164
|
class ButtonGroup extends React__default.PureComponent {
|
|
12108
12165
|
constructor() {
|
|
12109
12166
|
super(...arguments);
|
|
@@ -46007,7 +46064,7 @@ function gatherRawExtensions(config2, props) {
|
|
|
46007
46064
|
return;
|
|
46008
46065
|
}
|
|
46009
46066
|
if (names2.includes(extension2.name)) {
|
|
46010
|
-
warning$
|
|
46067
|
+
warning$e(
|
|
46011
46068
|
false,
|
|
46012
46069
|
`Circular dependency encountered when loading extensions: ${names2.join(" > ")} > ${extension2.name}`
|
|
46013
46070
|
);
|