@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.esm.js CHANGED
@@ -56968,7 +56968,7 @@ function NotificationsTab(_ref4) {
56968
56968
  return /*#__PURE__*/jsxs("div", {
56969
56969
  className: "flex flex-col h-full",
56970
56970
  children: [/*#__PURE__*/jsxs("div", {
56971
- className: "flex flex-col gap-2 px-2 py-2 flex-shrink-0 border-b border-white/10",
56971
+ className: "flex flex-col gap-2 px-2 py-2 flex-shrink-0",
56972
56972
  children: [/*#__PURE__*/jsx(SearchInput, {
56973
56973
  value: searchQuery,
56974
56974
  onChange: setSearchQuery,
@@ -57000,7 +57000,7 @@ function NotificationsTab(_ref4) {
57000
57000
  })]
57001
57001
  })]
57002
57002
  })]
57003
- }), /*#__PURE__*/jsx("div", {
57003
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
57004
57004
  className: "flex-1 overflow-y-auto px-2 py-2 space-y-3",
57005
57005
  children: filtered.map(function (wi) {
57006
57006
  return /*#__PURE__*/jsxs("div", {
@@ -57017,28 +57017,33 @@ function NotificationsTab(_ref4) {
57017
57017
  className: "text-[10px] opacity-40",
57018
57018
  children: wi["package"]
57019
57019
  })]
57020
- }), /*#__PURE__*/jsx("div", {
57021
- className: "flex flex-col pl-2 border-l border-white/10",
57022
- children: wi.notifications.map(function (notif) {
57023
- return /*#__PURE__*/jsxs("div", {
57024
- className: "flex flex-row items-center justify-between gap-3 py-2 px-2 -mx-2 rounded hover:bg-gray-800 transition-colors",
57025
- children: [/*#__PURE__*/jsxs("div", {
57026
- className: "flex flex-col",
57027
- children: [/*#__PURE__*/jsx("span", {
57028
- className: "text-xs",
57029
- children: notif.displayName
57030
- }), notif.description && /*#__PURE__*/jsx("span", {
57031
- className: "text-[10px] opacity-50",
57032
- children: notif.description
57020
+ }), /*#__PURE__*/jsxs("div", {
57021
+ className: "flex flex-row gap-2",
57022
+ children: [/*#__PURE__*/jsx(Divider, {
57023
+ orientation: "vertical"
57024
+ }), /*#__PURE__*/jsx("div", {
57025
+ className: "flex flex-col flex-1",
57026
+ children: wi.notifications.map(function (notif) {
57027
+ return /*#__PURE__*/jsxs("div", {
57028
+ className: "flex flex-row items-center justify-between gap-3 py-2 px-2 -mx-2 rounded hover:bg-gray-800 transition-colors",
57029
+ children: [/*#__PURE__*/jsxs("div", {
57030
+ className: "flex flex-col",
57031
+ children: [/*#__PURE__*/jsx("span", {
57032
+ className: "text-xs",
57033
+ children: notif.displayName
57034
+ }), notif.description && /*#__PURE__*/jsx("span", {
57035
+ className: "text-[10px] opacity-50",
57036
+ children: notif.description
57037
+ })]
57038
+ }), /*#__PURE__*/jsx(Switch, {
57039
+ checked: isEnabled(wi.uuid, notif.key, notif.defaultEnabled),
57040
+ onChange: function onChange(value) {
57041
+ return setOne(wi.uuid, notif.key, value);
57042
+ }
57033
57043
  })]
57034
- }), /*#__PURE__*/jsx(Switch, {
57035
- checked: isEnabled(wi.uuid, notif.key, notif.defaultEnabled),
57036
- onChange: function onChange(value) {
57037
- return setOne(wi.uuid, notif.key, value);
57038
- }
57039
- })]
57040
- }, notif.key);
57041
- })
57044
+ }, notif.key);
57045
+ })
57046
+ })]
57042
57047
  })]
57043
57048
  }, wi.uuid);
57044
57049
  })
