@trops/dash-react 1.0.6 → 1.0.8
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/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1640,7 +1640,7 @@ var MenuItem3 = function MenuItem3(_ref3) {
|
|
|
1640
1640
|
selected: selected,
|
|
1641
1641
|
grow: grow
|
|
1642
1642
|
});
|
|
1643
|
-
var baseStyles = "".concat(onClick && "cursor-pointer", " px-
|
|
1643
|
+
var baseStyles = "".concat(onClick && "cursor-pointer", " px-3 py-1.5 rounded-md items-center space-x-2 ").concat(border === true && "border-2");
|
|
1644
1644
|
var baseTextStyles = "text-sm font-normal";
|
|
1645
1645
|
var uuid = getUUID$1(id, "menu-item");
|
|
1646
1646
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -4215,7 +4215,7 @@ function CodeEditorInline(_ref) {
|
|
|
4215
4215
|
}
|
|
4216
4216
|
|
|
4217
4217
|
function _typeof$g(o) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$g(o); }
|
|
4218
|
-
var _excluded$a = ["code", "onChange", "uniqueKey", "language", "placeholder", "scrollable", "padding", "themeName", "readOnly", "minimapEnabled", "wordWrap"];
|
|
4218
|
+
var _excluded$a = ["code", "onChange", "onMount", "uniqueKey", "language", "placeholder", "scrollable", "padding", "themeName", "readOnly", "minimapEnabled", "wordWrap"];
|
|
4219
4219
|
function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4220
4220
|
function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty$c(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4221
4221
|
function _defineProperty$c(e, r, t) { return (r = _toPropertyKey$f(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -4250,6 +4250,7 @@ for (var staticMethod in OriginalResizeObserver) {
|
|
|
4250
4250
|
function CodeEditorVS(_ref) {
|
|
4251
4251
|
var code = _ref.code,
|
|
4252
4252
|
onChange = _ref.onChange,
|
|
4253
|
+
onMount = _ref.onMount,
|
|
4253
4254
|
_ref$uniqueKey = _ref.uniqueKey,
|
|
4254
4255
|
uniqueKey = _ref$uniqueKey === void 0 ? "12345" : _ref$uniqueKey,
|
|
4255
4256
|
_ref$language = _ref.language,
|
|
@@ -4275,6 +4276,7 @@ function CodeEditorVS(_ref) {
|
|
|
4275
4276
|
}));
|
|
4276
4277
|
function handleEditorDidMount(editor, monaco) {
|
|
4277
4278
|
editor.focus();
|
|
4279
|
+
if (onMount) onMount(editor, monaco);
|
|
4278
4280
|
if (monaco) {
|
|
4279
4281
|
try {
|
|
4280
4282
|
import("monaco-themes/themes/".concat(themeName, ".json")).then(function (data) {
|