@trops/dash-core 0.1.544 → 0.1.545
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 +18 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
3
3
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
4
4
|
import * as DashReact from '@trops/dash-react';
|
|
5
|
-
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, Tag3, Card2, Card3, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, SelectInput, CodeEditorVS, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, ButtonIcon2, DropdownPanel, MenuItem2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, MenuItem, Tag2, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, ThemeFromUrlPane, TextArea, CodeEditorInline, Icon2, AlgoliaSearchBox, CommandPalette, useSidebar, Divider, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
5
|
+
import { isObject, ThemeContext, deepCopy, MainSection, getUUID, getStylesForItem, themeObjects, Heading, SearchInput, ButtonIcon, SubHeading3, InputText, Button, FontAwesomeIcon, Tag, Modal, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, Tag3, Card2, Card3, Heading3, MenuItem3, FormLabel, SelectMenu, Switch, SelectInput, CodeEditorVS, SettingsModal, SubHeading2, tailwindHeightFractions, Menu3, Panel3, ButtonIcon2, DropdownPanel, MenuItem2, DragComponent, ConfirmationModal, DropComponent, getStyleName, capitalizeFirstLetter, colorTypes, getCSSStyleForClassname, Panel2, Heading2, SubHeading, Paragraph2, Paragraph3, MenuItem, Tag2, ButtonIcon3, DashPanel, colorNames, shades, themeVariants, Tabs3, DataList, Checkbox, StatCard, Card, Tabs, Accordion, Alert, Toast, ProgressBar, Toggle, Breadcrumbs, Tabs2, Accordion2, Alert2, Toast2, ProgressBar2, Toggle2, Breadcrumbs2, Accordion3, Alert3, Toast3, ProgressBar3, Toggle3, Breadcrumbs3, ThemeFromUrlPane, TextArea, CodeEditorInline, Icon2, AlgoliaSearchBox, CommandPalette, useSidebar, Divider, Caption2, Caption, Caption3, EmptyState, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
|
|
6
6
|
export * from '@trops/dash-react';
|
|
7
7
|
export { ThemeContext } from '@trops/dash-react';
|
|
8
8
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
@@ -56751,8 +56751,8 @@ var DashboardConfigModal = function DashboardConfigModal(_ref) {
|
|
|
56751
56751
|
return setActiveTab("dependencies");
|
|
56752
56752
|
},
|
|
56753
56753
|
className: "px-3 py-1.5 text-sm font-medium -mb-px border-b-2 ".concat(activeTab === "dependencies" ? "border-indigo-400" : "border-transparent opacity-60 hover:opacity-100"),
|
|
56754
|
-
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxs(
|
|
56755
|
-
className: "ml-2
|
|
56754
|
+
children: ["Dependencies", dependencyCount > 0 && /*#__PURE__*/jsxs(Caption2, {
|
|
56755
|
+
className: "ml-2",
|
|
56756
56756
|
children: ["(", dependencyCount, ")"]
|
|
56757
56757
|
}), hasUnknownDependency && /*#__PURE__*/jsx("span", {
|
|
56758
56758
|
className: "ml-1 inline-block h-1.5 w-1.5 rounded-full bg-amber-400 align-middle"
|
|
@@ -56975,7 +56975,7 @@ function NotificationsTab(_ref4) {
|
|
|
56975
56975
|
placeholder: "Search widgets...",
|
|
56976
56976
|
inputClassName: "py-1.5 text-xs"
|
|
56977
56977
|
}), /*#__PURE__*/jsxs("div", {
|
|
56978
|
-
className: "flex flex-row items-center justify-between text-
|
|
56978
|
+
className: "flex flex-row items-center justify-between text-xs",
|
|
56979
56979
|
children: [/*#__PURE__*/jsxs("span", {
|
|
56980
56980
|
className: "opacity-50",
|
|
56981
56981
|
children: [filtered.length, " of ", widgetInstances.length, " widget", widgetInstances.length === 1 ? "" : "s"]
|
|
@@ -57010,11 +57010,10 @@ function NotificationsTab(_ref4) {
|
|
|
57010
57010
|
children: [/*#__PURE__*/jsx("span", {
|
|
57011
57011
|
className: "text-sm font-medium",
|
|
57012
57012
|
children: wi.title
|
|
57013
|
-
}), /*#__PURE__*/jsxs(
|
|
57014
|
-
className: "
|
|
57013
|
+
}), /*#__PURE__*/jsxs(Caption, {
|
|
57014
|
+
className: "font-mono",
|
|
57015
57015
|
children: [wi.component, wi.itemId != null ? " \xB7 #".concat(wi.itemId) : ""]
|
|
57016
|
-
}), /*#__PURE__*/jsx(
|
|
57017
|
-
className: "text-[10px] opacity-40",
|
|
57016
|
+
}), /*#__PURE__*/jsx(Caption3, {
|
|
57018
57017
|
children: wi["package"]
|
|
57019
57018
|
})]
|
|
57020
57019
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -57031,8 +57030,7 @@ function NotificationsTab(_ref4) {
|
|
|
57031
57030
|
children: [/*#__PURE__*/jsx("span", {
|
|
57032
57031
|
className: "text-xs",
|
|
57033
57032
|
children: notif.displayName
|
|
57034
|
-
}), notif.description && /*#__PURE__*/jsx(
|
|
57035
|
-
className: "text-[10px] opacity-50",
|
|
57033
|
+
}), notif.description && /*#__PURE__*/jsx(Caption, {
|
|
57036
57034
|
children: notif.description
|
|
57037
57035
|
})]
|
|
57038
57036
|
}), /*#__PURE__*/jsx(Switch, {
|
|
@@ -57196,12 +57194,13 @@ function ProvidersTab(_ref5) {
|
|
|
57196
57194
|
"aria-label": "required",
|
|
57197
57195
|
children: "*"
|
|
57198
57196
|
})]
|
|
57199
|
-
}), (row.widgetRef || row.component) && /*#__PURE__*/jsx(
|
|
57200
|
-
|
|
57197
|
+
}), (row.widgetRef || row.component) && /*#__PURE__*/jsx(Caption, {
|
|
57198
|
+
block: true,
|
|
57199
|
+
className: "font-mono truncate mt-0.5",
|
|
57201
57200
|
title: row.widgetRef || row.component,
|
|
57202
57201
|
children: row.widgetRef || row.component
|
|
57203
57202
|
}), /*#__PURE__*/jsxs("div", {
|
|
57204
|
-
className: "flex items-center gap-1.5 mt-1 text-
|
|
57203
|
+
className: "flex items-center gap-1.5 mt-1 text-xs",
|
|
57205
57204
|
children: [/*#__PURE__*/jsx("span", {
|
|
57206
57205
|
className: "uppercase tracking-wide px-1.5 py-0.5 rounded font-semibold ".concat(needsAttention ? "bg-red-600 text-white" : isRequired ? "bg-indigo-800 text-indigo-100" : "bg-gray-700 text-gray-300"),
|
|
57207
57206
|
children: isRequired ? "required" : "optional"
|
|
@@ -57408,8 +57407,9 @@ function ListenersTab(_ref0) {
|
|
|
57408
57407
|
children: [/*#__PURE__*/jsx("div", {
|
|
57409
57408
|
className: "text-sm font-medium truncate",
|
|
57410
57409
|
children: r.label
|
|
57411
|
-
}), r.widgetRef && /*#__PURE__*/jsx(
|
|
57412
|
-
|
|
57410
|
+
}), r.widgetRef && /*#__PURE__*/jsx(Caption, {
|
|
57411
|
+
block: true,
|
|
57412
|
+
className: "font-mono truncate mt-0.5",
|
|
57413
57413
|
title: r.widgetRef,
|
|
57414
57414
|
children: r.widgetRef
|
|
57415
57415
|
})]
|
|
@@ -57608,8 +57608,9 @@ function EventsColumn(_ref11) {
|
|
|
57608
57608
|
children: [/*#__PURE__*/jsx("div", {
|
|
57609
57609
|
className: "text-sm font-semibold",
|
|
57610
57610
|
children: e.label
|
|
57611
|
-
}), (e.widgetRef || e.component) && /*#__PURE__*/jsx(
|
|
57612
|
-
|
|
57611
|
+
}), (e.widgetRef || e.component) && /*#__PURE__*/jsx(Caption, {
|
|
57612
|
+
block: true,
|
|
57613
|
+
className: "font-mono truncate",
|
|
57613
57614
|
children: (e.widgetRef || e.component) + (e.itemId != null ? "[".concat(e.itemId, "]") : "")
|
|
57614
57615
|
})]
|
|
57615
57616
|
}), e.events.map(function (eventName) {
|