asma-ui-core 3.55.0 → 3.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,7 +13,6 @@ function I({ selectedCount: e, onClearSelection: n, translations: t }) {
|
|
|
13
13
|
children: /* @__PURE__ */ i(b, {
|
|
14
14
|
dataTest: "dynamic-toolbar-clear-selection",
|
|
15
15
|
variant: "text",
|
|
16
|
-
size: "small",
|
|
17
16
|
className: "!min-w-0 !px-1 !font-semibold",
|
|
18
17
|
startIcon: n ? /* @__PURE__ */ i(T, {
|
|
19
18
|
width: 20,
|
|
@@ -25,7 +24,7 @@ function I({ selectedCount: e, onClearSelection: n, translations: t }) {
|
|
|
25
24
|
})
|
|
26
25
|
});
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function z({ selectedCount: e, onClearSelection: n, translations: t, bulkActionsPlan: l }) {
|
|
29
28
|
return /* @__PURE__ */ r("div", {
|
|
30
29
|
className: "flex w-full min-w-0 flex-nowrap items-center justify-between gap-3",
|
|
31
30
|
children: [/* @__PURE__ */ i(I, {
|
|
@@ -130,7 +129,7 @@ function E({ variant: e, beforeFilterActionsPlan: n, filter: t, search: l, after
|
|
|
130
129
|
export {
|
|
131
130
|
N as SearchSlot,
|
|
132
131
|
I as SelectionIndicator,
|
|
133
|
-
|
|
132
|
+
z as SelectionRow,
|
|
134
133
|
D as TitleBlock,
|
|
135
134
|
F as TitleText,
|
|
136
135
|
E as UtilityCluster
|
|
@@ -1,55 +1,62 @@
|
|
|
1
|
-
import { cn as
|
|
2
|
-
import { resolveSx as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { cn as P } from "../../../helpers/cn.js";
|
|
2
|
+
import { resolveSx as L } from "../../../helpers/sx.js";
|
|
3
|
+
import { TOP_LAYER_PROPS as M, TOP_LAYER_RESET_STYLE as Y, getOpenModalDialogAncestor as j, useTopLayerRef as k } from "../../../hooks/useTopLayer.hook.js";
|
|
4
|
+
import { cloneElement as C, useRef as D, useState as H } from "react";
|
|
5
|
+
import { Fragment as I, jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
import { FloatingArrow as N, FloatingPortal as U, arrow as z, autoUpdate as B, flip as G, offset as W, shift as q, useDismiss as J, useFloating as K, useFocus as Q, useHover as V, useInteractions as X, useMergeRefs as Z, useRole as $ } from "@floating-ui/react";
|
|
7
|
+
var ee = "#363E4A", ae = (e) => !e.title && e.title !== 0 ? e.children : /* @__PURE__ */ a(te, { ...e }), te = ({ title: e, children: o, placement: m = "top", arrow: n = !1, enterDelay: g = 500, leaveDelay: u = 0, open: f, onOpen: x, onClose: R, disableHoverListener: v, disableFocusListener: F, offsetDistance: _, className: h, slotProps: r }) => {
|
|
8
|
+
const [w, y] = H(!1), l = f !== void 0, s = f ?? w, p = D(null), E = (c) => {
|
|
9
|
+
l || y(c), c ? x?.() : R?.();
|
|
10
|
+
}, { refs: i, floatingStyles: O, context: t } = K({
|
|
11
|
+
open: s,
|
|
12
|
+
onOpenChange: E,
|
|
13
|
+
placement: m,
|
|
14
|
+
strategy: "fixed",
|
|
15
|
+
whileElementsMounted: B,
|
|
14
16
|
middleware: [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
...
|
|
17
|
+
W(_ ?? (n ? 8 : 6)),
|
|
18
|
+
G({ padding: 8 }),
|
|
19
|
+
q({ padding: 8 }),
|
|
20
|
+
...n ? [z({ element: p })] : []
|
|
19
21
|
]
|
|
20
|
-
}), { getReferenceProps:
|
|
21
|
-
|
|
22
|
-
enabled: !
|
|
22
|
+
}), { getReferenceProps: T, getFloatingProps: b } = X([
|
|
23
|
+
V(t, {
|
|
24
|
+
enabled: !l && !v,
|
|
23
25
|
delay: {
|
|
24
26
|
open: g,
|
|
25
27
|
close: u
|
|
26
28
|
},
|
|
27
29
|
move: !1
|
|
28
30
|
}),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
]);
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
ref:
|
|
31
|
+
Q(t, { enabled: !l && !F }),
|
|
32
|
+
J(t),
|
|
33
|
+
$(t, { role: "tooltip" })
|
|
34
|
+
]), A = k(i.setFloating), S = s ? j(i.reference.current) : void 0;
|
|
35
|
+
return /* @__PURE__ */ d(I, { children: [C(o, T({
|
|
36
|
+
ref: Z([i.setReference, o.ref]),
|
|
35
37
|
...o.props
|
|
36
|
-
})),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
})), s && /* @__PURE__ */ a(U, {
|
|
39
|
+
root: S,
|
|
40
|
+
children: /* @__PURE__ */ d("div", {
|
|
41
|
+
ref: A,
|
|
42
|
+
...M,
|
|
43
|
+
...b(),
|
|
44
|
+
style: {
|
|
45
|
+
...Y,
|
|
46
|
+
...O,
|
|
47
|
+
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
|
|
48
|
+
...r?.tooltip?.style,
|
|
49
|
+
...L(r?.tooltip?.sx)
|
|
50
|
+
},
|
|
51
|
+
className: P("z-[1500] block max-w-[320px] whitespace-normal break-words rounded-[3px] bg-[#363E4A] px-2 py-1 text-sm leading-5 text-white shadow-[0px_1px_6px_0px_rgba(0,0,0,0.15)]", h, r?.tooltip?.className),
|
|
52
|
+
children: [e, n && /* @__PURE__ */ a(N, {
|
|
53
|
+
ref: p,
|
|
54
|
+
context: t,
|
|
55
|
+
fill: ee
|
|
56
|
+
})]
|
|
57
|
+
})
|
|
58
|
+
})] });
|
|
52
59
|
};
|
|
53
60
|
export {
|
|
54
|
-
|
|
61
|
+
ae as StyledTooltip
|
|
55
62
|
};
|
|
@@ -3,8 +3,8 @@ import { resolveSx as ue } from "../../../helpers/sx.js";
|
|
|
3
3
|
import { ChevronDownIcon as pe } from "../../icons/chevron-down-icon/ChevronDownIcon.js";
|
|
4
4
|
import { CloseIcon as me } from "../../icons/close-icon/CloseIcon.js";
|
|
5
5
|
import { ErrorOutlineIcon as xe } from "../../icons/error-outline-icon/ErrorOutlineIcon.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { TOP_LAYER_PROPS as ge, TOP_LAYER_RESET_STYLE as ye, getOpenModalDialogAncestor as be, useTopLayerRef as he } from "../../../hooks/useTopLayer.hook.js";
|
|
7
|
+
import { outlineClass as we } from "../field-styles.js";
|
|
8
8
|
import { useFormControlContext as Ae } from "../../miscellaneous/FormControlContext.js";
|
|
9
9
|
import { StyledFormHelperText as ve } from "../../miscellaneous/StyledFormHelperText.js";
|
|
10
10
|
import { Children as S, cloneElement as Re, isValidElement as E, useEffect as I, useMemo as ke, useRef as De, useState as C } from "react";
|
|
@@ -29,7 +29,7 @@ var Ge = ({ dataTest: N, value: _, defaultValue: L, onChange: P, error: M, error
|
|
|
29
29
|
Pe(D, { enabled: !o && !i }),
|
|
30
30
|
Te(D),
|
|
31
31
|
Ue(D, { role: "listbox" })
|
|
32
|
-
]), oe = K([d.setReference]), se = K([
|
|
32
|
+
]), oe = K([d.setReference]), se = K([he(d.setFloating), x]), ne = ke(() => s ? be(d.reference.current) : void 0, [s, d]);
|
|
33
33
|
I(() => a?.setFocused(s || v), [
|
|
34
34
|
s,
|
|
35
35
|
v,
|
|
@@ -130,7 +130,7 @@ var Ge = ({ dataTest: N, value: _, defaultValue: L, onChange: P, error: M, error
|
|
|
130
130
|
className: f("shrink-0 transition-transform", o ? "text-delta-300" : "text-delta-700", s && "rotate-180")
|
|
131
131
|
})]
|
|
132
132
|
}),
|
|
133
|
-
!A && /* @__PURE__ */ n("div", { className:
|
|
133
|
+
!A && /* @__PURE__ */ n("div", { className: we({
|
|
134
134
|
focused: s || v,
|
|
135
135
|
error: U,
|
|
136
136
|
disabled: o,
|
|
@@ -146,9 +146,9 @@ var Ge = ({ dataTest: N, value: _, defaultValue: L, onChange: P, error: M, error
|
|
|
146
146
|
role: "listbox",
|
|
147
147
|
"aria-labelledby": p,
|
|
148
148
|
"aria-label": p ? void 0 : u,
|
|
149
|
-
...
|
|
149
|
+
...ge,
|
|
150
150
|
style: {
|
|
151
|
-
...
|
|
151
|
+
...ye,
|
|
152
152
|
...ee,
|
|
153
153
|
fontFamily: "Roboto, Helvetica, Arial, sans-serif"
|
|
154
154
|
},
|