@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.esm.js
CHANGED
|
@@ -38235,12 +38235,9 @@ var ChooserCard = function ChooserCard(_ref) {
|
|
|
38235
38235
|
var ThemeNewChooser = function ThemeNewChooser(_ref2) {
|
|
38236
38236
|
var onSearchThemes = _ref2.onSearchThemes,
|
|
38237
38237
|
onSelectMethod = _ref2.onSelectMethod;
|
|
38238
|
-
return /*#__PURE__*/
|
|
38238
|
+
return /*#__PURE__*/jsx("div", {
|
|
38239
38239
|
className: "flex flex-col gap-6 p-6 overflow-y-auto flex-1 min-h-0",
|
|
38240
|
-
children:
|
|
38241
|
-
className: "text-sm font-semibold opacity-50",
|
|
38242
|
-
children: "Add a Theme"
|
|
38243
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
38240
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
38244
38241
|
className: "grid grid-cols-2 gap-3",
|
|
38245
38242
|
children: [/*#__PURE__*/jsx(ChooserCard, {
|
|
38246
38243
|
icon: "magnifying-glass",
|
|
@@ -38276,7 +38273,7 @@ var ThemeNewChooser = function ThemeNewChooser(_ref2) {
|
|
|
38276
38273
|
return onSelectMethod("from-url");
|
|
38277
38274
|
}
|
|
38278
38275
|
})]
|
|
38279
|
-
})
|
|
38276
|
+
})
|
|
38280
38277
|
});
|
|
38281
38278
|
};
|
|
38282
38279
|
|
|
@@ -47263,14 +47260,6 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
47263
47260
|
}));
|
|
47264
47261
|
return _handleUrlMapToTheme.apply(this, arguments);
|
|
47265
47262
|
}
|
|
47266
|
-
function handleUrlThemeGenerated(theme) {
|
|
47267
|
-
if (!dashApi || !appId) return;
|
|
47268
|
-
var key = theme.id || "theme-".concat(Date.now());
|
|
47269
|
-
var finalTheme = _objectSpread$t(_objectSpread$t({}, theme), {}, {
|
|
47270
|
-
id: key
|
|
47271
|
-
});
|
|
47272
|
-
saveAndSelectTheme(key, finalTheme);
|
|
47273
|
-
}
|
|
47274
47263
|
var listContent = /*#__PURE__*/jsxs("div", {
|
|
47275
47264
|
className: "flex flex-col h-full",
|
|
47276
47265
|
children: [/*#__PURE__*/jsx("div", {
|
|
@@ -47401,7 +47390,7 @@ var ThemesSection = function ThemesSection(_ref2) {
|
|
|
47401
47390
|
children: /*#__PURE__*/jsx(ThemeFromUrlPane, {
|
|
47402
47391
|
onExtract: handleUrlExtract,
|
|
47403
47392
|
onMapToTheme: handleUrlMapToTheme,
|
|
47404
|
-
onGenerate:
|
|
47393
|
+
onGenerate: setWizardTheme
|
|
47405
47394
|
})
|
|
47406
47395
|
});
|
|
47407
47396
|
} else if (generateMode === GENERATE_MODES.COLOR) {
|