@linzjs/lui 17.48.0 → 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/dist/lui.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { useState, createContext, createElement, useContext, useRef, PureComponent, forwardRef, useEffect, Fragment, useLayoutEffect, Component, useMemo, useCallback, cloneElement, Children, isValidElement } from 'react';
2
+ import React__default, { useState, createContext, createElement, useContext, useRef, PureComponent, forwardRef as forwardRef$1, useEffect, Fragment, useLayoutEffect, Component, useMemo, useCallback, cloneElement, Children, isValidElement } from 'react';
3
3
  import { Menu as Menu$1, ControlledMenu, applyStatics, MenuItem, SubMenu, MenuDivider, MenuHeader, useMenuState, FocusableItem } from '@szhsin/react-menu';
4
4
  import crypto$1 from 'crypto';
5
5
  import { Formik, Form, useFormikContext, Field, getIn, connect, ErrorMessage, useField } from 'formik';
@@ -25045,7 +25045,7 @@ var Gi, kx = function(s, f, p) {
25045
25045
  );
25046
25046
  process.env.NODE_ENV !== "production" && (IE.displayName = "EmotionCacheContext");
25047
25047
  var EF = IE.Provider, bF = function(s) {
25048
- return /* @__PURE__ */ forwardRef(function(f, p) {
25048
+ return /* @__PURE__ */ forwardRef$1(function(f, p) {
25049
25049
  var S = useContext(IE);
25050
25050
  return s(f, S, p);
25051
25051
  });
@@ -25386,8 +25386,8 @@ function styleInject(css, ref) {
25386
25386
  }
25387
25387
  }
25388
25388
 
25389
- var css_248z$a = ".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}";
25390
- styleInject(css_248z$a);
25389
+ 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}";
25390
+ styleInject(css_248z$8);
25391
25391
 
25392
25392
  /**
25393
25393
  * Overwrite the common buttons for floating window to
@@ -27386,7 +27386,7 @@ Grid.prototype.destroy = function destroy (immediate) {
27386
27386
  );
27387
27387
  };
27388
27388
 
27389
- function index (options) { return new Grid(options); }
27389
+ function index$1 (options) { return new Grid(options); }
27390
27390
 
27391
27391
  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; }
27392
27392
 
@@ -27426,7 +27426,7 @@ var ReactSplitGrid = /*@__PURE__*/(function (superclass) {
27426
27426
  options.writeStyle = this.writeStyle;
27427
27427
  options.onDrag = this.onDrag;
27428
27428
 
27429
- this.split = index(options);
27429
+ this.split = index$1(options);
27430
27430
  };
27431
27431
 
27432
27432
  ReactSplitGrid.prototype.componentDidUpdate = function componentDidUpdate (prevProps) {
@@ -27492,7 +27492,7 @@ var ReactSplitGrid = /*@__PURE__*/(function (superclass) {
27492
27492
 
27493
27493
  this.split.destroy(false);
27494
27494
 
27495
- this.split = index(options);
27495
+ this.split = index$1(options);
27496
27496
  }
27497
27497
  };
27498
27498
 
@@ -27636,8 +27636,8 @@ ReactSplitGrid.defaultProps = {
27636
27636
  onDrag: undefined,
27637
27637
  };
27638
27638
 
27639
- var css_248z$9 = ".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}";
27640
- styleInject(css_248z$9);
27639
+ 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}";
27640
+ styleInject(css_248z$7);
27641
27641
 
27642
27642
  var GutterComponent = function (props) {
27643
27643
  var leftIcon = (React__default.createElement(LuiIcon, { name: "ic_double_arrow_left", alt: "", status: "interactive" }));
@@ -27955,8 +27955,8 @@ function LuiFormikForm(props) {
27955
27955
  " "))));
27956
27956
  }
27957
27957
 
27958
- var css_248z$8 = "/**\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}";
27959
- styleInject(css_248z$8);
27958
+ 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}";
27959
+ styleInject(css_248z$6);
27960
27960
 
27961
27961
  var LuiError = function (_a) {
27962
27962
  var error = _a.error, className = _a.className;
@@ -28115,7 +28115,7 @@ var parseTextDate = function (value, options) {
28115
28115
  }
28116
28116
  };
28117
28117
 
