@thebuoyant-tsdev/mui-ts-library 3.33.1 → 3.35.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.
@@ -1,8 +1,8 @@
1
1
  import { Divider as e, IconButton as t, ListItemIcon as n, ListItemText as r, Menu as i, MenuItem as a, Tooltip as o } from "@mui/material";
2
2
  import { useState as s } from "react";
3
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
4
- import d from "@mui/icons-material/Delete";
5
- import f from "@mui/icons-material/Add";
3
+ import c from "@mui/icons-material/Add";
4
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import f from "@mui/icons-material/Delete";
6
6
  import p from "@mui/icons-material/TableChart";
7
7
  //#region src/components/rich-text-editor/RichTextEditorTableMenu.tsx
8
8
  function m({ editor: m, translation: h, disabled: g }) {
@@ -13,10 +13,10 @@ function m({ editor: m, translation: h, disabled: g }) {
13
13
  function S(e) {
14
14
  e(), x();
15
15
  }
16
- return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(o, {
16
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(o, {
17
17
  title: h.table,
18
18
  arrow: !0,
19
- children: /* @__PURE__ */ l("span", { children: /* @__PURE__ */ l(t, {
19
+ children: /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(t, {
20
20
  size: "small",
21
21
  onMouseDown: (e) => e.preventDefault(),
22
22
  onClick: (e) => v(e.currentTarget),
@@ -25,67 +25,67 @@ function m({ editor: m, translation: h, disabled: g }) {
25
25
  sx: { borderRadius: 1 },
26
26
  "aria-label": h.table,
27
27
  "aria-pressed": b,
28
- children: /* @__PURE__ */ l(p, { fontSize: "small" })
28
+ children: /* @__PURE__ */ u(p, { fontSize: "small" })
29
29
  }) })
30
- }), /* @__PURE__ */ u(i, {
30
+ }), /* @__PURE__ */ d(i, {
31
31
  anchorEl: _,
32
32
  open: !!_,
33
33
  onClose: x,
34
34
  slotProps: { paper: { sx: { minWidth: 220 } } },
35
35
  children: [
36
- /* @__PURE__ */ u(a, {
36
+ /* @__PURE__ */ d(a, {
37
37
  onClick: () => S(() => m?.chain().focus().insertTable({
38
38
  rows: 3,
39
39
  cols: 3,
40
40
  withHeaderRow: !0
41
41
  }).run()),
42
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(p, { fontSize: "small" }) }), /* @__PURE__ */ l(r, { children: h.insertTable })]
42
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(p, { fontSize: "small" }) }), /* @__PURE__ */ u(r, { children: h.insertTable })]
43
43
  }),
44
- b && /* @__PURE__ */ l(e, {}),
45
- b && /* @__PURE__ */ u(a, {
44
+ b && /* @__PURE__ */ u(e, {}),
45
+ b && /* @__PURE__ */ d(a, {
46
46
  onClick: () => S(() => m?.chain().focus().addRowBefore().run()),
47
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(f, { fontSize: "small" }) }), /* @__PURE__ */ l(r, { children: h.addRowBefore })]
47
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(c, { fontSize: "small" }) }), /* @__PURE__ */ u(r, { children: h.addRowBefore })]
48
48
  }),
49
- b && /* @__PURE__ */ u(a, {
49
+ b && /* @__PURE__ */ d(a, {
50
50
  onClick: () => S(() => m?.chain().focus().addRowAfter().run()),
51
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(f, { fontSize: "small" }) }), /* @__PURE__ */ l(r, { children: h.addRowAfter })]
51
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(c, { fontSize: "small" }) }), /* @__PURE__ */ u(r, { children: h.addRowAfter })]
52
52
  }),
53
- b && /* @__PURE__ */ u(a, {
53
+ b && /* @__PURE__ */ d(a, {
54
54
  onClick: () => S(() => m?.chain().focus().deleteRow().run()),
55
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(d, {
55
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(f, {
56
56
  fontSize: "small",
57
57
  color: "error"
58
- }) }), /* @__PURE__ */ l(r, {
58
+ }) }), /* @__PURE__ */ u(r, {
59
59
  sx: { color: "error.main" },
60
60
  children: h.deleteRow
61
61
  })]
62
62
  }),
