@columenlabs/lumen-ui 0.1.158 → 0.1.159

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.
Files changed (2) hide show
  1. package/dist/settings.js +2 -1
  2. package/package.json +2 -2
package/dist/settings.js CHANGED
@@ -10,6 +10,7 @@ import { MonitorIcon, MoonIcon, PaletteIcon, SearchIcon, ShieldCheckIcon, Slider
10
10
  import { createContext, useContext, useEffect, useLayoutEffect, useRef, useState, } from 'react';
11
11
  import { createPortal } from 'react-dom';
12
12
  import { useAssistantMoves } from './assistant-screen.js';
13
+ import { InfoTip } from './info-tip.js';
13
14
  import { LumenSelector } from './lumen-selector.js';
14
15
  import { FONTS, FONT_SIZES, setPref, usePrefs, } from './prefs.js';
15
16
  import { TimeZoneSelect } from './status.js';
@@ -54,7 +55,7 @@ export function SettingRow({ label, description, htmlFor, children, }) {
54
55
  const query = useContext(SearchContext);
55
56
  if (query && !matches(query, label, description))
56
57
  return null;
57
- return (_jsxs("div", { "data-slot": "setting-row", className: "flex items-center gap-4 border-b py-3 last:border-b-0", children: [_jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [_jsx(Label, { htmlFor: htmlFor, children: label }), description && _jsx("p", { className: "text-xs text-muted-foreground", children: description })] }), _jsx("div", { className: "shrink-0", children: children })] }));
58
+ return (_jsxs("div", { "data-slot": "setting-row", className: "flex items-center gap-4 border-b py-3 last:border-b-0", children: [_jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx(Label, { htmlFor: htmlFor, className: "truncate", children: label }), description && _jsx(InfoTip, { label: `About ${label}`, children: description })] }), _jsx("div", { className: "shrink-0", children: children })] }));
58
59
  }
59
60
  /** Light, dark or system: in Settings with labels, in the profile menu as icons with tooltips. */
60
61
  export function ThemeToggle({ compact = false }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ui",
3
- "version": "0.1.158",
3
+ "version": "0.1.159",
4
4
  "description": "Lumen: shared React components (frame, views, widgets, charts, drawers).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  "@codemirror/lang-javascript": "6.2.5",
50
50
  "@codemirror/lang-json": "6.0.2",
51
51
  "@codemirror/lang-sql": "6.10.0",
52
- "@columenlabs/lumen-ui-types": "0.1.158",
52
+ "@columenlabs/lumen-ui-types": "0.1.159",
53
53
  "@dnd-kit/core": "6.3.1",
54
54
  "@dnd-kit/sortable": "10.0.0",
55
55
  "@dnd-kit/utilities": "3.2.2",