asma-ui-core 3.92.1 → 3.92.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/data-display/chip/StyledChip.module.js +1 -1
- package/dist/components/feedback/dialog/dialog-footer/StyledDialogFooter.js +26 -26
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +41 -41
- package/dist/src/components/feedback/dialog/dialog-footer/StyledDialogFooter.d.ts +2 -2
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.module.js +5 -5
- package/package.json +1 -1
|
@@ -10,27 +10,27 @@ import { useWidthRegistry as H } from "../../../../hooks/useWidthRegistry.js";
|
|
|
10
10
|
import { planToolbarActions as U } from "../../../custom/module/header-layout/planToolbarActions.js";
|
|
11
11
|
import { ToolbarActionButton as D } from "../../../custom/module/header-layout/ToolbarActionGroup.js";
|
|
12
12
|
import { useToolbarTranslations as G } from "../../../custom/module/header-layout/useTranslations.js";
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
var X = 2, Y = 470, q = 8,
|
|
16
|
-
function me({ leftActions: l = [], leadingSlot: a, secondaryAction: s, primaryAction: d, fixed:
|
|
17
|
-
const E = G(
|
|
13
|
+
import { useMemo as y, useState as V } from "react";
|
|
14
|
+
import { Fragment as C, jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
15
|
+
var X = 2, Y = 470, q = 8, N = "dialog-footer-right", M = "dialog-footer-more", O = (l, a) => `dialog-footer-action:${l}:${a ? "label" : "icon"}`;
|
|
16
|
+
function me({ leftActions: l = [], leadingSlot: a, secondaryAction: s, primaryAction: d, fixed: k = !1, rounded: I = !0, locale: _ = "en", className: A, dataTest: c = "styled-dialog-footer" }) {
|
|
17
|
+
const E = G(_), { ref: P, widthPx: m } = K(), { register: f, widths: t } = H(), [h, p] = V(null), g = m > 0 && m < Y, R = g ? 8 : 16, n = y(() => l.filter((e) => !e.hidden).map((e) => e.icon == null && e.canHideLabel == null ? {
|
|
18
18
|
...e,
|
|
19
19
|
canHideLabel: !1
|
|
20
|
-
} : e), [l]), W =
|
|
20
|
+
} : e), [l]), W = t[N] ?? 0, x = s != null || d != null, v = Math.max(0, m - R * 2 - W - (x ? q : 0)), u = y(() => n.length >= X ? {
|
|
21
21
|
inlineActions: [],
|
|
22
|
-
overflowActions:
|
|
22
|
+
overflowActions: n,
|
|
23
23
|
showMoreMenu: !0
|
|
24
24
|
} : U({
|
|
25
|
-
actions:
|
|
25
|
+
actions: n,
|
|
26
26
|
availableWidth: v,
|
|
27
27
|
collapseLabels: !0,
|
|
28
|
-
resolveActionWidth: (e, i) =>
|
|
29
|
-
moreButtonWidthPx:
|
|
28
|
+
resolveActionWidth: (e, i) => t[O(e.id, i)],
|
|
29
|
+
moreButtonWidthPx: t[M]
|
|
30
30
|
}), [
|
|
31
|
-
|
|
31
|
+
n,
|
|
32
32
|
v,
|
|
33
|
-
|
|
33
|
+
t
|
|
34
34
|
]), b = (e, i, B) => {
|
|
35
35
|
const T = /* @__PURE__ */ r(w, {
|
|
36
36
|
dataTest: e.dataTest ?? `${c}-${B}`,
|
|
@@ -58,40 +58,40 @@ function me({ leftActions: l = [], leadingSlot: a, secondaryAction: s, primaryAc
|
|
|
58
58
|
})
|
|
59
59
|
}) : T;
|
|
60
60
|
};
|
|
61
|
-
return /* @__PURE__ */
|
|
61
|
+
return /* @__PURE__ */ o("div", {
|
|
62
62
|
ref: P,
|
|
63
63
|
"data-testid": c,
|
|
64
|
-
className: L("flex items-center justify-end self-stretch border-0 border-t border-solid border-delta-200 bg-white", g ? "gap-2 p-2" : "gap-4 p-4",
|
|
64
|
+
className: L("flex items-center justify-end self-stretch border-0 border-t border-solid border-delta-200 bg-white", g ? "gap-2 p-2" : "gap-4 p-4", I && "rounded-b-lg", k && "sticky bottom-0 z-[1]", A),
|
|
65
65
|
children: [/* @__PURE__ */ r("div", {
|
|
66
66
|
className: "flex shrink-0 flex-nowrap items-center gap-2",
|
|
67
|
-
children: a ?? /* @__PURE__ */
|
|
68
|
-
ref:
|
|
67
|
+
children: a ?? /* @__PURE__ */ o(C, { children: [u.inlineActions.map(({ action: e, showLabel: i }) => /* @__PURE__ */ r("span", {
|
|
68
|
+
ref: f(O(e.id, i)),
|
|
69
69
|
className: "inline-flex shrink-0",
|
|
70
70
|
children: /* @__PURE__ */ r(D, {
|
|
71
71
|
action: e,
|
|
72
72
|
showLabel: i
|
|
73
73
|
})
|
|
74
|
-
}, e.id)), u.showMoreMenu && /* @__PURE__ */
|
|
75
|
-
ref:
|
|
74
|
+
}, e.id)), u.showMoreMenu && /* @__PURE__ */ o(C, { children: [/* @__PURE__ */ r("span", {
|
|
75
|
+
ref: f(M),
|
|
76
76
|
className: "inline-flex shrink-0",
|
|
77
77
|
children: /* @__PURE__ */ r(w, {
|
|
78
78
|
dataTest: `${c}-more`,
|
|
79
79
|
variant: "outlined",
|
|
80
80
|
size: "medium",
|
|
81
81
|
type: "button",
|
|
82
|
-
onClick: (e) =>
|
|
82
|
+
onClick: (e) => p(e.currentTarget),
|
|
83
83
|
"aria-label": E.more,
|
|
84
84
|
"aria-haspopup": "menu",
|
|
85
|
-
"aria-expanded":
|
|
85
|
+
"aria-expanded": h != null,
|
|
86
86
|
startIcon: /* @__PURE__ */ r(S, {
|
|
87
87
|
width: 24,
|
|
88
88
|
height: 24
|
|
89
89
|
})
|
|
90
90
|
})
|
|
91
91
|
}), /* @__PURE__ */ r(F, {
|
|
92
|
-
anchorEl:
|
|
93
|
-
open:
|
|
94
|
-
onClose: () =>
|
|
92
|
+
anchorEl: h,
|
|
93
|
+
open: h != null,
|
|
94
|
+
onClose: () => p(null),
|
|
95
95
|
anchorOrigin: {
|
|
96
96
|
vertical: "top",
|
|
97
97
|
horizontal: "left"
|
|
@@ -103,7 +103,7 @@ function me({ leftActions: l = [], leadingSlot: a, secondaryAction: s, primaryAc
|
|
|
103
103
|
children: u.overflowActions.map((e) => /* @__PURE__ */ r(j, {
|
|
104
104
|
disabled: e.disabled,
|
|
105
105
|
onClick: () => {
|
|
106
|
-
|
|
106
|
+
p(null), e.onClick();
|
|
107
107
|
},
|
|
108
108
|
children: /* @__PURE__ */ r("span", {
|
|
109
109
|
className: e.tone === "danger" ? "text-beta-500" : "text-delta-700",
|
|
@@ -113,8 +113,8 @@ function me({ leftActions: l = [], leadingSlot: a, secondaryAction: s, primaryAc
|
|
|
113
113
|
})] })] })
|
|
114
114
|
}), x && /* @__PURE__ */ r("span", {
|
|
115
115
|
className: "flex min-w-px flex-1 flex-nowrap items-center justify-end",
|
|
116
|
-
children: /* @__PURE__ */
|
|
117
|
-
ref:
|
|
116
|
+
children: /* @__PURE__ */ o("span", {
|
|
117
|
+
ref: f(N),
|
|
118
118
|
className: "flex shrink-0 flex-nowrap items-center gap-2",
|
|
119
119
|
children: [s && b(s, "outlined", "secondary"), d && b(d, "contained", "primary")]
|
|
120
120
|
})
|
|
@@ -3,13 +3,13 @@ import { ChevronDownIcon as et } from "../../icons/chevron-down-icon/ChevronDown
|
|
|
3
3
|
import { CloseIcon as tt } from "../../icons/close-icon/CloseIcon.js";
|
|
4
4
|
import { CheckIcon as lt } from "../../icons/check-icon/CheckIcon.js";
|
|
5
5
|
import { PlusIconCircle as rt } from "../../icons/plus-icon-circle/PlusIconCircle.js";
|
|
6
|
-
import { StyledChip as
|
|
6
|
+
import { StyledChip as ot } from "../../data-display/chip/StyledChip.js";
|
|
7
7
|
import { StyledCheckbox as ae } from "../checkbox/base-ui/StyledCheckbox.js";
|
|
8
|
-
import { TOP_LAYER_PROPS as
|
|
8
|
+
import { TOP_LAYER_PROPS as st, TOP_LAYER_RESET_STYLE as nt, getOpenModalDialogAncestor as at, shouldUsePopoverTopLayer as it, useTopLayerRef as ct } from "../../../hooks/useTopLayer.hook.js";
|
|
9
9
|
import { LoadingIcon as dt } from "../../../table/shared-components/LoadingIcon.js";
|
|
10
10
|
import z from "./StyledSelectAutocomplete.module.js";
|
|
11
11
|
import { useEffect as ie, useMemo as W, useRef as ce, useState as v } from "react";
|
|
12
|
-
import { jsx as
|
|
12
|
+
import { jsx as s, jsxs as I } from "react/jsx-runtime";
|
|
13
13
|
import { FloatingPortal as ut, autoUpdate as pt, flip as ft, offset as mt, shift as ht, size as bt, useDismiss as gt, useFloating as xt, useInteractions as wt, useMergeRefs as de, useRole as yt } from "@floating-ui/react";
|
|
14
14
|
var kt = (l) => typeof l == "object" && l !== null && "label" in l ? String(l.label) : String(l), Dt = (l) => typeof l == "object" && l !== null && "disabled" in l && !!l.disabled;
|
|
15
15
|
function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, getOptionLabel: pe, getOptionKey: C, isOptionEqualToValue: H, renderOption: U, renderValue: V, filterOptions: _, loading: B, loadingText: fe = "Loading…", noOptionsText: me = "No options", disabled: M, readOnly: g, error: he, helperText: be, size: ge = "small", disableClearable: xe, disableCloseOnSelect: we, popupIcon: ye, autoHeight: ke, multiple: De, allowSelectAll: T, selectAllLabel: ve = "Select all", fullWidth: Ie, classes: Ae, inputValue: R, onInputChange: Ne, open: Y, onOpen: Ce, onClose: Me, className: Re, wrapperClassName: Se, getOptionDisabled: Pe, slotProps: q }) {
|
|
@@ -17,7 +17,7 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
17
17
|
e && (g || M) || (Y === void 0 && Le(e), e ? Ce?.() : (x(null), Me?.()));
|
|
18
18
|
}, [Ee, G] = v(""), b = R ?? Ee, P = (e, t, n) => {
|
|
19
19
|
R === void 0 && G(t), Ne?.(e, t, n);
|
|
20
|
-
}, [
|
|
20
|
+
}, [o, x] = v(null), J = `${l}-listbox`, Q = ce([]), X = ce(null), [_e, Fe] = v(null), [Z, Oe] = v(null), i = r ? Array.isArray(A) ? A : [] : [], w = r ? null : A ?? null, K = !r && w !== null ? d(w) : "";
|
|
21
21
|
ie(() => {
|
|
22
22
|
R !== void 0 || r || G(K);
|
|
23
23
|
}, [
|
|
@@ -40,12 +40,12 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
40
40
|
]), f = W(() => ee.slice(0, 100), [ee]), te = f.flatMap((e, t) => $(e) ? [] : [t]), c = T && r ? [-1, ...te] : te, k = f.findIndex(F);
|
|
41
41
|
ie(() => {
|
|
42
42
|
if (!a) return;
|
|
43
|
-
const e =
|
|
43
|
+
const e = o ?? k;
|
|
44
44
|
if (e < 0) return;
|
|
45
45
|
const t = requestAnimationFrame(() => Q.current[e]?.scrollIntoView({ block: "nearest" }));
|
|
46
46
|
return () => cancelAnimationFrame(t);
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
o,
|
|
49
49
|
a,
|
|
50
50
|
Z,
|
|
51
51
|
k
|
|
@@ -75,22 +75,22 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
75
75
|
N?.(e, y, m ? "removeOption" : "selectOption", { option: t }), P(e, "", "reset"), n && u(!1);
|
|
76
76
|
} else
|
|
77
77
|
N?.(e, t, "selectOption", { option: t }), P(e, d(t), "reset"), n && u(!1);
|
|
78
|
-
},
|
|
78
|
+
}, oe = (e) => {
|
|
79
79
|
N?.(e, r ? [] : null, "clear", void 0), P(e, "", "clear");
|
|
80
80
|
}, j = (e) => {
|
|
81
81
|
const t = p.length > 0 && i.length === p.length;
|
|
82
82
|
N?.(e, t ? [] : p, t ? "clear" : "selectOption", void 0);
|
|
83
83
|
}, Ye = (e) => {
|
|
84
|
-
if (e.key === "Backspace" && b === "" &&
|
|
84
|
+
if (e.key === "Backspace" && b === "" && se) {
|
|
85
85
|
const t = i[i.length - 1];
|
|
86
|
-
r ? t !== void 0 && D(e, t, !1) :
|
|
86
|
+
r ? t !== void 0 && D(e, t, !1) : oe(e);
|
|
87
87
|
} else if (e.key === "Enter" && !a)
|
|
88
88
|
e.preventDefault(), u(!0);
|
|
89
|
-
else if (e.key === "Enter" &&
|
|
89
|
+
else if (e.key === "Enter" && o === -1)
|
|
90
90
|
e.preventDefault(), j(e);
|
|
91
|
-
else if (e.key === "Enter" &&
|
|
91
|
+
else if (e.key === "Enter" && o != null && f[o] != null) {
|
|
92
92
|
e.preventDefault();
|
|
93
|
-
const t = f[
|
|
93
|
+
const t = f[o];
|
|
94
94
|
$(t) || D(e, t, !0);
|
|
95
95
|
} else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
96
96
|
if (e.preventDefault(), !a) {
|
|
@@ -100,19 +100,19 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
100
100
|
Te(e.key === "ArrowDown" ? 1 : -1);
|
|
101
101
|
} else if (e.key === "Home" || e.key === "End")
|
|
102
102
|
e.preventDefault(), x(c[e.key === "Home" ? 0 : c.length - 1] ?? null);
|
|
103
|
-
else if (e.key === " " &&
|
|
103
|
+
else if (e.key === " " && o === -1)
|
|
104
104
|
e.preventDefault(), j(e);
|
|
105
|
-
else if (e.key === " " &&
|
|
105
|
+
else if (e.key === " " && o != null && f[o] != null) {
|
|
106
106
|
e.preventDefault();
|
|
107
|
-
const t = f[
|
|
107
|
+
const t = f[o];
|
|
108
108
|
$(t) || D(e, t, !1);
|
|
109
109
|
} else e.key === "Escape" && a ? (e.preventDefault(), e.stopPropagation(), u(!1)) : e.key === "Tab" && u(!1);
|
|
110
|
-
},
|
|
110
|
+
}, se = !xe && !g && !M && (r ? i.length > 0 : w !== null);
|
|
111
111
|
let ne;
|
|
112
|
-
a &&
|
|
112
|
+
a && o != null && (o === -1 || f[o] !== void 0) && (ne = o === -1 ? `${l}-select-all` : `${l}-option-${o}`);
|
|
113
113
|
const qe = (e) => {
|
|
114
114
|
e.preventDefault(), !(M || g) && (X.current?.focus(), u(!a));
|
|
115
|
-
}, Ge = r ? V ? V(i, ({ index: e }) => ({ "data-index": e })) : i.map((e, t) => /* @__PURE__ */
|
|
115
|
+
}, Ge = r ? V ? V(i, ({ index: e }) => ({ "data-index": e })) : i.map((e, t) => /* @__PURE__ */ s(ot, {
|
|
116
116
|
dataTest: `selected-chip-${d(e)}`,
|
|
117
117
|
label: d(e),
|
|
118
118
|
readOnly: g,
|
|
@@ -121,26 +121,26 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
121
121
|
}, C ? C(e) : `${d(e)}-${t}`)) : void 0, Je = /* @__PURE__ */ I("span", {
|
|
122
122
|
className: "flex items-center gap-1",
|
|
123
123
|
children: [
|
|
124
|
-
B && /* @__PURE__ */
|
|
124
|
+
B && /* @__PURE__ */ s(dt, {
|
|
125
125
|
width: 20,
|
|
126
126
|
height: 20,
|
|
127
127
|
className: "animate-spin"
|
|
128
128
|
}),
|
|
129
|
-
|
|
129
|
+
se && /* @__PURE__ */ s("button", {
|
|
130
130
|
type: "button",
|
|
131
131
|
tabIndex: -1,
|
|
132
132
|
"aria-label": "Clear",
|
|
133
133
|
"data-testid": `${l}-clear`,
|
|
134
134
|
className: "invisible flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-full border-0 bg-delta-50 group-focus-within:visible",
|
|
135
135
|
onMouseDown: (e) => e.preventDefault(),
|
|
136
|
-
onClick:
|
|
137
|
-
children: /* @__PURE__ */
|
|
136
|
+
onClick: oe,
|
|
137
|
+
children: /* @__PURE__ */ s(tt, {
|
|
138
138
|
width: 20,
|
|
139
139
|
height: 20,
|
|
140
140
|
className: "text-delta-700"
|
|
141
141
|
})
|
|
142
142
|
}),
|
|
143
|
-
g ? null : /* @__PURE__ */
|
|
143
|
+
g ? null : /* @__PURE__ */ s("button", {
|
|
144
144
|
type: "button",
|
|
145
145
|
tabIndex: -1,
|
|
146
146
|
"aria-label": "Toggle options",
|
|
@@ -149,11 +149,11 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
149
149
|
className: "flex cursor-pointer items-center border-0 bg-transparent",
|
|
150
150
|
onMouseDown: (e) => e.preventDefault(),
|
|
151
151
|
onClick: qe,
|
|
152
|
-
children: ye ?? (r ? /* @__PURE__ */
|
|
152
|
+
children: ye ?? (r ? /* @__PURE__ */ s(rt, {
|
|
153
153
|
width: 24,
|
|
154
154
|
height: 24,
|
|
155
155
|
className: "text-delta-700"
|
|
156
|
-
}) : /* @__PURE__ */
|
|
156
|
+
}) : /* @__PURE__ */ s(et, {
|
|
157
157
|
width: 24,
|
|
158
158
|
height: 24,
|
|
159
159
|
className: E(z["select-custom-icon"], a && z["select-custom-icon-open"], "text-delta-700")
|
|
@@ -195,25 +195,25 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
195
195
|
return /* @__PURE__ */ I("li", {
|
|
196
196
|
...y,
|
|
197
197
|
children: [
|
|
198
|
-
e["data-active"] !== void 0 && /* @__PURE__ */
|
|
198
|
+
e["data-active"] !== void 0 && /* @__PURE__ */ s("span", {
|
|
199
199
|
"aria-hidden": "true",
|
|
200
200
|
className: "border-l-solid pointer-events-none absolute inset-y-0 left-0 border-l-[3px] border-focus-ring"
|
|
201
201
|
}),
|
|
202
|
-
r ? /* @__PURE__ */
|
|
202
|
+
r ? /* @__PURE__ */ s(ae, {
|
|
203
203
|
dataTest: `${l}-${d(t)}-checkbox`,
|
|
204
204
|
checked: n.selected,
|
|
205
205
|
size: "small",
|
|
206
206
|
hideWrapper: !0,
|
|
207
207
|
decorative: !0
|
|
208
|
-
}) : /* @__PURE__ */
|
|
208
|
+
}) : /* @__PURE__ */ s("span", {
|
|
209
209
|
className: "w-5",
|
|
210
|
-
children: n.selected && /* @__PURE__ */
|
|
210
|
+
children: n.selected && /* @__PURE__ */ s(lt, {
|
|
211
211
|
width: 20,
|
|
212
212
|
height: 20,
|
|
213
213
|
className: "text-gama-500"
|
|
214
214
|
})
|
|
215
215
|
}),
|
|
216
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ s("span", {
|
|
217
217
|
className: "line-clamp-2 min-w-0 flex-1 break-words",
|
|
218
218
|
children: d(t)
|
|
219
219
|
})
|
|
@@ -236,7 +236,7 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
236
236
|
id: `${l}-option-${t}`,
|
|
237
237
|
"aria-selected": F(e),
|
|
238
238
|
"aria-disabled": n || void 0,
|
|
239
|
-
"data-active":
|
|
239
|
+
"data-active": o === t ? "" : void 0,
|
|
240
240
|
className: Xe
|
|
241
241
|
}, y = {
|
|
242
242
|
selected: F(e),
|
|
@@ -247,11 +247,11 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
247
247
|
};
|
|
248
248
|
return /* @__PURE__ */ I("div", {
|
|
249
249
|
className: E(z.styledSelectAutocompleteWrapper, !Ie && "w-auto", Se, Re),
|
|
250
|
-
children: [ue(Qe), a && /* @__PURE__ */
|
|
250
|
+
children: [ue(Qe), a && /* @__PURE__ */ s(ut, {
|
|
251
251
|
root: re,
|
|
252
252
|
children: /* @__PURE__ */ I("ul", {
|
|
253
253
|
ref: Ve,
|
|
254
|
-
...O ?
|
|
254
|
+
...O ? st : {},
|
|
255
255
|
style: {
|
|
256
256
|
...O ? nt : {},
|
|
257
257
|
...je,
|
|
@@ -269,34 +269,34 @@ function Ft({ dataTest: l, options: p, renderInput: ue, value: A, onChange: N, g
|
|
|
269
269
|
id: `${l}-select-all`,
|
|
270
270
|
role: "option",
|
|
271
271
|
"aria-selected": p.length > 0 && i.length === p.length,
|
|
272
|
-
"data-active":
|
|
272
|
+
"data-active": o === -1 ? "" : void 0,
|
|
273
273
|
tabIndex: -1,
|
|
274
274
|
onMouseDown: (e) => e.preventDefault(),
|
|
275
275
|
onClick: j,
|
|
276
276
|
onMouseMove: () => x(null),
|
|
277
|
-
className: "relative flex min-h-
|
|
277
|
+
className: "relative flex min-h-10 cursor-pointer items-center gap-x-3 border-0 border-b border-solid border-delta-200 bg-delta-50 px-3 text-xs font-medium uppercase tracking-wide text-delta-600 hover:bg-delta-100",
|
|
278
278
|
children: [
|
|
279
|
-
|
|
279
|
+
o === -1 && /* @__PURE__ */ s("span", {
|
|
280
280
|
"aria-hidden": "true",
|
|
281
281
|
className: "border-l-solid pointer-events-none absolute inset-y-0 left-0 border-l-[3px] border-focus-ring"
|
|
282
282
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ s(ae, {
|
|
284
284
|
dataTest: `${l}-select-all`,
|
|
285
285
|
checked: p.length > 0 && i.length === p.length,
|
|
286
286
|
size: "small",
|
|
287
287
|
hideWrapper: !0,
|
|
288
288
|
decorative: !0
|
|
289
289
|
}),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
className: "flex-1 truncate
|
|
290
|
+
/* @__PURE__ */ s("span", {
|
|
291
|
+
className: "flex-1 truncate",
|
|
292
292
|
children: ve
|
|
293
293
|
})
|
|
294
294
|
]
|
|
295
|
-
}), B ? /* @__PURE__ */
|
|
295
|
+
}), B ? /* @__PURE__ */ s("li", {
|
|
296
296
|
role: "presentation",
|
|
297
297
|
className: "px-3 py-2 text-sm text-delta-600",
|
|
298
298
|
children: fe
|
|
299
|
-
}) : f.length === 0 ? /* @__PURE__ */
|
|
299
|
+
}) : f.length === 0 ? /* @__PURE__ */ s("li", {
|
|
300
300
|
role: "presentation",
|
|
301
301
|
className: "px-3 py-2 text-sm text-delta-600",
|
|
302
302
|
children: me
|
|
@@ -47,7 +47,7 @@ export interface StyledDialogFooterProps {
|
|
|
47
47
|
secondaryAction?: StyledDialogFooterButton;
|
|
48
48
|
/** Rightmost contained action — Save changes / Add new …. */
|
|
49
49
|
primaryAction?: StyledDialogFooterButton;
|
|
50
|
-
/** Pins the footer to the bottom of its scroll container
|
|
50
|
+
/** Pins the footer to the bottom of its scroll container, separated by its top border only. */
|
|
51
51
|
fixed?: boolean;
|
|
52
52
|
/** Bottom corners rounded to sit flush inside a dialog paper. Pass `false` for a full-bleed page footer. */
|
|
53
53
|
rounded?: boolean;
|
|
@@ -72,7 +72,7 @@ export interface StyledDialogFooterProps {
|
|
|
72
72
|
* @param leadingSlot - arbitrary left content, replaces `leftActions`
|
|
73
73
|
* @param secondaryAction - outlined Cancel
|
|
74
74
|
* @param primaryAction - contained primary
|
|
75
|
-
* @param fixed - sticky bottom
|
|
75
|
+
* @param fixed - sticky bottom, separated by the top border only
|
|
76
76
|
* @param rounded - rounded bottom corners (default `true`)
|
|
77
77
|
*/
|
|
78
78
|
export declare function StyledDialogFooter({ leftActions, leadingSlot, secondaryAction, primaryAction, fixed, rounded, locale, className, dataTest, }: StyledDialogFooterProps): JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var a = {
|
|
2
|
-
"table-action-item": "_table-action-
|
|
3
|
-
"drag-item": "_drag-
|
|
4
|
-
"drag-icon": "_drag-
|
|
5
|
-
"drag-icon--disabled": "_drag-icon--
|
|
6
|
-
"drag-icon--enabled": "_drag-icon--
|
|
2
|
+
"table-action-item": "_table-action-item_qha7l_1",
|
|
3
|
+
"drag-item": "_drag-item_qha7l_18",
|
|
4
|
+
"drag-icon": "_drag-icon_qha7l_22",
|
|
5
|
+
"drag-icon--disabled": "_drag-icon--disabled_qha7l_27",
|
|
6
|
+
"drag-icon--enabled": "_drag-icon--enabled_qha7l_32"
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
a as default
|