@oliasoft-open-source/react-ui-library 7.0.2-beta-4 → 7.0.3-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,6 @@ export interface INumberInputProps {
31
31
  roundDisplayValue?: (args: TStringOrNumber) => TStringOrNumber;
32
32
  disableInternalErrorValidationMessages?: boolean;
33
33
  disableValidationOnFocus?: boolean;
34
- useControlledValueWhenBlurred?: boolean;
35
34
  }
36
- export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, selectOnFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, disableValidationOnFocus, useControlledValueWhenBlurred, }: INumberInputProps) => import("react/jsx-runtime").JSX.Element;
35
+ export declare const NumberInput: ({ name, placeholder, disabled, error, left, small, width, value, onChange, onFocus, onBlur, selectOnFocus, tabIndex, testId, tooltip, warning, validationCallback, allowEmpty, isInTable, groupOrder, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, disableInternalErrorValidationMessages, disableValidationOnFocus, }: INumberInputProps) => import("react/jsx-runtime").JSX.Element;
37
36
  //# sourceMappingURL=number-input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAoC,UAAU,EAAyB,MAAM,OAAO,CAAC;AAWnG,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAI5F,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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CAAC;IAC1F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC;IAC/D,sCAAsC,CAAC,EAAE,OAAO,CAAC;IACjD,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAYD,eAAO,MAAM,WAAW,GAAI,6UA0BzB,iBAAiB,4CAmKnB,CAAC"}
@@ -5,9 +5,6 @@ export default _default;
5
5
  export declare const TestInputGroup: () => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const Placeholder: StoryFn<INumberInputProps>;
7
7
  export declare const TestDisplayRounding: StoryFn<INumberInputProps>;
8
- export declare const TestExternalUpdateWhileFocused: StoryFn<INumberInputProps>;
9
- export declare const TestControlledValueWhenBlurred: StoryFn<INumberInputProps>;
10
- export declare const TestValidationRerenderWhileEditing: StoryFn<INumberInputProps>;
11
8
  export declare const ManagedTestCase: () => import("react/jsx-runtime").JSX.Element;
12
9
  export declare const DemoCosmeticRounding: StoryFn<INumberInputProps>;
13
10
  export declare const TestUserInput: StoryFn<INumberInputProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"number-input.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAetD,OAAO,EAAE,iBAAiB,EAAe,MAAM,gBAAgB,CAAC;wBAc3D,IAAI;AAZT,wBAYU;AAEV,eAAO,MAAM,cAAc,+CAO1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,iBAAiB,CAWlD,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,iBAAiB,CAY1D,CAAC;AAiBF,eAAO,MAAM,8BAA8B,EAAE,OAAO,CAAC,iBAAiB,CAerE,CAAC;AAcF,eAAO,MAAM,8BAA8B,EAAE,OAAO,CAAC,iBAAiB,CAerE,CAAC;AAUF,eAAO,MAAM,kCAAkC,EAAE,OAAO,CAAC,iBAAiB,CAiBzE,CAAC;AAeF,eAAO,MAAM,eAAe,+CAiC3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,iBAAiB,CAqE3D,CAAC;AAgEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,iBAAiB,CAWpD,CAAC;AAqDF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAWnD,CAAC"}
1
+ {"version":3,"file":"number-input.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAetD,OAAO,EAAE,iBAAiB,EAAe,MAAM,gBAAgB,CAAC;wBAc3D,IAAI;AAZT,wBAYU;AAEV,eAAO,MAAM,cAAc,+CAO1B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,iBAAiB,CAWlD,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,iBAAiB,CAY1D,CAAC;AAiBF,eAAO,MAAM,eAAe,+CAiC3B,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,iBAAiB,CAqE3D,CAAC;AAgEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,iBAAiB,CAWpD,CAAC;AAqDF,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,iBAAiB,CAWnD,CAAC"}
@@ -4,4 +4,5 @@ export default _default;
4
4
  export declare const Test: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
5
5
  export declare const TestInline: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
6
6
  export declare const TestStandalone: StoryFn;
7
+ export declare const TestStandaloneMissingValue: StoryFn;
7
8
  //# sourceMappingURL=radio-button.test-case.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC"}
1
+ {"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC;AAYF,eAAO,MAAM,0BAA0B,EAAE,OAUxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"unit-input.d.ts","sourceRoot":"","sources":["../../../src/components/unit-input/unit-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAsB,iBAAiB,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAkCtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAc,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAI/D,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;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B,CAAC,EAAE,OAAO,CAAC;IAChC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,GAAG,CAAC;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACnC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC;IAC/D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,SAAS,GAAI,0dAkCvB,eAAe,4CA6WjB,CAAC"}
@@ -15,8 +15,6 @@ export declare const TestExternalStateChangeWithSynchronizedUnits: {
15
15
  };
16
16
  };
17
17
  };
