@trops/dash-core 0.1.104 → 0.1.105

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 CHANGED
@@ -31077,13 +31077,16 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31077
31077
  children: authorName || "—"
31078
31078
  })]
31079
31079
  }), preview && preview.componentNames && preview.componentNames.length > 0 && /*#__PURE__*/jsxs("div", {
31080
- className: "bg-white/5 border border-white/10 rounded-lg p-3 text-sm",
31081
- children: [/*#__PURE__*/jsxs("span", {
31082
- className: "opacity-50",
31083
- children: ["This dashboard contains ", preview.componentNames.length, " ", "widget", preview.componentNames.length !== 1 ? "s" : "", ":", " "]
31084
- }), /*#__PURE__*/jsx("span", {
31085
- className: "opacity-80",
31086
- children: preview.componentNames.join(", ")
31080
+ children: [/*#__PURE__*/jsx("label", {
31081
+ className: "block text-sm font-medium opacity-70 mb-2",
31082
+ children: "Widgets Included"
31083
+ }), /*#__PURE__*/jsx("div", {
31084
+ className: "flex flex-wrap gap-1.5",
31085
+ children: preview.componentNames.map(function (name) {
31086
+ return /*#__PURE__*/jsx(Tag3, {
31087
+ text: name
31088
+ }, name);
31089
+ })
31087
31090
  })]
31088
31091
  }), /*#__PURE__*/jsx(TextArea, {
31089
31092
  label: "Description",
@@ -31175,8 +31178,13 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31175
31178
  children: [/*#__PURE__*/jsx("span", {
31176
31179
  className: "opacity-50 w-20 flex-shrink-0",
31177
31180
  children: "Widgets"
31178
- }), /*#__PURE__*/jsx("span", {
31179
- children: preview.componentNames.join(", ")
31181
+ }), /*#__PURE__*/jsx("div", {
31182
+ className: "flex flex-wrap gap-1",
31183
+ children: preview.componentNames.map(function (name) {
31184
+ return /*#__PURE__*/jsx(Tag3, {
31185
+ text: name
31186
+ }, name);
31187
+ })
31180
31188
  })]
31181
31189
  })]
31182
31190
  })]
@@ -31248,12 +31256,22 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
31248
31256
  className: "text-xs text-amber-300/90",
31249
31257
  children: "The following widgets are not currently on the registry. This may be intentional if they are private. Dashboards referencing these widgets can only be installed by users who already have them."
31250
31258
  })]
31251
- }), /*#__PURE__*/jsx("ul", {
31252
- className: "text-xs opacity-60 pl-5 list-disc space-y-0.5",
31259
+ }), /*#__PURE__*/jsx("div", {
31260
+ className: "space-y-2 mt-1",
31253
31261
  children: result.warnings.map(function (w) {
31254
- return /*#__PURE__*/jsx("li", {
31255
- children: w
31256
- }, w);
31262
+ return /*#__PURE__*/jsxs("div", {
31263
+ children: [/*#__PURE__*/jsx("div", {
31264
+ className: "text-xs font-semibold opacity-60",
31265
+ children: w["package"]
31266
+ }), /*#__PURE__*/jsx("div", {
31267
+ className: "flex flex-wrap gap-1 mt-1",
31268
+ children: w.widgets.map(function (name) {
31269
+ return /*#__PURE__*/jsx(Tag3, {
31270
+ text: name
31271
+ }, name);
31272
+ })
31273
+ })]
31274
+ }, w["package"]);
31257
31275
  })
31258
31276
  })]
31259
31277
  }), result.registryCheckFailed && /*#__PURE__*/jsx("div", {