asma-ui-core 3.103.0 → 3.104.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.
Files changed (24) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/badge/StyledBadge.js +30 -34
  3. package/dist/components/data-display/virtualized-list/VirtualizedList.js +16 -15
  4. package/dist/components/feedback/dialog/StyledDialog.js +71 -62
  5. package/dist/components/feedback/dialog/StyledDialogTitle.js +25 -14
  6. package/dist/components/feedback/dialog/dialogTitleContext.js +5 -0
  7. package/dist/components/miscellaneous/StyledFormControlLabel.js +14 -14
  8. package/dist/components/navigation/link/StyledLink.js +25 -18
  9. package/dist/components/navigation/link/StyledLink.module.js +6 -5
  10. package/dist/components/navigation/menu/StyledMenu.js +17 -16
  11. package/dist/components/navigation/menu/StyledMenu.module.js +5 -2
  12. package/dist/components/navigation/menu/StyledMenuList.js +35 -30
  13. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +2 -0
  14. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +4 -1
  15. package/dist/src/components/feedback/dialog/dialogTitleContext.d.ts +15 -0
  16. package/dist/src/components/navigation/link/StyledLink.d.ts +3 -2
  17. package/dist/src/table/components/columns/dndHandleColumn.d.ts +2 -1
  18. package/dist/src/table/components/columns/expandColumn.d.ts +1 -1
  19. package/dist/src/table/components/columns/showTextColumn.d.ts +1 -1
  20. package/dist/table/components/columns/dndHandleColumn.js +20 -18
  21. package/dist/table/components/columns/expandColumn.js +15 -15
  22. package/dist/table/components/columns/showTextColumn.js +20 -19
  23. package/dist/table/helpers/injectColumns.js +8 -8
  24. package/package.json +1 -1
@@ -1,60 +1,65 @@
1
1
  import { cn as S } from "../../../helpers/cn.js";