18
- export declare const TestRapidControlledValueChanges: StoryFn<IUnitInputProps>;
19
- export declare const TestValidationDoesNotResetDisplayValue: StoryFn<IUnitInputProps>;
20
18
  export declare const TestEdgeCases: {
21
19
  (): import("react/jsx-runtime").JSX.Element;
22
20
  parameters: {
@@ -1 +1 @@
1
- {"version":3,"file":"unit-input.test-case.stories.d.ts","sourceRoot":"","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AAC;AAchD,eAAO,MAAM,yBAAyB,mHAAmB,CAAC;AA0B1D,eAAO,MAAM,kCAAkC,mHAAmB,CAAC;AA6BnE,eAAO,MAAM,0BAA0B,mHAAmB,CAAC;AAiC3D,eAAO,MAAM,0BAA0B,mHAAmB,CAAC;AAc3D,eAAO,MAAM,kBAAkB,mHAAmB,CAAC;AAUnD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAuBrD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAUrD,eAAO,MAAM,gBAAgB,mHAAmB,CAAC;AAgBjD,eAAO,MAAM,0BAA0B,mHAAmB,CAAC"}
1
+ {"version":3,"file":"unit-input.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/unit-input/unit-input.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,eAAe,EAAa,MAAM,kCAAkC,CAAC;wBA2BzE,IAAI,CAAC,eAAe,CAAC;AAV1B,wBAU2B;AAU3B,eAAO,MAAM,OAAO,mHAAoB,CAAC;AAEzC,eAAO,MAAM,WAAW,EAAE,OAAO,CAAC,eAAe,CAchD,CAAC;AAkBF,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,eAAe,CAcxD,CAAC;AA+CF,eAAO,MAAM,4CAA4C;YAAW,eAAe;;;;;;;;CAsDlF,CAAC;AAUF,eAAO,MAAM,aAAa;;;;;;;;;CA4EzB,CAAC;AASF,eAAO,MAAM,eAAe,+CAqC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+CA0B5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,eAAe,CAgBrD,CAAC;AASF,eAAO,MAAM,oBAAoB,+CAsGhC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,eAAe,CAalD,CAAC;AAyDF,eAAO,MAAM,gBAAgB,mHAAmB,CAAC;AAUjD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAarD,eAAO,MAAM,aAAa,mHAAmB,CAAC;AAc9C,eAAO,MAAM,YAAY,mHAAmB,CAAC;AAU7C,eAAO,MAAM,aAAa,mHAAmB,CAAC;AAU9C,eAAO,MAAM,eAAe,mHAAmB,CAAC;AAkBhD,eAAO,MAAM,gBAAgB,mHAAmB,CAAC;AAYjD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAUrD,eAAO,MAAM,eAAe,mHAAmB,CAAC;AAchD,eAAO,MAAM,yBAAyB,mHAAmB,CAAC;AA0B1D,eAAO,MAAM,kCAAkC,mHAAmB,CAAC;AA6BnE,eAAO,MAAM,0BAA0B,mHAAmB,CAAC;AAiC3D,eAAO,MAAM,0BAA0B,mHAAmB,CAAC;AAc3D,eAAO,MAAM,kBAAkB,mHAAmB,CAAC;AAUnD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAuBrD,eAAO,MAAM,oBAAoB,mHAAmB,CAAC;AAUrD,eAAO,MAAM,gBAAgB,mHAAmB,CAAC;AAgBjD,eAAO,MAAM,0BAA0B,mHAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import e, { Fragment as t, createContext as n, createElement as r, forwardRef as i, isValidElement as a, memo as o, useCallback as s, useContext as c, useEffect as l, useImperativeHandle as u, useLayoutEffect as d, useMemo as f, useReducer as p, useRef as m, useState as h, useTransition as g } from "react";
2
2
  import _ from "classnames";
3
3
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
4
- import { TbAlertTriangle as x, TbArrowDown as S, TbArrowLeft as C, TbArrowRight as w, TbArrowUp as T, TbArrowsDiagonal as E, TbArrowsMaximize as D, TbArrowsMinimize as O, TbArrowsMove as k, TbArrowsSplit as A, TbBell as j, TbBold as M, TbBolt as N, TbBook2 as P, TbBuildingSkyscraper as F, TbCamera as I, TbChartBar as ee, TbChartLine as L, TbChartPie2 as R, TbCheck as z, TbChevronDown as te, TbChevronLeft as ne, TbChevronRight as re, TbChevronUp as B, TbChevronsLeft as ie, TbChevronsRight as ae, TbCircle as oe, TbCircleCheck as se, TbCircleX as ce, TbClipboard as le, TbClock as ue, TbCode as de, TbCopy as fe, TbCornerDownRight as pe, TbDeviceFloppy as me, TbDeviceLaptop as he, TbDotsVertical as ge, TbDownload as _e, TbDroplet as ve, TbExclamationMark as ye, TbExternalLink as be, TbEye as xe, TbEyeOff as Se, TbFile as Ce, TbFilter as we, TbFilterOff as Te, TbFocusCentered as Ee, TbFolder as De, TbFolderSearch as Oe, TbGauge as ke, TbGitFork as Ae, TbGripVertical as je, TbHelp as Me, TbInfoCircle as Ne, TbItalic as Pe, TbKey as Fe, TbLayoutColumns as Ie, TbLayoutRows as Le, TbLibraryMinus as Re, TbLibraryPlus as ze, TbLink as Be, TbLinkOff as Ve, TbList as He, TbListNumbers as Ue, TbLoader2 as We, TbLock as Ge, TbLockOpen as Ke, TbMapPin as qe, TbMessageCircle as Je, TbMinus as Ye, TbMoon as Xe, TbMovie as Ze, TbNote as Qe, TbPencil as $e, TbPlayerPause as et, TbPlayerPlay as tt, TbPlayerSkipBack as nt, TbPlayerSkipForward as rt, TbPlayerStop as it, TbPlayerTrackNext as at, TbPlayerTrackPrev as ot, TbPlus as st, TbQuestionMark as ct, TbRefresh as lt, TbReload as ut, TbRotate as dt, TbRowInsertBottom as ft, TbRowInsertTop as pt, TbRuler3 as mt, TbScale as ht, TbSearch as gt, TbServer as _t, TbSettings as vt, TbSortAscending as yt, TbSortDescending as bt, TbSquarePlus as xt, TbStar as St, TbSun as Ct, TbTable as wt, TbTarget as Tt, TbTrash as Et, TbUpload as Dt, TbUser as Ot, TbUsers as kt, TbX as At } from "react-icons/tb";
4
+ import { TbAlertTriangle as x, TbArrowDown as S, TbArrowLeft as C, TbArrowRight as w, TbArrowUp as T, TbArrowsDiagonal as E, TbArrowsMaximize as D, TbArrowsMinimize as O, TbArrowsMove as k, TbArrowsSplit as A, TbBell as j, TbBold as M, TbBolt as N, TbBook2 as P, TbBuildingSkyscraper as F, TbCamera as I, TbChartBar as L, TbChartLine as R, TbChartPie2 as z, TbCheck as ee, TbChevronDown as te, TbChevronLeft as ne, TbChevronRight as re, TbChevronUp as B, TbChevronsLeft as ie, TbChevronsRight as ae, TbCircle as oe, TbCircleCheck as se, TbCircleX as ce, TbClipboard as le, TbClock as ue, TbCode as de, TbCopy as fe, TbCornerDownRight as pe, TbDeviceFloppy as me, TbDeviceLaptop as he, TbDotsVertical as ge, TbDownload as _e, TbDroplet as ve, TbExclamationMark as ye, TbExternalLink as be, TbEye as xe, TbEyeOff as Se, TbFile as Ce, TbFilter as we, TbFilterOff as Te, TbFocusCentered as Ee, TbFolder as De, TbFolderSearch as Oe, TbGauge as ke, TbGitFork as Ae, TbGripVertical as je, TbHelp as Me, TbInfoCircle as Ne, TbItalic as Pe, TbKey as Fe, TbLayoutColumns as Ie, TbLayoutRows as Le, TbLibraryMinus as Re, TbLibraryPlus as ze, TbLink as Be, TbLinkOff as Ve, TbList as He, TbListNumbers as Ue, TbLoader2 as We, TbLock as Ge, TbLockOpen as Ke, TbMapPin as qe, TbMessageCircle as Je, TbMinus as Ye, TbMoon as Xe, TbMovie as Ze, TbNote as Qe, TbPencil as $e, TbPlayerPause as et, TbPlayerPlay as tt, TbPlayerSkipBack as nt, TbPlayerSkipForward as rt, TbPlayerStop as it, TbPlayerTrackNext as at, TbPlayerTrackPrev as ot, TbPlus as st, TbQuestionMark as ct, TbRefresh as lt, TbReload as ut, TbRotate as dt, TbRowInsertBottom as ft, TbRowInsertTop as pt, TbRuler3 as mt, TbScale as ht, TbSearch as gt, TbServer as _t, TbSettings as vt, TbSortAscending as yt, TbSortDescending as bt, TbSquarePlus as xt, TbStar as St, TbSun as Ct, TbTable as wt, TbTarget as Tt, TbTrash as Et, TbUpload as Dt, TbUser as Ot, TbUsers as kt, TbX as At } from "react-icons/tb";
5
5
  import { CSSTransition as jt } from "react-transition-group";
6
6
  import { CheckboxButton as Mt, CheckboxField as Nt } from "react-aria-components/Checkbox";
7
7
  import { FloatingArrow as Pt, FloatingNode as Ft, FloatingPortal as It, FloatingTree as Lt, arrow as Rt, autoUpdate as zt, flip as Bt, offset as Vt, shift as Ht, size as Ut, useClientPoint as Wt, useDismiss as Gt, useFloating as Kt, useFloatingNodeId as qt, useFloatingParentNodeId as Jt, useHover as Yt, useInteractions as Xt, useMergeRefs as Zt } from "@floating-ui/react";
@@ -98,12 +98,12 @@ var ni = /* @__PURE__ */ function(e) {
98
98
  case "clear":
99
99
  case "times": return /* @__PURE__ */ y(At, {});
100
100
  case "chart":
101
- case "chart line": return /* @__PURE__ */ y(L, {});
102
- case "chart bar": return /* @__PURE__ */ y(ee, {});
103
- case "chart pie": return /* @__PURE__ */ y(R, {});
101
+ case "chart line": return /* @__PURE__ */ y(R, {});
102
+ case "chart bar": return /* @__PURE__ */ y(L, {});
103
+ case "chart pie": return /* @__PURE__ */ y(z, {});
104
104
  case "chat": return /* @__PURE__ */ y(Je, {});
105
105
  case "check":
106
- case "checkmark": return /* @__PURE__ */ y(z, {});
106
+ case "checkmark": return /* @__PURE__ */ y(ee, {});
107
107
  case "chevron up": return /* @__PURE__ */ y(B, {});
108
108
  case "chevron down": return /* @__PURE__ */ y(te, {});
109
109
  case "chevron left": return /* @__PURE__ */ y(ne, {});
@@ -395,7 +395,7 @@ var ni = /* @__PURE__ */ function(e) {
395
395
  l
396
396
  ]), M = s((e, t, n) => (Pi(e.getBoundingClientRect(), D), zt(e, t, () => {
397
397
  Pi(e.getBoundingClientRect(), D), n();
398
- }, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x: ee, y: L } = Kt({
398
+ }, { animationFrame: u })), [u]), { context: N, refs: P, floatingStyles: F, isPositioned: I, x: L, y: R } = Kt({
399
399
  open: e,
400
400
  onOpenChange: (e, t, n) => {
401
401
  !e && (n === "outside-press" || n === "escape-key") && (g == null || g()), p == null || p(e);
@@ -406,16 +406,16 @@ var ni = /* @__PURE__ */ function(e) {
406
406
  transform: !1,
407
407
  whileElementsMounted: M,
408
408
  middleware: j
409
- }), R = s((e) => {
409
+ }), z = s((e) => {
410
410
  if (P.setReference(e), e) {
411
411
  Pi(e.getBoundingClientRect(), D);
412
412
  return;
413
413
  }
414
414
  D(null);
415
- }, [P.setReference]), z = (_ = i == null ? void 0 : i.hideOnScroll) == null ? !1 : _, { getReferenceProps: te, getFloatingProps: ne } = Xt([
415
+ }, [P.setReference]), ee = (_ = i == null ? void 0 : i.hideOnScroll) == null ? !1 : _, { getReferenceProps: te, getFloatingProps: ne } = Xt([
416
416
  Gt(N, {
417
- enabled: e && (!!g || z),
418
- ancestorScroll: z,
417
+ enabled: e && (!!g || ee),
418
+ ancestorScroll: ee,
419
419
  escapeKey: !!g,
420
420
  outsidePress: !!g,
421
421
  outsidePressEvent: "mousedown"
@@ -435,11 +435,11 @@ var ni = /* @__PURE__ */ function(e) {
435
435
  x: (C = n == null ? void 0 : n.x) == null ? null : C,
436
436
  y: (w = n == null ? void 0 : n.y) == null ? null : w
437
437
  })
438
- ]), re = f(() => te({ ref: R }), [te, R]), B = f(() => ne({
438
+ ]), re = f(() => te({ ref: z }), [te, z]), B = f(() => ne({
439
439
  ref: P.setFloating,
440
440
  style: {
441
441
  ...F,
442
- visibility: e && (!I || ee === null || L === null) ? "hidden" : void 0
442
+ visibility: e && (!I || L === null || R === null) ? "hidden" : void 0
443
443
  }
444
444
  }), [
445
445
  F,
@@ -447,8 +447,8 @@ var ni = /* @__PURE__ */ function(e) {
447
447
  e,
448
448
  I,
449
449
  P.setFloating,
450
- ee,
451
- L
450
+ L,
451
+ R
452
452
  ]);
453
453
  return {
454
454
  arrowProps: f(() => ({
@@ -1146,9 +1146,9 @@ var ni = /* @__PURE__ */ function(e) {
1146
1146
  }), x]
1147
1147
  });
1148
1148
  }, Da = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: s = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: p = !0, maxHeight: g, testId: _, open: x, setOpen: S, tooltip: C, error: w, warning: T, selected: E, tabIndex: D, active: O }) => {
1149
- let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: ee, component: L, placement: R, showAllButton: z, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = on(x) && ln(S) ? [x, S] : h(!1), B = () => re(!1), ie = () => re(!0), { triggerProps: ae, layerProps: oe, renderLayer: se } = Li({
1149
+ let k = c(U), A = m(null), { label: j, title: M, trigger: N, fullHeightTrigger: P, colored: F, small: I, sections: L, component: R, placement: z, showAllButton: ee, possiblePlacements: te = ["bottom-start", "top-start"] } = e, [ne, re] = on(x) && ln(S) ? [x, S] : h(!1), B = () => re(!1), ie = () => re(!0), { triggerProps: ae, layerProps: oe, renderLayer: se } = Li({
1150
1150
  isOpen: ne,
1151
- ...ma(R, o),
1151
+ ...ma(z, o),
1152
1152
  possiblePlacements: te,
1153
1153
  onOutsideClick: B,
1154
1154
  overflowContainer: p
@@ -1178,7 +1178,7 @@ var ni = /* @__PURE__ */ function(e) {
1178
1178
  colored: F,
1179
1179
  small: I,
1180
1180
  isNested: o,
1181
- component: L,
1181
+ component: R,
1182
1182
  groupOrder: f,
1183
1183
  isOpen: ne,
1184
1184
  active: O,
@@ -1204,7 +1204,7 @@ var ni = /* @__PURE__ */ function(e) {
1204
1204
  "data-testid": e.testId,
1205
1205
  onClick: (e) => e.stopPropagation(),
1206
1206
  children: /* @__PURE__ */ y(pa, {
1207
- sections: ee,
1207
+ sections: L,
1208
1208
  isNested: o,
1209
1209
  width: t,
1210
1210
  closeOnOptionClick: s,
@@ -1212,7 +1212,7 @@ var ni = /* @__PURE__ */ function(e) {
1212
1212
  tree: u,
1213
1213
  path: d,
1214
1214
  maxHeight: g,
1215
- showAllButton: z,
1215
+ showAllButton: ee,
1216
1216
  testId: _ && `${_}-layer`
1217
1217
  })
1218
1218
  })) })
@@ -1945,9 +1945,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
1945
1945
  children: e
1946
1946
  }) : /* @__PURE__ */ y(v, { children: e });
1947
1947
  }, No = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: i = !1, width: o = 400, closedWidth: s = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = ai.BOTTOM, border: p = !1, children: m = null, tabs: g, defaultTabIndex: v = 0, activeTab: x, setActiveTab: S, testId: C, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
1948
- let k = u === !0, A = !k && a(u), [j, M] = r ? [n, r] : k || g ? h(n) : [n, () => {}], [N, P] = h(v), F = r ? n : j, I = r || M, ee = S === void 0 ? N : x, L = S || P, R = Array.isArray(o) ? o[ee || 0] : o, z = F ? R : g ? 35 : s;
1948
+ let k = u === !0, A = !k && a(u), [j, M] = r ? [n, r] : k || g ? h(n) : [n, () => {}], [N, P] = h(v), F = r ? n : j, I = r || M, L = S === void 0 ? N : x, R = S || P, z = Array.isArray(o) ? o[L || 0] : o, ee = F ? z : g ? 35 : s;
1949
1949
  return /* @__PURE__ */ y(Mo, {
1950
- width: z,
1950
+ width: ee,
1951
1951
  onResize: w,
1952
1952
  setOpen: I,
1953
1953
  right: i,
@@ -1960,30 +1960,30 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
1960
1960
  style: {
1961
1961
  background: e,
1962
1962
  borderColor: typeof p == "string" ? p : void 0,
1963
- width: z
1963
+ width: ee
1964
1964
  },
1965
1965
  children: g ? /* @__PURE__ */ y(ko, {
1966
- width: R,
1966
+ width: z,
1967
1967
  testId: C,
1968
1968
  tabs: g,
1969
1969
  open: F,
1970
- activeTab: ee || 0,
1970
+ activeTab: L || 0,
1971
1971
  background: e,
1972
1972
  handleTabClick: (e) => {
1973
1973
  let t = (t) => {
1974
1974
  g && t && t(g[e]);
1975
1975
  };
1976
- ee === e && F && I ? (t(E), I(!1)) : !F && I && (t(D), I(!0), w && ((e) => {
1976
+ L === e && F && I ? (t(E), I(!1)) : !F && I && (t(D), I(!0), w && ((e) => {
1977
1977
  let t;
1978
- if (t = Array.isArray(e) ? e[ee || 0] : e, typeof t == "number" && t < 240) w(240);
1978
+ if (t = Array.isArray(e) ? e[L || 0] : e, typeof t == "number" && t < 240) w(240);
1979
1979
  else if (typeof t == "string") {
1980
1980
  let e = parseInt(t, 10);
1981
1981
  !isNaN(e) && e < 240 && w(240);
1982
1982
  }
1983
- })(o)), L(e), t(T);
1983
+ })(o)), R(e), t(T);
1984
1984
  }
1985
1985
  }) : /* @__PURE__ */ y("div", {
1986
- style: { width: R },
1986
+ style: { width: z },
1987
1987
  children: m
1988
1988
  })
1989
1989
  }), u && /* @__PURE__ */ y("span", {
@@ -3030,21 +3030,21 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3030
3030
  createAble: _
3031
3031
  }), I = () => {
3032
3032
  S(), t({ type: lc.BLUR_TRIGGER_INPUTS });
3033
- }, ee = (e) => {
3033
+ }, L = (e) => {
3034
3034
  v.current && Number.isInteger(e) && v.current.scrollToRow({ index: e });
3035
- }, L = (n) => {
3035
+ }, R = (n) => {
3036
3036
  let r = rc(n, e.layerFocus);
3037
3037
  t({
3038
3038
  type: lc.FOCUS_LAYER_OPTIONS,
3039
3039
  nextLayerFocus: r
3040
- }), ee(r.current);
3041
- }, R = (e) => {
3040
+ }), L(r.current);
3041
+ }, z = (e) => {
3042
3042
  t({
3043
3043
  type: lc.FOCUS_TRIGGER_INPUTS,
3044
3044
  ICustomSelectDirection: e,
3045
3045
  selectedOptions: u
3046
3046
  });
3047
- }, z = (e) => P(e), te = u && u[e.triggerFocus.currentOption], ne = (t) => {
3047
+ }, ee = (e) => P(e), te = u && u[e.triggerFocus.currentOption], ne = (t) => {
3048
3048
  N(t, u[e.triggerFocus.currentOption]);
3049
3049
  }, re = (t) => {
3050
3050
  var n;
@@ -3055,19 +3055,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3055
3055
  onKeyEvent: (n, r) => {
3056
3056
  switch (n) {
3057
3057
  case uc.UP:
3058
- L("up");
3058
+ R("up");
3059
3059
  break;
3060
3060
  case uc.DOWN:
3061
- e.isLayerOpen ? L("down") : I();
3061
+ e.isLayerOpen ? R("down") : I();
3062
3062
  break;
3063
3063
  case uc.LEFT:
3064
- R("left");
3064
+ z("left");
3065
3065
  break;
3066
3066
  case uc.RIGHT:
3067
- R("right");
3067
+ z("right");
3068
3068
  break;
3069
3069
  case uc.ENTER:
3070
- B ? z(r) : te ? ne(r) : re(r);
3070
+ B ? ee(r) : te ? ne(r) : re(r);
3071
3071
  break;
3072
3072
  case uc.ESC:
3073
3073
  x();
@@ -3092,7 +3092,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3092
3092
  triggerBounds: A
3093
3093
  };
3094
3094
  }, fc = (e) => {
3095
- let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: f = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = c(U), A = l !== null, j = m(null), M = m(null), [N, P] = xs(), F = Ss(), [I, ee] = p(sc, {
3095
+ let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: l = null, placeholder: u = "", small: d = !1, tabIndex: f = 0, onFocus: h = () => {}, onBlur: g = () => {}, searchable: _ = !0, clearable: x = !1, maxTooltipWidth: S, closeOnOptionActionClick: C, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = c(U), A = l !== null, j = m(null), M = m(null), [N, P] = xs(), F = Ss(), [I, L] = p(sc, {
3096
3096
  options: o,
3097
3097
  firstSelectedOptionIndex: E
3098
3098
  }, ({ options: e }) => ({
@@ -3101,10 +3101,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3101
3101
  layerFocus: nc(e, E == null ? 0 : E),
3102
3102
  triggerFocus: ec,
3103
3103
  isLayerOpen: !1
3104
- })), { getTriggerWidth: L, onKeyEvent: R, clearAllIsFocused: z, triggerProps: te, onClickTrigger: ne, onChangeSearch: re, onClickDeselectOption: B, onClickClearAll: ie, renderLayer: ae, layerProps: oe, closeLayer: se, onSelectOption: ce, getLayerWidth: le, triggerBounds: ue } = dc({
3104
+ })), { getTriggerWidth: R, onKeyEvent: z, clearAllIsFocused: ee, triggerProps: te, onClickTrigger: ne, onChangeSearch: re, onClickDeselectOption: B, onClickClearAll: ie, renderLayer: ae, layerProps: oe, closeLayer: se, onSelectOption: ce, getLayerWidth: le, triggerBounds: ue } = dc({
3105
3105
  ...e,
3106
3106
  state: I,
3107
- dispatch: ee,
3107
+ dispatch: L,
3108
3108
  setTriggerFocus: P,
3109
3109
  disabledContext: k,
3110
3110
  isFontLoaded: F,
@@ -3112,16 +3112,16 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3112
3112
  listRef: j
3113
3113
  }), de = Zt([N, te.ref]), fe = Zt([M, oe.ref]);
3114
3114
  return /* @__PURE__ */ b("div", {
3115
- style: { width: L() },
3115
+ style: { width: R() },
3116
3116
  onKeyDown: (e) => {
3117
- Object.values(uc).includes(e.key) && R(e.key, e);
3117
+ Object.values(uc).includes(e.key) && z(e.key, e);
3118
3118
  },
3119
3119
  children: [/* @__PURE__ */ y(Qs, {
3120
3120
  selectedOptions: s,
3121
3121
  searchValue: I.searchValue,
3122
3122
  isOpen: I.isLayerOpen,
3123
3123
  focusedSelectedOptionIndex: typeof I.triggerFocus.currentOption == "number" ? I.triggerFocus.currentOption : void 0,
3124
- clearAllIsFocused: z,
3124
+ clearAllIsFocused: ee,
3125
3125
  searchable: _,
3126
3126
  triggerRef: de,
3127
3127
  error: r,
@@ -3465,8 +3465,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3465
3465
  tabIndex: e.disabled ? -1 : 0,
3466
3466
  tooltip: e.tooltip,
3467
3467
  type: r
3468
- }), Hc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Uc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1, useControlledValueWhenBlurred: k = !1 }) => {
3469
- let A = (e) => {
3468
+ }), Hc = (e) => e ? typeof e == "string" ? e : an(e) ? e[0] : e.fieldName : "", Uc = ({ name: e, placeholder: t = "", disabled: n = !1, error: r = !1, left: i = !1, small: a = !1, width: o = "100%", value: s = "", onChange: c = () => {}, onFocus: u = () => {}, onBlur: d = () => {}, selectOnFocus: f = !0, tabIndex: p = 0, testId: g, tooltip: _ = null, warning: v = !1, validationCallback: b = () => {}, allowEmpty: x = !1, isInTable: S, groupOrder: C, enableCosmeticRounding: w = !0, enableDisplayRounding: T = !1, roundDisplayValue: E, disableInternalErrorValidationMessages: D = !1, disableValidationOnFocus: O = !1 }) => {
3469
+ let k = (e) => {
3470
3470
  let n = dr(e), r = t && mc(e);
3471
3471
  return [Infinity, -Infinity].includes(Number(e)) || r ? {
3472
3472
  valid: !0,
@@ -3476,63 +3476,63 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3476
3476
  valid: !0,
3477
3477
  errors: void 0
3478
3478
  } : n;
3479
- }, j = (e) => {
3479
+ }, A = (e) => {
3480
3480
  var t;
3481
3481
  let n = !!(e != null && e.endsWith("0"));
3482
- return lr(w && e && !n && (t = A(e)) != null && t.valid ? ir(e) : e);
3483
- }, M = m(null), N = j(lr(s)), [P, F] = h(N), [I, ee] = h(!1), L = A(P).valid, R = k && !I && L ? N : P, z = Hc(e), { valid: te, errors: ne } = A(R), re = ne && ne.length && !D ? ne[0] : null;
3482
+ return lr(w && e && !n && (t = k(e)) != null && t.valid ? ir(e) : e);
3483
+ }, j = m(null), [M, N] = h(A(lr(s))), [P, F] = h(!1), I = Hc(e), { valid: L, errors: R } = k(M), z = R && R.length && !D ? R[0] : null;
3484
3484
  l(() => {
3485
- k || cr(P) !== cr(N) && F(N);
3485
+ let e = A(lr(s));
3486
+ cr(M) !== cr(e) && N(e);
3486
3487
  }, [
3487
3488
  s,
3488
3489
  w,
3489
- T,
3490
- k
3490
+ T
3491
3491
  ]), l(() => {
3492
- (O || !I) && !te ? b(z, re) : b(z, null);
3492
+ (O || !P) && !L ? b(I, z) : b(I, null);
3493
3493
  }, [
3494
- I,
3495
- te,
3494
+ P,
3495
+ L,
3496
3496
  r
3497
3497
  ]);
3498
- let B = (e) => {
3498
+ let ee = (e) => {
3499
3499
  var n, r;
3500
- let i = "key" in e ? R : e == null || (n = e.target) == null ? void 0 : n.value, a = Wn(i.replaceAll(" ", "").replaceAll("|", ""));
3501
- F(a), ((r = A(a)) != null && r.valid || t && mc(i)) && c({
3500
+ let i = "key" in e ? M : e == null || (n = e.target) == null ? void 0 : n.value, a = Wn(i.replaceAll(" ", "").replaceAll("|", ""));
3501
+ N(a), ((r = k(a)) != null && r.valid || t && mc(i)) && c({
3502
3502
  ...e,
3503
3503
  target: {
3504
3504
  ...e.target,
3505
3505
  value: sr(lr(a)),
3506
- name: z
3506
+ name: I
3507
3507
  }
3508
3508
  });
3509
3509
  };
3510
3510
  return l(() => {
3511
- if (M && M != null && M.current && T && I) {
3512
- let e = M.current;
3511
+ if (j && j != null && j.current && T && P) {
3512
+ let e = j.current;
3513
3513
  e && !f && setTimeout(() => {
3514
- let { length: t } = lr(R);
3514
+ let { length: t } = lr(M);
3515
3515
  e.setSelectionRange(t, t);
3516
3516
  }, 0);
3517
3517
  }
3518
- }, [I]), /* @__PURE__ */ y(Ro, {
3518
+ }, [P]), /* @__PURE__ */ y(Ro, {
3519
3519
  type: "text",
3520
- name: z,
3520
+ name: I,
3521
3521
  testId: g,
3522
3522
  disabled: n,
3523
3523
  placeholder: t,
3524
- value: T && !I && te ? E ? lr(E(R)) : ((e) => S ? ar(e, 2) : nr(e, 4))(s) : R,
3525
- onChange: B,
3524
+ value: T && !P && L ? E ? lr(E(M)) : ((e) => S ? ar(e, 2) : nr(e, 4))(s) : M,
3525
+ onChange: ee,
3526
3526
  onFocus: (e) => {
3527
- k && F(N), ee(!0), u(e);
3527
+ F(!0), u(e);
3528
3528
  },
3529
3529
  onBlur: (e) => {
3530
- ee(!1), d(e);
3530
+ F(!1), d(e);
3531
3531
  },
3532
3532
  onKeyDown: (e) => {
3533
- e.key === uc.ENTER && B(e);
3533
+ e.key === uc.ENTER && ee(e);
3534
3534
  },
3535
- error: re || r,
3535
+ error: z || r,
3536
3536
  warning: v,
3537
3537
  right: !i,
3538
3538
  small: a,
@@ -3542,8 +3542,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3542
3542
  selectOnFocus: f,
3543
3543
  tabIndex: p,
3544
3544
  tooltip: _,
3545
- ref: M
3546
- }, z);
3545
+ ref: j
3546
+ }, I);
3547
3547
  }, Wc = ({ cell: e, columnAlignment: t, testId: n }) => {
3548
3548
  var r;
3549
3549
  return /* @__PURE__ */ y(Uc, {
@@ -3709,7 +3709,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3709
3709
  disabled: D || j[0] === o,
3710
3710
  icon: H.FAST_BACKWARD
3711
3711
  })
3712
- }), ee = () => /* @__PURE__ */ y("div", {
3712
+ }), L = () => /* @__PURE__ */ y("div", {
3713
3713
  className: Yc.button,
3714
3714
  children: /* @__PURE__ */ y(K, {
3715
3715
  basic: !0,
@@ -3721,10 +3721,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3721
3721
  disabled: D || j[j.length - 1] === s,
3722
3722
  icon: H.FAST_FORWARD
3723
3723
  })
3724
- }), L = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`, R = (e) => {
3725
- let t = L(e);
3724
+ }), R = (e) => s === o ? "0%" : `${(e - o) / (s - o) * 100}%`, z = (e) => {
3725
+ let t = R(e);
3726
3726
  return C.enabled ? { bottom: t } : { left: t };
3727
- }, z = (e) => {
3727
+ }, ee = (e) => {
3728
3728
  if (i) return x ? `${i}-handle-${e}` : `${i}-handle`;
3729
3729
  }, te = (e) => x ? j[0] <= e && e <= j[1] : j[0] >= e, ne = (e) => x ? Math.abs(e - j[0]) <= Math.abs(e - j[1]) ? [Qt(e, o, j[1]), j[1]] : [j[0], Qt(e, j[0], s)] : [Qt(e, o, s)];
3730
3730
  return /* @__PURE__ */ b("div", {
@@ -3734,7 +3734,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3734
3734
  height: C.height
3735
3735
  } : { width: n },
3736
3736
  children: [
3737
- d && (C.enabled ? /* @__PURE__ */ y(ee, {}) : /* @__PURE__ */ y(I, {})),
3737
+ d && (C.enabled ? /* @__PURE__ */ y(L, {}) : /* @__PURE__ */ y(I, {})),
3738
3738
  /* @__PURE__ */ b(yr.Root, {
3739
3739
  className: _(Yc.slider, D && Yc.sliderDisabled, d && Yc.hasArrows),
3740
3740
  "data-testid": i,
@@ -3755,7 +3755,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3755
3755
  children: [/* @__PURE__ */ y(yr.Range, { className: Yc.range }), A.length > 0 && /* @__PURE__ */ y("span", {
3756
3756
  className: Yc.marks,
3757
3757
  children: A.map(({ label: e, tooltip: t, value: n }) => {
3758
- let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: L(r) };
3758
+ let r = Number(n), i = te(r), a = { [C.enabled ? "bottom" : "left"]: R(r) };
3759
3759
  return /* @__PURE__ */ y("button", {
3760
3760
  "aria-label": String(e == null ? n : e),
3761
3761
  className: _(Yc.mark, i && Yc.markActive),
@@ -3779,12 +3779,12 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3779
3779
  return /* @__PURE__ */ y(yr.Thumb, {
3780
3780
  "aria-label": String((i = t == null ? e : t) == null ? "Slider" : i),
3781
3781
  className: Yc.thumb,
3782
- "data-testid": z(r),
3782
+ "data-testid": ee(r),
3783
3783
  onKeyDown: () => k(r),
3784
3784
  onKeyUp: () => k(null),
3785
3785
  onPointerDown: () => k(r),
3786
3786
  onPointerUp: () => k(null),
3787
- style: R(n),
3787
+ style: z(n),
3788
3788
  children: p && O === r && /* @__PURE__ */ y(G, {
3789
3789
  display: "block",
3790
3790
  text: m(Zc(j, x)),
@@ -3798,7 +3798,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3798
3798
  }, r);
3799
3799
  })]
3800
3800
  }),
3801
- d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(ee, {})),
3801
+ d && (C.enabled ? /* @__PURE__ */ y(I, {}) : /* @__PURE__ */ y(L, {})),
3802
3802
  t && /* @__PURE__ */ y("label", {
3803
3803
  className: Yc.label,
3804
3804
  style: { width: r },
@@ -3928,10 +3928,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3928
3928
  control: "_control_abetp_25",
3929
3929
  labelText: "_labelText_abetp_151",
3930
3930
  isInTable: "_isInTable_abetp_214"
3931
- }, ll = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
3932
- var p;
3933
- let m = c(Er) != null, h = u || d, g = n.toString(), v = /* @__PURE__ */ b(wr, {
3934
- value: g,
3931
+ }, ll = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = oi.CAPITALIZE }) => {
3932
+ var p, m;
3933
+ let h = c(Er) != null, g = u || d, v = (p = n == null ? void 0 : n.toString()) == null ? "" : p, x = /* @__PURE__ */ b(wr, {
3934
+ value: v,
3935
3935
  isDisabled: i,
3936
3936
  className: cl.radioContainer,
3937
3937
  "data-testid": l ? `${l}-field` : void 0,
@@ -3943,36 +3943,39 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
3943
3943
  style: { textTransform: f },
3944
3944
  children: t
3945
3945
  })]
3946
- }), h && /* @__PURE__ */ y(Wi, {
3946
+ }), g && /* @__PURE__ */ y(Wi, {
3947
3947
  text: u,
3948
3948
  onClick: d
3949
3949
  })]
3950
3950
  });
3951
- return m ? v : /* @__PURE__ */ y(Tr, {
3951
+ return h ? x : /* @__PURE__ */ y(Tr, {
3952
3952
  name: e == null ? void 0 : e.toString(),
3953
- "aria-label": String((p = t == null ? e : t) == null ? "Radio" : p),
3954
- value: r ? g : null,
3953
+ "aria-label": String((m = t == null ? e : t) == null ? "Radio" : m),
3954
+ value: r ? v : null,
3955
3955
  onChange: () => {
3956
3956
  var n;
3957
3957
  o == null || o({ target: {
3958
3958
  name: (n = e == null ? void 0 : e.toString()) == null ? "" : n,
3959
- value: g,
3959
+ value: v,
3960
3960
  label: t == null ? void 0 : t.toString()
3961
3961
  } });
3962
3962
  },
3963
3963
  isDisabled: i,
3964
3964
  className: cl.radioGroupStandalone,
3965
- children: v
3965
+ children: x
3966
3966
  });
3967
- }, ul = ({ cell: e, testId: t }) => /* @__PURE__ */ y(ll, {
3968
- selected: e.selected,
3969
- name: e.name,
3970
- value: e.value,
3971
- noMargin: !0,
3972
- disabled: e.disabled,
3973
- onChange: (t) => e.onChange(t),
3974
- testId: t
3975
- }), dl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3967
+ }, ul = ({ cell: e, testId: t }) => {
3968
+ var n;
3969
+ return /* @__PURE__ */ y(ll, {
3970
+ selected: e.selected,
3971
+ name: e.name,
3972
+ value: (n = e.value) == null ? "" : n,
3973
+ noMargin: !0,
3974
+ disabled: e.disabled,
3975
+ onChange: (t) => e.onChange(t),
3976
+ testId: t
3977
+ });
3978
+ }, dl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3976
3979
  if (!e) return null;
3977
3980
  switch (e.type) {
3978
3981
  case "Input":
@@ -4229,7 +4232,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4229
4232
  });
4230
4233
  }, yl = (e) => {
4231
4234
  var t, n, r, i, a;
4232
- let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = rn(e, "table.headers", []), M = Pc(p, j), N = Ic(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, ee = {
4235
+ let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: p = [], actions: h, actionsRight: g, columnHeaderAlignments: v, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = m(null), j = rn(e, "table.headers", []), M = Pc(p, j), N = Ic(p, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, L = {
4233
4236
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
4234
4237
  ...e,
4235
4238
  onChange: (e) => {
@@ -4248,9 +4251,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4248
4251
  disabled: !0
4249
4252
  }) : null,
4250
4253
  testId: C ? `${C}-last-empty-row` : void 0
4251
- }, L = I ? p.concat(ee) : p, R = {
4254
+ }, R = I ? p.concat(L) : p, z = {
4252
4255
  ...l,
4253
- rows: L
4256
+ rows: R
4254
4257
  };
4255
4258
  return /* @__PURE__ */ b("div", {
4256
4259
  className: _(hs.wrapper, D ? hs.bordered : ""),
@@ -4273,11 +4276,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4273
4276
  draggable: w,
4274
4277
  onListReorder: o,
4275
4278
  rowActions: N,
4276
- rows: L,
4279
+ rows: R,
4277
4280
  tbodyRef: A,
4278
4281
  canListReorder: s,
4279
4282
  children: ({ dropDisabled: e }) => /* @__PURE__ */ y(vl, {
4280
- table: R,
4283
+ table: z,
4281
4284
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ b("table", {
4282
4285
  className: _(hs.table, S ? hs.striped : ""),
4283
4286
  "data-testid": C,
@@ -4296,7 +4299,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4296
4299
  }, `0_${t}`)) }), /* @__PURE__ */ y("tbody", {
4297
4300
  ref: A,
4298
4301
  children: t ? t.getVirtualItems().map((t) => {
4299
- let n = t.index, r = L[n];
4302
+ let n = t.index, r = R[n];
4300
4303
  return /* @__PURE__ */ y(ml, {
4301
4304
  rowIndex: n,
4302
4305
  row: c ? c({
@@ -4312,7 +4315,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4312
4315
  height: t.size,
4313
4316
  dropDisabled: e
4314
4317
  }, `1_${n}`);
4315
- }) : L.map((t, n) => /* @__PURE__ */ y(ml, {
4318
+ }) : R.map((t, n) => /* @__PURE__ */ y(ml, {
4316
4319
  rowIndex: n,
4317
4320
  row: c ? c({
4318
4321
  row: t,
@@ -4965,7 +4968,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4965
4968
  type: "Success",
4966
4969
  content: u("pasteSuccessful")
4967
4970
  } }, f);
4968
- }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: R } = I, z = R.length, te = F === "", ne = Ml(F), re = jl(F), B = /* @__PURE__ */ b(v, { children: [
4971
+ }, { pastedText: F, parsedResult: I } = k, L = T && T(I), { isValid: R, errors: z } = I, ee = z.length, te = F === "", ne = Ml(F), re = jl(F), B = /* @__PURE__ */ b(v, { children: [
4969
4972
  /* @__PURE__ */ b("div", {
4970
4973
  className: os.headerContainer,
4971
4974
  children: [
@@ -4975,7 +4978,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
4975
4978
  label: u("downsampled"),
4976
4979
  checked: D,
4977
4980
  onChange: () => j(!D),
4978
- disabled: te || !L
4981
+ disabled: te || !R
4979
4982
  })
4980
4983
  }),
4981
4984
  /* @__PURE__ */ y(G, {
@@ -5040,8 +5043,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5040
5043
  }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", {
5041
5044
  className: os.messagesContainer,
5042
5045
  children: [
5043
- z ? /* @__PURE__ */ y(Ol, {
5044
- errors: R,
5046
+ ee ? /* @__PURE__ */ y(Ol, {
5047
+ errors: z,
5045
5048
  t: u
5046
5049
  }) : null,
5047
5050
  ne && /* @__PURE__ */ y(_o, {
@@ -5055,7 +5058,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5055
5058
  content: u("extraSeparators"),
5056
5059
  type: "Warning"
5057
5060
  } }),
5058
- ee && /* @__PURE__ */ y(ms, { message: {
5061
+ L && /* @__PURE__ */ y(ms, { message: {
5059
5062
  visible: !0,
5060
5063
  icon: !0,
5061
5064
  width: "100%",
@@ -5089,7 +5092,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5089
5092
  label: u("okay"),
5090
5093
  colored: !0,
5091
5094
  onClick: () => f(() => P()),
5092
- disabled: te || !L,
5095
+ disabled: te || !R,
5093
5096
  loading: d,
5094
5097
  testId: `${p}-paste-with-review-modal-button-okay`
5095
5098
  }),
@@ -5097,7 +5100,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5097
5100
  label: u("cancel"),
5098
5101
  onClick: () => i()
5099
5102
  }),
5100
- ee && /* @__PURE__ */ y(K, {
5103
+ L && /* @__PURE__ */ y(K, {
5101
5104
  label: C,
5102
5105
  onClick: w
5103
5106
  })
@@ -5465,13 +5468,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5465
5468
  }
5466
5469
  }, Du = ({ config: e, smartUploadConfig: t, testId: n }) => {
5467
5470
  var r, i, a, o;
5468
- let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(Eu), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = vu(f), ee = hu(I, s, c), [L, R] = g(), z = xu({
5471
+ let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: m = !0, copyFromClipBoard: _ = !0, showDeleteOptions: v = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = h(Eu), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = vu(f), L = hu(I, s, c), [R, z] = g(), ee = xu({
5469
5472
  config: e,
5470
5473
  state: E,
5471
5474
  setState: D,
5472
5475
  smartUploadConfig: t,
5473
- startTransition: R
5474
- }), { readAndParseInput: te, updateState: ne, closeModals: re, setModalVisibility: B, onFileChange: ie, onClickQuickPasteFromClipBoard: ae, onClickCopyClipboard: oe, onSmartUploadResult: se, deleteAllRows: ce } = z == null ? {} : z;
5476
+ startTransition: z
5477
+ }), { readAndParseInput: te, updateState: ne, closeModals: re, setModalVisibility: B, onFileChange: ie, onClickQuickPasteFromClipBoard: ae, onClickCopyClipboard: oe, onSmartUploadResult: se, deleteAllRows: ce } = ee == null ? {} : ee;
5475
5478
  Go("Escape", () => re());
5476
5479
  let le = m ? [
5477
5480
  ...S ? [{
@@ -5506,7 +5509,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5506
5509
  type: "Option",
5507
5510
  label: I("downloadFile"),
5508
5511
  onClick: async () => {
5509
- let e = await ee();
5512
+ let e = await L();
5510
5513
  e && e && Su(e, d);
5511
5514
  }
5512
5515
  },
@@ -5567,7 +5570,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5567
5570
  }] : []
5568
5571
  ];
5569
5572
  return /* @__PURE__ */ b("span", { children: [
5570
- L && /* @__PURE__ */ y(Qi, {
5573
+ R && /* @__PURE__ */ y(Qi, {
5571
5574
  small: !0,
5572
5575
  dark: !0
5573
5576
  }),
@@ -5588,8 +5591,8 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
5588
5591
  onCompleteImport: T,
5589
5592
  prevalidationConfig: l,
5590
5593
  t: I,
5591
- loading: L,
5592
- startTransition: R,
5594
+ loading: R,
5595
+ startTransition: z,
5593
5596
  testId: n
5594
5597
  }),
5595
5598
  A && /* @__PURE__ */ y(as, {
@@ -6280,7 +6283,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6280
6283
  value: (d = g == null ? void 0 : g.toString()) == null ? null : d,
6281
6284
  orientation: l ? "horizontal" : "vertical",
6282
6285
  onChange: (t) => {
6283
- let n = m.find((e) => e.value.toString() === t);
6286
+ let n = m.find((e) => {
6287
+ var n;
6288
+ return ((n = e.value) == null ? void 0 : n.toString()) === t;
6289
+ });
6284
6290
  i == null || i({ target: {
6285
6291
  name: e == null ? "" : e,
6286
6292
  value: t,
@@ -6294,18 +6300,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6294
6300
  className: cl.groupLabel,
6295
6301
  children: t
6296
6302
  }), m.map((e) => {
6297
- let t = a || e.disabled || f;
6303
+ var t, n;
6304
+ let r = a || e.disabled || f;
6298
6305
  return /* @__PURE__ */ y(ll, {
6299
6306
  value: e.value,
6300
6307
  label: e.label,
6301
- disabled: t,
6308
+ disabled: r,
6302
6309
  small: o,
6303
6310
  noMargin: s,
6304
6311
  testId: e.testId,
6305
6312
  helpText: e.helpText,
6306
6313
  onClickHelp: e.onClickHelp,
6307
6314
  textTransform: e.textTransform
6308
- }, e.value.toString());
6315
+ }, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
6309
6316
  })]
6310
6317
  });
6311
6318
  }, ud = {
@@ -6640,13 +6647,13 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6640
6647
  }, Ud = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: c, unitkey: u = "", initUnit: d, noConversion: p = !1, onChange: m = gn, onClick: g = gn, onFocus: x = gn, onSwitchUnit: S = gn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
6641
6648
  name: "",
6642
6649
  error: null
6643
- }), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: R = null }) => {
6644
- let z = Rd(), te = Td();
6650
+ }), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: L = !0, groupOrder: R, tooltip: z = null }) => {
6651
+ let ee = Rd(), te = Td();
6645
6652
  typeof c == "number" && (c = `${c}`);
6646
- let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Dd(u, C || (z == null ? void 0 : z.unitTemplate)), [
6653
+ let [ne = "", re = ""] = c === void 0 ? [] : or(c), B = f(() => Dd(u, C || (ee == null ? void 0 : ee.unitTemplate)), [
6647
6654
  u,
6648
6655
  C,
6649
- z == null ? void 0 : z.unitTemplate
6656
+ ee == null ? void 0 : ee.unitTemplate
6650
6657
  ]), ie = Id(c, B), ae = d || B || re, oe = Ed(ae), { value: se } = Nd({
6651
6658
  value: c,
6652
6659
  toUnit: ae,
@@ -6798,7 +6805,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6798
6805
  return n;
6799
6806
  }
6800
6807
  return e;
6801
- }, Te = !E && (!L || L === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !L || L === V.LAST ? V.LAST : V.MIDDLE;
6808
+ }, Te = !E && (!R || R === V.FIRST) ? V.FIRST : V.MIDDLE, Ee = !R || R === V.LAST ? V.LAST : V.MIDDLE;
6802
6809
  return /* @__PURE__ */ y("div", {
6803
6810
  className: de === Od.PREDEFINED ? _(Hd.predefinedMenuActive) : "",
6804
6811
  children: /* @__PURE__ */ b(Io, {
@@ -6844,10 +6851,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6844
6851
  roundDisplayValue: I,
6845
6852
  groupOrder: Te,
6846
6853
  disableInternalErrorValidationMessages: pe,
6847
- useControlledValueWhenBlurred: !0,
6848
6854
  small: o,
6849
- selectOnFocus: ee,
6850
- tooltip: R
6855
+ selectOnFocus: L,
6856
+ tooltip: z
6851
6857
  }, xe)
6852
6858
  }),
6853
6859
  ye && (be || !ie ? /* @__PURE__ */ y(Ac, {
@@ -6901,11 +6907,11 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6901
6907
  !u || d || (D(T), k(!0));
6902
6908
  }, I = () => {
6903
6909
  D(T), k(!1);
6904
- }, ee = () => {
6910
+ }, L = () => {
6905
6911
  P || N === null || (o(Wd(e, N)), s == null || s(Wd(e, N)), k(!1));
6906
- }, L = (e) => {
6907
- e.key === "Enter" && ee(), e.key === "Escape" && I();
6908
- }, R = d || O, z = /* @__PURE__ */ b("div", {
6912
+ }, R = (e) => {
6913
+ e.key === "Enter" && L(), e.key === "Escape" && I();
6914
+ }, z = d || O, ee = /* @__PURE__ */ b("div", {
6909
6915
  className: wd.actions,
6910
6916
  children: [/* @__PURE__ */ y(K, {
6911
6917
  icon: "close",
@@ -6916,7 +6922,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6916
6922
  icon: "checkmark",
6917
6923
  small: !0,
6918
6924
  disabled: !!P,
6919
- onClick: ee,
6925
+ onClick: L,
6920
6926
  testId: g && `${g}-confirm`
6921
6927
  })]
6922
6928
  });
@@ -6934,7 +6940,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6934
6940
  f && /* @__PURE__ */ y("div", {
6935
6941
  className: _(wd.input, x && wd.inputSmall, u && !d && wd.editable),
6936
6942
  children: /* @__PURE__ */ y(Ua, {
6937
- content: z,
6943
+ content: ee,
6938
6944
  isOpen: O,
6939
6945
  onToggle: (e) => {
6940
6946
  e || I();
@@ -6947,7 +6953,7 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6947
6953
  className: wd.inputControl,
6948
6954
  "data-testid": g && `${g}-edit-trigger`,
6949
6955
  onClick: F,
6950
- onKeyDown: L,
6956
+ onKeyDown: R,
6951
6957
  children: /* @__PURE__ */ y(Ud, {
6952
6958
  name: e,
6953
6959
  value: O ? E : T,
@@ -6973,9 +6979,9 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
6973
6979
  onChange: o,
6974
6980
  onChangeComplete: s,
6975
6981
  showArrows: p,
6976
- showTooltip: !R,
6982
+ showTooltip: !z,
6977
6983
  tooltipFormatter: () => fr(T),
6978
- disabled: R,
6984
+ disabled: z,
6979
6985
  small: x,
6980
6986
  marks: S,
6981
6987
  testId: g && `${g}-slider`
@@ -7830,10 +7836,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
7830
7836
  })) : [];
7831
7837
  }, If = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
7832
7838
  let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nf(t), m = Ed(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
7833
- _({
7834
- ...g,
7839
+ _((t) => ({
7840
+ ...t,
7835
7841
  [e]: n
7836
- });
7842
+ }));
7837
7843
  let r = t.find((t) => t.unitKey === e);
7838
7844
  r && typeof r.onChange == "function" && r.onChange({
7839
7845
  oldUnit: g[e],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "7.0.2-beta-4",
3
+ "version": "7.0.3-beta-1",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {