asma-ui-core 3.23.0 → 3.25.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.
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +9 -9
- package/dist/components/data-display/tooltip/StyledTooltip.js +27 -28
- package/dist/components/icons/grid-view-outline-icon/GridViewOutlineIcon.js +17 -0
- package/dist/components/icons/grid-view-outline-icon/index.js +1 -0
- package/dist/components/icons/index.js +2 -0
- package/dist/components/icons/list-view-outline-icon/ListViewOutlineIcon.js +17 -0
- package/dist/components/icons/list-view-outline-icon/index.js +1 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +89 -89
- package/dist/components/inputs/input-field/StyledInputField.js +80 -74
- package/dist/components/inputs/search-field/StyledSearchField.js +33 -31
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +114 -106
- package/dist/components/navigation/tabs/StyledTabs.js +15 -9
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +1 -1
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +20 -18
- package/dist/datetime/components/time-picker/TimePickerInput.js +7 -7
- package/dist/datetime/shared-components/StyledTooltip.js +27 -31
- package/dist/index.js +371 -367
- package/dist/src/components/icons/grid-view-outline-icon/GridViewOutlineIcon.d.ts +2 -0
- package/dist/src/components/icons/grid-view-outline-icon/index.d.ts +1 -0
- package/dist/src/components/icons/index.d.ts +2 -0
- package/dist/src/components/icons/list-view-outline-icon/ListViewOutlineIcon.d.ts +2 -0
- package/dist/src/components/icons/list-view-outline-icon/index.d.ts +1 -0
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +1 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +1 -1
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +1 -1
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +1 -1
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -37
- package/dist/table/components/table-footer/TablePagination.js +18 -18
- package/dist/table/components/table-footer/TableRowCountSelect.js +17 -17
- package/dist/table/shared-components/StyledCheckbox.js +1 -1
- package/dist/table/shared-components/tooltip/index.js +21 -19
- package/package.json +5 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GridViewOutlineIcon';
|
|
@@ -63,6 +63,7 @@ export * from './link-outline-icon';
|
|
|
63
63
|
export * from './fast-check-outline-icon';
|
|
64
64
|
export * from './unknown-document-outline-rounded-icon';
|
|
65
65
|
export * from './list-status-icon';
|
|
66
|
+
export * from './list-view-outline-icon';
|
|
66
67
|
export * from './text-box-check-outline-icon';
|
|
67
68
|
export * from './list-settings-line-icon';
|
|
68
69
|
export * from './earth-icon';
|
|
@@ -127,6 +128,7 @@ export * from './history-icon';
|
|
|
127
128
|
export * from './conversion-path';
|
|
128
129
|
export * from './graph-icon';
|
|
129
130
|
export * from './graph-outline-icon';
|
|
131
|
+
export * from './grid-view-outline-icon';
|
|
130
132
|
export * from './notes-icon';
|
|
131
133
|
export * from './save-icon';
|
|
132
134
|
export * from './remove-icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ListViewOutlineIcon';
|
|
@@ -21,5 +21,5 @@ export type StyledSelectAutocompleteProps<T, Multiple extends boolean | undefine
|
|
|
21
21
|
* inputRef to get Node of Input Element inside
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ dataTest, autoHeight, getOptionLabel, wrapperClassName, multiple, allowSelectAll, selectAllLabel, className, defaultValue, isOptionEqualToValue,
|
|
24
|
+
export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ dataTest, autoHeight, getOptionLabel, wrapperClassName, multiple, allowSelectAll, selectAllLabel, className, defaultValue, isOptionEqualToValue, onChange, options, popupIcon, readOnly, renderOption, renderValue, sx, value, ...props }: StyledSelectAutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>): JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Accordion } from '@base-ui/react';
|
|
1
|
+
import { Accordion } from '@base-ui/react/accordion';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
interface StyledAccordionProps extends Omit<React.ComponentProps<typeof Accordion.Root>, 'value' | 'onValueChange' | 'defaultValue' | 'onChange'> {
|
|
4
4
|
className?: string;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { isCustomAction as
|
|
1
|
+
import { isCustomAction as M } from "../../../../types.js";
|
|
2
2
|
import { StyledTooltip as f } from "../../../../shared-components/tooltip/index.js";
|
|
3
|
-
import { useToggleMenuVisibility as
|
|
3
|
+
import { useToggleMenuVisibility as y } from "../../../../hooks/useToggleMenuVisibility.hook.js";
|
|
4
4
|
import { DotsVerticalIcon as O } from "../../../../shared-components/DotsVerticalIcon.js";
|
|
5
5
|
import { StyledMenuItem as j } from "../../../../shared-components/StyledMenuItem.js";
|
|
6
6
|
import { StyledButton as A } from "../../../../shared-components/button/StyledButton.js";
|
|
7
7
|
import { CircleWarningOutlineIcon as S } from "../../../../shared-components/CircleWarningOutlineIcon.js";
|
|
8
8
|
import h, { useEffect as k, useMemo as D, useState as F } from "react";
|
|
9
|
-
import {
|
|
9
|
+
import { MenuList as I, Popover as V } from "@mui/material";
|
|
10
10
|
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
11
|
-
function
|
|
12
|
-
const { anchorEl: C, open: b, handleClose: s, handleOpen: x } =
|
|
11
|
+
function J({ tableData: o, actions: w, rowActionsState: v }) {
|
|
12
|
+
const { anchorEl: C, open: b, handleClose: s, handleOpen: x } = y(), i = w(o.row), n = v?.(o.row) ?? { state: "enabled" }, P = o.table.options.meta?.locale === "no" ? "Ingen handlinger tilgjengelig" : "No actions available", N = D(() => i.every((e) => "component" in e ? !1 : e.hide), [i]), d = i.length > 0 && !N, p = n.state === "enabled" && !d, T = n.state !== "hidden" && (d || p || n.state === "disabled"), [a, l] = F(!1);
|
|
13
13
|
if (k(() => {
|
|
14
14
|
if (!a) return;
|
|
15
|
-
const e = window.setTimeout(() =>
|
|
15
|
+
const e = window.setTimeout(() => l(!1), 1600);
|
|
16
16
|
return () => window.clearTimeout(e);
|
|
17
17
|
}, [a]), !T) return /* @__PURE__ */ t("div", { className: "flex w-[40px] items-center justify-center" });
|
|
18
18
|
const c = n.state === "disabled", u = /* @__PURE__ */ t(A, {
|
|
@@ -44,19 +44,19 @@ function G({ tableData: o, actions: w, rowActionsState: v }) {
|
|
|
44
44
|
arrow: !0,
|
|
45
45
|
placement: n.tooltipPlacement ?? "top",
|
|
46
46
|
open: a,
|
|
47
|
-
onOpen: () =>
|
|
48
|
-
onClose: () =>
|
|
47
|
+
onOpen: () => l(!0),
|
|
48
|
+
onClose: () => l(!1),
|
|
49
49
|
children: /* @__PURE__ */ t("span", {
|
|
50
50
|
className: "cursor-not-allowed",
|
|
51
51
|
onTouchStart: (e) => {
|
|
52
|
-
e.stopPropagation(), e.preventDefault(),
|
|
52
|
+
e.stopPropagation(), e.preventDefault(), l(!0);
|
|
53
53
|
},
|
|
54
54
|
onClick: (e) => {
|
|
55
55
|
e.stopPropagation(), e.preventDefault();
|
|
56
56
|
},
|
|
57
57
|
children: u
|
|
58
58
|
})
|
|
59
|
-
}) : u, n.state === "enabled" && /* @__PURE__ */ t(
|
|
59
|
+
}) : u, n.state === "enabled" && /* @__PURE__ */ t(V, {
|
|
60
60
|
open: b,
|
|
61
61
|
anchorEl: C,
|
|
62
62
|
onClose: () => {
|
|
@@ -73,41 +73,44 @@ function G({ tableData: o, actions: w, rowActionsState: v }) {
|
|
|
73
73
|
vertical: "top",
|
|
74
74
|
horizontal: "right"
|
|
75
75
|
},
|
|
76
|
-
children:
|
|
76
|
+
children: p ? /* @__PURE__ */ g("div", {
|
|
77
77
|
className: "flex items-center gap-2 p-3 text-delta-700",
|
|
78
78
|
children: [/* @__PURE__ */ t(S, {
|
|
79
79
|
width: 20,
|
|
80
80
|
height: 20
|
|
81
|
-
}), /* @__PURE__ */ t("span", { children:
|
|
82
|
-
}) :
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
81
|
+
}), /* @__PURE__ */ t("span", { children: P })]
|
|
82
|
+
}) : /* @__PURE__ */ t(I, {
|
|
83
|
+
disablePadding: !0,
|
|
84
|
+
children: i.map((e, m) => {
|
|
85
|
+
if (M(e)) {
|
|
86
|
+
const r = e.component(o.row, s);
|
|
87
|
+
return h.isValidElement(r) ? /* @__PURE__ */ t(h.Fragment, { children: r }, m) : null;
|
|
88
|
+
}
|
|
89
|
+
return e.hide ? null : /* @__PURE__ */ t(f, {
|
|
90
|
+
title: e?.tooltipTitle,
|
|
91
|
+
arrow: !0,
|
|
92
|
+
placement: e?.tooltipPlacement ?? "left",
|
|
93
|
+
children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(j, {
|
|
94
|
+
className: e.className,
|
|
95
|
+
disabled: e.disabled,
|
|
96
|
+
onClick: () => {
|
|
97
|
+
e.disabled || e.onClick?.(o.row);
|
|
98
|
+
},
|
|
99
|
+
onMouseDown: (r) => {
|
|
100
|
+
r.stopPropagation(), r.preventDefault();
|
|
101
|
+
},
|
|
102
|
+
onMouseUp: (r) => {
|
|
103
|
+
r.stopPropagation(), r.preventDefault();
|
|
104
|
+
},
|
|
105
|
+
children: e.label
|
|
106
|
+
}) })
|
|
107
|
+
}, m);
|
|
108
|
+
})
|
|
106
109
|
})
|
|
107
110
|
})]
|
|
108
111
|
})
|
|
109
112
|
});
|
|
110
113
|
}
|
|
111
114
|
export {
|
|
112
|
-
|
|
115
|
+
J as RowActionMenu
|
|
113
116
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import c from "../StyledTable.module.js";
|
|
2
2
|
import { StyledTooltip as g } from "../../shared-components/tooltip/index.js";
|
|
3
|
-
import { ChevronDownIcon as
|
|
4
|
-
import { useToggleMenuVisibility as
|
|
5
|
-
import { StyledButton as
|
|
3
|
+
import { ChevronDownIcon as I } from "../../shared-components/ChevronDownIcon.js";
|
|
4
|
+
import { useToggleMenuVisibility as y } from "../../hooks/useToggleMenuVisibility.hook.js";
|
|
5
|
+
import { StyledButton as h } from "../../shared-components/button/StyledButton.js";
|
|
6
6
|
import { ChevronRightIcon as O } from "../../shared-components/ChevronRightIcon.js";
|
|
7
7
|
import { ChevronLeftIcon as S } from "../../shared-components/ChevronLeftIcon.js";
|
|
8
8
|
import { StyledMenuItem as w } from "../../shared-components/menu-item/index.js";
|
|
9
9
|
import { useCallback as v, useMemo as P, useRef as N } from "react";
|
|
10
|
-
import {
|
|
11
|
-
import { Fragment as
|
|
12
|
-
function
|
|
13
|
-
const { anchorEl: s, open: p, handleClose: d, handleOpen: b } =
|
|
10
|
+
import { MenuList as k, Popover as z } from "@mui/material";
|
|
11
|
+
import { Fragment as $, jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
12
|
+
function H({ table: o, locale: C }) {
|
|
13
|
+
const { anchorEl: s, open: p, handleClose: d, handleOpen: b } = y(), u = N(null), n = C === "no", f = P(() => ({
|
|
14
14
|
anchorOrigin: {
|
|
15
15
|
vertical: -5,
|
|
16
16
|
horizontal: "center"
|
|
@@ -32,17 +32,17 @@ function E({ table: o, locale: C }) {
|
|
|
32
32
|
d,
|
|
33
33
|
i
|
|
34
34
|
]);
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ m($, { children: [
|
|
36
36
|
/* @__PURE__ */ e(g, {
|
|
37
37
|
title: n ? "Nåværende side" : "Current Page",
|
|
38
38
|
children: /* @__PURE__ */ e("div", {
|
|
39
39
|
ref: u,
|
|
40
|
-
children: /* @__PURE__ */ h
|
|
40
|
+
children: /* @__PURE__ */ m(h, {
|
|
41
41
|
dataTest: "current-page-button",
|
|
42
42
|
variant: "outlined",
|
|
43
43
|
size: "large",
|
|
44
44
|
onClick: b,
|
|
45
|
-
endIcon: /* @__PURE__ */ e(
|
|
45
|
+
endIcon: /* @__PURE__ */ e(I, {
|
|
46
46
|
className: `${p ? "rotate-180" : "rotate-0"} transition-transform duration-300`,
|
|
47
47
|
height: 24,
|
|
48
48
|
width: 24
|
|
@@ -59,7 +59,7 @@ function E({ table: o, locale: C }) {
|
|
|
59
59
|
})
|
|
60
60
|
})
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */ e(
|
|
62
|
+
/* @__PURE__ */ e(z, {
|
|
63
63
|
open: p,
|
|
64
64
|
anchorEl: s,
|
|
65
65
|
slotProps: { paper: { sx: {
|
|
@@ -70,13 +70,13 @@ function E({ table: o, locale: C }) {
|
|
|
70
70
|
onClose: d,
|
|
71
71
|
anchorOrigin: f.anchorOrigin,
|
|
72
72
|
transformOrigin: f.transformOrigin,
|
|
73
|
-
classes: { paper: "border border-solid border-delta-200
|
|
74
|
-
children: x.map((t) => /* @__PURE__ */ e(w, {
|
|
73
|
+
classes: { paper: "border border-solid border-delta-200" },
|
|
74
|
+
children: /* @__PURE__ */ e(k, { children: x.map((t) => /* @__PURE__ */ e(w, {
|
|
75
75
|
onClick: (r) => {
|
|
76
76
|
r.stopPropagation(), r.preventDefault(), T(t);
|
|
77
77
|
},
|
|
78
78
|
selected: t === l,
|
|
79
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ m("span", {
|
|
80
80
|
className: "text-sm font-normal text-delta-700",
|
|
81
81
|
children: [
|
|
82
82
|
n ? "Side" : "Page",
|
|
@@ -84,11 +84,11 @@ function E({ table: o, locale: C }) {
|
|
|
84
84
|
t
|
|
85
85
|
]
|
|
86
86
|
})
|
|
87
|
-
}, t))
|
|
87
|
+
}, t)) })
|
|
88
88
|
}),
|
|
89
89
|
/* @__PURE__ */ e(g, {
|
|
90
90
|
title: l === 1 ? "" : n ? "Forrige side" : "Previous Page",
|
|
91
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
91
|
+
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(h, {
|
|
92
92
|
dataTest: "prev-page-button",
|
|
93
93
|
variant: "outlined",
|
|
94
94
|
onClick: () => {
|
|
@@ -104,7 +104,7 @@ function E({ table: o, locale: C }) {
|
|
|
104
104
|
}),
|
|
105
105
|
/* @__PURE__ */ e(g, {
|
|
106
106
|
title: l === a ? "" : n ? "Neste side" : "Next Page",
|
|
107
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
107
|
+
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(h, {
|
|
108
108
|
dataTest: "next-page-button",
|
|
109
109
|
variant: "outlined",
|
|
110
110
|
onClick: () => {
|
|
@@ -121,5 +121,5 @@ function E({ table: o, locale: C }) {
|
|
|
121
121
|
] });
|
|
122
122
|
}
|
|
123
123
|
export {
|
|
124
|
-
|
|
124
|
+
H as TablePagination
|
|
125
125
|
};
|
|
@@ -3,17 +3,17 @@ import { useToggleMenuVisibility as O } from "../../hooks/useToggleMenuVisibilit
|
|
|
3
3
|
import { StyledButton as v } from "../../shared-components/button/StyledButton.js";
|
|
4
4
|
import { StyledMenuItem as C } from "../../shared-components/menu-item/index.js";
|
|
5
5
|
import { useCallback as S, useMemo as p } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { Fragment as
|
|
8
|
-
var
|
|
6
|
+
import { MenuList as b, Popover as x } from "@mui/material";
|
|
7
|
+
import { Fragment as y, jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
var M = [
|
|
9
9
|
5,
|
|
10
10
|
10,
|
|
11
11
|
20,
|
|
12
12
|
50,
|
|
13
13
|
100
|
|
14
14
|
];
|
|
15
|
-
function
|
|
16
|
-
const { anchorEl:
|
|
15
|
+
function j({ table: n, locale: d }) {
|
|
16
|
+
const { anchorEl: i, open: l, handleClose: a, handleOpen: h } = O(), r = n.getState().pagination.pageSize, c = d === "no", m = p(() => ({
|
|
17
17
|
anchorOrigin: {
|
|
18
18
|
vertical: -5,
|
|
19
19
|
horizontal: "center"
|
|
@@ -23,17 +23,17 @@ function T({ table: e, locale: d }) {
|
|
|
23
23
|
horizontal: "center"
|
|
24
24
|
}
|
|
25
25
|
}), []), g = p(() => {
|
|
26
|
-
const o = /* @__PURE__ */ new Set([...
|
|
26
|
+
const o = /* @__PURE__ */ new Set([...M, r]);
|
|
27
27
|
return Array.from(o).sort((t, f) => t - f);
|
|
28
28
|
}, [r]), u = S((o) => {
|
|
29
|
-
|
|
30
|
-
}, [a,
|
|
31
|
-
return /* @__PURE__ */ s(
|
|
29
|
+
n.setPageSize(o), a();
|
|
30
|
+
}, [a, n]);
|
|
31
|
+
return /* @__PURE__ */ s(y, { children: [/* @__PURE__ */ s(v, {
|
|
32
32
|
dataTest: "table-rows-count-button",
|
|
33
33
|
variant: "outlined",
|
|
34
34
|
size: "large",
|
|
35
35
|
onClick: h,
|
|
36
|
-
endIcon: /* @__PURE__ */
|
|
36
|
+
endIcon: /* @__PURE__ */ e(w, {
|
|
37
37
|
className: `${l ? "rotate-180" : "rotate-0"} transition-transform duration-300`,
|
|
38
38
|
height: 24,
|
|
39
39
|
width: 24
|
|
@@ -43,19 +43,19 @@ function T({ table: e, locale: d }) {
|
|
|
43
43
|
" ",
|
|
44
44
|
c ? "rader" : "rows"
|
|
45
45
|
]
|
|
46
|
-
}), /* @__PURE__ */
|
|
46
|
+
}), /* @__PURE__ */ e(x, {
|
|
47
47
|
open: l,
|
|
48
|
-
anchorEl:
|
|
48
|
+
anchorEl: i,
|
|
49
49
|
slotProps: { paper: { sx: {
|
|
50
|
-
width:
|
|
50
|
+
width: i ? i.clientWidth : void 0,
|
|
51
51
|
maxHeight: 288,
|
|
52
52
|
overflowY: "auto"
|
|
53
53
|
} } },
|
|
54
54
|
onClose: a,
|
|
55
55
|
anchorOrigin: m.anchorOrigin,
|
|
56
56
|
transformOrigin: m.transformOrigin,
|
|
57
|
-
classes: { paper: "border border-solid border-delta-200
|
|
58
|
-
children: g.map((o) => /* @__PURE__ */
|
|
57
|
+
classes: { paper: "border border-solid border-delta-200" },
|
|
58
|
+
children: /* @__PURE__ */ e(b, { children: g.map((o) => /* @__PURE__ */ e(C, {
|
|
59
59
|
onClick: (t) => {
|
|
60
60
|
t.stopPropagation(), t.preventDefault(), u(o);
|
|
61
61
|
},
|
|
@@ -68,9 +68,9 @@ function T({ table: e, locale: d }) {
|
|
|
68
68
|
c ? "rader" : "rows"
|
|
69
69
|
]
|
|
70
70
|
})
|
|
71
|
-
}, o))
|
|
71
|
+
}, o)) })
|
|
72
72
|
})] });
|
|
73
73
|
}
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
j as TableRowCountSelect
|
|
76
76
|
};
|
|
@@ -2,7 +2,7 @@ import { cn as C } from "../helpers/cn.js";
|
|
|
2
2
|
import e from "./StyledCheckbox.module.js";
|
|
3
3
|
import p, { useEffect as E } from "react";
|
|
4
4
|
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
5
|
-
import { Checkbox as f } from "@base-ui
|
|
5
|
+
import { Checkbox as f } from "@base-ui/react/checkbox";
|
|
6
6
|
var L = (n) => /* @__PURE__ */ k("svg", {
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
8
|
width: "100%",
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { Tooltip as
|
|
1
|
+
import { Tooltip as o } from "@mui/material";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
import p from "@mui/material/Fade";
|
|
4
|
-
var m = (
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var m = (t) => /* @__PURE__ */ r(o, {
|
|
5
|
+
slots: { transition: p },
|
|
6
|
+
slotProps: {
|
|
7
|
+
transition: { timeout: 300 },
|
|
8
|
+
tooltip: { sx: {
|
|
9
|
+
borderRadius: "3px !important",
|
|
10
|
+
"& .MuiTooltip-arrow": { color: "#363E4A !important" },
|
|
11
|
+
color: "white !important",
|
|
12
|
+
boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25) !important",
|
|
13
|
+
display: "flex !important",
|
|
14
|
+
padding: "4px 8px !important",
|
|
15
|
+
alignItems: "center !important",
|
|
16
|
+
fontSize: "12px !important",
|
|
17
|
+
lineHeight: "16px !important",
|
|
18
|
+
letterSpacing: " 0.24px !important",
|
|
19
|
+
bgcolor: "#363E4A !important",
|
|
20
|
+
wordBreak: "break-word !important"
|
|
21
|
+
} }
|
|
22
|
+
},
|
|
7
23
|
arrow: !0,
|
|
8
24
|
placement: "top",
|
|
9
|
-
|
|
10
|
-
borderRadius: "3px !important",
|
|
11
|
-
"& .MuiTooltip-arrow": { color: "#363E4A !important" },
|
|
12
|
-
color: "white !important",
|
|
13
|
-
boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25) !important",
|
|
14
|
-
display: "flex !important",
|
|
15
|
-
padding: "4px 8px !important",
|
|
16
|
-
alignItems: "center !important",
|
|
17
|
-
fontSize: "12px !important",
|
|
18
|
-
lineHeight: "16px !important",
|
|
19
|
-
letterSpacing: " 0.24px !important",
|
|
20
|
-
bgcolor: "#363E4A !important",
|
|
21
|
-
wordBreak: "break-word !important"
|
|
22
|
-
} } },
|
|
23
|
-
...o
|
|
25
|
+
...t
|
|
24
26
|
});
|
|
25
27
|
export {
|
|
26
28
|
m as StyledTooltip
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.25.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.css",
|
|
@@ -72,13 +72,11 @@
|
|
|
72
72
|
"node": ">=24 <25"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@base-ui
|
|
76
|
-
"@base-ui/react": "^1.3.0",
|
|
75
|
+
"@base-ui/react": "^1.5.0",
|
|
77
76
|
"@dnd-kit/core": "^6.1.0",
|
|
78
77
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
79
78
|
"@dnd-kit/sortable": "^8.0.0",
|
|
80
79
|
"@dnd-kit/utilities": "^3.2.2",
|
|
81
|
-
"@fontsource/material-icons": "^5.0.4",
|
|
82
80
|
"@react-input/mask": "^1.2.5",
|
|
83
81
|
"@tanstack/react-table": "^8.21.3",
|
|
84
82
|
"@tanstack/react-virtual": "^3.13.21",
|
|
@@ -88,7 +86,6 @@
|
|
|
88
86
|
"material-ui-popup-state": "^5.3.6",
|
|
89
87
|
"notistack": "^3.0.2",
|
|
90
88
|
"react-day-picker": "^9.14.0",
|
|
91
|
-
"sass": "^1.98.0",
|
|
92
89
|
"tailwind-merge": "^2.5.2"
|
|
93
90
|
},
|
|
94
91
|
"devDependencies": {
|
|
@@ -96,6 +93,7 @@
|
|
|
96
93
|
"@chromatic-com/storybook": "^5.1.1",
|
|
97
94
|
"@emotion/react": "^11.11.1",
|
|
98
95
|
"@emotion/styled": "^11.11.0",
|
|
96
|
+
"@mui/material": "^9.0.1",
|
|
99
97
|
"@eslint/js": "^9.39.2",
|
|
100
98
|
"@storybook/addon-a11y": "10.3.3",
|
|
101
99
|
"@storybook/addon-docs": "10.3.3",
|
|
@@ -125,11 +123,9 @@
|
|
|
125
123
|
"playwright": "^1.57.0",
|
|
126
124
|
"react": "^18.3.1",
|
|
127
125
|
"react-dom": "^18.3.1",
|
|
128
|
-
"
|
|
129
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
126
|
+
"sass": "^1.98.0",
|
|
130
127
|
"storybook": "10.3.3",
|
|
131
128
|
"storybook-addon-pseudo-states": "^10.3.3",
|
|
132
|
-
"storybook-addon-themes": "^6.1.0",
|
|
133
129
|
"tailwind-scrollbar": "^3.1.0",
|
|
134
130
|
"tailwindcss": "^3.3.2",
|
|
135
131
|
"ts-morph": "^27.0.2",
|
|
@@ -144,9 +140,7 @@
|
|
|
144
140
|
"peerDependencies": {
|
|
145
141
|
"@emotion/react": "^11.*",
|
|
146
142
|
"@emotion/styled": "^11.*",
|
|
147
|
-
"@mui/material": "^
|
|
148
|
-
"axios": "^1.15.0",
|
|
149
|
-
"immer": "^9.*",
|
|
143
|
+
"@mui/material": "^9.0.0",
|
|
150
144
|
"react": "^18.0.0 || ^19.0.0",
|
|
151
145
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
152
146
|
},
|