@linzjs/lui 17.47.2 → 17.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/components/LuiTooltip/LuiTooltip.d.ts +5 -15
- package/dist/index.js +427 -73
- package/dist/index.js.map +1 -1
- package/dist/lui.css +1 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +437 -83
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Elements/Tooltips/tippy.scss +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -25415,8 +25415,8 @@ function styleInject(css, ref) {
|
|
|
25415
25415
|
}
|
|
25416
25416
|
}
|
|
25417
25417
|
|
|
25418
|
-
var css_248z$
|
|
25419
|
-
styleInject(css_248z$
|
|
25418
|
+
var css_248z$8 = ".LuiFloatingWindow-buttons {\n display: flex;\n align-items: center;\n}\n\n.LuiFloatingWindow-extra-buttons-divider {\n margin-right: 4px;\n margin-left: 8px;\n margin-top: -6px;\n font-size: x-large;\n opacity: 0.7;\n}\n\n.FloatingWindow-window {\n box-shadow: 0px 1px 6px 0px #00000026, 0px 6px 10px 0px #00000040;\n position: absolute;\n background-color: #ffffff;\n top: 10%;\n left: 5%;\n display: flex;\n flex-direction: column;\n border-radius: 9px;\n}\n\n.FloatingWindow-container {\n display: flex;\n height: calc(100% - 50px);\n width: 100%;\n overflow: auto;\n}\n\n.FloatingWindow-header-element {\n flex: 0;\n}\n\n.FloatingWindow-header {\n height: 48px;\n line-height: 48px;\n color: #2a292c;\n padding: 0 8px;\n display: flex;\n overflow: hidden;\n justify-content: space-between;\n border-bottom: 2px #eaeaea solid;\n font-size: 1em;\n font-weight: 600;\n}\n\n.FloatingWindow-header-title-text {\n font-size: 1em;\n font-weight: 600;\n overflow: hidden;\n}\n\n.FloatingWindow-buttons {\n display: flex;\n align-items: center;\n}\n\n.FloatingWindow-extra-buttons-divider {\n margin-right: 4px;\n margin-left: 8px;\n margin-top: -6px;\n font-size: x-large;\n opacity: 0.7;\n}\n\n.FloatingWindowHeaderButton-button {\n padding: 0 0 0 8px;\n border: none;\n outline: none;\n border-radius: 50%;\n background-color: transparent;\n color: #6b6966;\n display: flex;\n}\n\n.FloatingWindowHeaderButton-icon {\n fill: #6b6966;\n}\n\n.floating-window-icon {\n display: inline-block;\n height: 24px;\n max-height: 24px;\n max-width: 24px;\n width: 24px;\n fill: #6b6966;\n}";
|
|
25419
|
+
styleInject(css_248z$8);
|
|
25420
25420
|
|
|
25421
25421
|
/**
|
|
25422
25422
|
* Overwrite the common buttons for floating window to
|
|
@@ -27415,7 +27415,7 @@ Grid.prototype.destroy = function destroy (immediate) {
|
|
|
27415
27415
|
);
|
|
27416
27416
|
};
|
|
27417
27417
|
|
|
27418
|
-
function index (options) { return new Grid(options); }
|
|
27418
|
+
function index$1 (options) { return new Grid(options); }
|
|
27419
27419
|
|
|
27420
27420
|
function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
|
|
27421
27421
|
|
|
@@ -27455,7 +27455,7 @@ var ReactSplitGrid = /*@__PURE__*/(function (superclass) {
|
|
|
27455
27455
|
options.writeStyle = this.writeStyle;
|
|
27456
27456
|
options.onDrag = this.onDrag;
|
|
27457
27457
|
|
|
27458
|
-
this.split = index(options);
|
|
27458
|
+
this.split = index$1(options);
|
|
27459
27459
|
};
|
|
27460
27460
|
|
|
27461
27461
|
ReactSplitGrid.prototype.componentDidUpdate = function componentDidUpdate (prevProps) {
|
|
@@ -27521,7 +27521,7 @@ var ReactSplitGrid = /*@__PURE__*/(function (superclass) {
|
|
|
27521
27521
|
|
|
27522
27522
|
this.split.destroy(false);
|
|
27523
27523
|
|
|
27524
|
-
this.split = index(options);
|
|
27524
|
+
this.split = index$1(options);
|
|
27525
27525
|
}
|
|
27526
27526
|
};
|
|
27527
27527
|
|
|
@@ -27665,8 +27665,8 @@ ReactSplitGrid.defaultProps = {
|
|
|
27665
27665
|
onDrag: undefined,
|
|
27666
27666
|
};
|
|
27667
27667
|
|
|
27668
|
-
var css_248z$
|
|
27669
|
-
styleInject(css_248z$
|
|
27668
|
+
var css_248z$7 = ".LuiResizableLayout-leftPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-rightPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-leftPanelBody {\n overflow-y: auto;\n}\n\n.LuiResizableLayout-gutterParentControl {\n display: flex;\n /* use visibility and opacity instead of display: none as we want to be able to fade in on hover */\n visibility: hidden;\n opacity: 0;\n position: fixed;\n top: 50%;\n z-index: 500;\n margin-left: -30px;\n /*half total control width, minus half the gutter width*/\n transition: 0.3s all 2s ease-in;\n}\n\n.LuiResizableLayout-gutterControlLeft, .LuiResizableLayout-gutterControlRight {\n background-color: #eaeaea;\n width: 32px;\n height: 80px;\n text-align: center;\n display: flex;\n align-items: center;\n}\n\n.LuiResizableLayout-gutterControlLeft {\n border-radius: 3px 0 0 3px;\n}\n\n.LuiResizableLayout-gutterControlRight {\n border-radius: 0 3px 3px 0;\n}\n\n.LuiResizableLayout-gutterControlLeft > .LuiIcon, .LuiResizableLayout-gutterControlRight > .LuiIcon {\n height: auto;\n}\n\n.LuiResizableLayout-gutterControlLeft:hover, .LuiResizableLayout-gutterControlRight:hover {\n background-color: #73c8e1;\n cursor: pointer;\n}\n\n.LuiResizableLayout-gutterControl-collapsed {\n visibility: hidden;\n}\n\n/* TODO: move the expand gutter button so it doesn't show over the scroll bar */\n.LuiResizableLayout-gutterParentControlVisible {\n visibility: visible;\n opacity: 1;\n}\n\n.LuiResizableLayout-grid {\n display: grid;\n height: 100%;\n}\n\n.LuiResizableLayout-gutterCol {\n grid-row: 1/-1;\n cursor: col-resize;\n width: 16px;\n z-index: 1;\n}\n\n.LuiResizableLayout-gutterCol-collapsed {\n width: 4px;\n}\n\n.LuiResizableLayout-gutterCol1 {\n grid-column: 2;\n}\n\n.LuiResizableLayout-gutterCol:hover > .LuiResizableLayout-gutterParentControl {\n visibility: visible;\n opacity: 1;\n transition: 0s all 0s ease-in;\n}\n\n.LuiResizableLayout-gutterSlider {\n width: 4px;\n height: 100%;\n background-color: #eaeaea;\n pointer-events: none;\n}\n\n.LuiResizableLayout-gutterCol:hover .LuiResizableLayout-gutterSlider, .LuiResizableLayout-gutterCol:active .LuiResizableLayout-gutterSlider {\n background-color: #73c8e1;\n}";
|
|
27669
|
+
styleInject(css_248z$7);
|
|
27670
27670
|
|
|
27671
27671
|
var GutterComponent = function (props) {
|
|
27672
27672
|
var leftIcon = (React__default["default"].createElement(LuiIcon, { name: "ic_double_arrow_left", alt: "", status: "interactive" }));
|
|
@@ -27984,8 +27984,8 @@ function LuiFormikForm(props) {
|
|
|
27984
27984
|
" "))));
|
|
27985
27985
|
}
|
|
27986
27986
|
|
|
27987
|
-
var css_248z$
|
|
27988
|
-
styleInject(css_248z$
|
|
27987
|
+
var css_248z$6 = "/**\n @deprecated\n */\n/**\n @deprecated\n */\n/**\n @deprecated\n */\n.LuiError {\n font-family: \"Open Sans\", system-ui, sans-serif;\n font-style: normal;\n font-weight: 600;\n margin-bottom: 0.5rem;\n font-size: 0.875rem;\n line-height: 1.5rem;\n color: #2a292c;\n}\n.LuiError-errorIcon {\n vertical-align: middle;\n display: inline-block;\n}\n.LuiError-errorText {\n margin-left: 0.5rem;\n}";
|
|
27988
|
+
styleInject(css_248z$6);
|
|
27989
27989
|
|
|
27990
27990
|
var LuiError = function (_a) {
|
|
27991
27991
|
var error = _a.error, className = _a.className;
|
|
@@ -29941,8 +29941,8 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
29941
29941
|
}
|
|
29942
29942
|
};
|
|
29943
29943
|
|
|
29944
|
-
var isBrowser$
|
|
29945
|
-
var getServerStylisCache = isBrowser$
|
|
29944
|
+
var isBrowser$7 = typeof document !== 'undefined';
|
|
29945
|
+
var getServerStylisCache = isBrowser$7 ? undefined : weakMemoize(function () {
|
|
29946
29946
|
return memoize(function () {
|
|
29947
29947
|
var cache = {};
|
|
29948
29948
|
return function (name) {
|
|
@@ -29959,7 +29959,7 @@ var createCache = function createCache(options) {
|
|
|
29959
29959
|
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
29960
29960
|
}
|
|
29961
29961
|
|
|
29962
|
-
if (isBrowser$
|
|
29962
|
+
if (isBrowser$7 && key === 'css') {
|
|
29963
29963
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
29964
29964
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
29965
29965
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
@@ -29995,7 +29995,7 @@ var createCache = function createCache(options) {
|
|
|
29995
29995
|
var container;
|
|
29996
29996
|
var nodesToHydrate = [];
|
|
29997
29997
|
|
|
29998
|
-
if (isBrowser$
|
|
29998
|
+
if (isBrowser$7) {
|
|
29999
29999
|
container = options.container || document.head;
|
|
30000
30000
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
30001
30001
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -30023,7 +30023,7 @@ var createCache = function createCache(options) {
|
|
|
30023
30023
|
}), incorrectImportAlarm);
|
|
30024
30024
|
}
|
|
30025
30025
|
|
|
30026
|
-
if (isBrowser$
|
|
30026
|
+
if (isBrowser$7) {
|
|
30027
30027
|
var currentSheet;
|
|
30028
30028
|
var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {
|
|
30029
30029
|
if (!element.root) {
|
|
@@ -30364,7 +30364,7 @@ var TYPE_STATICS = {};
|
|
|
30364
30364
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
30365
30365
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
30366
30366
|
|
|
30367
|
-
var isBrowser$
|
|
30367
|
+
var isBrowser$6 = typeof document !== 'undefined';
|
|
30368
30368
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
30369
30369
|
var rawClassName = '';
|
|
30370
30370
|
classNames.split(' ').forEach(function (className) {
|
|
@@ -30388,7 +30388,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
|
30388
30388
|
// in node since emotion-server relies on whether a style is in
|
|
30389
30389
|
// the registered cache to know whether a style is global or not
|
|
30390
30390
|
// also, note that this check will be dead code eliminated in the browser
|
|
30391
|
-
isBrowser$
|
|
30391
|
+
isBrowser$6 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
30392
30392
|
cache.registered[className] = serialized.styles;
|
|
30393
30393
|
}
|
|
30394
30394
|
};
|
|
@@ -30403,14 +30403,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
30403
30403
|
do {
|
|
30404
30404
|
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
30405
30405
|
|
|
30406
|
-
if (!isBrowser$
|
|
30406
|
+
if (!isBrowser$6 && maybeStyles !== undefined) {
|
|
30407
30407
|
stylesForSSR += maybeStyles;
|
|
30408
30408
|
}
|
|
30409
30409
|
|
|
30410
30410
|
current = current.next;
|
|
30411
30411
|
} while (current !== undefined);
|
|
30412
30412
|
|
|
30413
|
-
if (!isBrowser$
|
|
30413
|
+
if (!isBrowser$6 && stylesForSSR.length !== 0) {
|
|
30414
30414
|
return stylesForSSR;
|
|
30415
30415
|
}
|
|
30416
30416
|
}
|
|
@@ -30830,17 +30830,17 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
30830
30830
|
};
|
|
30831
30831
|
};
|
|
30832
30832
|
|
|
30833
|
-
var isBrowser$
|
|
30833
|
+
var isBrowser$5 = typeof document !== 'undefined';
|
|
30834
30834
|
|
|
30835
30835
|
var syncFallback = function syncFallback(create) {
|
|
30836
30836
|
return create();
|
|
30837
30837
|
};
|
|
30838
30838
|
|
|
30839
30839
|
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
30840
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$
|
|
30840
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$5 ? syncFallback : useInsertionEffect || syncFallback;
|
|
30841
30841
|
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
|
30842
30842
|
|
|
30843
|
-
var isBrowser$
|
|
30843
|
+
var isBrowser$4 = typeof document !== 'undefined';
|
|
30844
30844
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
30845
30845
|
|
|
30846
30846
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
@@ -30868,7 +30868,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
30868
30868
|
});
|
|
30869
30869
|
};
|
|
30870
30870
|
|
|
30871
|
-
if (!isBrowser$
|
|
30871
|
+
if (!isBrowser$4) {
|
|
30872
30872
|
withEmotionCache = function withEmotionCache(func) {
|
|
30873
30873
|
return function (props) {
|
|
30874
30874
|
var cache = React.useContext(EmotionCacheContext);
|
|
@@ -30977,7 +30977,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
30977
30977
|
return insertStyles(cache, serialized, isStringTag);
|
|
30978
30978
|
});
|
|
30979
30979
|
|
|
30980
|
-
if (!isBrowser$
|
|
30980
|
+
if (!isBrowser$4 && rules !== undefined) {
|
|
30981
30981
|
var _ref2;
|
|
30982
30982
|
|
|
30983
30983
|
var serializedNames = serialized.name;
|
|
@@ -31208,7 +31208,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
31208
31208
|
var styles = props.styles;
|
|
31209
31209
|
var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
|
|
31210
31210
|
|
|
31211
|
-
if (!isBrowser$
|
|
31211
|
+
if (!isBrowser$4) {
|
|
31212
31212
|
var _ref;
|
|
31213
31213
|
|
|
31214
31214
|
var serializedNames = serialized.name;
|
|
@@ -31394,17 +31394,17 @@ var Insertion = function Insertion(_ref) {
|
|
|
31394
31394
|
for (var i = 0; i < serializedArr.length; i++) {
|
|
31395
31395
|
var res = insertStyles(cache, serializedArr[i], false);
|
|
31396
31396
|
|
|
31397
|
-
if (!isBrowser$
|
|
31397
|
+
if (!isBrowser$4 && res !== undefined) {
|
|
31398
31398
|
rules += res;
|
|
31399
31399
|
}
|
|
31400
31400
|
}
|
|
31401
31401
|
|
|
31402
|
-
if (!isBrowser$
|
|
31402
|
+
if (!isBrowser$4) {
|
|
31403
31403
|
return rules;
|
|
31404
31404
|
}
|
|
31405
31405
|
});
|
|
31406
31406
|
|
|
31407
|
-
if (!isBrowser$
|
|
31407
|
+
if (!isBrowser$4 && rules.length !== 0) {
|
|
31408
31408
|
var _ref2;
|
|
31409
31409
|
|
|
31410
31410
|
return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
@@ -31467,15 +31467,15 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
31467
31467
|
}
|
|
31468
31468
|
|
|
31469
31469
|
if (process.env.NODE_ENV !== 'production') {
|
|
31470
|
-
var isBrowser$
|
|
31470
|
+
var isBrowser$3 = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
|
|
31471
31471
|
|
|
31472
31472
|
var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
|
|
31473
31473
|
|
|
31474
|
-
if (isBrowser$
|
|
31474
|
+
if (isBrowser$3 && !isTestEnv) {
|
|
31475
31475
|
// globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
|
|
31476
31476
|
var globalContext = // $FlowIgnore
|
|
31477
31477
|
typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
|
|
31478
|
-
: isBrowser$
|
|
31478
|
+
: isBrowser$3 ? window : global;
|
|
31479
31479
|
var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
|
|
31480
31480
|
|
|
31481
31481
|
if (globalContext[globalKey]) {
|
|
@@ -31497,7 +31497,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
31497
31497
|
}));
|
|
31498
31498
|
}
|
|
31499
31499
|
|
|
31500
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
31500
|
+
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
31501
31501
|
if (source == null) return {};
|
|
31502
31502
|
var target = {};
|
|
31503
31503
|
var sourceKeys = Object.keys(source);
|
|
@@ -31512,7 +31512,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
31512
31512
|
|
|
31513
31513
|
function _objectWithoutProperties(source, excluded) {
|
|
31514
31514
|
if (source == null) return {};
|
|
31515
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
31515
|
+
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
31516
31516
|
var key, i;
|
|
31517
31517
|
if (Object.getOwnPropertySymbols) {
|
|
31518
31518
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -52486,8 +52486,8 @@ function isChromatic() {
|
|
|
52486
52486
|
(window === null || window === void 0 ? void 0 : window.location.href.match(/chromatic=true/)));
|
|
52487
52487
|
}
|
|
52488
52488
|
|
|
52489
|
-
var css_248z$
|
|
52490
|
-
styleInject(css_248z$
|
|
52489
|
+
var css_248z$5 = ":export {\n charcoal: #2a292c;\n fuscous: #6b6966;\n gray: #989189;\n silver: #beb9b4;\n lily: #eaeaea;\n dew: #DAD7D6;\n hint: #f9f9f9;\n snow: #ffffff;\n white: #ffffff;\n teal: #00425d;\n sea: #007198;\n electric: #0096cc;\n spray: #73c8e1;\n polar: #e2f3f7;\n memesia: #1F69C3;\n sherpa: #004b50;\n surfie: #017a76;\n persian: #00a599;\n downy: #73cdc8;\n iceberg: #dcf5f0;\n sacramento: #004e32;\n salem: #08814d;\n pigment: #0aa245;\n granny: #9bd79b;\n panache: #e9fae7;\n brand-primary: #004b50;\n brand-secondary: #017a76;\n engine: #cc0000;\n carrot: #EA6A2E;\n kendall: #F5CCCC;\n elizabeth: #FBDED0;\n andrea: #3A7CDF;\n celestial: #D7E5F9;\n golf: #0AA345;\n error: #cc0000;\n error-bg: #F5CCCC;\n error-focus: #5a0000;\n warning: #EA6A2E;\n warning-bg: #fbdfd2;\n warning-focus: #b33a01;\n success: #0aa245;\n success-bg: #e9fae7;\n info: #3A7CDF;\n info-bg: #d8e5f9;\n visited: #00425d;\n green-hover: #107c3a;\n green-active: #094a22;\n green-btn: #0aa245;\n txt-link: #1F69C3;\n primary-hover-btn: #005678;\n selection: #c7e9f3;\n heading-color: #017a76;\n heading-color--secondary: #2a292c;\n base-type-color: #2a292c;\n input-text: #2a292c;\n input-placeholder: #6b6966;\n input-placeholder-when-disabled: #989189;\n base-icon-color: #007198;\n disabled-color: #989189;\n disabled-color-dark: #6b6966;\n linz-color-primary: #023d48;\n linz-color-primary-hover: #01818a;\n linz-color-tertiary: #e1e44a;\n linz-color-tertiary-hover: #cdcf59;\n color-test-pink: #f09;\n linz-linear-gradient-blue: linear-gradient(70deg, #00425d 12%, #007198 100%);\n linz-linear-gradient-teal: linear-gradient(270deg, #00a599 1%, #73cdc8 100%);\n}";
|
|
52490
|
+
styleInject(css_248z$5);
|
|
52491
52491
|
|
|
52492
52492
|
var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
|
|
52493
52493
|
|
|
@@ -52608,13 +52608,13 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
52608
52608
|
// box-shadow: "-8px 0px 0 0 #cc0000";
|
|
52609
52609
|
// border-radius: "4px";
|
|
52610
52610
|
var id = useGenerateOrDefaultId(props === null || props === void 0 ? void 0 : props.id);
|
|
52611
|
-
var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', theme: function (theme) { return (__assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primary: css_248z$
|
|
52611
|
+
var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', theme: function (theme) { return (__assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primary: css_248z$5['sea'], primary75: css_248z$5['electric'], primary50: css_248z$5['spray'], primary25: css_248z$5['polar'], neutral90: css_248z$5['charcoal'], neutral80: css_248z$5['charcoal'], neutral70: css_248z$5['charcoal'], neutral60: css_248z$5['fuscous'], neutral50: css_248z$5['fuscous'], neutral40: css_248z$5['gray'], neutral30: css_248z$5['gray'], neutral20: css_248z$5['silver'], neutral10: css_248z$5['lily'], neutral5: css_248z$5['hint'], danger: css_248z$5['error'], dangerLight: css_248z$5['error-bg'] }) })); }, styles: {
|
|
52612
52612
|
control: function (provided, state) { return (__assign(__assign({}, provided), {
|
|
52613
52613
|
/* matches style of .LuiTextInput-input */
|
|
52614
52614
|
boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {
|
|
52615
52615
|
borderColor: '#053d52'
|
|
52616
52616
|
} })); },
|
|
52617
|
-
dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$
|
|
52617
|
+
dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$5['fuscous'] })); },
|
|
52618
52618
|
indicatorSeparator: function (provided) { return (__assign(__assign({}, provided), { width: 0 })); },
|
|
52619
52619
|
input: function (provided) { return (__assign(__assign({}, provided), { height: '40px', minHeight: '40px', fontWeight: 400, input: {
|
|
52620
52620
|
height: '38px !important'
|
|
@@ -52622,10 +52622,10 @@ function LuiComboSelectActual(givenProps, ref) {
|
|
|
52622
52622
|
singleValue: function (provided) { return (__assign(__assign({}, provided), { color: '#414042', fontWeight: 400 })); },
|
|
52623
52623
|
placeholder: function (provided) { return (__assign(__assign({}, provided), {
|
|
52624
52624
|
/* please keep this in sync with FormVars.scss/mixin.formPlaceholder */
|
|
52625
|
-
fontWeight: 'normal', fontStyle: 'italic', color: css_248z$
|
|
52625
|
+
fontWeight: 'normal', fontStyle: 'italic', color: css_248z$5['input-placeholder'] })); },
|
|
52626
52626
|
option: function (provided, _a) {
|
|
52627
52627
|
var isSelected = _a.isSelected;
|
|
52628
|
-
return (__assign(__assign({}, provided), { color: css_248z$
|
|
52628
|
+
return (__assign(__assign({}, provided), { color: css_248z$5['input-text'], backgroundColor: isSelected ? css_248z$5['selection'] : css_248z$5['white'] }));
|
|
52629
52629
|
}
|
|
52630
52630
|
} });
|
|
52631
52631
|
return (React__default["default"].createElement("label", { htmlFor: id, className: clsx('LuiComboSelect-label', props.error && 'hasError') },
|
|
@@ -54997,8 +54997,8 @@ var LuiModalHeader = function (props) {
|
|
|
54997
54997
|
React__default["default"].createElement(LuiIcon, { name: "ic_clear", alt: "Help", size: "lg" }))))))));
|
|
54998
54998
|
};
|
|
54999
54999
|
|
|
55000
|
-
var css_248z$
|
|
55001
|
-
styleInject(css_248z$
|
|
55000
|
+
var css_248z$4 = "@keyframes react-loading-skeleton {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.react-loading-skeleton {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n overflow: hidden;\n z-index: 1; /* Necessary for overflow: hidden to work correctly in Safari */\n}\n\n.react-loading-skeleton::after {\n content: ' ';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: linear-gradient(\n 90deg,\n var(--base-color),\n var(--highlight-color),\n var(--base-color)\n );\n transform: translateX(-100%);\n\n animation-name: react-loading-skeleton;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n";
|
|
55001
|
+
styleInject(css_248z$4);
|
|
55002
55002
|
|
|
55003
55003
|
/**
|
|
55004
55004
|
* @internal
|
|
@@ -58229,8 +58229,8 @@ function bindGlobalEventListeners() {
|
|
|
58229
58229
|
window.addEventListener('blur', onWindowBlur);
|
|
58230
58230
|
}
|
|
58231
58231
|
|
|
58232
|
-
var isBrowser$
|
|
58233
|
-
var isIE11 = isBrowser$
|
|
58232
|
+
var isBrowser$2 = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
58233
|
+
var isIE11 = isBrowser$2 ? // @ts-ignore
|
|
58234
58234
|
!!window.msCrypto : false;
|
|
58235
58235
|
|
|
58236
58236
|
function createMemoryLeakWarning(method) {
|
|
@@ -59793,40 +59793,394 @@ tippy.setDefaultProps({
|
|
|
59793
59793
|
render: render
|
|
59794
59794
|
});
|
|
59795
59795
|
|
|
59796
|
-
|
|
59797
|
-
|
|
59796
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
59797
|
+
if (source == null) return {};
|
|
59798
|
+
var target = {};
|
|
59799
|
+
var sourceKeys = Object.keys(source);
|
|
59800
|
+
var key, i;
|
|
59798
59801
|
|
|
59799
|
-
|
|
59800
|
-
|
|
59802
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
59803
|
+
key = sourceKeys[i];
|
|
59804
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
59805
|
+
target[key] = source[key];
|
|
59806
|
+
}
|
|
59807
|
+
|
|
59808
|
+
return target;
|
|
59809
|
+
}
|
|
59810
|
+
|
|
59811
|
+
var isBrowser$1 = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
59812
|
+
function preserveRef(ref, node) {
|
|
59813
|
+
if (ref) {
|
|
59814
|
+
if (typeof ref === 'function') {
|
|
59815
|
+
ref(node);
|
|
59816
|
+
}
|
|
59817
|
+
|
|
59818
|
+
if ({}.hasOwnProperty.call(ref, 'current')) {
|
|
59819
|
+
ref.current = node;
|
|
59820
|
+
}
|
|
59821
|
+
}
|
|
59822
|
+
}
|
|
59823
|
+
function ssrSafeCreateDiv() {
|
|
59824
|
+
return isBrowser$1 && document.createElement('div');
|
|
59825
|
+
}
|
|
59826
|
+
function toDataAttributes(attrs) {
|
|
59827
|
+
var dataAttrs = {
|
|
59828
|
+
'data-placement': attrs.placement
|
|
59829
|
+
};
|
|
59830
|
+
|
|
59831
|
+
if (attrs.referenceHidden) {
|
|
59832
|
+
dataAttrs['data-reference-hidden'] = '';
|
|
59833
|
+
}
|
|
59834
|
+
|
|
59835
|
+
if (attrs.escaped) {
|
|
59836
|
+
dataAttrs['data-escaped'] = '';
|
|
59837
|
+
}
|
|
59838
|
+
|
|
59839
|
+
return dataAttrs;
|
|
59840
|
+
}
|
|
59841
|
+
|
|
59842
|
+
function deepEqual(x, y) {
|
|
59843
|
+
if (x === y) {
|
|
59844
|
+
return true;
|
|
59845
|
+
} else if (typeof x === 'object' && x != null && typeof y === 'object' && y != null) {
|
|
59846
|
+
if (Object.keys(x).length !== Object.keys(y).length) {
|
|
59847
|
+
return false;
|
|
59848
|
+
}
|
|
59849
|
+
|
|
59850
|
+
for (var prop in x) {
|
|
59851
|
+
if (y.hasOwnProperty(prop)) {
|
|
59852
|
+
if (!deepEqual(x[prop], y[prop])) {
|
|
59853
|
+
return false;
|
|
59854
|
+
}
|
|
59855
|
+
} else {
|
|
59856
|
+
return false;
|
|
59857
|
+
}
|
|
59858
|
+
}
|
|
59859
|
+
|
|
59860
|
+
return true;
|
|
59861
|
+
} else {
|
|
59862
|
+
return false;
|
|
59863
|
+
}
|
|
59864
|
+
}
|
|
59865
|
+
|
|
59866
|
+
function uniqueByShape(arr) {
|
|
59867
|
+
var output = [];
|
|
59868
|
+
arr.forEach(function (item) {
|
|
59869
|
+
if (!output.find(function (outputItem) {
|
|
59870
|
+
return deepEqual(item, outputItem);
|
|
59871
|
+
})) {
|
|
59872
|
+
output.push(item);
|
|
59873
|
+
}
|
|
59874
|
+
});
|
|
59875
|
+
return output;
|
|
59876
|
+
}
|
|
59877
|
+
function deepPreserveProps(instanceProps, componentProps) {
|
|
59878
|
+
var _instanceProps$popper, _componentProps$poppe;
|
|
59879
|
+
|
|
59880
|
+
return Object.assign({}, componentProps, {
|
|
59881
|
+
popperOptions: Object.assign({}, instanceProps.popperOptions, componentProps.popperOptions, {
|
|
59882
|
+
modifiers: uniqueByShape([].concat(((_instanceProps$popper = instanceProps.popperOptions) == null ? void 0 : _instanceProps$popper.modifiers) || [], ((_componentProps$poppe = componentProps.popperOptions) == null ? void 0 : _componentProps$poppe.modifiers) || []))
|
|
59883
|
+
})
|
|
59884
|
+
});
|
|
59885
|
+
}
|
|
59886
|
+
|
|
59887
|
+
var useIsomorphicLayoutEffect$1 = isBrowser$1 ? React.useLayoutEffect : React.useEffect;
|
|
59888
|
+
function useMutableBox(initialValue) {
|
|
59889
|
+
// Using refs instead of state as it's recommended to not store imperative
|
|
59890
|
+
// values in state due to memory problems in React(?)
|
|
59891
|
+
var ref = React.useRef();
|
|
59892
|
+
|
|
59893
|
+
if (!ref.current) {
|
|
59894
|
+
ref.current = typeof initialValue === 'function' ? initialValue() : initialValue;
|
|
59895
|
+
}
|
|
59896
|
+
|
|
59897
|
+
return ref.current;
|
|
59898
|
+
}
|
|
59899
|
+
|
|
59900
|
+
function updateClassName(box, action, classNames) {
|
|
59901
|
+
classNames.split(/\s+/).forEach(function (name) {
|
|
59902
|
+
if (name) {
|
|
59903
|
+
box.classList[action](name);
|
|
59904
|
+
}
|
|
59905
|
+
});
|
|
59906
|
+
}
|
|
59907
|
+
|
|
59908
|
+
var classNamePlugin = {
|
|
59909
|
+
name: 'className',
|
|
59910
|
+
defaultValue: '',
|
|
59911
|
+
fn: function fn(instance) {
|
|
59912
|
+
var box = instance.popper.firstElementChild;
|
|
59913
|
+
|
|
59914
|
+
var isDefaultRenderFn = function isDefaultRenderFn() {
|
|
59915
|
+
var _instance$props$rende;
|
|
59916
|
+
|
|
59917
|
+
return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
|
|
59918
|
+
};
|
|
59919
|
+
|
|
59920
|
+
function add() {
|
|
59921
|
+
if (instance.props.className && !isDefaultRenderFn()) {
|
|
59922
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
59923
|
+
console.warn(['@tippyjs/react: Cannot use `className` prop in conjunction with', '`render` prop. Place the className on the element you are', 'rendering.'].join(' '));
|
|
59924
|
+
}
|
|
59925
|
+
|
|
59926
|
+
return;
|
|
59927
|
+
}
|
|
59928
|
+
|
|
59929
|
+
updateClassName(box, 'add', instance.props.className);
|
|
59930
|
+
}
|
|
59931
|
+
|
|
59932
|
+
function remove() {
|
|
59933
|
+
if (isDefaultRenderFn()) {
|
|
59934
|
+
updateClassName(box, 'remove', instance.props.className);
|
|
59935
|
+
}
|
|
59936
|
+
}
|
|
59937
|
+
|
|
59938
|
+
return {
|
|
59939
|
+
onCreate: add,
|
|
59940
|
+
onBeforeUpdate: remove,
|
|
59941
|
+
onAfterUpdate: add
|
|
59942
|
+
};
|
|
59943
|
+
}
|
|
59944
|
+
};
|
|
59945
|
+
|
|
59946
|
+
function TippyGenerator(tippy) {
|
|
59947
|
+
function Tippy(_ref) {
|
|
59948
|
+
var children = _ref.children,
|
|
59949
|
+
content = _ref.content,
|
|
59950
|
+
visible = _ref.visible,
|
|
59951
|
+
singleton = _ref.singleton,
|
|
59952
|
+
render = _ref.render,
|
|
59953
|
+
reference = _ref.reference,
|
|
59954
|
+
_ref$disabled = _ref.disabled,
|
|
59955
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
59956
|
+
_ref$ignoreAttributes = _ref.ignoreAttributes,
|
|
59957
|
+
ignoreAttributes = _ref$ignoreAttributes === void 0 ? true : _ref$ignoreAttributes;
|
|
59958
|
+
_ref.__source;
|
|
59959
|
+
_ref.__self;
|
|
59960
|
+
var restOfNativeProps = _objectWithoutPropertiesLoose(_ref, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
|
|
59961
|
+
|
|
59962
|
+
var isControlledMode = visible !== undefined;
|
|
59963
|
+
var isSingletonMode = singleton !== undefined;
|
|
59964
|
+
|
|
59965
|
+
var _useState = React.useState(false),
|
|
59966
|
+
mounted = _useState[0],
|
|
59967
|
+
setMounted = _useState[1];
|
|
59968
|
+
|
|
59969
|
+
var _useState2 = React.useState({}),
|
|
59970
|
+
attrs = _useState2[0],
|
|
59971
|
+
setAttrs = _useState2[1];
|
|
59972
|
+
|
|
59973
|
+
var _useState3 = React.useState(),
|
|
59974
|
+
singletonContent = _useState3[0],
|
|
59975
|
+
setSingletonContent = _useState3[1];
|
|
59976
|
+
|
|
59977
|
+
var mutableBox = useMutableBox(function () {
|
|
59978
|
+
return {
|
|
59979
|
+
container: ssrSafeCreateDiv(),
|
|
59980
|
+
renders: 1
|
|
59981
|
+
};
|
|
59982
|
+
});
|
|
59983
|
+
var props = Object.assign({
|
|
59984
|
+
ignoreAttributes: ignoreAttributes
|
|
59985
|
+
}, restOfNativeProps, {
|
|
59986
|
+
content: mutableBox.container
|
|
59987
|
+
});
|
|
59988
|
+
|
|
59989
|
+
if (isControlledMode) {
|
|
59990
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
59991
|
+
['trigger', 'hideOnClick', 'showOnCreate'].forEach(function (nativeStateProp) {
|
|
59992
|
+
if (props[nativeStateProp] !== undefined) {
|
|
59993
|
+
console.warn(["@tippyjs/react: Cannot specify `" + nativeStateProp + "` prop in", "controlled mode (`visible` prop)"].join(' '));
|
|
59994
|
+
}
|
|
59995
|
+
});
|
|
59996
|
+
}
|
|
59997
|
+
|
|
59998
|
+
props.trigger = 'manual';
|
|
59999
|
+
props.hideOnClick = false;
|
|
60000
|
+
}
|
|
60001
|
+
|
|
60002
|
+
if (isSingletonMode) {
|
|
60003
|
+
disabled = true;
|
|
60004
|
+
}
|
|
60005
|
+
|
|
60006
|
+
var computedProps = props;
|
|
60007
|
+
var plugins = props.plugins || [];
|
|
60008
|
+
|
|
60009
|
+
if (render) {
|
|
60010
|
+
computedProps = Object.assign({}, props, {
|
|
60011
|
+
plugins: isSingletonMode && singleton.data != null ? [].concat(plugins, [{
|
|
60012
|
+
fn: function fn() {
|
|
60013
|
+
return {
|
|
60014
|
+
onTrigger: function onTrigger(instance, event) {
|
|
60015
|
+
var node = singleton.data.children.find(function (_ref2) {
|
|
60016
|
+
var instance = _ref2.instance;
|
|
60017
|
+
return instance.reference === event.currentTarget;
|
|
60018
|
+
});
|
|
60019
|
+
instance.state.$$activeSingletonInstance = node.instance;
|
|
60020
|
+
setSingletonContent(node.content);
|
|
60021
|
+
}
|
|
60022
|
+
};
|
|
60023
|
+
}
|
|
60024
|
+
}]) : plugins,
|
|
60025
|
+
render: function render() {
|
|
60026
|
+
return {
|
|
60027
|
+
popper: mutableBox.container
|
|
60028
|
+
};
|
|
60029
|
+
}
|
|
60030
|
+
});
|
|
60031
|
+
}
|
|
60032
|
+
|
|
60033
|
+
var deps = [reference].concat(children ? [children.type] : []); // CREATE
|
|
60034
|
+
|
|
60035
|
+
useIsomorphicLayoutEffect$1(function () {
|
|
60036
|
+
var element = reference;
|
|
60037
|
+
|
|
60038
|
+
if (reference && reference.hasOwnProperty('current')) {
|
|
60039
|
+
element = reference.current;
|
|
60040
|
+
}
|
|
60041
|
+
|
|
60042
|
+
var instance = tippy(element || mutableBox.ref || ssrSafeCreateDiv(), Object.assign({}, computedProps, {
|
|
60043
|
+
plugins: [classNamePlugin].concat(props.plugins || [])
|
|
60044
|
+
}));
|
|
60045
|
+
mutableBox.instance = instance;
|
|
60046
|
+
|
|
60047
|
+
if (disabled) {
|
|
60048
|
+
instance.disable();
|
|
60049
|
+
}
|
|
60050
|
+
|
|
60051
|
+
if (visible) {
|
|
60052
|
+
instance.show();
|
|
60053
|
+
}
|
|
60054
|
+
|
|
60055
|
+
if (isSingletonMode) {
|
|
60056
|
+
singleton.hook({
|
|
60057
|
+
instance: instance,
|
|
60058
|
+
content: content,
|
|
60059
|
+
props: computedProps,
|
|
60060
|
+
setSingletonContent: setSingletonContent
|
|
60061
|
+
});
|
|
60062
|
+
}
|
|
60063
|
+
|
|
60064
|
+
setMounted(true);
|
|
60065
|
+
return function () {
|
|
60066
|
+
instance.destroy();
|
|
60067
|
+
singleton == null ? void 0 : singleton.cleanup(instance);
|
|
60068
|
+
};
|
|
60069
|
+
}, deps); // UPDATE
|
|
60070
|
+
|
|
60071
|
+
useIsomorphicLayoutEffect$1(function () {
|
|
60072
|
+
var _instance$popperInsta;
|
|
60073
|
+
|
|
60074
|
+
// Prevent this effect from running on 1st render
|
|
60075
|
+
if (mutableBox.renders === 1) {
|
|
60076
|
+
mutableBox.renders++;
|
|
60077
|
+
return;
|
|
60078
|
+
}
|
|
60079
|
+
|
|
60080
|
+
var instance = mutableBox.instance;
|
|
60081
|
+
instance.setProps(deepPreserveProps(instance.props, computedProps)); // Fixes #264
|
|
60082
|
+
|
|
60083
|
+
(_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.forceUpdate();
|
|
60084
|
+
|
|
60085
|
+
if (disabled) {
|
|
60086
|
+
instance.disable();
|
|
60087
|
+
} else {
|
|
60088
|
+
instance.enable();
|
|
60089
|
+
}
|
|
60090
|
+
|
|
60091
|
+
if (isControlledMode) {
|
|
60092
|
+
if (visible) {
|
|
60093
|
+
instance.show();
|
|
60094
|
+
} else {
|
|
60095
|
+
instance.hide();
|
|
60096
|
+
}
|
|
60097
|
+
}
|
|
60098
|
+
|
|
60099
|
+
if (isSingletonMode) {
|
|
60100
|
+
singleton.hook({
|
|
60101
|
+
instance: instance,
|
|
60102
|
+
content: content,
|
|
60103
|
+
props: computedProps,
|
|
60104
|
+
setSingletonContent: setSingletonContent
|
|
60105
|
+
});
|
|
60106
|
+
}
|
|
60107
|
+
});
|
|
60108
|
+
useIsomorphicLayoutEffect$1(function () {
|
|
60109
|
+
var _instance$props$poppe;
|
|
60110
|
+
|
|
60111
|
+
if (!render) {
|
|
60112
|
+
return;
|
|
60113
|
+
}
|
|
60114
|
+
|
|
60115
|
+
var instance = mutableBox.instance;
|
|
60116
|
+
instance.setProps({
|
|
60117
|
+
popperOptions: Object.assign({}, instance.props.popperOptions, {
|
|
60118
|
+
modifiers: [].concat((((_instance$props$poppe = instance.props.popperOptions) == null ? void 0 : _instance$props$poppe.modifiers) || []).filter(function (_ref3) {
|
|
60119
|
+
var name = _ref3.name;
|
|
60120
|
+
return name !== '$$tippyReact';
|
|
60121
|
+
}), [{
|
|
60122
|
+
name: '$$tippyReact',
|
|
60123
|
+
enabled: true,
|
|
60124
|
+
phase: 'beforeWrite',
|
|
60125
|
+
requires: ['computeStyles'],
|
|
60126
|
+
fn: function fn(_ref4) {
|
|
60127
|
+
var _state$modifiersData;
|
|
60128
|
+
|
|
60129
|
+
var state = _ref4.state;
|
|
60130
|
+
var hideData = (_state$modifiersData = state.modifiersData) == null ? void 0 : _state$modifiersData.hide; // WARNING: this is a high-risk path that can cause an infinite
|
|
60131
|
+
// loop. This expression _must_ evaluate to false when required
|
|
60132
|
+
|
|
60133
|
+
if (attrs.placement !== state.placement || attrs.referenceHidden !== (hideData == null ? void 0 : hideData.isReferenceHidden) || attrs.escaped !== (hideData == null ? void 0 : hideData.hasPopperEscaped)) {
|
|
60134
|
+
setAttrs({
|
|
60135
|
+
placement: state.placement,
|
|
60136
|
+
referenceHidden: hideData == null ? void 0 : hideData.isReferenceHidden,
|
|
60137
|
+
escaped: hideData == null ? void 0 : hideData.hasPopperEscaped
|
|
60138
|
+
});
|
|
60139
|
+
}
|
|
60140
|
+
|
|
60141
|
+
state.attributes.popper = {};
|
|
60142
|
+
}
|
|
60143
|
+
}])
|
|
60144
|
+
})
|
|
60145
|
+
});
|
|
60146
|
+
}, [attrs.placement, attrs.referenceHidden, attrs.escaped].concat(deps));
|
|
60147
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children ? /*#__PURE__*/React.cloneElement(children, {
|
|
60148
|
+
ref: function ref(node) {
|
|
60149
|
+
mutableBox.ref = node;
|
|
60150
|
+
preserveRef(children.ref, node);
|
|
60151
|
+
}
|
|
60152
|
+
}) : null, mounted && /*#__PURE__*/require$$1.createPortal(render ? render(toDataAttributes(attrs), singletonContent, mutableBox.instance) : content, mutableBox.container));
|
|
60153
|
+
}
|
|
60154
|
+
|
|
60155
|
+
return Tippy;
|
|
60156
|
+
}
|
|
60157
|
+
|
|
60158
|
+
var forwardRef = (function (Tippy, defaultProps) {
|
|
60159
|
+
return /*#__PURE__*/React.forwardRef(function TippyWrapper(_ref, _ref2) {
|
|
60160
|
+
var children = _ref.children,
|
|
60161
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children"]);
|
|
60162
|
+
|
|
60163
|
+
return (
|
|
60164
|
+
/*#__PURE__*/
|
|
60165
|
+
// If I spread them separately here, Babel adds the _extends ponyfill for
|
|
60166
|
+
// some reason
|
|
60167
|
+
React__default["default"].createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/React.cloneElement(children, {
|
|
60168
|
+
ref: function ref(node) {
|
|
60169
|
+
preserveRef(_ref2, node);
|
|
60170
|
+
preserveRef(children.ref, node);
|
|
60171
|
+
}
|
|
60172
|
+
}) : null)
|
|
60173
|
+
);
|
|
60174
|
+
});
|
|
60175
|
+
});
|
|
60176
|
+
var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
|
|
60177
|
+
|
|
60178
|
+
var Tippy = index;
|
|
59801
60179
|
|
|
59802
|
-
var id = 0;
|
|
59803
|
-
var getKey = function () { return id++; };
|
|
59804
60180
|
var LuiTooltip = function (props) {
|
|
59805
|
-
var children = props.children,
|
|
59806
|
-
var
|
|
59807
|
-
|
|
59808
|
-
throw new Error('LuiTooltip message must be a string!');
|
|
59809
|
-
}
|
|
59810
|
-
React.useEffect(function () {
|
|
59811
|
-
tippy("#".concat(id), {
|
|
59812
|
-
content: message,
|
|
59813
|
-
arrow: false,
|
|
59814
|
-
trigger: trigger,
|
|
59815
|
-
theme: mode,
|
|
59816
|
-
placement: placement,
|
|
59817
|
-
offset: offset,
|
|
59818
|
-
animation: animation,
|
|
59819
|
-
followCursor: followCursor$1,
|
|
59820
|
-
interactive: interactive,
|
|
59821
|
-
allowHTML: allowHTML,
|
|
59822
|
-
plugins: [followCursor]
|
|
59823
|
-
});
|
|
59824
|
-
return function () {
|
|
59825
|
-
var _a, _b;
|
|
59826
|
-
(_b = (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a._tippy) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
59827
|
-
};
|
|
59828
|
-
}, [id, message, placement, trigger, animation, followCursor$1]);
|
|
59829
|
-
return React__default["default"].createElement("span", { id: id }, children);
|
|
60181
|
+
var children = props.children, content = props.content, message = props.message, placement = props.placement, offset = props.offset, _a = props.mode, mode = _a === void 0 ? 'default' : _a, plugins = props.plugins, arrow = props.arrow, className = props.className, rest = __rest(props, ["children", "content", "message", "placement", "offset", "mode", "plugins", "arrow", "className"]);
|
|
60182
|
+
var tippyProps = __assign(__assign({}, rest), { content: content !== null && content !== void 0 ? content : message, theme: mode, placement: placement !== null && placement !== void 0 ? placement : 'bottom', offset: offset !== null && offset !== void 0 ? offset : [0, 18], className: "LuiTooltip ".concat(className !== null && className !== void 0 ? className : ''), arrow: arrow !== null && arrow !== void 0 ? arrow : false, plugins: __spreadArray(__spreadArray([], (plugins || []), true), [followCursor], false) });
|
|
60183
|
+
return React__default["default"].createElement(Tippy, __assign({}, tippyProps), children);
|
|
59830
60184
|
};
|
|
59831
60185
|
|
|
59832
60186
|
/**
|