@@ -57090,9 +57095,9 @@ function ProvidersTab(_ref5) {
57090
57095
  children: [/*#__PURE__*/jsxs("div", {
57091
57096
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57092
57097
  children: [/*#__PURE__*/jsx("div", {
57093
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57098
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57094
57099
  children: "Provider Types"
57095
- }), /*#__PURE__*/jsx("div", {
57100
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
57096
57101
  className: "overflow-y-auto flex-1",
57097
57102
  children: typeEntries.map(function (_ref6) {
57098
57103
  var _ref7 = _slicedToArray(_ref6, 2),
@@ -57131,7 +57136,7 @@ function ProvidersTab(_ref5) {
57131
57136
  className: "flex-1 min-w-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57132
57137
  children: selectedType ? /*#__PURE__*/jsxs(Fragment, {
57133
57138
  children: [/*#__PURE__*/jsxs("div", {
57134
- className: "px-4 py-3 border-b border-white/10 flex-shrink-0",
57139
+ className: "px-4 py-3 flex-shrink-0",
57135
57140
  children: [/*#__PURE__*/jsxs("div", {
57136
57141
  className: "text-sm font-semibold",
57137
57142
  children: [selectedType, " ", /*#__PURE__*/jsx("span", {
@@ -57142,7 +57147,7 @@ function ProvidersTab(_ref5) {
57142
57147
  className: "text-xs opacity-60 mt-1",
57143
57148
  children: "Apply one provider to every widget of this type, or adjust per-widget below."
57144
57149
  })]
57145
- }), /*#__PURE__*/jsxs("div", {
57150
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsxs("div", {
57146
57151
  className: "flex-1 overflow-y-auto p-4 space-y-4",
57147
57152
  children: [/*#__PURE__*/jsxs("div", {
57148
57153
  className: "flex items-center gap-3",
@@ -57388,9 +57393,9 @@ function ListenersTab(_ref0) {
57388
57393
  children: [/*#__PURE__*/jsxs("div", {
57389
57394
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57390
57395
  children: [/*#__PURE__*/jsx("div", {
57391
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57396
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57392
57397
  children: "Widgets"
57393
- }), /*#__PURE__*/jsx("div", {
57398
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
57394
57399
  className: "overflow-y-auto flex-1",
57395
57400
  children: receivers.map(function (r) {
57396
57401
  var isActive = r.key === selectedReceiverKey;
@@ -57467,9 +57472,9 @@ function HandlersColumn(_ref10) {
57467
57472
  return /*#__PURE__*/jsxs("div", {
57468
57473
  className: "w-56 flex-shrink-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57469
57474
  children: [/*#__PURE__*/jsx("div", {
57470
- className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider border-b border-white/10",
57475
+ className: "px-3 py-2 text-xs font-semibold opacity-50 uppercase tracking-wider",
57471
57476
  children: "Event Handlers"
57472
- }), /*#__PURE__*/jsx("div", {
57477
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
57473
57478
  className: "overflow-y-auto flex-1",
57474
57479
  children: receiver.eventHandlers.length === 0 ? /*#__PURE__*/jsx("div", {
57475
57480
  className: "text-xs opacity-50 text-center py-6 px-3",
@@ -57582,7 +57587,7 @@ function EventsColumn(_ref11) {
57582
57587
  return /*#__PURE__*/jsxs("div", {
57583
57588
  className: "flex-1 min-w-0 bg-white/5 border border-white/10 rounded-lg overflow-hidden flex flex-col",
57584
57589
  children: [/*#__PURE__*/jsxs("div", {
57585
- className: "flex-shrink-0 px-4 py-2 border-b border-white/10 text-xs opacity-60",
57590
+ className: "flex-shrink-0 px-4 py-2 text-xs opacity-60",
57586
57591
  children: ["Check an event to fire ", /*#__PURE__*/jsx("code", {
57587
57592
  className: "text-xs",
57588
57593
  children: handlerName
@@ -57590,7 +57595,7 @@ function EventsColumn(_ref11) {
57590
57595
  className: "font-medium",
57591
57596
  children: receiver.label
57592
57597
  }), "."]
57593
- }), /*#__PURE__*/jsx("div", {
57598
+ }), /*#__PURE__*/jsx(Divider, {}), /*#__PURE__*/jsx("div", {
57594
57599
  className: "flex-1 overflow-y-auto p-4 space-y-5",
57595
57600
  children: emittersForList.length === 0 ? /*#__PURE__*/jsx("div", {
57596
57601
  className: "text-sm opacity-60",