asma-ui-core 3.86.0 → 3.86.2
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.js +28 -27
- package/dist/components/data-display/tooltip/StyledTooltip.js +76 -47
- package/dist/components/feedback/dialog/StyledDialog.js +62 -58
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +113 -105
- package/dist/components/feedback/minimizable-dialog/components/FullscreenBtn.js +10 -12
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +75 -67
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +12 -10
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +69 -71
- package/dist/components/inputs/input-field/StyledInputField.js +10 -9
- package/dist/components/inputs/phone-field/CountryCodeOptions.js +16 -15
- package/dist/components/inputs/phone-field/CountryCodeSelect.js +98 -85
- package/dist/components/inputs/phone-field/useCountryPicker.js +44 -24
- package/dist/components/inputs/select/StyledSelect.js +15 -14
- package/dist/components/inputs/select/StyledSelectItem.js +4 -4
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +199 -172
- package/dist/components/inputs/slider/StyledSlider.js +158 -107
- package/dist/components/navigation/listbox/Listbox.js +104 -54
- package/dist/components/navigation/menu/StyledMenu.js +22 -18
- package/dist/components/navigation/menu/StyledMenuItem.js +6 -6
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +26 -22
- package/dist/components/utils/copy-wrapper/CopyWrapper.module.js +2 -2
- package/dist/components/utils/popover/StyledPopover.js +102 -52
- package/dist/datetime/components/date-picker/StyledDatePicker.js +40 -34
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +5 -4
- package/dist/datetime/components/time-picker/StyledTimePicker.js +69 -56
- package/dist/helpers/focusable.js +5 -0
- package/dist/hooks/useFocusTrap.hook.js +24 -19
- package/dist/src/components/data-display/chip/StyledChip.d.ts +2 -0
- package/dist/src/components/inputs/dynamic-select/StyledDynamicSelect.d.ts +3 -4
- package/dist/src/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.test.d.ts +1 -0
- package/dist/src/components/inputs/phone-field/CountryCodeOptions.d.ts +1 -1
- package/dist/src/components/inputs/phone-field/useCountryPicker.d.ts +5 -2
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +4 -1
- package/dist/src/components/navigation/listbox/Listbox.d.ts +3 -2
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +3 -2
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +2 -1
- package/dist/src/components/utils/popover/StyledPopover.d.ts +9 -2
- package/dist/src/helpers/focusable.d.ts +8 -0
- package/dist/src/hooks/useFocusTrap.hook.d.ts +2 -1
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +30 -34
- package/dist/table/components/table-footer/TablePagination.js +18 -17
- package/dist/table/components/table-footer/TableRowCountSelect.js +5 -4
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PopoverCloseReason, PopoverOrigin } from '../../utils/popover';
|
|
3
|
+
export type MenuCloseReason = PopoverCloseReason | 'tabKeyDown';
|
|
3
4
|
export interface MenuProps {
|
|
4
5
|
open: boolean;
|
|
5
6
|
anchorEl?: Element | null;
|
|
6
|
-
onClose?:
|
|
7
|
+
onClose?: (event: object, reason?: MenuCloseReason) => void;
|
|
7
8
|
anchorOrigin?: PopoverOrigin;
|
|
8
9
|
transformOrigin?: PopoverOrigin;
|
|
9
10
|
id?: string;
|
|
@@ -5,7 +5,8 @@ type StyledAccordionDetailsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
5
5
|
/**
|
|
6
6
|
* Native accordion panel (replaces `@base-ui/react`): a `role="region"` whose height animates
|
|
7
7
|
* between 0 and its measured content height via the SCSS `--accordion-panel-height` var (was
|
|
8
|
-
* base-ui-provided).
|
|
8
|
+
* base-ui-provided). Collapsed, it is `inert`: the content is still rendered (so it can be measured
|
|
9
|
+
* and animated) but is out of the tab order and the accessibility tree. TASK-201.
|
|
9
10
|
*/
|
|
10
11
|
export declare const StyledAccordionDetails: ({ children, className, contentClassName, ...props }: StyledAccordionDetailsProps) => JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -3,9 +3,16 @@ export interface PopoverOrigin {
|
|
|
3
3
|
vertical: 'top' | 'center' | 'bottom' | number;
|
|
4
4
|
horizontal: 'left' | 'center' | 'right' | number;
|
|
5
5
|
}
|
|
6
|
-
export type PopoverCloseReason = 'backdropClick' | 'escapeKeyDown';
|
|
6
|
+
export type PopoverCloseReason = 'backdropClick' | 'escapeKeyDown' | 'tabKeyDown';
|
|
7
7
|
export interface StyledPopoverProps {
|
|
8
8
|
open: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Splice the panel into the tab sequence right after the anchor: Tab on the anchor steps into the
|
|
11
|
+
* panel's first control, and Shift+Tab out of that control retraces to the anchor. On by
|
|
12
|
+
* default because a popover's controls must be reachable by keyboard. Opt out only when its
|
|
13
|
+
* trigger owns keyboard navigation (select, country picker, date/time picker).
|
|
14
|
+
*/
|
|
15
|
+
tabIntoContent?: boolean;
|
|
9
16
|
anchorEl?: Element | null;
|
|
10
17
|
onClose?: (event: object, reason?: PopoverCloseReason) => void;
|
|
11
18
|
anchorOrigin?: PopoverOrigin;
|
|
@@ -44,4 +51,4 @@ export interface StyledPopoverProps {
|
|
|
44
51
|
* mapping to MUI's `onClose(event, reason)`. `anchorOrigin`/`transformOrigin`/`slotProps.paper`
|
|
45
52
|
* preserved (DEC-003). TASK-302.
|
|
46
53
|
*/
|
|
47
|
-
export declare const StyledPopover: ({ open, anchorEl, onClose, anchorOrigin, transformOrigin, id, className, sx, slotProps, onClick, children, keepMounted, }: StyledPopoverProps) => JSX.Element | null;
|
|
54
|
+
export declare const StyledPopover: ({ open, anchorEl, onClose, anchorOrigin, transformOrigin, id, className, sx, slotProps, onClick, children, keepMounted, tabIntoContent, }: StyledPopoverProps) => JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Every element inside `root` a Tab press can reach, in DOM order. */
|
|
2
|
+
export declare const tabbableWithin: (root: ParentNode) => HTMLElement[];
|
|
3
|
+
/**
|
|
4
|
+
* The element a keyboard user actually lands on for `root`: `root` itself when it is tabbable, else
|
|
5
|
+
* its first tabbable descendant. `null` when the subtree holds nothing reachable — a decorative or
|
|
6
|
+
* disabled control, which the caller has to decide about.
|
|
7
|
+
*/
|
|
8
|
+
export declare const firstTabbable: (root: HTMLElement) => HTMLElement | null;
|
|
@@ -3,7 +3,8 @@ import { RefObject } from 'react';
|
|
|
3
3
|
* Manual Tab-cycling focus trap for a modal-like panel that (unlike `StyledDialog`) can't use the
|
|
4
4
|
* native `<dialog>` `showModal()` trap — e.g. a panel that's only modal in ONE of its states
|
|
5
5
|
* (`MinimizableDialog`'s fullscreen mode), where the rest of the time it's a non-modal floating
|
|
6
|
-
* widget that must NOT trap focus. Moves
|
|
6
|
+
* widget that must NOT trap focus. Moves external focus into the container but retains focus on an
|
|
7
|
+
* in-panel control that activated the trap (such as an Enter Fullscreen button), cycles Tab/Shift+Tab
|
|
7
8
|
* among its focusable descendants while `active`, restores focus to the trigger on deactivation,
|
|
8
9
|
* and calls `onEscape` on the Escape key (mirroring `StyledDialog`'s ESC-to-close).
|
|
9
10
|
*/
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { DotsVerticalIcon as S } from "../../../../../components/icons/dots-vertical-icon/DotsVerticalIcon.js";
|
|
2
2
|
import { CircleWarningOutlineIcon as A } from "../../../../../components/icons/warning-circle-icon/CircleWarningOutlineIcon.js";
|
|
3
|
-
import { StyledPopover as
|
|
4
|
-
import { StyledMenuList as
|
|
5
|
-
import { isCustomAction as
|
|
3
|
+
import { StyledPopover as D } from "../../../../../components/utils/popover/StyledPopover.js";
|
|
4
|
+
import { StyledMenuList as O } from "../../../../../components/navigation/menu/StyledMenuList.js";
|
|
5
|
+
import { isCustomAction as j } from "../../../../types.js";
|
|
6
6
|
import { StyledTooltip as g } from "../../../../shared-components/tooltip/index.js";
|
|
7
|
-
import { useToggleMenuVisibility as
|
|
7
|
+
import { useToggleMenuVisibility as k } from "../../../../hooks/useToggleMenuVisibility.hook.js";
|
|
8
8
|
import { StyledButton as I } from "../../../../shared-components/button/StyledButton.js";
|
|
9
9
|
import { StyledMenuItem as R } from "../../../../shared-components/StyledMenuItem.js";
|
|
10
|
-
import w, { useEffect as V, useMemo as z, useState as
|
|
10
|
+
import w, { useEffect as V, useMemo as z, useState as E } from "react";
|
|
11
11
|
import { jsx as t, jsxs as b } from "react/jsx-runtime";
|
|
12
|
-
function X({ tableData:
|
|
13
|
-
const { anchorEl:
|
|
12
|
+
function X({ tableData: l, actions: v, rowActionsState: x }) {
|
|
13
|
+
const { anchorEl: C, open: a, handleClose: r, handleOpen: P } = k(), i = v(l.row), o = x?.(l.row) ?? { state: "enabled" }, d = l.table.options.meta?.locale, T = d === "no" ? "Ingen handlinger tilgjengelig" : "No actions available", y = d === "no" ? "Radhandlinger" : "Row actions", N = z(() => i.every((e) => "component" in e ? !1 : e.hide), [i]), u = i.length > 0 && !N, m = o.state === "enabled" && !u, M = o.state !== "hidden" && (u || m || o.state === "disabled"), [c, s] = E(!1);
|
|
14
14
|
if (V(() => {
|
|
15
15
|
if (!c) return;
|
|
16
16
|
const e = window.setTimeout(() => s(!1), 1600);
|
|
17
17
|
return () => window.clearTimeout(e);
|
|
18
18
|
}, [c]), !M) return /* @__PURE__ */ t("div", { className: "flex w-[40px] items-center justify-center" });
|
|
19
|
-
const
|
|
19
|
+
const p = o.state === "disabled", f = /* @__PURE__ */ t(I, {
|
|
20
20
|
dataTest: "row-actions-button",
|
|
21
|
-
"aria-label":
|
|
21
|
+
"aria-label": y,
|
|
22
22
|
"aria-haspopup": "true",
|
|
23
23
|
"aria-expanded": a,
|
|
24
24
|
variant: "text",
|
|
25
25
|
size: "small",
|
|
26
|
-
disabled:
|
|
26
|
+
disabled: p,
|
|
27
27
|
onClick: (e) => {
|
|
28
|
-
e.stopPropagation(), e.preventDefault(), !
|
|
28
|
+
e.stopPropagation(), e.preventDefault(), !p && (e.currentTarget.focus({ preventScroll: !0 }), a ? r() : P(e));
|
|
29
29
|
},
|
|
30
30
|
onMouseDown: (e) => {
|
|
31
31
|
e.stopPropagation(), e.preventDefault();
|
|
@@ -34,7 +34,7 @@ function X({ tableData: o, actions: v, rowActionsState: C }) {
|
|
|
34
34
|
e.stopPropagation(), e.preventDefault();
|
|
35
35
|
},
|
|
36
36
|
children: /* @__PURE__ */ t(S, {
|
|
37
|
-
className:
|
|
37
|
+
className: p ? "text-delta-300" : "text-delta-700",
|
|
38
38
|
width: 20,
|
|
39
39
|
height: 20
|
|
40
40
|
})
|
|
@@ -43,10 +43,10 @@ function X({ tableData: o, actions: v, rowActionsState: C }) {
|
|
|
43
43
|
className: "flex w-[40px] items-center justify-center",
|
|
44
44
|
children: /* @__PURE__ */ b("div", {
|
|
45
45
|
className: "flex items-center justify-center",
|
|
46
|
-
children: [
|
|
47
|
-
title:
|
|
46
|
+
children: [o.state === "disabled" ? /* @__PURE__ */ t(g, {
|
|
47
|
+
title: o.tooltipTitle,
|
|
48
48
|
arrow: !0,
|
|
49
|
-
placement:
|
|
49
|
+
placement: o.tooltipPlacement ?? "top",
|
|
50
50
|
open: c,
|
|
51
51
|
onOpen: () => s(!0),
|
|
52
52
|
onClose: () => s(!1),
|
|
@@ -60,15 +60,11 @@ function X({ tableData: o, actions: v, rowActionsState: C }) {
|
|
|
60
60
|
},
|
|
61
61
|
children: f
|
|
62
62
|
})
|
|
63
|
-
}) : f,
|
|
63
|
+
}) : f, o.state === "enabled" && /* @__PURE__ */ t(D, {
|
|
64
64
|
open: a,
|
|
65
|
-
anchorEl:
|
|
66
|
-
onClose:
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
onClick: () => {
|
|
70
|
-
i(), o.row.onChangeFocused(!1);
|
|
71
|
-
},
|
|
65
|
+
anchorEl: C,
|
|
66
|
+
onClose: r,
|
|
67
|
+
onClick: r,
|
|
72
68
|
anchorOrigin: {
|
|
73
69
|
horizontal: "right",
|
|
74
70
|
vertical: "bottom"
|
|
@@ -82,13 +78,13 @@ function X({ tableData: o, actions: v, rowActionsState: C }) {
|
|
|
82
78
|
children: [/* @__PURE__ */ t(A, {
|
|
83
79
|
width: 20,
|
|
84
80
|
height: 20
|
|
85
|
-
}), /* @__PURE__ */ t("span", { children:
|
|
86
|
-
}) : /* @__PURE__ */ t(
|
|
81
|
+
}), /* @__PURE__ */ t("span", { children: T })]
|
|
82
|
+
}) : /* @__PURE__ */ t(O, {
|
|
87
83
|
disablePadding: !0,
|
|
88
|
-
children:
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
return w.isValidElement(
|
|
84
|
+
children: i.map((e, h) => {
|
|
85
|
+
if (j(e)) {
|
|
86
|
+
const n = e.component(l.row, r);
|
|
87
|
+
return w.isValidElement(n) ? /* @__PURE__ */ t(w.Fragment, { children: n }, h) : null;
|
|
92
88
|
}
|
|
93
89
|
return e.hide ? null : /* @__PURE__ */ t(g, {
|
|
94
90
|
title: e?.tooltipTitle,
|
|
@@ -98,13 +94,13 @@ function X({ tableData: o, actions: v, rowActionsState: C }) {
|
|
|
98
94
|
className: e.className,
|
|
99
95
|
disabled: e.disabled,
|
|
100
96
|
onClick: () => {
|
|
101
|
-
e.disabled || e.onClick?.(
|
|
97
|
+
e.disabled || e.onClick?.(l.row);
|
|
102
98
|
},
|
|
103
|
-
onMouseDown: (
|
|
104
|
-
|
|
99
|
+
onMouseDown: (n) => {
|
|
100
|
+
n.stopPropagation(), n.preventDefault();
|
|
105
101
|
},
|
|
106
|
-
onMouseUp: (
|
|
107
|
-
|
|
102
|
+
onMouseUp: (n) => {
|
|
103
|
+
n.stopPropagation(), n.preventDefault();
|
|
108
104
|
},
|
|
109
105
|
children: e.label
|
|
110
106
|
}) })
|
|
@@ -11,7 +11,7 @@ import { StyledButton as u } from "../../shared-components/button/StyledButton.j
|
|
|
11
11
|
import { useCallback as I, useId as F, useMemo as S, useRef as K } from "react";
|
|
12
12
|
import { Fragment as M, jsx as e, jsxs as f } from "react/jsx-runtime";
|
|
13
13
|
function U({ table: o, locale: y }) {
|
|
14
|
-
const v = K(null),
|
|
14
|
+
const v = K(null), r = y === "no", a = F(), b = S(() => ({
|
|
15
15
|
anchorOrigin: {
|
|
16
16
|
vertical: -5,
|
|
17
17
|
horizontal: "center"
|
|
@@ -21,21 +21,21 @@ function U({ table: o, locale: y }) {
|
|
|
21
21
|
horizontal: "center"
|
|
22
22
|
}
|
|
23
23
|
}), []), l = I(() => {
|
|
24
|
-
const t = m["asma-ui-table-styled-table"],
|
|
25
|
-
|
|
24
|
+
const t = m["asma-ui-table-styled-table"], n = v.current?.closest(`.${t}`)?.querySelector(`.${m["table-scroll"]}, .${m["table-wrapper"]}`);
|
|
25
|
+
n && n.scrollTo({
|
|
26
26
|
top: 0,
|
|
27
27
|
behavior: "smooth"
|
|
28
28
|
});
|
|
29
|
-
}, []), s = o.getPageCount() || 1, i = o.getState().pagination.pageIndex + 1, c = S(() => Array.from({ length: s }, (t,
|
|
29
|
+
}, []), s = o.getPageCount() || 1, i = o.getState().pagination.pageIndex + 1, c = S(() => Array.from({ length: s }, (t, n) => n + 1), [s]), P = I((t) => {
|
|
30
30
|
o.setPageIndex(t - 1), l();
|
|
31
31
|
}, [o, l]), { anchorEl: g, open: d, handleClose: x, handleOpen: T, triggerRef: w, activeIndex: h, handleKeyDown: $ } = R({
|
|
32
32
|
optionCount: c.length,
|
|
33
33
|
selectedIndex: i - 1,
|
|
34
|
-
onSelect: (t) =>
|
|
34
|
+
onSelect: (t) => P(c[t])
|
|
35
35
|
});
|
|
36
36
|
return /* @__PURE__ */ f(M, { children: [
|
|
37
37
|
/* @__PURE__ */ e(p, {
|
|
38
|
-
title:
|
|
38
|
+
title: r ? "Nåværende side" : "Current Page",
|
|
39
39
|
children: /* @__PURE__ */ e("div", {
|
|
40
40
|
ref: v,
|
|
41
41
|
children: /* @__PURE__ */ f(u, {
|
|
@@ -56,11 +56,11 @@ function U({ table: o, locale: y }) {
|
|
|
56
56
|
width: 24
|
|
57
57
|
}),
|
|
58
58
|
children: [
|
|
59
|
-
|
|
59
|
+
r ? "Side" : "Page",
|
|
60
60
|
" ",
|
|
61
61
|
i,
|
|
62
62
|
" ",
|
|
63
|
-
|
|
63
|
+
r ? "av" : "of",
|
|
64
64
|
" ",
|
|
65
65
|
s
|
|
66
66
|
]
|
|
@@ -70,6 +70,7 @@ function U({ table: o, locale: y }) {
|
|
|
70
70
|
/* @__PURE__ */ e(k, {
|
|
71
71
|
open: d,
|
|
72
72
|
anchorEl: g,
|
|
73
|
+
tabIntoContent: !1,
|
|
73
74
|
slotProps: { paper: {
|
|
74
75
|
className: "border border-solid border-delta-200",
|
|
75
76
|
sx: {
|
|
@@ -79,22 +80,22 @@ function U({ table: o, locale: y }) {
|
|
|
79
80
|
}
|
|
80
81
|
} },
|
|
81
82
|
onClose: x,
|
|
82
|
-
anchorOrigin:
|
|
83
|
-
transformOrigin:
|
|
83
|
+
anchorOrigin: b.anchorOrigin,
|
|
84
|
+
transformOrigin: b.transformOrigin,
|
|
84
85
|
children: /* @__PURE__ */ e(z, {
|
|
85
86
|
id: a,
|
|
86
87
|
role: "listbox",
|
|
87
|
-
children: c.map((t,
|
|
88
|
-
id: `${a}-option-${
|
|
89
|
-
active:
|
|
88
|
+
children: c.map((t, n) => /* @__PURE__ */ e(D, {
|
|
89
|
+
id: `${a}-option-${n}`,
|
|
90
|
+
active: n === h,
|
|
90
91
|
onClick: (C) => {
|
|
91
|
-
C.stopPropagation(), C.preventDefault(),
|
|
92
|
+
C.stopPropagation(), C.preventDefault(), P(t), x();
|
|
92
93
|
},
|
|
93
94
|
selected: t === i,
|
|
94
95
|
children: /* @__PURE__ */ f("span", {
|
|
95
96
|
className: "text-base font-normal text-delta-700",
|
|
96
97
|
children: [
|
|
97
|
-
|
|
98
|
+
r ? "Side" : "Page",
|
|
98
99
|
" ",
|
|
99
100
|
t
|
|
100
101
|
]
|
|
@@ -103,7 +104,7 @@ function U({ table: o, locale: y }) {
|
|
|
103
104
|
})
|
|
104
105
|
}),
|
|
105
106
|
/* @__PURE__ */ e(p, {
|
|
106
|
-
title: i === 1 ? "" :
|
|
107
|
+
title: i === 1 ? "" : r ? "Forrige side" : "Previous Page",
|
|
107
108
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(u, {
|
|
108
109
|
dataTest: "prev-page-button",
|
|
109
110
|
variant: "outlined",
|
|
@@ -119,7 +120,7 @@ function U({ table: o, locale: y }) {
|
|
|
119
120
|
}) })
|
|
120
121
|
}),
|
|
121
122
|
/* @__PURE__ */ e(p, {
|
|
122
|
-
title: i === s ? "" :
|
|
123
|
+
title: i === s ? "" : r ? "Neste side" : "Next Page",
|
|
123
124
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(u, {
|
|
124
125
|
dataTest: "next-page-button",
|
|
125
126
|
variant: "outlined",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { StyledPopover as O } from "../../../components/utils/popover/StyledPopover.js";
|
|
2
2
|
import { StyledMenuList as C } from "../../../components/navigation/menu/StyledMenuList.js";
|
|
3
3
|
import { StyledSelectItem as y } from "../../../components/inputs/select/StyledSelectItem.js";
|
|
4
|
-
import { ChevronDownIcon as
|
|
5
|
-
import { useKeyboardSelectMenu as
|
|
4
|
+
import { ChevronDownIcon as I } from "../../shared-components/ChevronDownIcon.js";
|
|
5
|
+
import { useKeyboardSelectMenu as $ } from "../../hooks/useToggleMenuVisibility.hook.js";
|
|
6
6
|
import { StyledButton as k } from "../../shared-components/button/StyledButton.js";
|
|
7
7
|
import { useCallback as D, useId as N, useMemo as g } from "react";
|
|
8
8
|
import { Fragment as P, jsx as s, jsxs as m } from "react/jsx-runtime";
|
|
@@ -28,7 +28,7 @@ function A({ table: l, locale: w }) {
|
|
|
28
28
|
return Array.from(o).sort((a, i) => a - i);
|
|
29
29
|
}, [e]), f = D((o) => {
|
|
30
30
|
l.setPageSize(o);
|
|
31
|
-
}, [l]), b = r.indexOf(e), { anchorEl: d, open: n, handleClose: u, handleOpen: v, triggerRef: S, activeIndex: p, handleKeyDown: x } =
|
|
31
|
+
}, [l]), b = r.indexOf(e), { anchorEl: d, open: n, handleClose: u, handleOpen: v, triggerRef: S, activeIndex: p, handleKeyDown: x } = $({
|
|
32
32
|
optionCount: r.length,
|
|
33
33
|
selectedIndex: b,
|
|
34
34
|
onSelect: (o) => f(r[o]),
|
|
@@ -47,7 +47,7 @@ function A({ table: l, locale: w }) {
|
|
|
47
47
|
"aria-expanded": n,
|
|
48
48
|
"aria-activedescendant": p === null ? void 0 : `${t}-option-${p}`,
|
|
49
49
|
"aria-label": `${e} ${c ? "rader" : "rows"}`,
|
|
50
|
-
endIcon: /* @__PURE__ */ s(
|
|
50
|
+
endIcon: /* @__PURE__ */ s(I, {
|
|
51
51
|
className: `${n ? "flip-180" : "rotate-0"} transition-transform duration-300`,
|
|
52
52
|
height: 24,
|
|
53
53
|
width: 24
|
|
@@ -60,6 +60,7 @@ function A({ table: l, locale: w }) {
|
|
|
60
60
|
}), /* @__PURE__ */ s(O, {
|
|
61
61
|
open: n,
|
|
62
62
|
anchorEl: d,
|
|
63
|
+
tabIntoContent: !1,
|
|
63
64
|
slotProps: { paper: {
|
|
64
65
|
className: "border border-solid border-delta-200",
|
|
65
66
|
sx: {
|