@mailstep/design-system 0.6.35 → 0.6.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.35",
3
+ "version": "0.6.36",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -3,10 +3,9 @@ export type Props = {
3
3
  children?: React.ReactNode;
4
4
  label?: string | number | JSX.Element;
5
5
  color?: string;
6
- size?: string | number;
6
+ size?: 'small' | 'default';
7
7
  childWidth?: string | number;
8
8
  topPosition?: boolean;
9
- fontSize?: number;
10
9
  };
11
- declare const Badge: ({ children, color, size, fontSize, label, childWidth, topPosition }: Props) => JSX.Element;
10
+ declare const Badge: ({ children, color, size, label, childWidth, topPosition }: Props) => JSX.Element;
12
11
  export default Badge;
@@ -5,21 +5,25 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
5
5
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import styled, { css, useTheme } from '@xstyled/styled-components';
7
7
  import { th } from '@xstyled/styled-components';
8
- var Circle = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2px;\n color: white;\n background-color: ", ";\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n .label {\n font-family: ", ";\n font-weight: 600;\n vertical-align: middle;\n text-align: center;\n font-size: ", ";\n }\n\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(", ");\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2px;\n color: white;\n background-color: ", ";\n border-radius: 50%;\n width: ", ";\n height: ", ";\n\n .label {\n font-family: ", ";\n font-weight: 600;\n vertical-align: middle;\n text-align: center;\n font-size: ", ";\n }\n\n position: absolute;\n top: 0;\n right: 0;\n transform: translate(", ");\n"])), function (_a) {
9
- var color = _a.color;
10
- return color;
11
- }, function (_a) {
8
+ import { useMemo } from 'react';
9
+ var Circle = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n min-width: 12px;\n display: flex;\n align-items: center;\n height: ", ";\n padding: ", ";\n color: white;\n gap: 10px;\n background-color: ", ";\n border-radius: 29px;\n line-height: 15.6px;\n font-family: ", ";\n font-size: ", ";\n font-weight: semiBold;\n position: absolute;\n top: ", ";\n left: ", ";\n z-index: 1;\n"], ["\n min-width: 12px;\n display: flex;\n align-items: center;\n height: ", ";\n padding: ", ";\n color: white;\n gap: 10px;\n background-color: ", ";\n border-radius: 29px;\n line-height: 15.6px;\n font-family: ", ";\n font-size: ", ";\n font-weight: semiBold;\n position: absolute;\n top: ", ";\n left: ", ";\n z-index: 1;\n"])), function (_a) {
12
10
  var size = _a.size;
13
- return size;
11
+ return (size === 'small' ? '16px' : '24px');
14
12
  }, function (_a) {
15
13
  var size = _a.size;
16
- return size;
14
+ return (size === 'small' ? '0 5px' : '3px 8px');
15
+ }, function (_a) {
16
+ var color = _a.color;
17
+ return color;
17
18
  }, th('fonts.primary'), function (_a) {
18
- var fontSize = _a.fontSize;
19
- return "".concat(fontSize, "px");
19
+ var size = _a.size;
20
+ return (size === 'small' ? '12px' : '14px');
21
+ }, function (_a) {
22
+ var topPosition = _a.topPosition;
23
+ return topPosition && '-15%';
20
24
  }, function (_a) {
21
25
  var topPosition = _a.topPosition;
22
- return (topPosition ? '75%, -75%' : '50%, -50%');
26
+ return (topPosition ? '50%' : '100%');
23
27
  });
24
28
  var RelativeWrap = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n ", ";\n"], ["\n position: relative;\n ", ";\n"])), function (_a) {
25
29
  var width = _a.width;
@@ -27,14 +31,16 @@ var RelativeWrap = styled.div(templateObject_3 || (templateObject_3 = __makeTemp
27
31
  ? css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: ", ";\n "], ["\n width: ", ";\n "])), width) : '';
28
32
  });
29
33
  var Badge = function (_a) {
30
- var children = _a.children, _b = _a.color, color = _b === void 0 ? 'red2' : _b, _c = _a.size, size = _c === void 0 ? 6 : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 10 : _d, label = _a.label, childWidth = _a.childWidth, topPosition = _a.topPosition;
34
+ var children = _a.children, _b = _a.color, color = _b === void 0 ? 'red1' : _b, _c = _a.size, size = _c === void 0 ? 'default' : _c, label = _a.label, childWidth = _a.childWidth, topPosition = _a.topPosition;
31
35
  var theme = useTheme();
32
36
  var themeColor = th.color(color)({ theme: theme });
33
- var themeSize = th.fontSize(size)({ theme: theme });
37
+ var badgeLabel = useMemo(function () {
38
+ return typeof label === 'number' ? (label >= 100 ? '99+' : label) : label;
39
+ }, [label]);
34
40
  if (!label || (typeof label === 'number' && label <= 0)) {
35
41
  return _jsx(_Fragment, { children: children });
36
42
  }
37
- return (_jsxs(RelativeWrap, { width: childWidth, children: [_jsx(Circle, { color: themeColor, size: themeSize, topPosition: topPosition, fontSize: fontSize, children: _jsx("div", { className: "label", children: label }) }), children] }));
43
+ return (_jsxs(RelativeWrap, { width: childWidth, children: [_jsx(Circle, { color: themeColor, size: size, topPosition: topPosition, children: _jsx("div", { className: "label", children: badgeLabel }) }), children] }));
38
44
  };
39
45
  export default Badge;
40
46
  var templateObject_1, templateObject_2, templateObject_3;
@@ -2,11 +2,12 @@
2
2
  import type { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ children, color, size, fontSize, label, childWidth, topPosition }: import("../Badge").Props) => JSX.Element;
5
+ component: ({ children, color, size, label, childWidth, topPosition }: import("../Badge").Props) => JSX.Element;
6
6
  tags: string[];
7
7
  argTypes: {};
8
8
  };
9
9
  export default meta;
10
10
  type Story = StoryObj<typeof meta>;
11
- export declare const Primary: Story;
12
- export declare const Colored: Story;
11
+ export declare const Default: Story;
12
+ export declare const DefaultWithLabel: Story;
13
+ export declare const SmallWithLabel: Story;
@@ -6,19 +6,28 @@ var meta = {
6
6
  argTypes: {},
7
7
  };
8
8
  export default meta;