2
- import { consumerOverrides as v } from "../../../helpers/classOverride.js";
3
- import L from "./StyledMenu.module.js";
4
- import { useEffect as I, useLayoutEffect as M, useRef as R } from "react";
5
- import { jsx as d } from "react/jsx-runtime";
6
- var p = '[role="menu"], [role="listbox"]', u = '[role="menuitem"]', b = (o) => Array.from(o.childNodes).flatMap((r) => r instanceof HTMLElement ? r.hidden ? [] : r.matches(p) ? [null] : r.matches(u) ? [r] : r.querySelector(u) ? b(r) : [null] : r.textContent?.trim() ? [null] : []), y = (o) => o ? Array.from(o.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')) : [], H = ({ children: o, id: r, role: h = "menu", className: a, autoFocus: f, disablePadding: E, onClick: A, onKeyDown: w }) => {
7
- const i = R(null), c = v(a, "padding");
8
- M(() => {
2
+ import { consumerOverrides as R } from "../../../helpers/classOverride.js";
3
+ import y from "./StyledMenu.module.js";
4
+ import { useEffect as I, useLayoutEffect as k, useRef as q } from "react";
5
+ import { jsx as p } from "react/jsx-runtime";
6
+ var b = '[role="menu"], [role="listbox"]', c = '[role="menuitem"]', A = (l) => Array.from(l.childNodes).flatMap((r) => r instanceof HTMLElement ? r.hidden ? [] : r.matches(b) ? [null] : r.matches(c) ? [r] : r.querySelector(c) ? A(r) : [null] : r.textContent?.trim() ? [null] : []), g = (l) => l ? Array.from(l.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')) : [], O = ({ children: l, id: r, role: x = "menu", className: m, autoFocus: f, disablePadding: E, onClick: w, onKeyDown: v }) => {
7
+ const i = q(null), d = R(m, "padding");
8
+ k(() => {
9
9
  const e = i.current;
10
10
  if (!e) return;
11
11
  const t = () => {
12
- const n = b(e);
13
- Array.from(e.querySelectorAll(u)).filter((l) => l.closest(p) === e).forEach((l) => l.removeAttribute("data-menu-separator")), n.forEach((l, g) => l?.toggleAttribute("data-menu-separator", !!n[g + 1]));
12
+ const s = A(e);
13
+ if (Array.from(e.querySelectorAll(c)).filter((n) => n.closest(b) === e).forEach((n) => n.removeAttribute("data-menu-separator")), s.forEach((n, a) => n?.toggleAttribute("data-menu-separator", !!s[a + 1])), e.classList.contains(y.anchoredList)) {
14
+ const n = (s.every(Boolean) ? s[7] : null)?.getBoundingClientRect(), a = n && n.height > 0 ? n.top - e.getBoundingClientRect().top + e.scrollTop + n.height / 2 : null;
15
+ e.style.maxHeight = a === null ? "" : `${a}px`, e.toggleAttribute("data-menu-scroll", a !== null);
16
+ }
14
17
  };
15
18
  t();
16
- const s = new MutationObserver(t);
17
- return s.observe(e, {
19
+ const u = requestAnimationFrame(t), o = new MutationObserver(t);
20
+ return o.observe(e, {
18
21
  childList: !0,
19
22
  subtree: !0,
20
23
  attributes: !0,
21
24
  attributeFilter: ["hidden"]
22
- }), () => s.disconnect();
25
+ }), () => {
26
+ cancelAnimationFrame(u), o.disconnect();
27
+ };
23
28
  }, []), I(() => {
24
- f && y(i.current)[0]?.focus();
29
+ f && g(i.current)[0]?.focus();
25
30
  }, [f]);
26
- const x = (e) => {
27
- if (w?.(e), ![
31
+ const L = (e) => {
32
+ if (v?.(e), ![
28
33
  "ArrowDown",
29
34
  "ArrowUp",
30
35
  "Home",
31
36
  "End"
32
37
  ].includes(e.key)) return;
33
38
  e.preventDefault();
34
- const t = y(i.current);
39
+ const t = g(i.current);
35
40
  if (t.length === 0) return;
36
- const s = t.findIndex((l) => l === document.activeElement);
37
- let n = s;
38
- e.key === "ArrowDown" ? n = (s + 1) % t.length : e.key === "ArrowUp" ? n = (s - 1 + t.length) % t.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = t.length - 1), t[n]?.focus();
39
- }, m = {
41
+ const u = t.findIndex((s) => s === document.activeElement);
42
+ let o = u;
43
+ e.key === "ArrowDown" ? o = (u + 1) % t.length : e.key === "ArrowUp" ? o = (u - 1 + t.length) % t.length : e.key === "Home" ? o = 0 : e.key === "End" && (o = t.length - 1), t[o]?.focus(), i.current?.hasAttribute("data-menu-scroll") && t[o]?.scrollIntoView({ block: "nearest" });
44
+ }, h = {
40
45
  id: r,
41
- className: S(L.list, "m-0 list-none outline-none", !c && "px-0", !c && (E ? "py-0" : "py-2"), a),
46
+ className: S(y.list, "m-0 list-none outline-none", !d && "px-0", !d && (E ? "py-0" : "py-2"), m),
42
47
  style: { fontFamily: "Roboto, Helvetica, Arial, sans-serif" },
43
- onClick: A,
44
- onKeyDown: x
48
+ onClick: w,
49
+ onKeyDown: L
45
50
  };
46
- return h === "listbox" ? /* @__PURE__ */ d("ul", {
51
+ return x === "listbox" ? /* @__PURE__ */ p("ul", {
47
52
  ref: i,
48
- ...m,
53
+ ...h,
49
54
  role: "listbox",
50
- children: o
51
- }) : /* @__PURE__ */ d("ul", {
55
+ children: l
56
+ }) : /* @__PURE__ */ p("ul", {
52
57
  ref: i,
53
- ...m,
58
+ ...h,
54
59
  role: "menu",
55
- children: o
60
+ children: l
56
61
  });
57
62
  };
58
63
  export {
59
- H as StyledMenuList
64
+ O as StyledMenuList
60
65
  };
@@ -55,6 +55,8 @@ export interface IStyledDialogProps {
55
55
  dialogLabel?: ReactNode;
56
56
  /** @figmaProp header Title (Page title 24 SemiBold, delta-800) */
57
57
  dialogTitle?: ReactNode;
58
+ /** Accessible name when the dialog has no visible title. */
59
+ ariaLabel?: string;
58
60
  dialogHeaderNode?: ReactNode;
59
61
  }
60
62
  /**
@@ -5,6 +5,9 @@ interface DialogTitleProps extends HTMLAttributes<HTMLHeadingElement> {
5
5
  }
6
6
  /**
7
7
  * MUI-free dialog title: a semantic `<h2>` with the previous SCSS metrics as Tailwind. TASK-101.
8
+ *
9
+ * Adopts the id its enclosing `StyledDialog` offers, so the dialog is named by this visible title
10
+ * rather than by its test hook (WCAG 4.1.2). An explicit `id` from the caller always wins.
8
11
  */
9
- export declare const StyledDialogTitle: ({ children, className, sx, style, classes: _classes, ...rest }: DialogTitleProps) => JSX.Element | null;
12
+ export declare const StyledDialogTitle: ({ children, className, sx, style, id, classes: _classes, ...rest }: DialogTitleProps) => JSX.Element | null;
10
13
  export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Lets a `<StyledDialogTitle>` child name the dialog that contains it.
3
+ *
4
+ * `StyledDialog` can point `aria-labelledby` at its own `dialogTitle` prop directly, but a large
5
+ * share of consumers render the title as a child instead (e.g. advoca's privacy-consent modal).
6
+ * Without this, those dialogs fall back to having no accessible name at all — WCAG 4.1.2 requires
7
+ * the dialog to be named by its visible title, not by a test hook.
8
+ */
9
+ export interface StyledDialogTitleContextValue {
10
+ /** `id` the title adopts so the dialog can reference it. */
11
+ titleId: string;
12
+ /** Registers the title's actual id, including an explicit caller-supplied id. */
13
+ setTitleId: (titleId: string | undefined) => void;
14
+ }
15
+ export declare const StyledDialogTitleContext: import('react').Context<StyledDialogTitleContextValue | null>;
@@ -1,4 +1,4 @@
1
- import { default as React, AnchorHTMLAttributes, ReactNode } from 'react';
1
+ import { default as React, AnchorHTMLAttributes, MouseEvent, ReactNode } from 'react';
2
2
  /**
3
3
  * @figmaNode wXrXt5uKNNzV2DnQCgyYZH#14472-14569 (Design-System · "Link")
4
4
  *
@@ -6,7 +6,8 @@ import { default as React, AnchorHTMLAttributes, ReactNode } from 'react';
6
6
  * Disabled = delta-300; Focused/Pressed adds a 1px gama-400 rounded indicator (radius 4, px4/py2).
7
7
  * State is derived at runtime from `:hover`/`:focus`/`disabled`, not a prop.
8
8
  */
9
- export type StyledLinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & {
9
+ export type StyledLinkProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick'> & {
10
+ onClick?: (event: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
10
11
  /** @figmaProp State = true→"Disabled" (renders a non-interactive <span>, delta-300) */
11
12
  disabled?: boolean;
12
13
  /** @figmaProp Size = small→"Base" (14/20) | large→"Medium" (16/24); xs (12/20) = none (no DS size) */
@@ -1,8 +1,9 @@
1
1
  import { Arguments } from '@dnd-kit/sortable/dist/hooks/useSortable';
2
2
  import { FC } from 'react';
3
3
  import { ColumnDef } from '../../types';
4
- export declare function generateDndHandleColumn<TData>(custom_props?: ColumnDef<TData, unknown>, rowHeight?: number): ColumnDef<TData, unknown>;
4
+ export declare function generateDndHandleColumn<TData>(custom_props?: ColumnDef<TData, unknown>, rowHeight?: number, locale?: 'en' | 'no'): ColumnDef<TData, unknown>;
5
5
  export declare const RowDragHandleCell: FC<Partial<Omit<Arguments, 'id'>> & {
6
+ ariaLabel?: string;
6
7
  rowId: string;
7
8
  rowHeight?: number;
8
9
  }>;
@@ -1,2 +1,2 @@
1
1
  import { ColumnDef } from '../../types';
2
- export declare function generateExpandColumn<TData>(isFixed: boolean, rowHeight?: number): ColumnDef<TData, unknown>;
2
+ export declare function generateExpandColumn<TData>(isFixed: boolean, rowHeight?: number, locale?: 'en' | 'no'): ColumnDef<TData, unknown>;
@@ -1,2 +1,2 @@
1
1
  import { ColumnDef } from '../../types';
2
- export declare function generateShowFullTextColumn<TData>(isFixed: boolean, rowHeight?: number): ColumnDef<TData, unknown>;
2
+ export declare function generateShowFullTextColumn<TData>(isFixed: boolean, rowHeight?: number, locale?: 'en' | 'no'): ColumnDef<TData, unknown>;
@@ -1,40 +1,42 @@
1
- import { DND_HANDLE_COLUMN_ID as a } from "../../types.js";
2
- import { DotsHorizontalIcon as n } from "../../shared-components/DotsHorizontalIcon.js";
3
- import d from "clsx";
4
- import { jsx as o } from "react/jsx-runtime";
5
- import { useSortable as s } from "@dnd-kit/sortable";
6
- function D(r, t) {
1
+ import { DND_HANDLE_COLUMN_ID as n } from "../../types.js";
2
+ import { DotsHorizontalIcon as d } from "../../shared-components/DotsHorizontalIcon.js";
3
+ import s from "clsx";
4
+ import { jsx as a } from "react/jsx-runtime";
5
+ import { useSortable as m } from "@dnd-kit/sortable";
6
+ function p(r, t, l) {
7
7
  return {
8
8
  enableHiding: !1,
9
9
  enableSorting: !1,
10
10
  header: () => null,
11
- cell: ({ row: e }) => /* @__PURE__ */ o(m, {
11
+ cell: ({ row: e }) => /* @__PURE__ */ a(u, {
12
+ ariaLabel: l === "no" ? `Endre rekkefølge på rad ${e.index + 1}` : `Reorder row ${e.index + 1}`,
12
13
  rowId: e.id,
13
14
  rowHeight: t
14
15
  }),
15
16
  minSize: 50,
16
17
  size: 50,
17
18
  ...r,
18
- id: a
19
+ id: n
19
20
  };
20
21
  }
21
- var m = ({ rowId: r, rowHeight: t, ...e }) => {
22
- const { attributes: l, listeners: i } = s({
23
- id: r,
22
+ var u = ({ ariaLabel: r, rowId: t, rowHeight: l, ...e }) => {
23
+ const { attributes: i, listeners: o } = m({
24
+ id: t,
24
25
  ...e
25
26
  });
26
- return /* @__PURE__ */ o("div", {
27
- ...l,
27
+ return /* @__PURE__ */ a("div", {
28
28
  ...i,
29
- style: { height: t ?? "auto" },
30
- children: /* @__PURE__ */ o(n, {
29
+ ...o,
30
+ "aria-label": r,
31
+ style: { height: l ?? "auto" },
32
+ children: /* @__PURE__ */ a(d, {
31
33
  width: 24,
32
34
  height: 24,
33
- className: d(e.disabled ? "cursor-not-allowed text-delta-300" : "cursor-grab text-delta-800")
35
+ className: s(e.disabled ? "cursor-not-allowed text-delta-300" : "cursor-grab text-delta-800")
34
36
  })
35
37
  });
36
38
  };
37
39
  export {
38
- m as RowDragHandleCell,
39
- D as generateDndHandleColumn
40
+ u as RowDragHandleCell,
41
+ p as generateDndHandleColumn
40
42
  };
@@ -1,31 +1,31 @@
1
- import { EXPAND_COLUMN_ID as i } from "../../types.js";
2
- import { ChevronDownIcon as a } from "../../shared-components/ChevronDownIcon.js";
3
- import { jsx as t } from "react/jsx-runtime";
1
+ import { EXPAND_COLUMN_ID as a } from "../../types.js";
2
+ import { ChevronDownIcon as d } from "../../shared-components/ChevronDownIcon.js";
3
+ import { jsx as r } from "react/jsx-runtime";
4
4
  import "@tanstack/react-table";
5
- function f(r, o) {
5
+ function x(t, o, i) {
6
6
  return {
7
- id: i,
7
+ id: a,
8
8
  minSize: 50,
9
9
  maxSize: 50,
10
10
  size: 50,
11
11
  enableHiding: !1,
12
12
  enableSorting: !1,
13
13
  header: () => null,
14
- cell: ({ cell: e }) => {
15
- const n = e.row.getIsExpanded();
16
- return e.row.getCanExpand() ? /* @__PURE__ */ t("button", {
14
+ cell: ({ cell: n }) => {
15
+ const e = n.row.getIsExpanded();
16
+ return n.row.getCanExpand() ? /* @__PURE__ */ r("button", {
17
17
  type: "button",
18
- "aria-label": n ? "Collapse row" : "Expand row",
19
- "aria-expanded": n,
18
+ "aria-label": i === "no" ? e ? `Skjul rad ${n.row.index + 1}` : `Utvid rad ${n.row.index + 1}` : e ? `Collapse row ${n.row.index + 1}` : `Expand row ${n.row.index + 1}`,
19
+ "aria-expanded": e,
20
20
  className: "flex w-full items-center justify-center border-0 bg-transparent p-0 outline-none focus:outline-none",
21
- onClick: () => e.row.getToggleExpandedHandler()(),
21
+ onClick: () => n.row.getToggleExpandedHandler()(),
22
22
  style: { height: o ?? "auto" },
23
- children: /* @__PURE__ */ t(a, {
23
+ children: /* @__PURE__ */ r(d, {
24
24
  className: "block size-6 shrink-0",
25
25
  width: 24,
26
26
  height: 24,
27
27
  style: {
28
- transform: n ? "rotate(180deg)" : "rotate(0deg)",
28
+ transform: e ? "rotate(180deg)" : "rotate(0deg)",
29
29
  transformBox: "fill-box",
30
30
  transformOrigin: "center",
31
31
  transitionProperty: "transform",
@@ -35,9 +35,9 @@ function f(r, o) {
35
35
  })
36
36
  }) : null;
37
37
  },
38
- fixedLeft: r
38
+ fixedLeft: t
39
39
  };
40
40
  }
41
41
  export {
42
- f as generateExpandColumn
42
+ x as generateExpandColumn
43
43
  };
@@ -1,35 +1,36 @@
1
- import { SHOW_FULL_TEXT_ID as i } from "../../types.js";
2
- import { ChevronDownIcon as l } from "../../shared-components/ChevronDownIcon.js";
3
- import { StyledButton as s } from "../../shared-components/button/StyledButton.js";
4
- import { jsx as o } from "react/jsx-runtime";
5
- function f(e, r) {
1
+ import { SHOW_FULL_TEXT_ID as l } from "../../types.js";
2
+ import { ChevronDownIcon as s } from "../../shared-components/ChevronDownIcon.js";
3
+ import { StyledButton as d } from "../../shared-components/button/StyledButton.js";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ function c(e, o, n) {
6
6
  return {
7
- id: i,
7
+ id: l,
8
8
  minSize: 38,
9
9
  maxSize: 38,
10
10
  size: 38,
11
11
  enableHiding: !1,
12
12
  enableSorting: !1,
13
13
  header: () => null,
14
- cell: (n) => /* @__PURE__ */ o(u, {
15
- info: n,
16
- rowHeight: r
14
+ cell: (a) => /* @__PURE__ */ r(u, {
15
+ info: a,
16
+ locale: n,
17
+ rowHeight: o
17
18
  }),
18
19
  fixedLeft: e
19
20
  };
20
21
  }
21
- function u({ info: e, rowHeight: r }) {
22
- const n = e.row.getCanExpand(), a = e.row.isExpanded();
23
- return /* @__PURE__ */ o("div", {
22
+ function u({ info: e, locale: o, rowHeight: n }) {
23
+ const a = e.row.getCanExpand(), i = e.row.isExpanded();
24
+ return /* @__PURE__ */ r("div", {
24
25
  className: "flex w-full items-center justify-center",
25
- style: { height: r ?? "auto" },
26
- children: /* @__PURE__ */ o(s, {
26
+ style: { height: n ?? "auto" },
27
+ children: /* @__PURE__ */ r(d, {
27
28
  dataTest: "expand-text-button",
28
- "aria-label": a ? "Collapse text" : "Show full text",
29
+ "aria-label": o === "no" ? i ? `Skjul full tekst for rad ${e.row.index + 1}` : `Vis full tekst for rad ${e.row.index + 1}` : i ? `Collapse full text for row ${e.row.index + 1}` : `Show full text for row ${e.row.index + 1}`,
29
30
  size: "small",
30
31
  variant: "textGray",
31
32
  onClick: (t) => {
32
- t.stopPropagation(), n && e.row.getToggleExpandedHandler()(), e.row.toggleExpand();
33
+ t.stopPropagation(), a && e.row.getToggleExpandedHandler()(), e.row.toggleExpand();
33
34
  },
34
35
  onMouseDown: (t) => {
35
36
  t.preventDefault(), t.stopPropagation();
@@ -37,12 +38,12 @@ function u({ info: e, rowHeight: r }) {
37
38
  onMouseUp: (t) => {
38
39
  t.preventDefault(), t.stopPropagation();
39
40
  },
40
- startIcon: /* @__PURE__ */ o(l, {
41
+ startIcon: /* @__PURE__ */ r(s, {
41
42
  className: "block size-5 shrink-0",
42
43
  width: 20,
43
44
  height: 20,
44
45
  style: {
45
- transform: a ? "rotate(180deg)" : "rotate(0deg)",
46
+ transform: i ? "rotate(180deg)" : "rotate(0deg)",
46
47
  transformBox: "fill-box",
47
48
  transformOrigin: "center",
48
49
  transitionProperty: "transform",
@@ -55,5 +56,5 @@ function u({ info: e, rowHeight: r }) {
55
56
  });
56
57
  }
57
58
  export {
58
- f as generateShowFullTextColumn
59
+ c as generateShowFullTextColumn
59
60
  };
@@ -4,17 +4,17 @@ import { generateExpandColumn as h } from "../components/columns/expandColumn.js
4
4
  import { generateActionsColumn as x } from "../components/columns/action-column/actionColumn.js";
5
5
  import { generateDndHandleColumn as _ } from "../components/columns/dndHandleColumn.js";
6
6
  import { generateShowFullTextColumn as A } from "../components/columns/showTextColumn.js";
7
- var T = (i) => {
8
- const { actions: r, customActionsNode: m, headerPin: d = !0, enableRowSelection: u, expandArrow: f, enableDnd: c, customDndColumnProps: a, rowHeight: e, textExpandArrow: s, customActionsColumnProps: p, rowActionsState: C, locale: l } = i, n = [...i.columns], t = n.some((o) => o.fixedLeft === !0);
9
- return !n.find((o) => o.id === "actions") && (r || m || d) && n.push(x({
10
- headerPin: d,
11
- actions: r,
12
- customActionsNode: m,
7
+ var T = (r) => {
8
+ const { actions: m, customActionsNode: d, headerPin: s = !0, enableRowSelection: u, expandArrow: f, enableDnd: c, customDndColumnProps: a, rowHeight: e, textExpandArrow: l, customActionsColumnProps: p, rowActionsState: C, locale: t } = r, n = [...r.columns], i = n.some((o) => o.fixedLeft === !0);
9
+ return !n.find((o) => o.id === "actions") && (m || d || s) && n.push(x({
10
+ headerPin: s,
11
+ actions: m,
12
+ customActionsNode: d,
13
13
  rowHeight: e,
14
14
  customActionsColumnProps: p,
15
15
  rowActionsState: C,
16
- locale: l
17
- })), s && !n.find((o) => o.id === "show-full-text") && n.unshift(A(t, e)), f && !s && !n.find((o) => o.id === "expand-column-id") && n.unshift(h(t, e)), c && !n.find((o) => o.id === "dnd-handle") && n.unshift(_(a, e)), u && !n.find((o) => o.id === "select") && n.unshift(D(t, e, l)), n;
16
+ locale: t
17
+ })), l && !n.find((o) => o.id === "show-full-text") && n.unshift(A(i, e, t)), f && !l && !n.find((o) => o.id === "expand-column-id") && n.unshift(h(i, e, t)), c && !n.find((o) => o.id === "dnd-handle") && n.unshift(_(a, e, t)), u && !n.find((o) => o.id === "select") && n.unshift(D(i, e, t)), n;
18
18
  };
19
19
  export {
20
20
  T as injectColumns
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.103.0",
6
+ "version": "3.104.0",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",