@trops/dash-core 0.1.566 → 0.1.567

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
@@ -59997,10 +59997,7 @@ function ListenersTab(_ref0) {
59997
59997
  className: "flex flex-col gap-3 h-full min-h-0",
59998
59998
  children: /*#__PURE__*/jsxs("div", {
59999
59999
  className: "flex flex-row gap-3 flex-1 min-h-0",
60000
- children: [/*#__PURE__*/jsxs(Card2, {
60001
- padding: "",
60002
- shadow: "",
60003
- rounded: "rounded-lg",
60000
+ children: [/*#__PURE__*/jsxs("div", {
60004
60001
  className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
60005
60002
  children: [/*#__PURE__*/jsx("div", {
60006
60003
  className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
@@ -60045,10 +60042,7 @@ function ListenersTab(_ref0) {
60045
60042
  onAdd: onAdd,
60046
60043
  onRemove: onRemove
60047
60044
  })]
60048
- }) : /*#__PURE__*/jsx(Card2, {
60049
- padding: "",
60050
- shadow: "",
60051
- rounded: "rounded-lg",
60045
+ }) : /*#__PURE__*/jsx("div", {
60052
60046
  className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
60053
60047
  children: "Pick a widget on the left to wire its handlers."
60054
60048
  })]
@@ -60083,45 +60077,47 @@ function HandlersColumn(_ref10) {
60083
60077
  }
60084
60078
  return m;
60085
60079
  }, [myWiring]);
60086
- return /*#__PURE__*/jsxs(Card2, {
60087
- padding: "",
60088
- shadow: "",
60089
- rounded: "rounded-lg",
60090
- className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
60091
- children: [/*#__PURE__*/jsx("div", {
60092
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
60093
- children: "Event Handlers"
60094
- }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
60095
- className: "overflow-y-auto flex-1",
60096
- children: receiver.eventHandlers.length === 0 ? /*#__PURE__*/jsx("div", {
60097
- className: "text-xs opacity-50 text-center py-6 px-3",
60098
- children: "This widget declares no event handlers."
60099
- }) : receiver.eventHandlers.map(function (h) {
60100
- var isActive = h === selectedHandler;
60101
- var count = countsByHandler.get(h) || 0;
60102
- return /*#__PURE__*/jsxs("button", {
60103
- type: "button",
60104
- onClick: function onClick() {
60105
- return onSelectHandler(h);
60106
- },
60107
- className: "w-full text-left px-3 py-2 text-sm flex items-center justify-between gap-2 border-l-2 ".concat(isActive ? "bg-indigo-900/30 border-indigo-400" : "border-transparent hover:bg-white/5"),
60108
- children: [/*#__PURE__*/jsxs("span", {
60109
- className: "flex items-center gap-2 min-w-0",
60110
- children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
60111
- icon: "bolt",
60112
- className: "h-3 w-3 opacity-60 flex-shrink-0"
60113
- }), /*#__PURE__*/jsx("code", {
60114
- className: "truncate",
60115
- children: h
60080
+ return (
60081
+ /*#__PURE__*/
60082
+ // Plain <div> wrapper — Card2 reads as washed-out against the
60083
+ // modal's dark chrome. See ListenersTab + ProvidersTab fix.
60084
+ jsxs("div", {
60085
+ className: "w-56 flex-shrink-0 overflow-hidden flex flex-col",
60086
+ children: [/*#__PURE__*/jsx("div", {
60087
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
60088
+ children: "Event Handlers"
60089
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
60090
+ className: "overflow-y-auto flex-1",
60091
+ children: receiver.eventHandlers.length === 0 ? /*#__PURE__*/jsx("div", {
60092
+ className: "text-xs opacity-50 text-center py-6 px-3",
60093
+ children: "This widget declares no event handlers."
60094
+ }) : receiver.eventHandlers.map(function (h) {
60095
+ var isActive = h === selectedHandler;
60096
+ var count = countsByHandler.get(h) || 0;
60097
+ return /*#__PURE__*/jsxs("button", {
60098
+ type: "button",
60099
+ onClick: function onClick() {
60100
+ return onSelectHandler(h);
60101
+ },
60102
+ className: "w-full text-left px-3 py-2 text-sm flex items-center justify-between gap-2 border-l-2 ".concat(isActive ? "bg-indigo-900/30 border-indigo-400" : "border-transparent hover:bg-white/5"),
60103
+ children: [/*#__PURE__*/jsxs("span", {
60104
+ className: "flex items-center gap-2 min-w-0",
60105
+ children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
60106
+ icon: "bolt",
60107
+ className: "h-3 w-3 opacity-60 flex-shrink-0"
60108
+ }), /*#__PURE__*/jsx("code", {
60109
+ className: "truncate",
60110
+ children: h
60111
+ })]
60112
+ }), /*#__PURE__*/jsx("span", {
60113
+ className: "text-xs opacity-60 flex-shrink-0",
60114
+ children: count
60116
60115
  })]
60117
- }), /*#__PURE__*/jsx("span", {
60118
- className: "text-xs opacity-60 flex-shrink-0",
60119
- children: count
60120
- })]
60121
- }, h);
60122
- })
60123
- })]
60124
- });
60116
+ }, h);
60117
+ })
60118
+ })]
60119
+ })
60120
+ );
60125
60121
  }
