@thebuoyant-tsdev/mui-ts-library 3.25.0 → 3.26.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/color-picker/ColorPicker.js +1 -1
- package/dist/components/color-picker/ColorPicker.types.d.ts +13 -0
- package/dist/components/color-picker/ColorPicker.types.js +2 -2
- package/dist/components/color-picker/PopoverColorPicker.d.ts +2 -0
- package/dist/components/color-picker/PopoverColorPicker.js +81 -0
- package/dist/components/color-picker/popoverColorPickerClasses.d.ts +15 -0
- package/dist/components/color-picker/popoverColorPickerClasses.js +7 -0
- package/dist/components/json-editor/JsonEditorContent.js +45 -45
- package/dist/components/json-editor/JsonEditorToolbar.js +27 -27
- package/dist/components/sql-editor/SqlEditorContent.js +38 -38
- package/dist/components/sql-editor/SqlEditorToolbar.js +27 -27
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +29 -27
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { ToolbarButton as e } from "../shared/ToolbarButton.js";
|
|
|
2
2
|
import { SqlEditorHistoryMenu as t } from "./SqlEditorHistoryMenu.js";
|
|
3
3
|
import { useState as n } from "react";
|
|
4
4
|
import { Box as r, Divider as i } from "@mui/material";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { redo as c, undo as l } from "@codemirror/commands";
|
|
7
7
|
import u from "@mui/icons-material/ContentCopy";
|
|
8
8
|
import d from "@mui/icons-material/Check";
|
|
9
9
|
import f from "@mui/icons-material/Delete";
|
|
@@ -38,11 +38,11 @@ function y({ editorView: y, toolbarConfig: b, translation: x, dialect: S, disabl
|
|
|
38
38
|
}
|
|
39
39
|
function N() {
|
|
40
40
|
let e = y;
|
|
41
|
-
e && (
|
|
41
|
+
e && (l(e), e.focus());
|
|
42
42
|
}
|
|
43
43
|
function P() {
|
|
44
44
|
let e = y;
|
|
45
|
-
e && (
|
|
45
|
+
e && (c(e), e.focus());
|
|
46
46
|
}
|
|
47
47
|
function F() {
|
|
48
48
|
let e = y;
|
|
@@ -63,7 +63,7 @@ function y({ editorView: y, toolbarConfig: b, translation: x, dialect: S, disabl
|
|
|
63
63
|
!e || !w || w(e.state.doc.toString());
|
|
64
64
|
}
|
|
65
65
|
let L = b.showFormat, R = b.showCopy || b.showClear, z = b.showUndoRedo, B = b.showExecute && !!w, V = b.showHistory && !!w && !!E && !!D;
|
|
66
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ s(r, {
|
|
67
67
|
sx: {
|
|
68
68
|
display: "flex",
|
|
69
69
|
flexWrap: "wrap",
|
|
@@ -75,87 +75,87 @@ function y({ editorView: y, toolbarConfig: b, translation: x, dialect: S, disabl
|
|
|
75
75
|
role: "toolbar",
|
|
76
76
|
"aria-label": "SQL editor actions",
|
|
77
77
|
children: [
|
|
78
|
-
L && /* @__PURE__ */
|
|
78
|
+
L && /* @__PURE__ */ o(r, {
|
|
79
79
|
sx: {
|
|
80
80
|
display: "flex",
|
|
81
81
|
gap: .25
|
|
82
82
|
},
|
|
83
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ o(e, {
|
|
84
84
|
label: x.format,
|
|
85
|
-
icon: /* @__PURE__ */
|
|
85
|
+
icon: /* @__PURE__ */ o(h, { fontSize: "small" }),
|
|
86
86
|
onClick: F,
|
|
87
87
|
disabled: A
|
|
88
88
|
})
|
|
89
89
|
}),
|
|
90
|
-
L && (R || z) && /* @__PURE__ */
|
|
90
|
+
L && (R || z) && /* @__PURE__ */ o(i, {
|
|
91
91
|
orientation: "vertical",
|
|
92
92
|
flexItem: !0,
|
|
93
93
|
sx: { mx: .5 }
|
|
94
94
|
}),
|
|
95
|
-
R && /* @__PURE__ */
|
|
95
|
+
R && /* @__PURE__ */ s(r, {
|
|
96
96
|
sx: {
|
|
97
97
|
display: "flex",
|
|
98
98
|
gap: .25
|
|
99
99
|
},
|
|
100
|
-
children: [b.showCopy && /* @__PURE__ */
|
|
100
|
+
children: [b.showCopy && /* @__PURE__ */ o(e, {
|
|
101
101
|
label: O ? x.copySuccess : x.copy,
|
|
102
|
-
icon: O ? /* @__PURE__ */
|
|
102
|
+
icon: O ? /* @__PURE__ */ o(d, {
|
|
103
103
|
fontSize: "small",
|
|
104
104
|
color: "success"
|
|
105
|
-
}) : /* @__PURE__ */
|
|
105
|
+
}) : /* @__PURE__ */ o(u, { fontSize: "small" }),
|
|
106
106
|
onClick: j,
|
|
107
107
|
disabled: A
|
|
108
|
-
}), b.showClear && /* @__PURE__ */
|
|
108
|
+
}), b.showClear && /* @__PURE__ */ o(e, {
|
|
109
109
|
label: x.clear,
|
|
110
|
-
icon: /* @__PURE__ */
|
|
110
|
+
icon: /* @__PURE__ */ o(f, { fontSize: "small" }),
|
|
111
111
|
onClick: M,
|
|
112
112
|
disabled: A
|
|
113
113
|
})]
|
|
114
114
|
}),
|
|
115
|
-
R && z && /* @__PURE__ */
|
|
115
|
+
R && z && /* @__PURE__ */ o(i, {
|
|
116
116
|
orientation: "vertical",
|
|
117
117
|
flexItem: !0,
|
|
118
118
|
sx: { mx: .5 }
|
|
119
119
|
}),
|
|
120
|
-
z && /* @__PURE__ */
|
|
120
|
+
z && /* @__PURE__ */ s(r, {
|
|
121
121
|
sx: {
|
|
122
122
|
display: "flex",
|
|
123
123
|
gap: .25
|
|
124
124
|
},
|
|
125
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ o(e, {
|
|
126
126
|
label: x.undo,
|
|
127
|
-
icon: /* @__PURE__ */
|
|
127
|
+
icon: /* @__PURE__ */ o(p, { fontSize: "small" }),
|
|
128
128
|
onClick: N,
|
|
129
129
|
disabled: A
|
|
130
|
-
}), /* @__PURE__ */
|
|
130
|
+
}), /* @__PURE__ */ o(e, {
|
|
131
131
|
label: x.redo,
|
|
132
|
-
icon: /* @__PURE__ */
|
|
132
|
+
icon: /* @__PURE__ */ o(m, { fontSize: "small" }),
|
|
133
133
|
onClick: P,
|
|
134
134
|
disabled: A
|
|
135
135
|
})]
|
|
136
136
|
}),
|
|
137
|
-
V && /* @__PURE__ */
|
|
137
|
+
V && /* @__PURE__ */ s(a, { children: [(R || z) && /* @__PURE__ */ o(i, {
|
|
138
138
|
orientation: "vertical",
|
|
139
139
|
flexItem: !0,
|
|
140
140
|
sx: { mx: .5 }
|
|
141
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ o(t, {
|
|
142
142
|
history: T,
|
|
143
143
|
onSelect: E,
|
|
144
144
|
onClear: D,
|
|
145
145
|
translation: x,
|
|
146
146
|
disabled: C
|
|
147
147
|
})] }),
|
|
148
|
-
B && /* @__PURE__ */
|
|
148
|
+
B && /* @__PURE__ */ s(a, { children: [(R || z || V) && /* @__PURE__ */ o(i, {
|
|
149
149
|
orientation: "vertical",
|
|
150
150
|
flexItem: !0,
|
|
151
151
|
sx: { mx: .5 }
|
|
152
|
-
}), /* @__PURE__ */
|
|
152
|
+
}), /* @__PURE__ */ o(e, {
|
|
153
153
|
label: x.execute,
|
|
154
|
-
icon: /* @__PURE__ */
|
|
154
|
+
icon: /* @__PURE__ */ o(g, { fontSize: "small" }),
|
|
155
155
|
onClick: I,
|
|
156
156
|
disabled: A
|
|
157
157
|
})] }),
|
|
158
|
-
!L && !R && !z && !V && !B && /* @__PURE__ */
|
|
158
|
+
!L && !R && !z && !V && !B && /* @__PURE__ */ o(r, { sx: { height: 32 } })
|
|
159
159
|
]
|
|
160
160
|
});
|
|
161
161
|
}
|