28118
- var DateInput = forwardRef(function (props, ref) {
28118
+ var DateInput = forwardRef$1(function (props, ref) {
28119
28119
  var valueProp = props.value, onChangeProp = props.onChange, onPasteProp = props.onPaste, inputProps = __rest(props, ["value", "onChange", "onPaste"]);
28120
28120
  return (React__default.createElement("input", __assign({}, inputProps, { ref: ref, pattern: "d{2}/d{2}/d{4}", placeholder: "dd/mm/yyyy", type: 'date', value: valueProp, onChange: function (e) { return onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e); }, onPaste: function (e) {
28121
28121
  var data = e.clipboardData.getData('text');
@@ -28131,8 +28131,8 @@ function useGenerateOrDefaultId(idFromProps) {
28131
28131
  var id = useState(idFromProps ? idFromProps : v4())[0];
28132
28132
  return id;
28133
28133
  }
28134
- var BareInput = forwardRef(function (props, ref) { return React__default.createElement("input", __assign({}, props, { ref: ref })); });
28135
- var LuiTextInput = forwardRef(function (props, ref) {
28134
+ var BareInput = forwardRef$1(function (props, ref) { return React__default.createElement("input", __assign({}, props, { ref: ref })); });
28135
+ var LuiTextInput = forwardRef$1(function (props, ref) {
28136
28136
  var _a, _b, _c;
28137
28137
  var id = useGenerateOrDefaultId((_a = props.inputProps) === null || _a === void 0 ? void 0 : _a.id);
28138
28138
  var LuiInput = ((_b = props.inputProps) === null || _b === void 0 ? void 0 : _b.type) === 'date' ? DateInput : BareInput;
@@ -29912,8 +29912,8 @@ var prefixer = function prefixer(element, index, children, callback) {
29912
29912
  }
29913
29913
  };
29914
29914
 
29915
- var isBrowser$6 = typeof document !== 'undefined';
29916
- var getServerStylisCache = isBrowser$6 ? undefined : weakMemoize(function () {
29915
+ var isBrowser$7 = typeof document !== 'undefined';
29916
+ var getServerStylisCache = isBrowser$7 ? undefined : weakMemoize(function () {
29917
29917
  return memoize(function () {
29918
29918
  var cache = {};
29919
29919
  return function (name) {
@@ -29930,7 +29930,7 @@ var createCache = function createCache(options) {
29930
29930
  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.");
29931
29931
  }
29932
29932
 
29933
- if (isBrowser$6 && key === 'css') {
29933
+ if (isBrowser$7 && key === 'css') {
29934
29934
  var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
29935
29935
  // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
29936
29936
  // note this very very intentionally targets all style elements regardless of the key to ensure
@@ -29966,7 +29966,7 @@ var createCache = function createCache(options) {
29966
29966
  var container;
29967
29967
  var nodesToHydrate = [];
29968
29968
 
29969
- if (isBrowser$6) {
29969
+ if (isBrowser$7) {
29970
29970
  container = options.container || document.head;
29971
29971
  Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
29972
29972
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -29994,7 +29994,7 @@ var createCache = function createCache(options) {
29994
29994
  }), incorrectImportAlarm);
29995
29995
  }
29996
29996
 
29997
- if (isBrowser$6) {
29997
+ if (isBrowser$7) {
29998
29998
  var currentSheet;
29999
29999
  var finalizingPlugins = [stringify, process.env.NODE_ENV !== 'production' ? function (element) {
30000
30000
  if (!element.root) {
@@ -30335,7 +30335,7 @@ var TYPE_STATICS = {};
30335
30335
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
30336
30336
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
30337
30337
 
30338
- var isBrowser$5 = typeof document !== 'undefined';
30338
+ var isBrowser$6 = typeof document !== 'undefined';
30339
30339
  function getRegisteredStyles(registered, registeredStyles, classNames) {
30340
30340
  var rawClassName = '';
30341
30341
  classNames.split(' ').forEach(function (className) {
@@ -30359,7 +30359,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
30359
30359
  // in node since emotion-server relies on whether a style is in
30360
30360
  // the registered cache to know whether a style is global or not
30361
30361
  // also, note that this check will be dead code eliminated in the browser
30362
- isBrowser$5 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
30362
+ isBrowser$6 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
30363
30363
  cache.registered[className] = serialized.styles;
30364
30364
  }
30365
30365
  };
@@ -30374,14 +30374,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
30374
30374
  do {
30375
30375
  var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
30376
30376
 
30377
- if (!isBrowser$5 && maybeStyles !== undefined) {
30377
+ if (!isBrowser$6 && maybeStyles !== undefined) {
30378
30378
  stylesForSSR += maybeStyles;
30379
30379
  }
30380
30380
 
30381
30381
  current = current.next;
30382
30382
  } while (current !== undefined);
30383
30383
 
30384
- if (!isBrowser$5 && stylesForSSR.length !== 0) {
30384
+ if (!isBrowser$6 && stylesForSSR.length !== 0) {
30385
30385
  return stylesForSSR;
30386
30386
  }
30387
30387
  }
@@ -30801,17 +30801,17 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
30801
30801
  };
30802
30802
  };
30803
30803
 
30804
- var isBrowser$4 = typeof document !== 'undefined';
30804
+ var isBrowser$5 = typeof document !== 'undefined';
30805
30805
 
30806
30806
  var syncFallback = function syncFallback(create) {
30807
30807
  return create();
30808
30808
  };
30809
30809
 
30810
30810
  var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
30811
- var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$4 ? syncFallback : useInsertionEffect || syncFallback;
30811
+ var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$5 ? syncFallback : useInsertionEffect || syncFallback;
30812
30812
  var useInsertionEffectWithLayoutFallback = useInsertionEffect || useLayoutEffect;
30813
30813
 
30814
- var isBrowser$3 = typeof document !== 'undefined';
30814
+ var isBrowser$4 = typeof document !== 'undefined';
30815
30815
  var hasOwnProperty$1 = {}.hasOwnProperty;
30816
30816
 
30817
30817
  var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
@@ -30832,14 +30832,14 @@ EmotionCacheContext.Provider;
30832
30832
 
30833
30833
  var withEmotionCache = function withEmotionCache(func) {
30834
30834
  // $FlowFixMe
30835
- return /*#__PURE__*/forwardRef(function (props, ref) {
30835
+ return /*#__PURE__*/forwardRef$1(function (props, ref) {
30836
30836
  // the cache will never be null in the browser
30837
30837
  var cache = useContext(EmotionCacheContext);
30838
30838
  return func(props, cache, ref);
30839
30839
  });
30840
30840
  };
30841
30841
 
30842
- if (!isBrowser$3) {
30842
+ if (!isBrowser$4) {
30843
30843
  withEmotionCache = function withEmotionCache(func) {
30844
30844
  return function (props) {
30845
30845
  var cache = useContext(EmotionCacheContext);
@@ -30948,7 +30948,7 @@ var Insertion$1 = function Insertion(_ref) {
30948
30948
  return insertStyles(cache, serialized, isStringTag);
30949
30949
  });
30950
30950
 
30951
- if (!isBrowser$3 && rules !== undefined) {
30951
+ if (!isBrowser$4 && rules !== undefined) {
30952
30952
  var _ref2;
30953
30953
 
30954
30954
  var serializedNames = serialized.name;
@@ -31179,7 +31179,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
31179
31179
  var styles = props.styles;
31180
31180
  var serialized = serializeStyles([styles], undefined, useContext(ThemeContext));
31181
31181
 
31182
- if (!isBrowser$3) {
31182
+ if (!isBrowser$4) {
31183
31183
  var _ref;
31184
31184
 
31185
31185
  var serializedNames = serialized.name;
@@ -31365,17 +31365,17 @@ var Insertion = function Insertion(_ref) {
31365
31365
  for (var i = 0; i < serializedArr.length; i++) {
31366
31366
  var res = insertStyles(cache, serializedArr[i], false);
31367
31367
 
31368
- if (!isBrowser$3 && res !== undefined) {
31368
+ if (!isBrowser$4 && res !== undefined) {
31369
31369
  rules += res;
31370
31370
  }
31371
31371
  }
31372
31372
 
31373
- if (!isBrowser$3) {
31373
+ if (!isBrowser$4) {
31374
31374
  return rules;
31375
31375
  }
31376
31376
  });
31377
31377
 
31378
- if (!isBrowser$3 && rules.length !== 0) {
31378
+ if (!isBrowser$4 && rules.length !== 0) {
31379
31379
  var _ref2;
31380
31380
 
31381
31381
  return /*#__PURE__*/createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
@@ -31438,15 +31438,15 @@ if (process.env.NODE_ENV !== 'production') {
31438
31438
  }
31439
31439
 
31440
31440
  if (process.env.NODE_ENV !== 'production') {
31441
- var isBrowser$2 = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
31441
+ var isBrowser$3 = typeof document !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked
31442
31442
 
31443
31443
  var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined';
31444
31444
 
31445
- if (isBrowser$2 && !isTestEnv) {
31445
+ if (isBrowser$3 && !isTestEnv) {
31446
31446
  // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
31447
31447
  var globalContext = // $FlowIgnore
31448
31448
  typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
31449
- : isBrowser$2 ? window : global;
31449
+ : isBrowser$3 ? window : global;
31450
31450
  var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
31451
31451
 
31452
31452
  if (globalContext[globalKey]) {
@@ -31468,7 +31468,7 @@ function _taggedTemplateLiteral(strings, raw) {
31468
31468
  }));
31469
31469
  }
31470
31470
 
31471
- function _objectWithoutPropertiesLoose(source, excluded) {
31471
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
31472
31472
  if (source == null) return {};
31473
31473
  var target = {};
31474
31474
  var sourceKeys = Object.keys(source);
@@ -31483,7 +31483,7 @@ function _objectWithoutPropertiesLoose(source, excluded) {
31483
31483
 
31484
31484
  function _objectWithoutProperties(source, excluded) {
31485
31485
  if (source == null) return {};
31486
- var target = _objectWithoutPropertiesLoose(source, excluded);
31486
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
31487
31487
  var key, i;
31488
31488
  if (Object.getOwnPropertySymbols) {
31489
31489
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -52457,8 +52457,8 @@ function isChromatic() {
52457
52457
  (window === null || window === void 0 ? void 0 : window.location.href.match(/chromatic=true/)));
52458
52458
  }
52459
52459
 
52460
- var css_248z$7 = ":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}";
52461
- styleInject(css_248z$7);
52460
+ 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}";
52461
+ styleInject(css_248z$5);
52462
52462
 
52463
52463
  var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
52464
52464
 
@@ -52565,7 +52565,7 @@ var CreatableSelect = /*#__PURE__*/React__default.forwardRef(function (props, re
52565
52565
  /**
52566
52566
  * A wrapper around React Select with Lui styling
52567
52567
  */
52568
- var LuiComboSelect = forwardRef(LuiComboSelectActual);
52568
+ var LuiComboSelect = forwardRef$1(LuiComboSelectActual);
52569
52569
  // declare the indicator in here so it gets the types from
52570
52570
  // the function declaration
52571
52571
  var LuiLoadingIndicator = function () { return React__default.createElement(LuiMiniSpinner, { size: 25 }); };
@@ -52579,13 +52579,13 @@ function LuiComboSelectActual(givenProps, ref) {
52579
52579
  // box-shadow: "-8px 0px 0 0 #cc0000";
52580
52580
  // border-radius: "4px";
52581
52581
  var id = useGenerateOrDefaultId(props === null || props === void 0 ? void 0 : props.id);
52582
- var selectProp = __assign(__assign({ inputId: id }, props), { classNamePrefix: 'LuiComboSelect', theme: function (theme) { return (__assign(__assign({}, theme), { colors: __assign(__assign({}, theme.colors), { primary: css_248z$7['sea'], primary75: css_248z$7['electric'], primary50: css_248z$7['spray'], primary25: css_248z$7['polar'], neutral90: css_248z$7['charcoal'], neutral80: css_248z$7['charcoal'], neutral70: css_248z$7['charcoal'], neutral60: css_248z$7['fuscous'], neutral50: css_248z$7['fuscous'], neutral40: css_248z$7['gray'], neutral30: css_248z$7['gray'], neutral20: css_248z$7['silver'], neutral10: css_248z$7['lily'], neutral5: css_248z$7['hint'], danger: css_248z$7['error'], dangerLight: css_248z$7['error-bg'] }) })); }, styles: {
52582
+ 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: {
52583
52583
  control: function (provided, state) { return (__assign(__assign({}, provided), {
52584
52584
  /* matches style of .LuiTextInput-input */
52585
52585
  boxShadow: 'none', border: state.isFocused ? '1px solid #053d52' : '1px solid #b2b2b2', '&:hover, &:active': {
52586
52586
  borderColor: '#053d52'
52587
52587
  } })); },
52588
- dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$7['fuscous'] })); },
52588
+ dropdownIndicator: function (provided) { return (__assign(__assign({}, provided), { color: css_248z$5['fuscous'] })); },
52589
52589
  indicatorSeparator: function (provided) { return (__assign(__assign({}, provided), { width: 0 })); },
52590
52590
  input: function (provided) { return (__assign(__assign({}, provided), { height: '40px', minHeight: '40px', fontWeight: 400, input: {
52591
52591
  height: '38px !important'
@@ -52593,10 +52593,10 @@ function LuiComboSelectActual(givenProps, ref) {
52593
52593
  singleValue: function (provided) { return (__assign(__assign({}, provided), { color: '#414042', fontWeight: 400 })); },
52594
52594
  placeholder: function (provided) { return (__assign(__assign({}, provided), {
52595
52595
  /* please keep this in sync with FormVars.scss/mixin.formPlaceholder */
52596
- fontWeight: 'normal', fontStyle: 'italic', color: css_248z$7['input-placeholder'] })); },
52596
+ fontWeight: 'normal', fontStyle: 'italic', color: css_248z$5['input-placeholder'] })); },
52597
52597
  option: function (provided, _a) {
52598
52598
  var isSelected = _a.isSelected;
52599
- return (__assign(__assign({}, provided), { color: css_248z$7['input-text'], backgroundColor: isSelected ? css_248z$7['selection'] : css_248z$7['white'] }));
52599
+ return (__assign(__assign({}, provided), { color: css_248z$5['input-text'], backgroundColor: isSelected ? css_248z$5['selection'] : css_248z$5['white'] }));
52600
52600
  }
52601
52601
  } });
52602
52602
  return (React__default.createElement("label", { htmlFor: id, className: clsx('LuiComboSelect-label', props.error && 'hasError') },
@@ -52727,7 +52727,7 @@ var LuiHeader = function (_a) {
52727
52727
  * Note that it depends on it being rendered inside a LuiHeader for its styles to apply properly.
52728
52728
  * To configure the item for responsiveness, ensure to set any of the hideOn* properties.
52729
52729
  */
52730
- var LuiHeaderMenuItem = forwardRef(function (_a, ref) {
52730
+ var LuiHeaderMenuItem = forwardRef$1(function (_a, ref) {
52731
52731
  var icon = _a.icon, label = _a.label, badge = _a.badge, hide = _a.hide, onClick = _a.onClick, _b = _a["data-testid"], dataTestId = _b === void 0 ? 'menu-item' : _b, children = _a.children;
52732
52732
  useDeprecatedWarning('LuiHeaderMenuItem');
52733
52733
  var menuItemClasses = clsx('lui-header-menu-item', hide && buildHideClassDict(hide));
@@ -52801,7 +52801,7 @@ var LuiHeaderV2 = function (_a) {
52801
52801
  React__default.createElement("h1", null, headingText)))),
52802
52802
  React__default.createElement("div", { className: "LuiHeaderV2-col" }, children))));
52803
52803
  };
52804
- var LuiHeaderMenuItemV2 = forwardRef(function (_a, ref) {
52804
+ var LuiHeaderMenuItemV2 = forwardRef$1(function (_a, ref) {
52805
52805
  var icon = _a.icon, _b = _a.iconColor, iconColor = _b === void 0 ? '#E2F3F7' : _b, label = _a.label, badge = _a.badge, onClick = _a.onClick, _c = _a["data-testid"], dataTestId = _c === void 0 ? 'menu-item' : _c, externalSelected = _a.isSelected, onClickOutside = _a.onClickOutside, onEscape = _a.onEscape, tooltip = _a.tooltip, children = _a.children, className = _a.className;
52806
52806
  var _d = useState(false), internalSelected = _d[0], setInternalSelected = _d[1];
52807
52807
  var useInternalSelectedStatus = externalSelected === undefined;
@@ -54968,8 +54968,8 @@ var LuiModalHeader = function (props) {
54968
54968
  React__default.createElement(LuiIcon, { name: "ic_clear", alt: "Help", size: "lg" }))))))));
54969
54969
  };
54970
54970
 
54971
- var css_248z$6 = "@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";
54972
- styleInject(css_248z$6);
54971
+ 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";
54972
+ styleInject(css_248z$4);
54973
54973
 
54974
54974
  /**
54975
54975
  * @internal
@@ -58200,8 +58200,8 @@ function bindGlobalEventListeners() {
58200
58200
  window.addEventListener('blur', onWindowBlur);
58201
58201
  }
58202
58202
 
58203
- var isBrowser$1 = typeof window !== 'undefined' && typeof document !== 'undefined';
58204
- var isIE11 = isBrowser$1 ? // @ts-ignore
58203
+ var isBrowser$2 = typeof window !== 'undefined' && typeof document !== 'undefined';
58204
+ var isIE11 = isBrowser$2 ? // @ts-ignore
58205
58205
  !!window.msCrypto : false;
58206
58206
 
58207
58207
  function createMemoryLeakWarning(method) {
@@ -59764,37 +59764,394 @@ tippy.setDefaultProps({
59764
59764
  render: render
59765
59765
  });
59766
59766
 
59767
- var css_248z$5 = ".tippy-box{border:1px transparent}.tippy-box[data-placement^=top]>.tippy-arrow:after{border-top-color:inherit;border-width:8px 8px 0;bottom:-8px;left:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:inherit;border-width:0 8px 8px;top:-8px;left:0}.tippy-box[data-placement^=left]>.tippy-arrow:after{border-left-color:inherit;border-width:8px 0 8px 8px;right:-8px;top:0}.tippy-box[data-placement^=right]>.tippy-arrow:after{border-width:8px 8px 8px 0;left:-8px;top:0;border-right-color:inherit}.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg:first-child:not(:last-child){top:17px}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg:first-child:not(:last-child){bottom:17px}.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg:first-child:not(:last-child){left:12px}.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg:first-child:not(:last-child){right:12px}.tippy-arrow{border-color:inherit}.tippy-arrow:after{content:\"\";z-index:-1;position:absolute;border-color:transparent;border-style:solid}";
59768
- styleInject(css_248z$5);
59767
+ function _objectWithoutPropertiesLoose(source, excluded) {
59768
+ if (source == null) return {};
59769
+ var target = {};
59770
+ var sourceKeys = Object.keys(source);
59771
+ var key, i;
59769
59772
 
59770
- var css_248z$4 = ".tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}";
59771
- styleInject(css_248z$4);
59773
+ for (i = 0; i < sourceKeys.length; i++) {
59774
+ key = sourceKeys[i];
59775
+ if (excluded.indexOf(key) >= 0) continue;
59776
+ target[key] = source[key];
59777
+ }
59778
+
59779
+ return target;
59780
+ }
59781
+
59782
+ var isBrowser$1 = typeof window !== 'undefined' && typeof document !== 'undefined';
59783
+ function preserveRef(ref, node) {
59784
+ if (ref) {
59785
+ if (typeof ref === 'function') {
59786
+ ref(node);
59787
+ }
59788
+
59789
+ if ({}.hasOwnProperty.call(ref, 'current')) {
59790
+ ref.current = node;
59791
+ }
59792
+ }
59793
+ }
59794
+ function ssrSafeCreateDiv() {
59795
+ return isBrowser$1 && document.createElement('div');
59796
+ }
59797
+ function toDataAttributes(attrs) {
59798
+ var dataAttrs = {
59799
+ 'data-placement': attrs.placement
59800
+ };
59801
+
59802
+ if (attrs.referenceHidden) {
59803
+ dataAttrs['data-reference-hidden'] = '';
59804
+ }
59805
+
59806
+ if (attrs.escaped) {
59807
+ dataAttrs['data-escaped'] = '';
59808
+ }
59809
+
59810
+ return dataAttrs;
59811
+ }
59812
+
59813
+ function deepEqual(x, y) {
59814
+ if (x === y) {
59815
+ return true;
59816
+ } else if (typeof x === 'object' && x != null && typeof y === 'object' && y != null) {
59817
+ if (Object.keys(x).length !== Object.keys(y).length) {
59818
+ return false;
59819
+ }
59820
+
59821
+ for (var prop in x) {
59822
+ if (y.hasOwnProperty(prop)) {
59823
+ if (!deepEqual(x[prop], y[prop])) {
59824
+ return false;
59825
+ }
59826
+ } else {
59827
+ return false;
59828
+ }
59829
+ }
59830
+
59831
+ return true;
59832
+ } else {
59833
+ return false;
59834
+ }
59835
+ }
59836
+
59837
+ function uniqueByShape(arr) {
59838
+ var output = [];
59839
+ arr.forEach(function (item) {
59840
+ if (!output.find(function (outputItem) {
59841
+ return deepEqual(item, outputItem);
59842
+ })) {
59843
+ output.push(item);
59844
+ }
59845
+ });
59846
+ return output;
59847
+ }
59848
+ function deepPreserveProps(instanceProps, componentProps) {
59849
+ var _instanceProps$popper, _componentProps$poppe;
59850
+
59851
+ return Object.assign({}, componentProps, {
59852
+ popperOptions: Object.assign({}, instanceProps.popperOptions, componentProps.popperOptions, {
59853
+ modifiers: uniqueByShape([].concat(((_instanceProps$popper = instanceProps.popperOptions) == null ? void 0 : _instanceProps$popper.modifiers) || [], ((_componentProps$poppe = componentProps.popperOptions) == null ? void 0 : _componentProps$poppe.modifiers) || []))
59854
+ })
59855
+ });
59856
+ }
59857
+
59858
+ var useIsomorphicLayoutEffect$1 = isBrowser$1 ? useLayoutEffect : useEffect;
59859
+ function useMutableBox(initialValue) {
59860
+ // Using refs instead of state as it's recommended to not store imperative
59861
+ // values in state due to memory problems in React(?)
59862
+ var ref = useRef();
59863
+
59864
+ if (!ref.current) {
59865
+ ref.current = typeof initialValue === 'function' ? initialValue() : initialValue;
59866
+ }
59867
+
59868
+ return ref.current;
59869
+ }
59870
+
59871
+ function updateClassName(box, action, classNames) {
59872
+ classNames.split(/\s+/).forEach(function (name) {
59873
+ if (name) {
59874
+ box.classList[action](name);
59875
+ }
59876
+ });
59877
+ }
59878
+
59879
+ var classNamePlugin = {
59880
+ name: 'className',
59881
+ defaultValue: '',
59882
+ fn: function fn(instance) {
59883
+ var box = instance.popper.firstElementChild;
59884
+
59885
+ var isDefaultRenderFn = function isDefaultRenderFn() {
59886
+ var _instance$props$rende;
59887
+
59888
+ return !!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy);
59889
+ };
59890
+
59891
+ function add() {
59892
+ if (instance.props.className && !isDefaultRenderFn()) {
59893
+ if (process.env.NODE_ENV !== 'production') {
59894
+ console.warn(['@tippyjs/react: Cannot use `className` prop in conjunction with', '`render` prop. Place the className on the element you are', 'rendering.'].join(' '));
59895
+ }
59896
+
59897
+ return;
59898
+ }
59899
+
59900
+ updateClassName(box, 'add', instance.props.className);
59901
+ }
59902
+
59903
+ function remove() {
59904
+ if (isDefaultRenderFn()) {
59905
+ updateClassName(box, 'remove', instance.props.className);
59906
+ }
59907
+ }
59908
+
59909
+ return {
59910
+ onCreate: add,
59911
+ onBeforeUpdate: remove,
59912
+ onAfterUpdate: add
59913
+ };
59914
+ }
59915
+ };
59916
+
59917
+ function TippyGenerator(tippy) {
59918
+ function Tippy(_ref) {
59919
+ var children = _ref.children,
59920
+ content = _ref.content,
59921
+ visible = _ref.visible,
59922
+ singleton = _ref.singleton,
59923
+ render = _ref.render,
59924
+ reference = _ref.reference,
59925
+ _ref$disabled = _ref.disabled,
59926
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
59927
+ _ref$ignoreAttributes = _ref.ignoreAttributes,
59928
+ ignoreAttributes = _ref$ignoreAttributes === void 0 ? true : _ref$ignoreAttributes;
59929
+ _ref.__source;
59930
+ _ref.__self;
59931
+ var restOfNativeProps = _objectWithoutPropertiesLoose(_ref, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]);
59932
+
59933
+ var isControlledMode = visible !== undefined;
59934
+ var isSingletonMode = singleton !== undefined;
59935
+
59936
+ var _useState = useState(false),
59937
+ mounted = _useState[0],
59938
+ setMounted = _useState[1];
59939
+
59940
+ var _useState2 = useState({}),
59941
+ attrs = _useState2[0],
59942
+ setAttrs = _useState2[1];
59943
+
59944
+ var _useState3 = useState(),
59945
+ singletonContent = _useState3[0],
59946
+ setSingletonContent = _useState3[1];
59947
+
59948
+ var mutableBox = useMutableBox(function () {
59949
+ return {
59950
+ container: ssrSafeCreateDiv(),
59951
+ renders: 1
59952
+ };
59953
+ });
59954
+ var props = Object.assign({
59955
+ ignoreAttributes: ignoreAttributes
59956
+ }, restOfNativeProps, {
59957
+ content: mutableBox.container
59958
+ });
59959
+
59960
+ if (isControlledMode) {
59961
+ if (process.env.NODE_ENV !== 'production') {
59962
+ ['trigger', 'hideOnClick', 'showOnCreate'].forEach(function (nativeStateProp) {
59963
+ if (props[nativeStateProp] !== undefined) {
59964
+ console.warn(["@tippyjs/react: Cannot specify `" + nativeStateProp + "` prop in", "controlled mode (`visible` prop)"].join(' '));
59965
+ }
59966
+ });
59967
+ }
59968
+
59969
+ props.trigger = 'manual';
59970
+ props.hideOnClick = false;
59971
+ }
59972
+
59973
+ if (isSingletonMode) {
59974
+ disabled = true;
59975
+ }
59976
+
59977
+ var computedProps = props;
59978
+ var plugins = props.plugins || [];
59979
+
59980
+ if (render) {
59981
+ computedProps = Object.assign({}, props, {
59982
+ plugins: isSingletonMode && singleton.data != null ? [].concat(plugins, [{
59983
+ fn: function fn() {
59984
+ return {
59985
+ onTrigger: function onTrigger(instance, event) {
59986
+ var node = singleton.data.children.find(function (_ref2) {
59987
+ var instance = _ref2.instance;
59988
+ return instance.reference === event.currentTarget;
59989
+ });
59990
+ instance.state.$$activeSingletonInstance = node.instance;
59991
+ setSingletonContent(node.content);
59992
+ }
59993
+ };
59994
+ }
59995
+ }]) : plugins,
59996
+ render: function render() {
59997
+ return {
59998
+ popper: mutableBox.container
59999
+ };
60000
+ }
60001
+ });
60002
+ }
60003
+
60004
+ var deps = [reference].concat(children ? [children.type] : []); // CREATE
60005
+
60006
+ useIsomorphicLayoutEffect$1(function () {
60007
+ var element = reference;
60008
+
60009
+ if (reference && reference.hasOwnProperty('current')) {
60010
+ element = reference.current;
60011
+ }
60012
+
60013
+ var instance = tippy(element || mutableBox.ref || ssrSafeCreateDiv(), Object.assign({}, computedProps, {
60014
+ plugins: [classNamePlugin].concat(props.plugins || [])
60015
+ }));
60016
+ mutableBox.instance = instance;
60017
+
60018
+ if (disabled) {
60019
+ instance.disable();
60020
+ }
60021
+
60022
+ if (visible) {
60023
+ instance.show();
60024
+ }
60025
+
60026
+ if (isSingletonMode) {
60027
+ singleton.hook({
60028
+ instance: instance,
60029
+ content: content,
60030
+ props: computedProps,
60031
+ setSingletonContent: setSingletonContent
60032
+ });
60033
+ }
60034
+
60035
+ setMounted(true);
60036
+ return function () {
60037
+ instance.destroy();
60038
+ singleton == null ? void 0 : singleton.cleanup(instance);
60039
+ };
60040
+ }, deps); // UPDATE
60041
+
60042
+ useIsomorphicLayoutEffect$1(function () {
60043
+ var _instance$popperInsta;
60044
+
60045
+ // Prevent this effect from running on 1st render
60046
+ if (mutableBox.renders === 1) {
60047
+ mutableBox.renders++;
60048
+ return;
60049
+ }
60050
+
60051
+ var instance = mutableBox.instance;
60052
+ instance.setProps(deepPreserveProps(instance.props, computedProps)); // Fixes #264
60053
+
60054
+ (_instance$popperInsta = instance.popperInstance) == null ? void 0 : _instance$popperInsta.forceUpdate();
60055
+
60056
+ if (disabled) {
60057
+ instance.disable();
60058
+ } else {
60059
+ instance.enable();
60060
+ }
60061
+
60062
+ if (isControlledMode) {
60063
+ if (visible) {
60064
+ instance.show();
60065
+ } else {
60066
+ instance.hide();
60067
+ }
60068
+ }
60069
+
60070
+ if (isSingletonMode) {
60071
+ singleton.hook({
60072
+ instance: instance,
60073
+ content: content,
60074
+ props: computedProps,
60075
+ setSingletonContent: setSingletonContent
60076
+ });
60077
+ }
60078
+ });
60079
+ useIsomorphicLayoutEffect$1(function () {
60080
+ var _instance$props$poppe;
60081
+
60082
+ if (!render) {
60083
+ return;
60084
+ }
60085
+
60086
+ var instance = mutableBox.instance;
60087
+ instance.setProps({
60088
+ popperOptions: Object.assign({}, instance.props.popperOptions, {
60089
+ modifiers: [].concat((((_instance$props$poppe = instance.props.popperOptions) == null ? void 0 : _instance$props$poppe.modifiers) || []).filter(function (_ref3) {
60090
+ var name = _ref3.name;
60091
+ return name !== '$$tippyReact';
60092
+ }), [{
60093
+ name: '$$tippyReact',
60094
+ enabled: true,
60095
+ phase: 'beforeWrite',
60096
+ requires: ['computeStyles'],
60097
+ fn: function fn(_ref4) {
60098
+ var _state$modifiersData;
60099
+
60100
+ var state = _ref4.state;
60101
+ var hideData = (_state$modifiersData = state.modifiersData) == null ? void 0 : _state$modifiersData.hide; // WARNING: this is a high-risk path that can cause an infinite
60102
+ // loop. This expression _must_ evaluate to false when required
60103
+
60104
+ if (attrs.placement !== state.placement || attrs.referenceHidden !== (hideData == null ? void 0 : hideData.isReferenceHidden) || attrs.escaped !== (hideData == null ? void 0 : hideData.hasPopperEscaped)) {
60105
+ setAttrs({
60106
+ placement: state.placement,
60107
+ referenceHidden: hideData == null ? void 0 : hideData.isReferenceHidden,
60108
+ escaped: hideData == null ? void 0 : hideData.hasPopperEscaped
60109
+ });
60110
+ }
60111
+
60112
+ state.attributes.popper = {};
60113
+ }
60114
+ }])
60115
+ })
60116
+ });
60117
+ }, [attrs.placement, attrs.referenceHidden, attrs.escaped].concat(deps));
60118
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/cloneElement(children, {
60119
+ ref: function ref(node) {
60120
+ mutableBox.ref = node;
60121
+ preserveRef(children.ref, node);
60122
+ }
60123
+ }) : null, mounted && /*#__PURE__*/createPortal(render ? render(toDataAttributes(attrs), singletonContent, mutableBox.instance) : content, mutableBox.container));
60124
+ }
60125
+
60126
+ return Tippy;
60127
+ }
60128
+
60129
+ var forwardRef = (function (Tippy, defaultProps) {
60130
+ return /*#__PURE__*/forwardRef$1(function TippyWrapper(_ref, _ref2) {
60131
+ var children = _ref.children,
60132
+ props = _objectWithoutPropertiesLoose(_ref, ["children"]);
60133
+
60134
+ return (
60135
+ /*#__PURE__*/
60136
+ // If I spread them separately here, Babel adds the _extends ponyfill for
60137
+ // some reason
60138
+ React__default.createElement(Tippy, Object.assign({}, defaultProps, props), children ? /*#__PURE__*/cloneElement(children, {
60139
+ ref: function ref(node) {
60140
+ preserveRef(_ref2, node);
60141
+ preserveRef(children.ref, node);
60142
+ }
60143
+ }) : null)
60144
+ );
60145
+ });
60146
+ });
60147
+ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
60148
+
60149
+ var Tippy = index;
59772
60150
 
59773
- var id = 0;
59774
- var getKey = function () { return id++; };
59775
60151
  var LuiTooltip = function (props) {
59776
- var children = props.children, message = props.message, placement = props.placement, trigger = props.trigger, _a = props.animation, animation = _a === void 0 ? true : _a, _b = props.followCursor, followCursor$1 = _b === void 0 ? false : _b, _c = props.mode, mode = _c === void 0 ? 'default' : _c, _d = props.interactive, interactive = _d === void 0 ? false : _d, _e = props.allowHTML, allowHTML = _e === void 0 ? false : _e, _f = props.offset, offset = _f === void 0 ? [0, 18] : _f;
59777
- var id = "LuiToolTip_".concat(useMemo(getKey, []));
59778
- useEffect(function () {
59779
- tippy("#".concat(id), {
59780
- content: message,
59781
- arrow: false,
59782
- trigger: trigger,
59783
- theme: mode,
59784
- placement: placement,
59785
- offset: offset,
59786
- animation: animation,
59787
- followCursor: followCursor$1,
59788
- interactive: interactive,
59789
- allowHTML: allowHTML,
59790
- plugins: [followCursor]
59791
- });
59792
- return function () {
59793
- var _a, _b;
59794
- (_b = (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a._tippy) === null || _b === void 0 ? void 0 : _b.destroy();
59795
- };
59796
- }, [id, message, placement, trigger, animation, followCursor$1]);
59797
- return React__default.createElement("span", { id: id }, children);
60152
+ 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"]);
60153
+ 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) });
60154
+ return React__default.createElement(Tippy, __assign({}, tippyProps), children);
59798
60155
  };
59799
60156
 
59800
60157
  /**
@@ -60294,7 +60651,7 @@ function createMotionComponent(_a) {
60294
60651
  React.createElement(MotionContext.Provider, { value: context }, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic)),
60295
60652
  features));
60296
60653
  }
60297
- return forwardRef(MotionComponent);
60654
+ return forwardRef$1(MotionComponent);
60298
60655
  }
60299
60656
 
60300
60657
  /**