@trops/dash-core 0.1.583 → 0.1.585
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.esm.js +4 -15
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38253,12 +38253,9 @@ var ChooserCard = function ChooserCard(_ref) {
|
|
|
38253
38253
|
var ThemeNewChooser = function ThemeNewChooser(_ref2) {
|
|
38254
38254
|
var onSearchThemes = _ref2.onSearchThemes,
|
|
38255
38255
|
onSelectMethod = _ref2.onSelectMethod;
|
|
38256
|
-
return /*#__PURE__*/jsxRuntime.
|
|
38256
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
38257
38257
|
className: "flex flex-col gap-6 p-6 overflow-y-auto flex-1 min-h-0",
|
|
38258
|
-
children:
|
|
38259
|
-
className: "text-sm font-semibold opacity-50",
|
|
38260
|
-
children: "Add a Theme"
|
|
38261
|
-
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
38258
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
38262
38259
|
className: "grid grid-cols-2 gap-3",
|
|
38263
38260
|
children: [/*#__PURE__*/jsxRuntime.jsx(ChooserCard, {
|
|
38264
38261
|
icon: "magnifying-glass",
|
|
@@ -38294,7 +38291,7 @@ var ThemeNewChooser = function ThemeNewChooser(_ref2) {
|
|
|
38294
38291
|
return onSelectMethod("from-url");
|
|
38295
38292
|
}
|
|
38296
38293
|
})]
|
|
38297
|
-
})
|
|
38294
|
+
})
|
|
38298
38295
|
});
|
|
38299
38296
|
};
|
|
38300
38297
|
|
|
@@ -47281,14 +47278,6 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
47281
47278
|
}));
|
|
47282
47279
|
return _handleUrlMapToTheme.apply(this, arguments);
|
|
47283
47280
|
}
|
|
47284
|
-
function handleUrlThemeGenerated(theme) {
|
|
47285
|
-
if (!dashApi || !appId) return;
|
|
47286
|
-
var key = theme.id || "theme-".concat(Date.now());
|
|
47287
|
-
var finalTheme = _objectSpread$t(_objectSpread$t({}, theme), {}, {
|
|
47288
|
-
id: key
|
|
47289
|
-
});
|
|
47290
|
-
saveAndSelectTheme(key, finalTheme);
|
|
47291
|
-
}
|
|
47292
47281
|
var listContent = /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
47293
47282
|
className: "flex flex-col h-full",
|
|
47294
47283
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -47419,7 +47408,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
47419
47408
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.ThemeFromUrlPane, {
|
|
47420
47409
|
onExtract: handleUrlExtract,
|
|
47421
47410
|
onMapToTheme: handleUrlMapToTheme,
|
|
47422
|
-
onGenerate:
|
|
47411
|
+
onGenerate: setWizardTheme
|
|
47423
47412
|
})
|
|
47424
47413
|
});
|
|
47425
47414
|
} else if (generateMode === GENERATE_MODES.COLOR) {
|