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 q({ selectedCount: e, onClearSelection: n, translations: t, bulkActionsPlan: l }) {
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
- q as SelectionRow,
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 S } from "../../../helpers/cn.js";
2
- import { resolveSx as T } from "../../../helpers/sx.js";
3
- import { cloneElement as j, useRef as k, useState as C } from "react";
4
- import { Fragment as H, jsx as r, jsxs as c } from "react/jsx-runtime";
5
- import { FloatingArrow as I, FloatingPortal as M, arrow as N, autoUpdate as P, flip as U, offset as z, shift as B, useDismiss as D, useFloating as G, useFocus as L, useHover as W, useInteractions as q, useMergeRefs as J, useRole as K } from "@floating-ui/react";
6
- var Q = "#363E4A", te = (e) => !e.title && e.title !== 0 ? e.children : /* @__PURE__ */ r(V, { ...e }), V = ({ title: e, children: o, placement: d = "top", arrow: l = !1, enterDelay: g = 500, leaveDelay: u = 0, open: i, onOpen: x, onClose: F, disableHoverListener: h, disableFocusListener: v, offsetDistance: w, className: b, slotProps: n }) => {
7
- const [y, R] = C(!1), s = i !== void 0, a = i ?? y, f = k(null), O = (m) => {
8
- s || R(m), m ? x?.() : F?.();
9
- }, { refs: p, floatingStyles: _, context: t } = G({
10
- open: a,
11
- onOpenChange: O,
12
- placement: d,
13
- whileElementsMounted: P,
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
- z(w ?? (l ? 8 : 6)),
16
- U({ padding: 8 }),
17
- B({ padding: 8 }),
18
- ...l ? [N({ element: f })] : []
17
+ W(_ ?? (n ? 8 : 6)),
18
+ G({ padding: 8 }),
19
+ q({ padding: 8 }),
20
+ ...n ? [z({ element: p })] : []
19
21
  ]
20
- }), { getReferenceProps: A, getFloatingProps: E } = q([
21
- W(t, {
22
- enabled: !s && !h,
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
- L(t, { enabled: !s && !v }),
30
- D(t),
31
- K(t, { role: "tooltip" })
32
- ]);
33
- return /* @__PURE__ */ c(H, { children: [j(o, A({
34
- ref: J([p.setReference, o.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
- })), a && /* @__PURE__ */ r(M, { children: /* @__PURE__ */ c("div", {
37
- ref: p.setFloating,
38
- ...E(),
39
- style: {
40
- ..._,
41
- fontFamily: "Roboto, Helvetica, Arial, sans-serif",
42
- ...n?.tooltip?.style,
43
- ...T(n?.tooltip?.sx)
44
- },
45
- className: S("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)]", b, n?.tooltip?.className),
46
- children: [e, l && /* @__PURE__ */ r(I, {
47
- ref: f,
48
- context: t,
49
- fill: Q
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
- te as StyledTooltip
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 { outlineClass as ge } from "../field-styles.js";
7
- import { TOP_LAYER_PROPS as ye, TOP_LAYER_RESET_STYLE as be, getOpenModalDialogAncestor as he, useTopLayerRef as we } from "../../../hooks/useTopLayer.hook.js";
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([we(d.setFloating), x]), ne = ke(() => s ? he(d.reference.current) : void 0, [s, d]);
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: ge({
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
- ...ye,
149
+ ...ge,
150
150
  style: {
151
- ...be,
151
+ ...ye,
152
152
  ...ee,
153
153
  fontFamily: "Roboto, Helvetica, Arial, sans-serif"
154
154
  },
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.55.0",
6
+ "version": "3.57.0",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",