9
- export var Primary = {
9
+ export var Default = {
10
10
  args: {
11
11
  children: '😀',
12
- size: 1,
12
+ size: 'default',
13
13
  childWidth: '30px',
14
14
  },
15
15
  };
16
- export var Colored = {
16
+ export var DefaultWithLabel = {
17
+ args: {
18
+ children: '😀',
19
+ label: '10',
20
+ size: 'default',
21
+ childWidth: '30px',
22
+ },
23
+ };
24
+ export var SmallWithLabel = {
17
25
  args: {
18
26
  children: '😃',
19
27
  label: '10',
20
- size: 4,
28
+ size: 'small',
21
29
  color: 'darkGreen',
30
+ topPosition: true,
22
31
  childWidth: '50px',
23
32
  },
24
33
  };
package/ui/index.es.js CHANGED
@@ -2,7 +2,7 @@ var Gj = Object.defineProperty;
2
2
  var zj = (e, t, r) => t in e ? Gj(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var Ux = (e, t, r) => (zj(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import * as Le from "react";
5
- import fe, { useState as He, useEffect as bt, useMemo as at, useContext as Mc, useRef as Ve, useLayoutEffect as Ud, createContext as hm, useCallback as ke, memo as xw, forwardRef as pm, useId as xM, createElement as Yj, Component as EM, Fragment as G7, useReducer as Zj } from "react";
5
+ import fe, { useState as He, useEffect as bt, useMemo as it, useContext as Mc, useRef as Ve, useLayoutEffect as Ud, createContext as hm, useCallback as ke, memo as xw, forwardRef as pm, useId as xM, createElement as Yj, Component as EM, Fragment as G7, useReducer as Zj } from "react";
6
6
  import * as Jj from "react-dom";
7
7
  import SM, { findDOMNode as Uj, createPortal as Xj, unstable_batchedUpdates as $j } from "react-dom";
8
8
  import Ti, { createGlobalStyle as Ew, ThemeContext as qj, css as Qj, keyframes as gm, ThemeProvider as Kj } from "styled-components";
@@ -2532,7 +2532,7 @@ const EE = (e) => (t) => (r) => {
2532
2532
  return i.push(t.slice(n, t.length)), i;
2533
2533
  }, gr = (e, t) => (r, n) => {
2534
2534
  const i = t();
2535
- return at(
2535
+ return it(
2536
2536
  () => e(r, n)({ theme: i }),
2537
2537
  [r, n, i]
2538
2538
  );
@@ -12160,7 +12160,7 @@ const to = /* @__PURE__ */ ho(Oae), Rd = (e, t) => {
12160
12160
  }) => {
12161
12161
  const _ = ke(() => {
12162
12162
  m ? m() : n && n();
12163
- }, [m, n]), V = at(() => ({
12163
+ }, [m, n]), V = it(() => ({
12164
12164
  width: Fae[v]
12165
12165
  }), [v]), F = tf({
12166
12166
  onClose: _,
@@ -16877,38 +16877,35 @@ const Hle = Ti(ft.div)`
16877
16877
  hoverColorBack: o,
16878
16878
  ...l
16879
16879
  }) => /* @__PURE__ */ b.jsx(b.Fragment, { children: /* @__PURE__ */ b.jsx(tce, { size: t || 34, className: i, $colorBack: n || "neutral20", $colorFront: r || "blue2", $hoverColorBack: o || "lightGray7", ...l, children: e ? /* @__PURE__ */ b.jsx("img", { src: e, width: t, height: t }) : /* @__PURE__ */ b.jsx(aU, {}) }) }), rce = ie.div`
16880
+ min-width: 12px;
16880
16881
  display: flex;
16881
16882
  align-items: center;
16882
- justify-content: center;
16883
- padding: 2px;
16883
+ height: ${({
16884
+ size: e
16885
+ }) => e === "small" ? "16px" : "24px"};
16886
+ padding: ${({
16887
+ size: e
16888
+ }) => e === "small" ? "0 5px" : "3px 8px"};
16884
16889
  color: white;
16890
+ gap: 10px;
16885
16891
  background-color: ${({
16886
16892
  color: e
16887
16893
  }) => e};
16888
- border-radius: 50%;
16889
- width: ${({
16890
- size: e
16891
- }) => e};
16892
- height: ${({
16894
+ border-radius: 29px;
16895
+ line-height: 15.6px;
16896
+ font-family: ${te("fonts.primary")};
16897
+ font-size: ${({
16893
16898
  size: e
16894
- }) => e};
16895
-
16896
- .label {
16897
- font-family: ${te("fonts.primary")};
16898
- font-weight: 600;
16899
- vertical-align: middle;
16900
- text-align: center;
16901
- font-size: ${({
16902
- fontSize: e
16903
- }) => `${e}px`};
16904
- }
16905
-
16899
+ }) => e === "small" ? "12px" : "14px"};
16900
+ font-weight: semiBold;
16906
16901
  position: absolute;
16907
- top: 0;
16908
- right: 0;
16909
- transform: translate(${({
16902
+ top: ${({
16903
+ topPosition: e
16904
+ }) => e && "-15%"};
16905
+ left: ${({
16910
16906
  topPosition: e
16911
- }) => e ? "75%, -75%" : "50%, -50%"});
16907
+ }) => e ? "50%" : "100%"};
16908
+ z-index: 1;
16912
16909
  `, nce = ie.div`
16913
16910
  position: relative;
16914
16911
  ${({
@@ -16918,20 +16915,17 @@ const Hle = Ti(ft.div)`
16918
16915
  ` : ""};
16919
16916
  `, _Se = ({
16920
16917
  children: e,
16921
- color: t = "red2",
16922
- size: r = 6,
16923
- fontSize: n = 10,
16924
- label: i,
16925
- childWidth: o,
16926
- topPosition: l
16918
+ color: t = "red1",
16919
+ size: r = "default",
16920
+ label: n,
16921
+ childWidth: i,
16922
+ topPosition: o
16927
16923
  }) => {
16928
- const c = xt(), u = te.color(t)({
16929
- theme: c
16930
- }), f = te.fontSize(r)({
16931
- theme: c
16932
- });
16933
- return !i || typeof i == "number" && i <= 0 ? /* @__PURE__ */ b.jsx(b.Fragment, { children: e }) : /* @__PURE__ */ b.jsxs(nce, { width: o, children: [
16934
- /* @__PURE__ */ b.jsx(rce, { color: u, size: f, topPosition: l, fontSize: n, children: /* @__PURE__ */ b.jsx("div", { className: "label", children: i }) }),
16924
+ const l = xt(), c = te.color(t)({
16925
+ theme: l
16926
+ }), u = it(() => typeof n == "number" && n >= 100 ? "99+" : n, [n]);
16927
+ return !n || typeof n == "number" && n <= 0 ? /* @__PURE__ */ b.jsx(b.Fragment, { children: e }) : /* @__PURE__ */ b.jsxs(nce, { width: i, children: [
16928
+ /* @__PURE__ */ b.jsx(rce, { color: c, size: r, topPosition: o, children: /* @__PURE__ */ b.jsx("div", { className: "label", children: u }) }),
16935
16929
  e
16936
16930
  ] });
16937
16931
  }, ice = ie(ft.div)`
@@ -17459,7 +17453,7 @@ const Ice = (e, t) => Object.entries(e).map(([r, n]) => `${n} ${r}`).join(", "),
17459
17453
  return;
17460
17454
  }
17461
17455
  e && e(p, t);
17462
- }, [t, e, l]), u = n ?? 1, f = Math.max(Math.ceil(r / t), 1), h = at(() => {
17456
+ }, [t, e, l]), u = n ?? 1, f = Math.max(Math.ceil(r / t), 1), h = it(() => {
17463
17457
  const p = Array.from({
17464
17458
  length: f
17465
17459
  }, (v, m) => m + 1);
@@ -22486,7 +22480,7 @@ const lhe = ohe(she), che = ie(ft.div)`
22486
22480
  window.removeEventListener("resize", f);
22487
22481
  };
22488
22482
  }, []), {
22489
- gridHeight: at(() => {
22483
+ gridHeight: it(() => {
22490
22484
  const f = e - r - i;
22491
22485
  if (f !== e && f > 360)
22492
22486
  return f - 25;
@@ -28873,7 +28867,7 @@ const Y2e = (e, t) => e && e.getTime && t && t.getTime && e.getTime() === t.getT
28873
28867
  } = e, [f, h] = He((i == null ? void 0 : i[0]) ?? void 0), [p, v] = He((i == null ? void 0 : i[1]) ?? void 0), m = o ? "HH:mm" : !1, w = vt._({
28874
28868
  id: "dataGrid.filterCell",
28875
28869
  message: "Type to filter"
28876
- }), C = fe.useMemo(() => [typeof (i == null ? void 0 : i[0]) == "string" ? new Date(i[0]) : (i == null ? void 0 : i[0]) || void 0, typeof (i == null ? void 0 : i[1]) == "string" ? new Date(i[1]) : (i == null ? void 0 : i[1]) || void 0], [i]), S = at(() => {
28870
+ }), C = fe.useMemo(() => [typeof (i == null ? void 0 : i[0]) == "string" ? new Date(i[0]) : (i == null ? void 0 : i[0]) || void 0, typeof (i == null ? void 0 : i[1]) == "string" ? new Date(i[1]) : (i == null ? void 0 : i[1]) || void 0], [i]), S = it(() => {
28877
28871
  if (C[0] && C[1])
28878
28872
  return C;
28879
28873
  const V = /* @__PURE__ */ new Date();
@@ -30878,7 +30872,7 @@ var TF = function(t) {
30878
30872
  zIndex: 1
30879
30873
  };
30880
30874
  }, ome = function(t) {
30881
- var r = t.appendTo, n = t.children, i = t.controlElement, o = t.innerProps, l = t.menuPlacement, c = t.menuPosition, u = Ve(null), f = Ve(null), h = He(TF(l)), p = gn(h, 2), v = p[0], m = p[1], w = at(function() {
30875
+ var r = t.appendTo, n = t.children, i = t.controlElement, o = t.innerProps, l = t.menuPlacement, c = t.menuPosition, u = Ve(null), f = Ve(null), h = He(TF(l)), p = gn(h, 2), v = p[0], m = p[1], w = it(function() {
30882
30876
  return {
30883
30877
  setPortalPlacement: m
30884
30878
  };
@@ -31485,9 +31479,9 @@ var u3e = process.env.NODE_ENV === "production" ? {
31485
31479
  return "".concat(n).concat(r ? " for search term " + r : "", ".");
31486
31480
  }
31487
31481
  }, h3e = function(t) {
31488
- var r = t.ariaSelection, n = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, l = t.isFocused, c = t.selectValue, u = t.selectProps, f = t.id, h = t.isAppleDevice, p = u.ariaLiveMessages, v = u.getOptionLabel, m = u.inputValue, w = u.isMulti, C = u.isOptionDisabled, S = u.isSearchable, x = u.menuIsOpen, I = u.options, O = u.screenReaderStatus, T = u.tabSelectsValue, M = u.isLoading, L = u["aria-label"], B = u["aria-live"], j = at(function() {
31482
+ var r = t.ariaSelection, n = t.focusedOption, i = t.focusedValue, o = t.focusableOptions, l = t.isFocused, c = t.selectValue, u = t.selectProps, f = t.id, h = t.isAppleDevice, p = u.ariaLiveMessages, v = u.getOptionLabel, m = u.inputValue, w = u.isMulti, C = u.isOptionDisabled, S = u.isSearchable, x = u.menuIsOpen, I = u.options, O = u.screenReaderStatus, T = u.tabSelectsValue, M = u.isLoading, L = u["aria-label"], B = u["aria-live"], j = it(function() {
31489
31483
  return ze(ze({}, f3e), p || {});
31490
- }, [p]), H = at(function() {
31484
+ }, [p]), H = it(function() {
31491
31485
  var z = "";
31492
31486
  if (r && j.onChange) {
31493
31487
  var re = r.option, de = r.options, me = r.removedValue, ue = r.removedValues, Y = r.value, U = function(ce) {
@@ -31502,7 +31496,7 @@ var u3e = process.env.NODE_ENV === "production" ? {
31502
31496
  z = j.onChange(q);
31503
31497
  }
31504
31498
  return z;
31505
- }, [r, j, C, c, v]), Z = at(function() {
31499
+ }, [r, j, C, c, v]), Z = it(function() {
31506
31500
  var z = "", re = n || i, de = !!(n && c && c.includes(n));
31507
31501
  if (re && j.onFocus) {
31508
31502
  var me = {
@@ -31518,7 +31512,7 @@ var u3e = process.env.NODE_ENV === "production" ? {
31518
31512
  z = j.onFocus(me);
31519
31513
  }
31520
31514
  return z;
31521
- }, [n, i, v, C, j, o, c, h]), _ = at(function() {
31515
+ }, [n, i, v, C, j, o, c, h]), _ = it(function() {
31522
31516
  var z = "";
31523
31517
  if (x && I.length && !M && j.onFilter) {
31524
31518
  var re = O({
@@ -31530,7 +31524,7 @@ var u3e = process.env.NODE_ENV === "production" ? {
31530
31524
  });
31531
31525
  }
31532
31526
  return z;
31533
- }, [o, m, x, j, I, O, M]), V = (r == null ? void 0 : r.action) === "initial-input-focus", F = at(function() {
31527
+ }, [o, m, x, j, I, O, M]), V = (r == null ? void 0 : r.action) === "initial-input-focus", F = it(function() {
31534
31528
  var z = "";
31535
31529
  if (j.guidance) {
31536
31530
  var re = i ? "value" : x ? "menu" : "input";
@@ -33679,7 +33673,7 @@ const n4e = ie.div`
33679
33673
  });
33680
33674
  }, A4e = (e = "form", t = "default", r = "default", n = "default", i, o, l) => {
33681
33675
  const c = xt();
33682
- return at(() => {
33676
+ return it(() => {
33683
33677
  const u = {
33684
33678
  ValueContainer: c4e
33685
33679
  };
@@ -33735,9 +33729,9 @@ const n4e = ie.div`
33735
33729
  typeof l == "function" && (l == null || l(jT));
33736
33730
  }, [l]), ue = j === "search" ? "search" : Z || void 0, Y = T && O && V ? V - 30 : V, [U, se, oe] = A4e(M, L, B, j, I, O, T), ge = re ? a4e : i4e;
33737
33731
  let ae;
33738
- const q = at(() => F || ((pe) => pe == null ? void 0 : pe.value), [F]);
33732
+ const q = it(() => F || ((pe) => pe == null ? void 0 : pe.value), [F]);
33739
33733
  Array.isArray(r) ? (ae = (i || n).filter((pe) => r.includes(q(pe))), ae = ae != null && ae.length ? ae : null) : r !== void 0 && (ae = (i || n).find((pe) => q(pe) === r) || null);
33740
- const ne = xt(), ce = at(() => o ? (pe) => o(pe) : void 0, [o]);
33734
+ const ne = xt(), ce = it(() => o ? (pe) => o(pe) : void 0, [o]);
33741
33735
  return /* @__PURE__ */ b.jsxs(Th, { spaceAround: v, className: x, children: [
33742
33736
  /* @__PURE__ */ b.jsxs(n4e, { children: [
33743
33737
  e && /* @__PURE__ */ b.jsx(Vm, { htmlFor: t, children: e }),
@@ -33917,7 +33911,7 @@ const nw = `_create_${N4e()}_`, _4e = tW(), L4e = (e, t) => (e == null ? void 0
33917
33911
  value: v7(z)
33918
33912
  }
33919
33913
  });
33920
- }, [t, n]), _ = ["onValueChange", "placeholder", "options", "loadOptions", "asyncLoadMinChars"], F = c && !f ? u : h, Q = at(() => {
33914
+ }, [t, n]), _ = ["onValueChange", "placeholder", "options", "loadOptions", "asyncLoadMinChars"], F = c && !f ? u : h, Q = it(() => {
33921
33915
  if (!I)
33922
33916
  return;
33923
33917
  const z = m ? w : M;
@@ -33956,7 +33950,7 @@ const nw = `_create_${N4e()}_`, _4e = tW(), L4e = (e, t) => (e == null ? void 0
33956
33950
  }], W4e = ({
33957
33951
  ...e
33958
33952
  }) => {
33959
- const t = at(() => j4e(), []);
33953
+ const t = it(() => j4e(), []);
33960
33954
  return /* @__PURE__ */ b.jsx($F, { options: t, ...e });
33961
33955
  }, JT = (e) => typeof e < "u", ah = (e) => ({
33962
33956
  flexBasis: e.flexBasis,
@@ -35418,7 +35412,7 @@ qv.exports;
35418
35412
  }
35419
35413
  function g4(a, s, d) {
35420
35414
  function g() {
35421
- for (var A = arguments.length, k = Ft(A), P = A, N = it(g); P--; )
35415
+ for (var A = arguments.length, k = Ft(A), P = A, N = at(g); P--; )
35422
35416
  k[P] = arguments[P];
35423
35417
  var X = A < 3 && k[0] !== N && k[A - 1] !== N ? [] : ce(k, N);
35424
35418
  return A -= X.length, A < d ? c1(a, s, yu, g.placeholder, W, k, X, W, W, d - A) : r(this && this !== Qr && this instanceof g ? y : a, this, k);
@@ -35469,7 +35463,7 @@ qv.exports;
35469
35463
  for (var Re = arguments.length, _e = Ft(Re), Gt = Re; Gt--; )
35470
35464
  _e[Gt] = arguments[Gt];
35471
35465
  if (Ce)
35472
- var zt = it(J), Dr = Y(_e, zt);
35466
+ var zt = at(J), Dr = Y(_e, zt);
35473
35467
  if (g && (_e = o1(_e, g, y, Ce)), A && (_e = sn(_e, A, k, Ce)), Re -= Dr, Ce && Re < X)
35474
35468
  return c1(a, s, yu, J.placeholder, d, _e, ce(_e, zt), P, N, X - Re);
35475
35469
  var st = he ? d : this, Sr = be ? st[a] : a;
@@ -35698,7 +35692,7 @@ qv.exports;
35698
35692
  }
35699
35693
  return s;
35700
35694
  }
35701
- function it(a) {
35695
+ function at(a) {
35702
35696
  return (Vt.call(E, "placeholder") ? E : a).placeholder;
35703
35697
  }
35704
35698
  function Xe() {
@@ -37164,14 +37158,14 @@ function print() { __p += __j.call(arguments, '') }
37164
37158
  }, Q1 = pt(function(a, s, d) {
37165
37159
  var g = lr;
37166
37160
  if (d.length) {
37167
- var y = ce(d, it(Q1));
37161
+ var y = ce(d, at(Q1));
37168
37162
  g |= li;
37169
37163
  }
37170
37164
  return Ha(a, g, s, d, y);
37171
37165
  }), q2 = pt(function(a, s, d) {
37172
37166
  var g = lr | Fr;
37173
37167
  if (d.length) {
37174
- var y = ce(d, it(q2));
37168
+ var y = ce(d, at(q2));
37175
37169
  g |= li;
37176
37170
  }
37177
37171
  return Ha(s, g, a, d, y);
@@ -37190,9 +37184,9 @@ function print() { __p += __j.call(arguments, '') }
37190
37184
  return r(a, this, g);
37191
37185
  });
37192
37186
  }), K1 = pt(function(a, s) {
37193
- return Ha(a, li, W, s, ce(s, it(K1)));
37187
+ return Ha(a, li, W, s, ce(s, at(K1)));
37194
37188
  }), Q2 = pt(function(a, s) {
37195
- return Ha(a, la, W, s, ce(s, it(Q2)));
37189
+ return Ha(a, la, W, s, ce(s, at(Q2)));
37196
37190
  }), $5 = ma(function(a, s) {
37197
37191
  return Ha(a, Zn, W, W, W, s);
37198
37192
  }), q5 = Hl(Uo), Q5 = Hl(function(a, s) {
@@ -37582,7 +37576,7 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37582
37576
  appearanceMap: r,
37583
37577
  size: n
37584
37578
  }) => {
37585
- const i = at(() => t[e] ? t[e]() : e, [t, e]), o = at(() => ({
37579
+ const i = it(() => t[e] ? t[e]() : e, [t, e]), o = it(() => ({
37586
37580
  appearance: r[e]
37587
37581
  }), [r, e]);
37588
37582
  return i ? /* @__PURE__ */ b.jsx(f6e, { children: /* @__PURE__ */ b.jsx(d6e, { className: "cell", ...o, size: n, prefix: "grid", children: i }) }) : null;
@@ -37646,7 +37640,7 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37646
37640
  }) => {
37647
37641
  const n = ke(() => {
37648
37642
  oh.isFunction(t) && t();
37649
- }, [t]), i = at(() => {
37643
+ }, [t]), i = it(() => {
37650
37644
  const o = [];
37651
37645
  return e ? o.push(/* @__PURE__ */ b.jsx(XT, { icon: "pen", onClick: n, linkTo: r }, "edit")) : o.push(/* @__PURE__ */ b.jsx(XT, { icon: "chevronRight", onClick: n, linkTo: r }, "read")), o;
37652
37646
  }, [e, n, r]);
@@ -37675,7 +37669,7 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37675
37669
  const i = oh.isFunction(e == null ? void 0 : e.canRowEdit) ? e == null ? void 0 : e.canRowEdit(r) : e == null ? void 0 : e.canRowEdit, o = oh.isFunction(e == null ? void 0 : e.canRowRead) ? e == null ? void 0 : e.canRowRead(r) : e == null ? void 0 : e.canRowRead, l = ke(() => {
37676
37670
  const u = i ? "row_edit" : "row_read";
37677
37671
  n && n(r == null ? void 0 : r.id, u, r);
37678
- }, [i, n, r]), c = at(() => {
37672
+ }, [i, n, r]), c = it(() => {
37679
37673
  var f;
37680
37674
  const u = i ? "edit" : "read";
37681
37675
  return (f = e == null ? void 0 : e.createLink) == null ? void 0 : f.call(e, {
@@ -37691,7 +37685,7 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37691
37685
  columnsDefinitions: n,
37692
37686
  onRowEditClick: i,
37693
37687
  onRowReadClick: o
37694
- } = e, l = at(() => {
37688
+ } = e, l = it(() => {
37695
37689
  var h;
37696
37690
  return r != null && r.forceCheckboxes || (h = r == null ? void 0 : r.actionOptions) != null && h.length ? {
37697
37691
  flexBasis: 40,
@@ -37707,9 +37701,9 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37707
37701
  p === "row_edit" && i && i(h, v), p === "row_read" && o && o(h, v);
37708
37702
  else if (t)
37709
37703
  return t(h, p, v);
37710
- }, [t, i, o]), u = at(() => m6e(r), [r]);
37704
+ }, [t, i, o]), u = it(() => m6e(r), [r]);
37711
37705
  return {
37712
- columnsDefinitions: at(() => (r == null ? void 0 : r.canRowEdit) !== void 0 || (r == null ? void 0 : r.canRowRead) !== void 0 ? [...n, {
37706
+ columnsDefinitions: it(() => (r == null ? void 0 : r.canRowEdit) !== void 0 || (r == null ? void 0 : r.canRowRead) !== void 0 ? [...n, {
37713
37707
  name: "sticky",
37714
37708
  flexBasis: 88,
37715
37709
  filtering: !1,
@@ -37735,9 +37729,9 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37735
37729
  } = r, {
37736
37730
  columnConfig: c,
37737
37731
  columnsOrder: u
37738
- } = t, f = at(() => e == null ? void 0 : e.map((B) => B.name), [e]), h = u != null && u.length ? u : f, [p, v] = He({
37732
+ } = t, f = it(() => e == null ? void 0 : e.map((B) => B.name), [e]), h = u != null && u.length ? u : f, [p, v] = He({
37739
37733
  ...c ?? {}
37740
- }), [m, w] = He(h), C = at(() => e == null ? void 0 : e.filter((B) => {
37734
+ }), [m, w] = He(h), C = it(() => e == null ? void 0 : e.filter((B) => {
37741
37735
  var H;
37742
37736
  const j = (H = p == null ? void 0 : p[B.name]) == null ? void 0 : H.isHidden;
37743
37737
  return B != null && B.alwaysOn || typeof j == "boolean" ? !j : B.defaultHidden && (p != null && p[B.name]) ? !0 : !(B != null && B.defaultHidden);
@@ -37750,7 +37744,7 @@ const Cs = /* @__PURE__ */ ho(q4e), YSe = ({
37750
37744
  }, [h, n]), O = ke((B, j) => (j ? e : e.filter((H) => G4e(H, p))).toSorted((H, Z) => {
37751
37745
  const _ = (B || []).indexOf(H.name), V = (B || []).indexOf(Z.name);
37752
37746
  return _ > V ? 1 : _ < V ? -1 : 0;
37753
- }), [c, e]), T = at(() => O(h, !1), [h, e]), M = at(() => O(m, !0), [m]), L = ke((B = !1) => (j) => {
37747
+ }), [c, e]), T = it(() => O(h, !1), [h, e]), M = it(() => O(m, !0), [m]), L = ke((B = !1) => (j) => {
37754
37748
  const {
37755
37749
  destination: H,
37756
37750
  source: Z
@@ -37950,7 +37944,7 @@ const Z6e = /* @__PURE__ */ ho(Y6e), KF = (e) => ke((t, r) => {
37950
37944
  };
37951
37945
  return /* @__PURE__ */ b.jsx(Pi, { className: f, ...l, children: /* @__PURE__ */ b.jsx(ft.div, { className: "test", children: /* @__PURE__ */ b.jsx(v, { "data-test": i.name, name: i.name, onChange: u, value: t, OverlayComponent: U6e, ...m }) }) });
37952
37946
  }, eV = (e, t, r) => {
37953
- const n = at(() => (e || []).length >= 1 && e.every((o) => {
37947
+ const n = it(() => (e || []).length >= 1 && e.every((o) => {
37954
37948
  var l;
37955
37949
  return (l = t.checkedRows) == null ? void 0 : l[o.id];
37956
37950
  }), [e, t.checkedRows]), i = ke(() => {
@@ -38462,13 +38456,13 @@ function aV(e, t) {
38462
38456
  }
38463
38457
  var oV = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Ud : bt;
38464
38458
  function sV(e) {
38465
- var t = e.store, r = e.context, n = e.children, i = at(function() {
38459
+ var t = e.store, r = e.context, n = e.children, i = it(function() {
38466
38460
  var c = aV(t);
38467
38461
  return {
38468
38462
  store: t,
38469
38463
  subscription: c
38470
38464
  };
38471
- }, [t]), o = at(function() {
38465
+ }, [t]), o = it(function() {
38472
38466
  return t.getState();
38473
38467
  }, [t]);
38474
38468
  oV(function() {
@@ -38753,26 +38747,26 @@ function O5e(e, t) {
38753
38747
  function V(de) {
38754
38748
  return e(de.dispatch, Z);
38755
38749
  }
38756
- var F = _ ? at : function(de) {
38750
+ var F = _ ? it : function(de) {
38757
38751
  return de();
38758
38752
  };
38759
38753
  function Q(de) {
38760
- var me = at(function() {
38754
+ var me = it(function() {
38761
38755
  var ct = de.reactReduxForwardedRef, an = Kv(de, w5e);
38762
38756
  return [de.context, ct, an];
38763
- }, [de]), ue = me[0], Y = me[1], U = me[2], se = at(function() {
38757
+ }, [de]), ue = me[0], Y = me[1], U = me[2], se = it(function() {
38764
38758
  return ue && ue.Consumer && oP.isContextConsumer(/* @__PURE__ */ fe.createElement(ue.Consumer, null)) ? ue : M;
38765
38759
  }, [ue, M]), oe = Mc(se), ge = !!de.store && !!de.store.getState && !!de.store.dispatch, ae = !!oe && !!oe.store;
38766
38760
  if (process.env.NODE_ENV !== "production" && !ge && !ae)
38767
38761
  throw new Error('Could not find "store" in the context of ' + ('"' + H + '". Either wrap the root component in a <Provider>, ') + "or pass a custom React context provider to <Provider> and the corresponding " + ("React context consumer to " + H + " in connect options."));
38768
- var q = ge ? de.store : oe.store, ne = at(function() {
38762
+ var q = ge ? de.store : oe.store, ne = it(function() {
38769
38763
  return V(q);
38770
- }, [q]), ce = at(function() {
38764
+ }, [q]), ce = it(function() {
38771
38765
  if (!h)
38772
38766
  return C5e;
38773
38767
  var ct = aV(q, ge ? null : oe.subscription), an = ct.notifyNestedSubs.bind(ct);
38774
38768
  return [ct, an];
38775
- }, [q, ge, oe]), pe = ce[0], Te = ce[1], Ae = at(function() {
38769
+ }, [q, ge, oe]), pe = ce[0], Te = ce[1], Ae = it(function() {
38776
38770
  return ge ? oe : Qe({}, oe, {
38777
38771
  subscription: pe
38778
38772
  });
@@ -38783,11 +38777,11 @@ function O5e(e, t) {
38783
38777
  return or.current && U === Ue.current ? or.current : ne(q.getState(), U);
38784
38778
  }, [q, Ke, U]);
38785
38779
  sP(S5e, [Ue, Br, W, U, wt, or, Te]), sP(I5e, [h, q, pe, ne, Ue, Br, W, or, Te, Ze], [q, pe, ne]);
38786
- var Tt = at(function() {
38780
+ var Tt = it(function() {
38787
38781
  return /* @__PURE__ */ fe.createElement(B, Qe({}, wt, {
38788
38782
  ref: Y
38789
38783
  }));
38790
- }, [Y, B, wt]), Ut = at(function() {
38784
+ }, [Y, B, wt]), Ut = it(function() {
38791
38785
  return h ? /* @__PURE__ */ fe.createElement(se.Provider, {
38792
38786
  value: Ae
38793
38787
  }, Tt) : Tt;
@@ -46469,7 +46463,7 @@ const oCe = ie.div`
46469
46463
  e && (e == null ? void 0 : e.length) > 0 && i((h) => !h), r == null || r();
46470
46464
  }, [r, e]), u = ke((h) => {
46471
46465
  i(!1), t == null || t(h.value);
46472
- }, [t]), f = at(() => e == null ? void 0 : e.map((h) => ({
46466
+ }, [t]), f = it(() => e == null ? void 0 : e.map((h) => ({
46473
46467
  title: h.label,
46474
46468
  onClick: () => u(h),
46475
46469
  link: "#",
@@ -48191,7 +48185,7 @@ dm.exports;
48191
48185
  while (s);
48192
48186
  return d;
48193
48187
  }
48194
- function it(a, s) {
48188
+ function at(a, s) {
48195
48189
  return M1(d2(a, s, en), a + "");
48196
48190
  }
48197
48191
  function Xe(a) {
@@ -48358,7 +48352,7 @@ dm.exports;
48358
48352
  function Eo(a, s) {
48359
48353
  return tt(a) ? a : k1(a, s) ? [a] : N1(It(a));
48360
48354
  }
48361
- var A4 = it;
48355
+ var A4 = at;
48362
48356
  function So(a, s, d) {
48363
48357
  var g = a.length;
48364
48358
  return d = d === r ? g : d, !s && d >= g ? a : bi(a, s, d);
@@ -48459,7 +48453,7 @@ dm.exports;
48459
48453
  };
48460
48454
  }
48461
48455
  function Ws(a) {
48462
- return it(function(s, d) {
48456
+ return at(function(s, d) {
48463
48457
  var g = -1, y = d.length, A = y > 1 ? d[y - 1] : r, k = y > 2 ? d[2] : r;
48464
48458
  for (A = a.length > 3 && typeof A == "function" ? (y--, A) : r, k && xn(d[0], d[1], k) && (A = y < 3 ? r : A, y = 1), s = Lt(s); ++g < y; ) {
48465
48459
  var P = d[g];
@@ -48643,7 +48637,7 @@ dm.exports;
48643
48637
  }
48644
48638
  function w1(a) {
48645
48639
  return za(function(s) {
48646
- return s = Kt(s, $n($e())), it(function(d) {
48640
+ return s = Kt(s, $n($e())), at(function(d) {
48647
48641
  var g = this;
48648
48642
  return a(s, function(y) {
48649
48643
  return _n(y, g, d);
@@ -49202,12 +49196,12 @@ dm.exports;
49202
49196
  s[g - 1] = arguments[g];
49203
49197
  return Xn(tt(d) ? An(d) : [d], jr(s, 1));
49204
49198
  }
49205
- var J4 = it(function(a, s) {
49199
+ var J4 = at(function(a, s) {
49206
49200
  return Or(a) ? Xo(a, jr(s, 1, Or, !0)) : [];
49207
- }), U4 = it(function(a, s) {
49201
+ }), U4 = at(function(a, s) {
49208
49202
  var d = Sn(s);
49209
49203
  return Or(d) && (d = r), Or(a) ? Xo(a, jr(s, 1, Or, !0), $e(d, 2)) : [];
49210
- }), X4 = it(function(a, s) {
49204
+ }), X4 = at(function(a, s) {
49211
49205
  var d = Sn(s);
49212
49206
  return Or(d) && (d = r), Or(a) ? Xo(a, jr(s, 1, Or, !0), r, d) : [];
49213
49207
  });
@@ -49276,13 +49270,13 @@ dm.exports;
49276
49270
  var s = a == null ? 0 : a.length;
49277
49271
  return s ? bi(a, 0, -1) : [];
49278
49272
  }
49279
- var _1 = it(function(a) {
49273
+ var _1 = at(function(a) {
49280
49274
  var s = Kt(a, Pu);
49281
49275
  return s.length && s[0] === a[0] ? _s(s) : [];
49282
- }), a6 = it(function(a) {
49276
+ }), a6 = at(function(a) {
49283
49277
  var s = Sn(a), d = Kt(a, Pu);
49284
49278
  return s === Sn(d) ? s = r : d.pop(), d.length && d[0] === a[0] ? _s(d, $e(s, 2)) : [];
49285
- }), Za = it(function(a) {
49279
+ }), Za = at(function(a) {
49286
49280
  var s = Sn(a), d = Kt(a, Pu);
49287
49281
  return s = typeof s == "function" ? s : r, s && d.pop(), d.length && d[0] === a[0] ? _s(d, r, s) : [];
49288
49282
  });
@@ -49303,7 +49297,7 @@ dm.exports;
49303
49297
  function Er(a, s) {
49304
49298
  return a && a.length ? u1(a, We(s)) : r;
49305
49299
  }
49306
- var o6 = it(m2);
49300
+ var o6 = at(m2);
49307
49301
  function m2(a, s) {
49308
49302
  return a && a.length && s && s.length ? h1(a, s) : a;
49309
49303
  }
@@ -49390,12 +49384,12 @@ dm.exports;
49390
49384
  function g6(a, s) {
49391
49385
  return a && a.length ? Ou(a, $e(s, 3)) : [];
49392
49386
  }
49393
- var Rt = it(function(a) {
49387
+ var Rt = at(function(a) {
49394
49388
  return cn(jr(a, 1, Or, !0));
49395
- }), v6 = it(function(a) {
49389
+ }), v6 = at(function(a) {
49396
49390
  var s = Sn(a);
49397
49391
  return Or(s) && (s = r), cn(jr(a, 1, Or, !0), $e(s, 2));
49398
- }), m6 = it(function(a) {
49392
+ }), m6 = at(function(a) {
49399
49393
  var s = Sn(a);
49400
49394
  return s = typeof s == "function" ? s : r, cn(jr(a, 1, Or, !0), r, s);
49401
49395
  });
@@ -49427,24 +49421,24 @@ dm.exports;
49427
49421
  return _n(s, r, g);
49428
49422
  });
49429
49423
  }
49430
- var A6 = it(function(a, s) {
49424
+ var A6 = at(function(a, s) {
49431
49425
  return Or(a) ? Xo(a, s) : [];
49432
- }), C6 = it(function(a) {
49426
+ }), C6 = at(function(a) {
49433
49427
  return g1(bo(a, Or));
49434
- }), B1 = it(function(a) {
49428
+ }), B1 = at(function(a) {
49435
49429
  var s = Sn(a);
49436
49430
  return Or(s) && (s = r), g1(bo(a, Or), $e(s, 2));
49437
- }), x6 = it(function(a) {
49431
+ }), x6 = at(function(a) {
49438
49432
  var s = Sn(a);
49439
49433
  return s = typeof s == "function" ? s : r, g1(bo(a, Or), r, s);
49440
- }), F1 = it(L1);
49434
+ }), F1 = at(L1);
49441
49435
  function Jr(a, s) {
49442
49436
  return js(a || [], s || [], on);
49443
49437
  }
49444
49438
  function Vn(a, s) {
49445
49439
  return js(a || [], s || [], qo);
49446
49440
  }
49447
- var E6 = it(function(a) {
49441
+ var E6 = at(function(a) {
49448
49442
  var s = a.length, d = s > 1 ? a[s - 1] : r;
49449
49443
  return d = typeof d == "function" ? (a.pop(), d) : r, A2(a, d);
49450
49444
  });
@@ -49545,7 +49539,7 @@ dm.exports;
49545
49539
  var y = a.length;
49546
49540
  return d < 0 && (d = Vr(y + d, 0)), nd(a) ? d <= y && a.indexOf(s, d) > -1 : !!y && Os(a, s, d) > -1;
49547
49541
  }
49548
- var W6 = it(function(a, s, d) {
49542
+ var W6 = at(function(a, s, d) {
49549
49543
  var g = -1, y = typeof s == "function", A = fn(a) ? E(a.length) : [];
49550
49544
  return Wa(a, function(k) {
49551
49545
  A[++g] = y ? _n(s, k, d) : Bs(k, s, d);
@@ -49602,7 +49596,7 @@ dm.exports;
49602
49596
  var g = tt(a) ? _f : Yp;
49603
49597
  return d && xn(a, s, d) && (s = r), g(a, $e(s, 3));
49604
49598
  }
49605
- var k2 = it(function(a, s) {
49599
+ var k2 = at(function(a, s) {
49606
49600
  if (a == null)
49607
49601
  return [];
49608
49602
  var d = s.length;
@@ -49629,14 +49623,14 @@ dm.exports;
49629
49623
  return --a > 0 && (d = s.apply(this, arguments)), a <= 1 && (s = r), d;
49630
49624
  };
49631
49625
  }
49632
- var dn = it(function(a, s, d) {
49626
+ var dn = at(function(a, s, d) {
49633
49627
  var g = S;
49634
49628
  if (d.length) {
49635
49629
  var y = ca(d, Gs(dn));
49636
49630
  g |= M;
49637
49631
  }
49638
49632
  return Ga(a, g, s, d, y);
49639
- }), Zu = it(function(a, s, d) {
49633
+ }), Zu = at(function(a, s, d) {
49640
49634
  var g = S | x;
49641
49635
  if (d.length) {
49642
49636
  var y = ca(d, Gs(Zu));
@@ -49701,9 +49695,9 @@ dm.exports;
49701
49695
  }
49702
49696
  return Dr.cancel = Gt, Dr.flush = zt, Dr;
49703
49697
  }
49704
- var e5 = it(function(a, s) {
49698
+ var e5 = at(function(a, s) {
49705
49699
  return r1(a, 1, s);
49706
- }), V1 = it(function(a, s, d) {
49700
+ }), V1 = at(function(a, s, d) {
49707
49701
  return r1(a, xi(s) || 0, d);
49708
49702
  });
49709
49703
  function t5(a) {
@@ -49746,15 +49740,15 @@ dm.exports;
49746
49740
  var W1 = A4(function(a, s) {
49747
49741
  s = s.length == 1 && tt(s[0]) ? Kt(s[0], $n($e())) : Kt(jr(s, 1), $n($e()));
49748
49742
  var d = s.length;
49749
- return it(function(g) {
49743
+ return at(function(g) {
49750
49744
  for (var y = -1, A = hr(g.length, d); ++y < A; )
49751
49745
  g[y] = s[y].call(this, g[y]);
49752
49746
  return _n(a, this, g);
49753
49747
  });
49754
- }), H1 = it(function(a, s) {
49748
+ }), H1 = at(function(a, s) {
49755
49749
  var d = ca(s, Gs(H1));
49756
49750
  return Ga(a, M, r, s, d);
49757
- }), M2 = it(function(a, s) {
49751
+ }), M2 = at(function(a, s) {
49758
49752
  var d = ca(s, Gs(M2));
49759
49753
  return Ga(a, L, r, s, d);
49760
49754
  }), r5 = za(function(a, s) {
@@ -49763,12 +49757,12 @@ dm.exports;
49763
49757
  function n5(a, s) {
49764
49758
  if (typeof a != "function")
49765
49759
  throw new pi(l);
49766
- return s = s === r ? s : We(s), it(a, s);
49760
+ return s = s === r ? s : We(s), at(a, s);
49767
49761
  }
49768
49762
  function i5(a, s) {
49769
49763
  if (typeof a != "function")
49770
49764
  throw new pi(l);
49771
- return s = s == null ? 0 : Vr(We(s), 0), it(function(d) {
49765
+ return s = s == null ? 0 : Vr(We(s), 0), at(function(d) {
49772
49766
  var g = d[s], y = So(d, 0, s);
49773
49767
  return g && Xn(y, g), _n(a, this, y);
49774
49768
  });
@@ -50009,7 +50003,7 @@ dm.exports;
50009
50003
  var d = Rs(a);
50010
50004
  return s == null ? d : gu(d, s);
50011
50005
  }
50012
- var Js = it(function(a, s) {
50006
+ var Js = at(function(a, s) {
50013
50007
  a = Lt(a);
50014
50008
  var d = -1, g = s.length, y = g > 2 ? s[2] : r;
50015
50009
  for (y && xn(s[0], s[1], y) && (g = 1); ++d < g; )
@@ -50018,7 +50012,7 @@ dm.exports;
50018
50012
  (J === r || Ft(J, Ps[X]) && !Bt.call(a, X)) && (a[X] = A[X]);
50019
50013
  }
50020
50014
  return a;
50021
- }), b5 = it(function(a) {
50015
+ }), b5 = at(function(a) {
50022
50016
  return a.push(r, a2), _n($1, r, a);
50023
50017
  });
50024
50018
  function y5(a, s) {
@@ -50059,7 +50053,7 @@ dm.exports;
50059
50053
  s != null && typeof s.toString != "function" && (s = iu.call(s)), a[s] = d;
50060
50054
  }, r0(en)), z2 = t2(function(a, s, d) {
50061
50055
  s != null && typeof s.toString != "function" && (s = iu.call(s)), Bt.call(a, s) ? a[s].push(d) : a[s] = [d];
50062
- }, $e), x5 = it(Bs);
50056
+ }, $e), x5 = at(Bs);
50063
50057
  function Ur(a) {
50064
50058
  return fn(a) ? pt(a) : Fs(a);
50065
50059
  }
@@ -50347,7 +50341,7 @@ function print() { __p += __j.call(arguments, '') }
50347
50341
  function K2(a, s, d) {
50348
50342
  return a = It(a), s = d ? r : s, s === r ? Qr(a) ? Z3(a) : dp(a) : a.match(s) || [];
50349
50343
  }
50350
- var e0 = it(function(a, s) {
50344
+ var e0 = at(function(a, s) {
50351
50345
  try {
50352
50346
  return _n(a, r, s);
50353
50347
  } catch (d) {
@@ -50364,7 +50358,7 @@ function print() { __p += __j.call(arguments, '') }
50364
50358
  if (typeof g[1] != "function")
50365
50359
  throw new pi(l);
50366
50360
  return [d(g[0]), g[1]];
50367
- }) : [], it(function(g) {
50361
+ }) : [], at(function(g) {
50368
50362
  for (var y = -1; ++y < s; ) {
50369
50363
  var A = a[y];
50370
50364
  if (_n(A[0], this, g))
@@ -50396,11 +50390,11 @@ function print() { __p += __j.call(arguments, '') }
50396
50390
  function nb(a, s) {
50397
50391
  return xu(a, Fn(s, p));
50398
50392
  }
50399
- var ib = it(function(a, s) {
50393
+ var ib = at(function(a, s) {
50400
50394
  return function(d) {
50401
50395
  return Bs(d, a, s);
50402
50396
  };
50403
- }), ab = it(function(a, s) {
50397
+ }), ab = at(function(a, s) {
50404
50398
  return function(d) {
50405
50399
  return Bs(a, d, s);
50406
50400
  };
@@ -50427,7 +50421,7 @@ function print() { __p += __j.call(arguments, '') }
50427
50421
  function a0() {
50428
50422
  }
50429
50423
  function rg(a) {
50430
- return a = We(a), it(function(s) {
50424
+ return a = We(a), at(function(s) {
50431
50425
  return u1(s, a);
50432
50426
  });
50433
50427
  }
@@ -50549,7 +50543,7 @@ function print() { __p += __j.call(arguments, '') }
50549
50543
  return this.filter(a).head();
50550
50544
  }, ht.prototype.findLast = function(a) {
50551
50545
  return this.reverse().find(a);
50552
- }, ht.prototype.invokeMap = it(function(a, s) {
50546
+ }, ht.prototype.invokeMap = at(function(a, s) {
50553
50547
  return typeof a == "function" ? new ht(this) : this.map(function(d) {
50554
50548
  return Bs(d, a, s);
50555
50549
  });
@@ -50766,10 +50760,10 @@ function XCe(e, t, r) {
50766
50760
  }
50767
50761
  var $Ce = XCe, qCe = zCe, QCe = $Ce, KCe = qCe(QCe), exe = KCe;
50768
50762
  const txe = /* @__PURE__ */ ho(exe), rxe = (e, t, r = [], n) => {
50769
- const i = at(() => (e || []).filter((c) => {
50763
+ const i = it(() => (e || []).filter((c) => {
50770
50764
  var u;
50771
50765
  return (u = t.checkedRows) == null ? void 0 : u[c.id];
50772
- }), [t, e]), o = at(() => (r || []).filter((u) => u.isEnabled ? u.isEnabled(i) : t.checkedRows && txe(t.checkedRows, Boolean)), [t, i, r]), l = ke((c) => {
50766
+ }), [t, e]), o = it(() => (r || []).filter((u) => u.isEnabled ? u.isEnabled(i) : t.checkedRows && txe(t.checkedRows, Boolean)), [t, i, r]), l = ke((c) => {
50773
50767
  const f = (r || []).find((h) => h.value == c);
50774
50768
  f && n && n(f, i);
50775
50769
  }, [r, n, i]);
@@ -50826,7 +50820,7 @@ const txe = /* @__PURE__ */ ho(exe), rxe = (e, t, r = [], n) => {
50826
50820
  uxState: u = {}
50827
50821
  } = t || {}, [f, h] = eV(i, u, c), [p, v] = rxe(i, u, r == null ? void 0 : r.actionOptions, n), m = Object.keys((u == null ? void 0 : u.checkedRows) || []).length, w = ke(() => {
50828
50822
  f || h();
50829
- }, [f, h]), C = at(() => {
50823
+ }, [f, h]), C = it(() => {
50830
50824
  var x;
50831
50825
  return (x = r == null ? void 0 : r.actionOptions) != null && x.length ? r.actionOptions.map((I) => ({
50832
50826
  title: I.label,
@@ -50873,7 +50867,7 @@ const txe = /* @__PURE__ */ ho(exe), rxe = (e, t, r = [], n) => {
50873
50867
  page: i
50874
50868
  } = t, o = ke((c) => {
50875
50869
  c && "value" in c && (n == null || n(Number(c.value)), r == null || r(i ?? 1, Number(c.value)));
50876
- }, [n, i, r]), l = at(() => dxe.map((c) => ({
50870
+ }, [n, i, r]), l = it(() => dxe.map((c) => ({
50877
50871
  value: c,
50878
50872
  label: c
50879
50873
  })), []);
@@ -50903,7 +50897,7 @@ const txe = /* @__PURE__ */ ho(exe), rxe = (e, t, r = [], n) => {
50903
50897
  dragHandleProps: l
50904
50898
  }) => {
50905
50899
  var m, w, C, S;
50906
- const [c, u] = He((t == null ? void 0 : t.includes(e.name)) ?? !1), f = at(() => ({
50900
+ const [c, u] = He((t == null ? void 0 : t.includes(e.name)) ?? !1), f = it(() => ({
50907
50901
  ...o == null ? void 0 : o.style
50908
50902
  }), [o]), h = Pj.isObject(e == null ? void 0 : e.title) && "props" in e.title && ((m = e.title) == null ? void 0 : m.props) && vt._({
50909
50903
  id: (C = (w = e.title) == null ? void 0 : w.props) == null ? void 0 : C.id,
@@ -50972,7 +50966,7 @@ const txe = /* @__PURE__ */ ho(exe), rxe = (e, t, r = [], n) => {
50972
50966
  U && ((Y = m.setRowsPerPage) == null || Y.call(m, U));
50973
50967
  }
50974
50968
  }, [O, m, h]);
50975
- const L = b6e(v), B = at(() => J4e(t), [t]), j = L.columnsDefinitions, {
50969
+ const L = b6e(v), B = it(() => J4e(t), [t]), j = L.columnsDefinitions, {
50976
50970
  onOpen: H,
50977
50971
  isOpen: Z,
50978
50972
  onClose: _
@@ -51776,7 +51770,7 @@ const oIe = (e, t = "grid") => {
51776
51770
  setColumnsOrder: r.setColumnsOrder
51777
51771
  }, i)
51778
51772
  }));
51779
- }, sIe = (e, t, r, n) => at(() => {
51773
+ }, sIe = (e, t, r, n) => it(() => {
51780
51774
  if (e)
51781
51775
  return {
51782
51776
  onClick: t,
package/ui/index.umd.js CHANGED
@@ -1646,34 +1646,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1646
1646
  background-color: ${e=>e.$hoverColorBack?re.color(e.$hoverColorBack):"auto"};
1647
1647
  }
1648
1648
  `,zue=({src:e,size:t=Hue,colorFront:r,colorBack:n,className:i,hoverColorBack:o,...l})=>b.jsx(b.Fragment,{children:b.jsx(Gue,{size:t||34,className:i,$colorBack:n||"neutral20",$colorFront:r||"blue2",$hoverColorBack:o||"lightGray7",...l,children:e?b.jsx("img",{src:e,width:t,height:t}):b.jsx(tO,{})})}),Yue=ae.div`
1649
+ min-width: 12px;
1649
1650
  display: flex;
1650
1651
  align-items: center;
1651
- justify-content: center;
1652
- padding: 2px;
1652
+ height: ${({size:e})=>e==="small"?"16px":"24px"};
1653
+ padding: ${({size:e})=>e==="small"?"0 5px":"3px 8px"};
1653
1654
  color: white;
1655
+ gap: 10px;
1654
1656
  background-color: ${({color:e})=>e};
1655
- border-radius: 50%;
1656
- width: ${({size:e})=>e};
1657
- height: ${({size:e})=>e};
1658
-
1659
- .label {
1660
- font-family: ${re("fonts.primary")};
1661
- font-weight: 600;
1662
- vertical-align: middle;
1663
- text-align: center;
1664
- font-size: ${({fontSize:e})=>`${e}px`};
1665
- }
1666
-
1657
+ border-radius: 29px;
1658
+ line-height: 15.6px;
1659
+ font-family: ${re("fonts.primary")};
1660
+ font-size: ${({size:e})=>e==="small"?"12px":"14px"};
1661
+ font-weight: semiBold;
1667
1662
  position: absolute;
1668
- top: 0;
1669
- right: 0;
1670
- transform: translate(${({topPosition:e})=>e?"75%, -75%":"50%, -50%"});
1663
+ top: ${({topPosition:e})=>e&&"-15%"};
1664
+ left: ${({topPosition:e})=>e?"50%":"100%"};
1665
+ z-index: 1;
1671
1666
  `,Zue=ae.div`
1672
1667
  position: relative;
1673
1668
  ${({width:e})=>e?wt`
1674
1669
  width: ${e};
1675
1670
  `:""};
1676
- `,Uue=({children:e,color:t="red2",size:r=6,fontSize:n=10,label:i,childWidth:o,topPosition:l})=>{const u=mt(),c=re.color(t)({theme:u}),f=re.fontSize(r)({theme:u});return!i||typeof i=="number"&&i<=0?b.jsx(b.Fragment,{children:e}):b.jsxs(Zue,{width:o,children:[b.jsx(Yue,{color:c,size:f,topPosition:l,fontSize:n,children:b.jsx("div",{className:"label",children:i})}),e]})},Jue=ae(ot.div)`
1671
+ `,Uue=({children:e,color:t="red1",size:r="default",label:n,childWidth:i,topPosition:o})=>{const l=mt(),u=re.color(t)({theme:l}),c=I.useMemo(()=>typeof n=="number"&&n>=100?"99+":n,[n]);return!n||typeof n=="number"&&n<=0?b.jsx(b.Fragment,{children:e}):b.jsxs(Zue,{width:i,children:[b.jsx(Yue,{color:u,size:r,topPosition:o,children:b.jsx("div",{className:"label",children:c})}),e]})},Jue=ae(ot.div)`
1677
1672
  display: flex;
1678
1673
  box-sizing: border-box;
1679
1674
  flex-direction: column;