63
- b && /* @__PURE__ */ l(e, {}),
64
- b && /* @__PURE__ */ u(a, {
63
+ b && /* @__PURE__ */ u(e, {}),
64
+ b && /* @__PURE__ */ d(a, {
65
65
  onClick: () => S(() => m?.chain().focus().addColumnBefore().run()),
66
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(f, { fontSize: "small" }) }), /* @__PURE__ */ l(r, { children: h.addColumnBefore })]
66
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(c, { fontSize: "small" }) }), /* @__PURE__ */ u(r, { children: h.addColumnBefore })]
67
67
  }),
68
- b && /* @__PURE__ */ u(a, {
68
+ b && /* @__PURE__ */ d(a, {
69
69
  onClick: () => S(() => m?.chain().focus().addColumnAfter().run()),
70
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(f, { fontSize: "small" }) }), /* @__PURE__ */ l(r, { children: h.addColumnAfter })]
70
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(c, { fontSize: "small" }) }), /* @__PURE__ */ u(r, { children: h.addColumnAfter })]
71
71
  }),
72
- b && /* @__PURE__ */ u(a, {
72
+ b && /* @__PURE__ */ d(a, {
73
73
  onClick: () => S(() => m?.chain().focus().deleteColumn().run()),
74
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(d, {
74
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(f, {
75
75
  fontSize: "small",
76
76
  color: "error"
77
- }) }), /* @__PURE__ */ l(r, {
77
+ }) }), /* @__PURE__ */ u(r, {
78
78
  sx: { color: "error.main" },
79
79
  children: h.deleteColumn
80
80
  })]
81
81
  }),
82
- b && /* @__PURE__ */ l(e, {}),
83
- b && /* @__PURE__ */ u(a, {
82
+ b && /* @__PURE__ */ u(e, {}),
83
+ b && /* @__PURE__ */ d(a, {
84
84
  onClick: () => S(() => m?.chain().focus().deleteTable().run()),
85
- children: [/* @__PURE__ */ l(n, { children: /* @__PURE__ */ l(d, {
85
+ children: [/* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(f, {
86
86
  fontSize: "small",
87
87
  color: "error"
88
- }) }), /* @__PURE__ */ l(r, {
88
+ }) }), /* @__PURE__ */ u(r, {
89
89
  sx: { color: "error.main" },
90
90
  children: h.deleteTable
91
91
  })]
@@ -2,8 +2,8 @@ import { tagSelectionClasses as e } from "./tagSelectionClasses.js";
2
2
  import { Autocomplete as t, Box as n, Chip as r, IconButton as i, Stack as a, Switch as ee, TextField as o, Tooltip as s, Typography as c } from "@mui/material";
3
3
  import { useState as l } from "react";
4
4
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import p from "@mui/icons-material/Check";
6
- import m from "@mui/icons-material/Close";
5
+ import p from "@mui/icons-material/Close";
6
+ import m from "@mui/icons-material/Check";
7
7
  //#region src/components/tag-selection/TagSelectionAutocomplete.tsx
8
8
  var te = [
9
9
  "default",
@@ -191,13 +191,13 @@ function x({ availableTags: x, searchValue: S, translation: C, onSearchChange: w
191
191
  onClick: Z,
192
192
  disabled: q,
193
193
  "aria-label": C.confirmCreateLabel,
194
- children: /* @__PURE__ */ d(p, { fontSize: "small" })
194
+ children: /* @__PURE__ */ d(m, { fontSize: "small" })
195
195
  }), /* @__PURE__ */ d(i, {
196
196
  size: "small",
197
197
  onMouseDown: $,
198
198
  onClick: Q,
199
199
  "aria-label": C.cancelCreateLabel,
200
- children: /* @__PURE__ */ d(m, { fontSize: "small" })
200
+ children: /* @__PURE__ */ d(p, { fontSize: "small" })
201
201
  })] }), e.slotProps?.input?.endAdornment] })
202
202
  }
203
203
  }