60126
60122
 
60127
60123
  /**
@@ -60172,10 +60168,7 @@ function EventsColumn(_ref11) {
60172
60168
  return w.isOrphan;
60173
60169
  });
60174
60170
  if (!handlerName) {
60175
- return /*#__PURE__*/jsx(Card2, {
60176
- padding: "",
60177
- shadow: "",
60178
- rounded: "rounded-lg",
60171
+ return /*#__PURE__*/jsx("div", {
60179
60172
  className: "flex-1 min-w-0 flex items-center justify-center text-sm opacity-60",
60180
60173
  children: "Select a handler to view available events."
60181
60174
  });
@@ -60204,63 +60197,64 @@ function EventsColumn(_ref11) {
60204
60197
  var emittersForList = emitters.filter(function (e) {
60205
60198
  return !(e.component === receiver.component && String(e.itemId) === String(receiver.itemId));
60206
60199
  });
60207
- return /*#__PURE__*/jsxs(Card2, {
60208
- padding: "",
60209
- shadow: "",
60210
- rounded: "rounded-lg",
60211
- className: "flex-1 min-w-0 overflow-hidden flex flex-col",
60212
- children: [/*#__PURE__*/jsxs("div", {
60213
- className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
60214
- children: ["Check an event to fire ", /*#__PURE__*/jsx("code", {
60215
- className: "text-xs",
60216
- children: handlerName
60217
- }), " on", " ", /*#__PURE__*/jsx("span", {
60218
- className: "font-medium",
60219
- children: receiver.label
60220
- }), "."]
60221
- }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
60222
- className: "flex-1 overflow-y-auto p-4 space-y-5",
60223
- children: emittersForList.length === 0 ? /*#__PURE__*/jsx("div", {
60224
- className: "text-sm opacity-60",
60225
- children: "No other widgets in this dashboard emit events."
60226
- }) : emittersForList.map(function (e) {
60227
- return /*#__PURE__*/jsxs("div", {
60228
- className: "space-y-1",
60229
- children: [/*#__PURE__*/jsxs("div", {
60230
- className: "flex flex-col gap-0.5 mb-1",
60231
- children: [/*#__PURE__*/jsx("div", {
60232
- className: "text-sm font-semibold",
60233
- children: e.label
60234
- }), (e.widgetRef || e.component) && /*#__PURE__*/jsx(Caption, {
60235
- block: true,
60236
- className: "font-mono truncate",
60237
- children: (e.widgetRef || e.component) + (e.itemId != null ? "[".concat(e.itemId, "]") : "")
60238
- })]
60239
- }), e.events.map(function (eventName) {
60240
- var key = "".concat(e.component, "|").concat(e.itemId, "|").concat(eventName);
60241
- var selected = wiredKeys.has(key);
60242
- return /*#__PURE__*/jsxs("label", {
60243
- className: "flex items-center gap-3 px-3 py-1.5 rounded-md cursor-pointer text-sm ".concat(selected ? "opacity-100" : "opacity-70 hover:opacity-100"),
60244
- children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
60245
- icon: selected ? "square-check" : "square",
60246
- className: "h-4 w-4 flex-shrink-0",
60247
- onClick: function onClick(ev) {
60248
- ev.preventDefault();
60249
- toggle({
60250
- sourceComponent: e.component,
60251
- sourceItemId: e.itemId,
60252
- eventName: eventName
60253
- });
60254
- }
60255
- }), /*#__PURE__*/jsx("span", {
60256
- children: eventName
60200
+ return (
60201
+ /*#__PURE__*/
60202
+ // Plain <div> — Card2's washed-out fill clashes with the modal chrome.
60203
+ jsxs("div", {
60204
+ className: "flex-1 min-w-0 overflow-hidden flex flex-col",
60205
+ children: [/*#__PURE__*/jsxs("div", {
60206
+ className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
60207
+ children: ["Check an event to fire ", /*#__PURE__*/jsx("code", {
60208
+ className: "text-xs",
60209
+ children: handlerName
60210
+ }), " on", " ", /*#__PURE__*/jsx("span", {
60211
+ className: "font-medium",
60212
+ children: receiver.label
60213
+ }), "."]
60214
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
60215
+ className: "flex-1 overflow-y-auto p-4 space-y-5",
60216
+ children: emittersForList.length === 0 ? /*#__PURE__*/jsx("div", {
60217
+ className: "text-sm opacity-60",
60218
+ children: "No other widgets in this dashboard emit events."
60219
+ }) : emittersForList.map(function (e) {
60220
+ return /*#__PURE__*/jsxs("div", {
60221
+ className: "space-y-1",
60222
+ children: [/*#__PURE__*/jsxs("div", {
60223
+ className: "flex flex-col gap-0.5 mb-1",
60224
+ children: [/*#__PURE__*/jsx("div", {
60225
+ className: "text-sm font-semibold",
60226
+ children: e.label
60227
+ }), (e.widgetRef || e.component) && /*#__PURE__*/jsx(Caption, {
60228
+ block: true,
60229
+ className: "font-mono truncate",
60230
+ children: (e.widgetRef || e.component) + (e.itemId != null ? "[".concat(e.itemId, "]") : "")
60257
60231
  })]
60258
- }, key);
60259
- })]
60260
- }, e.key || "".concat(e.component, "|").concat(e.itemId));
60261
- })
60262
- })]
60263
- });
60232
+ }), e.events.map(function (eventName) {
60233
+ var key = "".concat(e.component, "|").concat(e.itemId, "|").concat(eventName);
60234
+ var selected = wiredKeys.has(key);
60235
+ return /*#__PURE__*/jsxs("label", {
60236
+ className: "flex items-center gap-3 px-3 py-1.5 rounded-md cursor-pointer text-sm ".concat(selected ? "opacity-100" : "opacity-70 hover:opacity-100"),
60237
+ children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
60238
+ icon: selected ? "square-check" : "square",
60239
+ className: "h-4 w-4 flex-shrink-0",
60240
+ onClick: function onClick(ev) {
60241
+ ev.preventDefault();
60242
+ toggle({
60243
+ sourceComponent: e.component,
60244
+ sourceItemId: e.itemId,
60245
+ eventName: eventName
60246
+ });
60247
+ }
60248
+ }), /*#__PURE__*/jsx("span", {
60249
+ children: eventName
60250
+ })]
60251
+ }, key);
60252
+ })]
60253
+ }, e.key || "".concat(e.component, "|").concat(e.itemId));
60254
+ })
60255
+ })]
60256
+ })
60257
+ );
60264
60258
  }
60265
60259
 
60266
60260
  function ownKeys$9(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; }