@trops/dash-core 0.1.543 → 0.1.544

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.js CHANGED
@@ -56986,7 +56986,7 @@ function NotificationsTab(_ref4) {
56986
56986
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
56987
56987
  className: "flex flex-col h-full",
56988
56988
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
56989
- className: "flex flex-col gap-2 px-2 py-2 flex-shrink-0 border-b border-white/10",
56989
+ className: "flex flex-col gap-2 px-2 py-2 flex-shrink-0",
56990
56990
  children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.SearchInput, {
56991
56991
  value: searchQuery,
56992
56992
  onChange: setSearchQuery,
@@ -57018,7 +57018,7 @@ function NotificationsTab(_ref4) {
57018
57018
  })]
57019
57019
  })]
57020
57020
  })]
57021
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57021
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
57022
57022
  className: "flex-1 overflow-y-auto px-2 py-2 space-y-3",
57023
57023
  children: filtered.map(function (wi) {
57024
57024
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -57035,28 +57035,33 @@ function NotificationsTab(_ref4) {
57035
57035
  className: "text-[10px] opacity-40",
57036
57036
  children: wi["package"]
57037
57037
  })]
57038
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57039
- className: "flex flex-col pl-2 border-l border-white/10",
57040
- children: wi.notifications.map(function (notif) {
57041
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
57042
- className: "flex flex-row items-center justify-between gap-3 py-2 px-2 -mx-2 rounded hover:bg-gray-800 transition-colors",
57043
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57044
- className: "flex flex-col",
57045
- children: [/*#__PURE__*/jsxRuntime.jsx("span", {
57046
- className: "text-xs",
57047
- children: notif.displayName
57048
- }), notif.description && /*#__PURE__*/jsxRuntime.jsx("span", {
57049
- className: "text-[10px] opacity-50",
57050
- children: notif.description
57038
+ }), /*#__PURE__*/jsxRuntime.jsxs("div", {
57039
+ className: "flex flex-row gap-2",
57040
+ children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {
57041
+ orientation: "vertical"
57042
+ }), /*#__PURE__*/jsxRuntime.jsx("div", {
57043
+ className: "flex flex-col flex-1",
57044
+ children: wi.notifications.map(function (notif) {
57045
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
57046
+ className: "flex flex-row items-center justify-between gap-3 py-2 px-2 -mx-2 rounded hover:bg-gray-800 transition-colors",
57047
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57048
+ className: "flex flex-col",
57049
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
57050
+ className: "text-xs",
57051
+ children: notif.displayName
57052
+ }), notif.description && /*#__PURE__*/jsxRuntime.jsx("span", {
57053
+ className: "text-[10px] opacity-50",
57054
+ children: notif.description
57055
+ })]
57056
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Switch, {
57057
+ checked: isEnabled(wi.uuid, notif.key, notif.defaultEnabled),
57058
+ onChange: function onChange(value) {
57059
+ return setOne(wi.uuid, notif.key, value);
57060
+ }
57051
57061
  })]
57052
- }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Switch, {
57053
- checked: isEnabled(wi.uuid, notif.key, notif.defaultEnabled),
57054
- onChange: function onChange(value) {
57055
- return setOne(wi.uuid, notif.key, value);
57056
- }
57057
- })]
57058
- }, notif.key);
57059
- })
57062
+ }, notif.key);
57063
+ })
57064
+ })]
57060
57065
  })]
57061
57066
  }, wi.uuid);
57062
57067
  })
@@ -57108,9 +57113,9 @@ function ProvidersTab(_ref5) {
57108
57113
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57109
57114
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57110
57115
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
57111
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57116
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57112
57117
  children: "Provider Types"
57113
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57118
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
57114
57119
  className: "overflow-y-auto flex-1",
57115
57120
  children: typeEntries.map(function (_ref6) {
57116
57121
  var _ref7 = _slicedToArray(_ref6, 2),
@@ -57149,7 +57154,7 @@ function ProvidersTab(_ref5) {
57149
57154
  className: "flex-1 min-w-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57150
57155
  children: selectedType ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
57151
57156
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57152
- className: "px-4 py-3 border-b border-white/10 flex-shrink-0",
57157
+ className: "px-4 py-3 flex-shrink-0",
57153
57158
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57154
57159
  className: "text-sm font-semibold",
57155
57160
  children: [selectedType, " ", /*#__PURE__*/jsxRuntime.jsx("span", {
@@ -57160,7 +57165,7 @@ function ProvidersTab(_ref5) {
57160
57165
  className: "text-xs opacity-60 mt-1",
57161
57166
  children: "Apply one provider to every widget of this type, or adjust per-widget below."
57162
57167
  })]
57163
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
57168
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
57164
57169
  className: "flex-1 overflow-y-auto p-4 space-y-4",
57165
57170
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57166
57171
  className: "flex items-center gap-3",
@@ -57406,9 +57411,9 @@ function ListenersTab(_ref0) {
57406
57411
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57407
57412
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57408
57413
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
57409
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57414
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57410
57415
  children: "Widgets"
57411
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57416
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
57412
57417
  className: "overflow-y-auto flex-1",
57413
57418
  children: receivers.map(function (r) {
57414
57419
  var isActive = r.key === selectedReceiverKey;
@@ -57485,9 +57490,9 @@ function HandlersColumn(_ref10) {
57485
57490
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
57486
57491
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57487
57492
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
57488
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57493
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57489
57494
  children: "Event Handlers"
57490
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57495
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
57491
57496
  className: "overflow-y-auto flex-1",
57492
57497
  children: receiver.eventHandlers.length === 0 ? /*#__PURE__*/jsxRuntime.jsx("div", {
57493
57498
  className: "text-xs opacity-50 text-center py-6 px-3",
@@ -57600,7 +57605,7 @@ function EventsColumn(_ref11) {
57600
57605
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
57601
57606
  className: "flex-1 min-w-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57602
57607
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
57603
- className: "flex-shrink-0 px-4 py-2 border-b border-white/10 text-xs opacity-60",
57608
+ className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
57604
57609
  children: ["Check an event to fire ", /*#__PURE__*/jsxRuntime.jsx("code", {
57605
57610
  className: "text-xs",
57606
57611
  children: handlerName
@@ -57608,7 +57613,7 @@ function EventsColumn(_ref11) {
57608
57613
  className: "font-medium",
57609
57614
  children: receiver.label
57610
57615
  }), "."]
57611
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
57616
+ }), /*#__PURE__*/jsxRuntime.jsx(DashReact.Divider, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
57612
57617
  className: "flex-1 overflow-y-auto p-4 space-y-5",
57613
57618
  children: emittersForList.length === 0 ? /*#__PURE__*/jsxRuntime.jsx("div", {
57614
57619
  className: "text-sm opacity-60",