@trops/dash-core 0.1.31 → 0.1.33
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 +17 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7903,7 +7903,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
7903
7903
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7904
7904
|
className: "flex-1 overflow-y-auto min-h-0 p-4 w-full",
|
|
7905
7905
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7906
|
-
className: "mb-
|
|
7906
|
+
className: "mb-2",
|
|
7907
7907
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7908
7908
|
className: "flex items-center space-x-2 mb-1",
|
|
7909
7909
|
children: [/*#__PURE__*/jsxRuntime.jsx(WidgetIcon, {
|
|
@@ -7927,15 +7927,15 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
7927
7927
|
})]
|
|
7928
7928
|
})]
|
|
7929
7929
|
}), /*#__PURE__*/jsxRuntime.jsx("hr", {
|
|
7930
|
-
className: "my-
|
|
7930
|
+
className: "my-2 ".concat(currentTheme["border-primary-medium"])
|
|
7931
7931
|
}), selectedWidget.packageDescription && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7932
|
-
className: "mb-
|
|
7932
|
+
className: "mb-2",
|
|
7933
7933
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
7934
7934
|
className: "text-sm",
|
|
7935
7935
|
children: selectedWidget.packageDescription
|
|
7936
7936
|
})
|
|
7937
7937
|
}), selectedWidget.packageTags && selectedWidget.packageTags.length > 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7938
|
-
className: "mb-
|
|
7938
|
+
className: "mb-2 flex flex-wrap gap-1",
|
|
7939
7939
|
children: selectedWidget.packageTags.map(function (tag) {
|
|
7940
7940
|
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
7941
7941
|
className: "text-xs px-2 py-0.5 rounded ".concat(currentTheme["bg-primary-medium"], " text-gray-400"),
|
|
@@ -7943,15 +7943,16 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
7943
7943
|
}, tag);
|
|
7944
7944
|
})
|
|
7945
7945
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7946
|
-
className: "mb-
|
|
7946
|
+
className: "mb-2",
|
|
7947
7947
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
7948
|
-
|
|
7948
|
+
padding: false,
|
|
7949
|
+
className: "text-xs font-semibold text-gray-400 mb-1.5",
|
|
7949
7950
|
children: "INCLUDED WIDGETS"
|
|
7950
7951
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7951
7952
|
className: "space-y-2",
|
|
7952
7953
|
children: (selectedWidget.packageWidgets || []).map(function (w, idx) {
|
|
7953
7954
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7954
|
-
className: "p-
|
|
7955
|
+
className: "p-3 rounded ".concat(currentTheme["bg-primary-medium"]),
|
|
7955
7956
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7956
7957
|
className: "text-sm font-medium text-white",
|
|
7957
7958
|
children: w.displayName || w.name
|
|
@@ -7971,11 +7972,13 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
7971
7972
|
})
|
|
7972
7973
|
})]
|
|
7973
7974
|
}), selectedWidget.repository && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7974
|
-
className: "mb-
|
|
7975
|
+
className: "mb-2",
|
|
7975
7976
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
7977
|
+
padding: false,
|
|
7976
7978
|
className: "text-xs font-semibold text-gray-400 mb-1",
|
|
7977
7979
|
children: "REPOSITORY"
|
|
7978
7980
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
7981
|
+
padding: false,
|
|
7979
7982
|
className: "text-sm text-blue-400 break-all",
|
|
7980
7983
|
children: selectedWidget.repository
|
|
7981
7984
|
})]
|
|
@@ -8114,10 +8117,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
8114
8117
|
padding: true,
|
|
8115
8118
|
height: "h-full",
|
|
8116
8119
|
children: [recentWidgets.length > 0 && selectedSource === "Installed" && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8117
|
-
className: "mb-3",
|
|
8120
|
+
className: "mb-3 space-y-1",
|
|
8118
8121
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8119
|
-
className: "px-
|
|
8122
|
+
className: "px-3 py-1 mb-1 border-b ".concat(currentTheme["border-primary-medium"]),
|
|
8120
8123
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
8124
|
+
padding: false,
|
|
8121
8125
|
className: "text-xs font-semibold text-gray-400",
|
|
8122
8126
|
children: "RECENT"
|
|
8123
8127
|
})
|
|
@@ -8148,7 +8152,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
8148
8152
|
})]
|
|
8149
8153
|
}), installedGroupNames.map(function (groupName) {
|
|
8150
8154
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8151
|
-
className: "mb-1",
|
|
8155
|
+
className: "mb-1 space-y-1",
|
|
8152
8156
|
children: [/*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
8153
8157
|
type: "button",
|
|
8154
8158
|
onClick: function onClick() {
|
|
@@ -8202,6 +8206,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
8202
8206
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
8203
8207
|
className: "px-4 py-2 border-t ".concat(currentTheme["border-primary-medium"], " ").concat(currentTheme["bg-primary-medium"]),
|
|
8204
8208
|
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
8209
|
+
padding: false,
|
|
8205
8210
|
className: "text-sm text-gray-400",
|
|
8206
8211
|
children: selectedSource === "Discover" ? "".concat(registryPackages.length, " package").concat(registryPackages.length !== 1 ? "s" : "", " \xB7 ").concat(filteredWidgets.length, " widget").concat(filteredWidgets.length !== 1 ? "s" : "") : "".concat(filteredWidgets.length, " of ").concat(widgets.length, " widget").concat(widgets.length !== 1 ? "s" : "")
|
|
8207
8212
|
})
|
|
@@ -8307,6 +8312,7 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
8307
8312
|
}), selectedWidget.userConfig && Object.keys(selectedWidget.userConfig).length > 0 && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8308
8313
|
className: "mb-3",
|
|
8309
8314
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Paragraph, {
|
|
8315
|
+
padding: false,
|
|
8310
8316
|
className: "text-xs font-semibold text-gray-400 mb-2",
|
|
8311
8317
|
children: "CONFIGURATION"
|
|
8312
8318
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|