@trops/dash-core 0.1.830 → 0.1.831

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
@@ -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 as isObject$1, ThemeContext, FontAwesomeIcon, getStylesForItem, themeObjects, Modal, deepCopy, MainSection, getUUID, SearchInput, ButtonIcon, SubHeading3, InputText, Button, Tag, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, AlertBanner, Heading, Heading3, MenuItem3, SelectMenu, tailwindHeightFractions, CodeEditorVS, FormLabel, Switch, Menu3, Panel3, useStatusTokens, StatusBadge as StatusBadge$1, ActionMenu, Caption2, ConfirmationModal, DropComponent, DragComponent, getStyleName, capitalizeFirstLetter, isHexColor as isHexColor$1, deriveShades, colorTypes, TAILWIND_PALETTE, Toggle, normalizeHex as normalizeHex$1, contrastRatio, Caption, getColorFamilies, getCuratedColorGrid, DashPanel, hexToRgb as hexToRgb$1, themeVariants, SubHeading, Heading2, SubHeading2, Paragraph2, Paragraph3, ButtonIcon2, ButtonIcon3, Tag2, Tag3, Alert, Alert2, Alert3, Toast, Toast2, Toast3, ProgressBar, ProgressBar2, ProgressBar3, MenuItem, Breadcrumbs, Breadcrumbs2, Breadcrumbs3, MenuItem2, Caption3, Code, Code2, Code3, Divider, Divider2, Divider3, DashPanel2, DashPanel3, Tabs, Tabs2, Tabs3, Accordion, Accordion2, Accordion3, Toggle2, Toggle3, TextArea, Checkbox, Slider, RadioGroup, SelectInput, Skeleton, StatCard, DataList, EmptyState, Card, Card2, Card3, Panel2, ThemeFromUrlPane, SettingsModal, ListRow, AlgoliaSearchBox, ChatMessage, DropdownPanel, SectionLabel, CodeEditorInline, Icon2, SegmentedControl, ChatComposer, useResizableWidth, ResizeHandle, PanelHeader, ChoiceMenu, CommandPalette, useSidebar, FilterMenu, ChatToolCall, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
5
+ import { isObject as isObject$1, ThemeContext, FontAwesomeIcon, getStylesForItem, themeObjects, Modal, deepCopy, MainSection, getUUID, SearchInput, ButtonIcon, SubHeading3, InputText, Button, Tag, Button3, Button2, Paragraph, Sidebar, Panel, Stepper, AlertBanner, Heading, Heading3, MenuItem3, SelectMenu, tailwindHeightFractions, CodeEditorVS, FormLabel, DASH_ROLES, Switch, Menu3, Panel3, useStatusTokens, StatusBadge as StatusBadge$1, ActionMenu, Caption2, ConfirmationModal, DropComponent, DragComponent, getStyleName, capitalizeFirstLetter, isHexColor as isHexColor$1, deriveShades, colorTypes, TAILWIND_PALETTE, Toggle, normalizeHex as normalizeHex$1, contrastRatio, Caption, getColorFamilies, getCuratedColorGrid, DashPanel, hexToRgb as hexToRgb$1, themeVariants, SubHeading, Heading2, SubHeading2, Paragraph2, Paragraph3, ButtonIcon2, ButtonIcon3, Tag2, Tag3, Alert, Alert2, Alert3, Toast, Toast2, Toast3, ProgressBar, ProgressBar2, ProgressBar3, MenuItem, Breadcrumbs, Breadcrumbs2, Breadcrumbs3, MenuItem2, Caption3, Code, Code2, Code3, Divider, Divider2, Divider3, DashPanel2, DashPanel3, Tabs, Tabs2, Tabs3, Accordion, Accordion2, Accordion3, Toggle2, Toggle3, TextArea, Checkbox, Slider, RadioGroup, SelectInput, Skeleton, StatCard, DataList, EmptyState, Card, Card2, Card3, Panel2, ThemeFromUrlPane, SettingsModal, ListRow, AlgoliaSearchBox, ChatMessage, DropdownPanel, SectionLabel, CodeEditorInline, Icon2, SegmentedControl, ChatComposer, useResizableWidth, ResizeHandle, PanelHeader, ChoiceMenu, CommandPalette, useSidebar, FilterMenu, ChatToolCall, Navbar, withRouter, Menu as Menu$1 } from '@trops/dash-react';
6
6
  export * from '@trops/dash-react';
7
7
  export { FontAwesomeIcon, ThemeContext } from '@trops/dash-react';
8
8
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
@@ -13074,13 +13074,16 @@ function useConfigTokens() {
13074
13074
  var _ref = useContext(ThemeContext) || {},
13075
13075
  _ref$currentTheme = _ref.currentTheme,
13076
13076
  currentTheme = _ref$currentTheme === void 0 ? {} : _ref$currentTheme;
13077
+ var key = function key(role) {
13078
+ return currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme[DASH_ROLES[role].key];
13079
+ };
13077
13080
  return {
13078
- muted: currentTheme["text-neutral-medium"] || "text-gray-400",
13079
- strong: currentTheme["text-neutral-light"] || "text-gray-200",
13080
- hairline: currentTheme["border-neutral-dark"] || "border-gray-700",
13081
- selectedBg: currentTheme["bg-neutral-very-dark"] || "bg-gray-800",
13082
- selectedBorder: currentTheme["border-primary-dark"] || "border-gray-600",
13083
- fieldBg: currentTheme["bg-neutral-very-dark"] || "bg-gray-900"
13081
+ muted: key("muted") || "text-gray-400",
13082
+ strong: key("text") || "text-gray-200",
13083
+ hairline: key("hairline") || "border-gray-700",
13084
+ selectedBg: key("surface") || "bg-gray-800",
13085
+ selectedBorder: (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme["border-primary-dark"]) || "border-gray-600",
13086
+ fieldBg: key("well") || "bg-gray-900"
13084
13087
  };
13085
13088
  }
13086
13089