@toolr/ui-design 0.1.2 → 0.1.3
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/components/lib/form-colors.ts +3 -0
- package/components/ui/badge.tsx +4 -2
- package/components/ui/confirm-badge.tsx +4 -2
- package/components/ui/file-structure-section.tsx +135 -70
- package/components/ui/file-tree.tsx +2 -2
- package/components/ui/filter-dropdown.tsx +1 -1
- package/components/ui/icon-button.tsx +6 -2
- package/components/ui/label.tsx +4 -1
- package/components/ui/registry-detail.tsx +3 -0
- package/components/ui/resizable-textarea.tsx +2 -2
- package/components/ui/segmented-toggle.tsx +34 -16
- package/components/ui/select.tsx +1 -1
- package/components/ui/settings-card.tsx +27 -0
- package/components/ui/settings-info-box.tsx +80 -0
- package/components/ui/settings-section-title.tsx +24 -0
- package/components/ui/sort-dropdown.tsx +1 -1
- package/components/ui/tooltip.tsx +1 -1
- package/dist/index.d.ts +83 -46
- package/dist/index.js +1423 -1205
- package/index.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Info, AlertTriangle, CheckCircle, AlertCircle } from 'lucide-react'
|
|
2
|
+
import { cn } from '../lib/cn.ts'
|
|
3
|
+
|
|
4
|
+
export type SettingsInfoBoxColor = 'neutral' | 'blue' | 'amber' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'violet' | 'sky' | 'pink' | 'teal'
|
|
5
|
+
|
|
6
|
+
export interface SettingsInfoBoxProps {
|
|
7
|
+
children: React.ReactNode
|
|
8
|
+
color?: SettingsInfoBoxColor
|
|
9
|
+
className?: string
|
|
10
|
+
testId?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const iconMap: Record<SettingsInfoBoxColor, typeof Info> = {
|
|
14
|
+
neutral: Info,
|
|
15
|
+
blue: Info,
|
|
16
|
+
amber: AlertTriangle,
|
|
17
|
+
green: CheckCircle,
|
|
18
|
+
red: AlertCircle,
|
|
19
|
+
orange: Info,
|
|
20
|
+
cyan: Info,
|
|
21
|
+
yellow: Info,
|
|
22
|
+
purple: Info,
|
|
23
|
+
indigo: Info,
|
|
24
|
+
emerald: Info,
|
|
25
|
+
violet: Info,
|
|
26
|
+
sky: Info,
|
|
27
|
+
pink: Info,
|
|
28
|
+
teal: Info,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const iconColorMap: Record<SettingsInfoBoxColor, string> = {
|
|
32
|
+
neutral: 'text-neutral-500',
|
|
33
|
+
blue: 'text-blue-400',
|
|
34
|
+
amber: 'text-amber-400',
|
|
35
|
+
green: 'text-green-400',
|
|
36
|
+
red: 'text-red-400',
|
|
37
|
+
orange: 'text-orange-400',
|
|
38
|
+
cyan: 'text-cyan-400',
|
|
39
|
+
yellow: 'text-yellow-400',
|
|
40
|
+
purple: 'text-purple-400',
|
|
41
|
+
indigo: 'text-indigo-400',
|
|
42
|
+
emerald: 'text-emerald-400',
|
|
43
|
+
violet: 'text-violet-400',
|
|
44
|
+
sky: 'text-sky-400',
|
|
45
|
+
pink: 'text-pink-400',
|
|
46
|
+
teal: 'text-teal-400',
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const borderColorMap: Record<SettingsInfoBoxColor, string> = {
|
|
50
|
+
neutral: 'border-l-neutral-600',
|
|
51
|
+
blue: 'border-l-blue-500',
|
|
52
|
+
amber: 'border-l-amber-500',
|
|
53
|
+
green: 'border-l-green-500',
|
|
54
|
+
red: 'border-l-red-500',
|
|
55
|
+
orange: 'border-l-orange-500',
|
|
56
|
+
cyan: 'border-l-cyan-500',
|
|
57
|
+
yellow: 'border-l-yellow-500',
|
|
58
|
+
purple: 'border-l-purple-500',
|
|
59
|
+
indigo: 'border-l-indigo-500',
|
|
60
|
+
emerald: 'border-l-emerald-500',
|
|
61
|
+
violet: 'border-l-violet-500',
|
|
62
|
+
sky: 'border-l-sky-500',
|
|
63
|
+
pink: 'border-l-pink-500',
|
|
64
|
+
teal: 'border-l-teal-500',
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function SettingsInfoBox({ children, color = 'neutral', className, testId }: SettingsInfoBoxProps) {
|
|
68
|
+
const Icon = iconMap[color]
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
className={cn('flex items-start gap-3 border-l-2', borderColorMap[color], className)}
|
|
73
|
+
style={{ paddingLeft: 10 }}
|
|
74
|
+
data-testid={testId}
|
|
75
|
+
>
|
|
76
|
+
<Icon className={cn('w-4 h-4 mt-0.5 shrink-0', iconColorMap[color])} />
|
|
77
|
+
<div className="text-sm text-neutral-500">{children}</div>
|
|
78
|
+
</div>
|
|
79
|
+
)
|
|
80
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SettingsSectionTitle - Section header for settings pages
|
|
3
|
+
*
|
|
4
|
+
* Used by:
|
|
5
|
+
* - Settings pages - grouping related settings under a heading
|
|
6
|
+
* - Configuration panels - section dividers
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface SettingsSectionTitleProps {
|
|
10
|
+
children: React.ReactNode
|
|
11
|
+
className?: string
|
|
12
|
+
testId?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function SettingsSectionTitle({ children, className = '', testId }: SettingsSectionTitleProps) {
|
|
16
|
+
return (
|
|
17
|
+
<h3
|
|
18
|
+
className={`text-xs font-medium text-neutral-400 uppercase tracking-wider ${className}`}
|
|
19
|
+
data-testid={testId}
|
|
20
|
+
>
|
|
21
|
+
{children}
|
|
22
|
+
</h3>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
@@ -88,7 +88,7 @@ export function SortDropdown({
|
|
|
88
88
|
</button>
|
|
89
89
|
|
|
90
90
|
{isOpen && (
|
|
91
|
-
<div ref={menuRef} className={`absolute right-0 top-full z-50 mt-1 min-w-[140px] bg-[var(--popover)]
|
|
91
|
+
<div ref={menuRef} className={`absolute right-0 top-full z-50 mt-1 min-w-[140px] bg-[var(--popover)] border ${FORM_COLORS[color].border} rounded-lg shadow-xl overflow-hidden`}>
|
|
92
92
|
{fields.map((f, idx) => (
|
|
93
93
|
<button
|
|
94
94
|
key={f.value}
|
|
@@ -258,7 +258,7 @@ export function Tooltip({
|
|
|
258
258
|
const tooltipContent = (
|
|
259
259
|
<div
|
|
260
260
|
ref={tooltipRef}
|
|
261
|
-
className={`fixed px-3 py-1.5 bg-[var(--popover)]
|
|
261
|
+
className={`fixed px-3 py-1.5 bg-[var(--popover)] border border-neutral-600 rounded-lg shadow-xl z-[9999] ${interactive || trigger === 'click' ? '' : 'pointer-events-none'} ${multiline ? 'whitespace-pre-line' : 'whitespace-nowrap'}`}
|
|
262
262
|
style={{
|
|
263
263
|
top: coords.top,
|
|
264
264
|
left: coords.left,
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as lucide_react from 'lucide-react';
|
|
|
5
5
|
import { LucideIcon } from 'lucide-react';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
7
|
|
|
8
|
-
type FormColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky';
|
|
8
|
+
type FormColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
9
9
|
|
|
10
10
|
declare const SCALE_KEYS: readonly ["black", "950", "900", "850", "800", "750", "700", "600", "500", "400", "300", "200"];
|
|
11
11
|
type ScaleKey = (typeof SCALE_KEYS)[number];
|
|
@@ -221,7 +221,7 @@ interface ActionItem {
|
|
|
221
221
|
testId?: string;
|
|
222
222
|
}
|
|
223
223
|
type IconButtonStatus = 'loading' | 'success' | 'warning' | 'error';
|
|
224
|
-
type IconButtonColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky';
|
|
224
|
+
type IconButtonColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
225
225
|
type IconButtonVariant = 'filled' | 'outline';
|
|
226
226
|
interface IconButtonProps {
|
|
227
227
|
icon: IconName | ReactNode;
|
|
@@ -250,11 +250,12 @@ interface CollapseButtonProps {
|
|
|
250
250
|
collapsed: boolean;
|
|
251
251
|
onToggle: () => void;
|
|
252
252
|
size?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
253
|
+
color?: IconButtonColor;
|
|
253
254
|
tooltipPosition?: 'bottom' | 'bottom-left' | 'left' | 'right' | 'top' | 'top-left' | 'top-right';
|
|
254
255
|
}
|
|
255
|
-
declare function CollapseButton({ collapsed, onToggle, size, tooltipPosition }: CollapseButtonProps): react_jsx_runtime.JSX.Element;
|
|
256
|
+
declare function CollapseButton({ collapsed, onToggle, size, color, tooltipPosition }: CollapseButtonProps): react_jsx_runtime.JSX.Element;
|
|
256
257
|
|
|
257
|
-
type LabelColor = 'neutral' | 'green' | 'red' | 'blue' | 'yellow' | 'orange' | 'purple' | 'amber' | 'emerald' | 'cyan' | 'indigo' | 'teal' | 'violet' | 'pink';
|
|
258
|
+
type LabelColor = 'neutral' | 'green' | 'red' | 'blue' | 'yellow' | 'orange' | 'purple' | 'amber' | 'emerald' | 'cyan' | 'indigo' | 'teal' | 'violet' | 'pink' | 'sky';
|
|
258
259
|
interface LabelProps {
|
|
259
260
|
text: string;
|
|
260
261
|
color: LabelColor;
|
|
@@ -289,10 +290,10 @@ declare function Label({ text, color, icon, IconComponent: CustomIcon, tooltip,
|
|
|
289
290
|
* Features:
|
|
290
291
|
* - Outline variant matching IconButton outline style (border + text, no fill)
|
|
291
292
|
* - Accepts numbers (auto-caps at 99+) or short strings ("New")
|
|
292
|
-
* -
|
|
293
|
+
* - 15 color variants
|
|
293
294
|
* - 5 size variants (xss, xs, sm, md, lg)
|
|
294
295
|
*/
|
|
295
|
-
type BadgeColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky';
|
|
296
|
+
type BadgeColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
296
297
|
interface BadgeProps {
|
|
297
298
|
value: number | string;
|
|
298
299
|
color?: BadgeColor;
|
|
@@ -311,10 +312,10 @@ declare function Badge({ value, color, size, className, testId, }: BadgeProps):
|
|
|
311
312
|
*
|
|
312
313
|
* Features:
|
|
313
314
|
* - Outline variant matching IconButton outline style (border + text, no fill)
|
|
314
|
-
* -
|
|
315
|
+
* - 15 color variants
|
|
315
316
|
* - 5 size variants (xss, xs, sm, md, lg)
|
|
316
317
|
*/
|
|
317
|
-
type ConfirmBadgeColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky';
|
|
318
|
+
type ConfirmBadgeColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
318
319
|
interface ConfirmBadgeProps {
|
|
319
320
|
color?: ConfirmBadgeColor;
|
|
320
321
|
size?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -419,7 +420,7 @@ interface SegmentedToggleProps<T extends string> {
|
|
|
419
420
|
options: SegmentedToggleOption<T>[];
|
|
420
421
|
value: T;
|
|
421
422
|
onChange: (value: T) => void;
|
|
422
|
-
accentColor?: 'blue' | '
|
|
423
|
+
accentColor?: 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
423
424
|
/** Visual style: 'filled' (default) has a container background, 'outline' is transparent */
|
|
424
425
|
variant?: 'filled' | 'outline';
|
|
425
426
|
size?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -700,39 +701,6 @@ interface ActionDialogProps {
|
|
|
700
701
|
}
|
|
701
702
|
declare function ActionDialog({ title, subtitle, icon, iconColor, onSettings, onCancel, onSubmit, submitLabel, submitIcon, submitColor, submitDisabled, statusText, selectionLabel, items, presets, selectedIds, onSelect, selectionMode, selectionLayout, selectionColumns, scenarioLabel, scenarios, selectedScenarioIds, onSelectScenarios, scenarioLayout, scenarioColumns, executionDetails, allowDirectEdits, onAllowDirectEditsChange, executionWarning, children, className, }: ActionDialogProps): react.ReactPortal;
|
|
702
703
|
|
|
703
|
-
interface SettingRowBase {
|
|
704
|
-
label: string;
|
|
705
|
-
description?: string;
|
|
706
|
-
disabled?: boolean;
|
|
707
|
-
className?: string;
|
|
708
|
-
}
|
|
709
|
-
interface SettingRowToggle extends SettingRowBase {
|
|
710
|
-
type: 'toggle';
|
|
711
|
-
checked: boolean;
|
|
712
|
-
onChange: (checked: boolean) => void;
|
|
713
|
-
color?: ToggleColor;
|
|
714
|
-
size?: ToggleSize;
|
|
715
|
-
variant?: ToggleVariant;
|
|
716
|
-
}
|
|
717
|
-
interface SettingRowSelect extends SettingRowBase {
|
|
718
|
-
type: 'select';
|
|
719
|
-
value: string;
|
|
720
|
-
options: SelectOption[];
|
|
721
|
-
onChange: (value: string) => void;
|
|
722
|
-
selectSize?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
723
|
-
selectVariant?: 'filled' | 'outline';
|
|
724
|
-
}
|
|
725
|
-
interface SettingRowInput extends SettingRowBase {
|
|
726
|
-
type: 'input';
|
|
727
|
-
value: string;
|
|
728
|
-
onChange: (value: string) => void;
|
|
729
|
-
placeholder?: string;
|
|
730
|
-
inputSize?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
731
|
-
inputVariant?: 'filled' | 'outline';
|
|
732
|
-
}
|
|
733
|
-
type SettingRowProps = SettingRowToggle | SettingRowSelect | SettingRowInput;
|
|
734
|
-
declare function SettingRow(props: SettingRowProps): react_jsx_runtime.JSX.Element;
|
|
735
|
-
|
|
736
704
|
interface FileTreeNode {
|
|
737
705
|
name: string;
|
|
738
706
|
type: 'file' | 'directory';
|
|
@@ -990,10 +958,11 @@ type RegistryCardProps = SeedrVariant | ClaudePluginsVariant | AitmplVariant | S
|
|
|
990
958
|
declare function RegistryCard(props: RegistryCardProps): react_jsx_runtime.JSX.Element;
|
|
991
959
|
|
|
992
960
|
type PreviewMode = 'format' | 'language' | 'plain';
|
|
993
|
-
type AccentColor = 'blue' | '
|
|
961
|
+
type AccentColor = 'blue' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'amber' | 'violet' | 'neutral' | 'sky' | 'pink' | 'teal';
|
|
994
962
|
interface FileStructureSectionProps {
|
|
995
963
|
files: FileTreeNode[] | null;
|
|
996
964
|
rootName: string;
|
|
965
|
+
variant?: 'split' | 'list';
|
|
997
966
|
isLoading?: boolean;
|
|
998
967
|
error?: string | null;
|
|
999
968
|
onFetchContent: (relativePath: string) => Promise<string>;
|
|
@@ -1011,9 +980,11 @@ interface FileStructureSectionProps {
|
|
|
1011
980
|
accentColor?: AccentColor;
|
|
1012
981
|
/** Custom renderer called when mode is 'language'. Receives the resolved language as third arg. */
|
|
1013
982
|
renderPreview?: (content: string, filePath: string, language: string) => ReactNode;
|
|
983
|
+
/** Initial height in pixels. Defaults to 400 for 'list', 250 for 'split'. */
|
|
984
|
+
initialHeight?: number;
|
|
1014
985
|
}
|
|
1015
986
|
declare function getLanguageFromPath(filePath: string): string;
|
|
1016
|
-
declare function FileStructureSection({ files, rootName, isLoading, error, onFetchContent, format, language, default: defaultMode, accentColor, renderPreview, }: FileStructureSectionProps): react_jsx_runtime.JSX.Element | null;
|
|
987
|
+
declare function FileStructureSection({ files, rootName, variant, isLoading, error, onFetchContent, format, language, default: defaultMode, accentColor, renderPreview, initialHeight, }: FileStructureSectionProps): react_jsx_runtime.JSX.Element | null;
|
|
1017
988
|
|
|
1018
989
|
interface RegistryDetailProps {
|
|
1019
990
|
icon: LucideIcon;
|
|
@@ -1029,12 +1000,13 @@ interface RegistryDetailProps {
|
|
|
1029
1000
|
compatibleTools?: string[];
|
|
1030
1001
|
files?: FileStructureSectionProps['files'];
|
|
1031
1002
|
rootName?: string;
|
|
1003
|
+
fileStructureVariant?: FileStructureSectionProps['variant'];
|
|
1032
1004
|
onFetchContent?: FileStructureSectionProps['onFetchContent'];
|
|
1033
1005
|
aboveHeader?: ReactNode;
|
|
1034
1006
|
maxWidth?: string;
|
|
1035
1007
|
children?: ReactNode;
|
|
1036
1008
|
}
|
|
1037
|
-
declare function RegistryDetail({ icon: Icon, iconColor, title, titleExtra, subtitle, actionButton, labels, description, longDescription, integration, compatibleTools, files, rootName, onFetchContent, aboveHeader, maxWidth, children, }: RegistryDetailProps): react_jsx_runtime.JSX.Element;
|
|
1009
|
+
declare function RegistryDetail({ icon: Icon, iconColor, title, titleExtra, subtitle, actionButton, labels, description, longDescription, integration, compatibleTools, files, rootName, fileStructureVariant, onFetchContent, aboveHeader, maxWidth, children, }: RegistryDetailProps): react_jsx_runtime.JSX.Element;
|
|
1038
1010
|
|
|
1039
1011
|
interface RegistryBrowserProps {
|
|
1040
1012
|
isLoading: boolean;
|
|
@@ -2733,6 +2705,71 @@ interface UseNavigationHistoryReturn {
|
|
|
2733
2705
|
}
|
|
2734
2706
|
declare function useNavigationHistory(initial?: BreadcrumbSegment[], maxEntries?: number): UseNavigationHistoryReturn;
|
|
2735
2707
|
|
|
2708
|
+
interface SettingRowBase {
|
|
2709
|
+
label: string;
|
|
2710
|
+
description?: string;
|
|
2711
|
+
disabled?: boolean;
|
|
2712
|
+
className?: string;
|
|
2713
|
+
}
|
|
2714
|
+
interface SettingRowToggle extends SettingRowBase {
|
|
2715
|
+
type: 'toggle';
|
|
2716
|
+
checked: boolean;
|
|
2717
|
+
onChange: (checked: boolean) => void;
|
|
2718
|
+
color?: ToggleColor;
|
|
2719
|
+
size?: ToggleSize;
|
|
2720
|
+
variant?: ToggleVariant;
|
|
2721
|
+
}
|
|
2722
|
+
interface SettingRowSelect extends SettingRowBase {
|
|
2723
|
+
type: 'select';
|
|
2724
|
+
value: string;
|
|
2725
|
+
options: SelectOption[];
|
|
2726
|
+
onChange: (value: string) => void;
|
|
2727
|
+
selectSize?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
2728
|
+
selectVariant?: 'filled' | 'outline';
|
|
2729
|
+
}
|
|
2730
|
+
interface SettingRowInput extends SettingRowBase {
|
|
2731
|
+
type: 'input';
|
|
2732
|
+
value: string;
|
|
2733
|
+
onChange: (value: string) => void;
|
|
2734
|
+
placeholder?: string;
|
|
2735
|
+
inputSize?: 'xss' | 'xs' | 'sm' | 'md' | 'lg';
|
|
2736
|
+
inputVariant?: 'filled' | 'outline';
|
|
2737
|
+
}
|
|
2738
|
+
type SettingRowProps = SettingRowToggle | SettingRowSelect | SettingRowInput;
|
|
2739
|
+
declare function SettingRow(props: SettingRowProps): react_jsx_runtime.JSX.Element;
|
|
2740
|
+
|
|
2741
|
+
interface SettingsCardProps {
|
|
2742
|
+
children: React.ReactNode;
|
|
2743
|
+
className?: string;
|
|
2744
|
+
title?: string;
|
|
2745
|
+
description?: string;
|
|
2746
|
+
testId?: string;
|
|
2747
|
+
}
|
|
2748
|
+
declare function SettingsCard({ children, className, title, description, testId }: SettingsCardProps): react_jsx_runtime.JSX.Element;
|
|
2749
|
+
|
|
2750
|
+
type SettingsInfoBoxColor = 'neutral' | 'blue' | 'amber' | 'green' | 'red' | 'orange' | 'cyan' | 'yellow' | 'purple' | 'indigo' | 'emerald' | 'violet' | 'sky' | 'pink' | 'teal';
|
|
2751
|
+
interface SettingsInfoBoxProps {
|
|
2752
|
+
children: React.ReactNode;
|
|
2753
|
+
color?: SettingsInfoBoxColor;
|
|
2754
|
+
className?: string;
|
|
2755
|
+
testId?: string;
|
|
2756
|
+
}
|
|
2757
|
+
declare function SettingsInfoBox({ children, color, className, testId }: SettingsInfoBoxProps): react_jsx_runtime.JSX.Element;
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* SettingsSectionTitle - Section header for settings pages
|
|
2761
|
+
*
|
|
2762
|
+
* Used by:
|
|
2763
|
+
* - Settings pages - grouping related settings under a heading
|
|
2764
|
+
* - Configuration panels - section dividers
|
|
2765
|
+
*/
|
|
2766
|
+
interface SettingsSectionTitleProps {
|
|
2767
|
+
children: React.ReactNode;
|
|
2768
|
+
className?: string;
|
|
2769
|
+
testId?: string;
|
|
2770
|
+
}
|
|
2771
|
+
declare function SettingsSectionTitle({ children, className, testId }: SettingsSectionTitleProps): react_jsx_runtime.JSX.Element;
|
|
2772
|
+
|
|
2736
2773
|
type SettingsTreeNode = {
|
|
2737
2774
|
id: string;
|
|
2738
2775
|
label: string;
|
|
@@ -2782,4 +2819,4 @@ declare function SettingsHeader({ description, icon, onReset, resetTooltip, acti
|
|
|
2782
2819
|
|
|
2783
2820
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2784
2821
|
|
|
2785
|
-
export { ACCENT_DEFS, AI_TOOL_LOGOS, AI_TOOL_NAMES, type AccentColor, type AccentDef, ActionDialog, type ActionDialogProps, type ActionItem, AiActionButton, type AiActionButtonProps, type AiActionStatus, type AiCompletionResult, AiExecutionActionButtons, type AiExecutionActionButtonsProps, type AiToolConfig, AiToolIcon, type AiToolKey, AlertModal, type AlertModalProps, BASE_THEMES, Badge, type BadgeColor, type BadgeProps, BottomPanelHeader, type BottomPanelHeaderProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbSegment, type CapturedError, type CapturedIssuesApi, CapturedIssuesPanel, type CapturedIssuesPanelProps, type ChangedComponents, Checkbox, type CheckboxColor, type CheckboxProps, type CheckboxSize, type CheckboxVariant, type CodingToolId, type CodingToolPresetConfig, CollapseButton, type CollapseButtonProps, CollapsibleSection, type CollapsibleSectionProps, type ComponentVersion, ConfirmBadge, type ConfirmBadgeColor, type ConfirmBadgeProps, ConfirmModal, type ConfirmModalProps, type ConsentChoice, CookieConsent, type CookieConsentProps, type CreateSnapshotResult, DARK_THEMES, DEFAULT_DIMS, DEFAULT_OUTLINE, type DetailRow, DetailSection, type DetailSectionProps, DetailViewWrapper, type DetailViewWrapperProps, type DiffSummary, type DiffTreeNode, type DirectoryStatus, EditorPlaceholderCard, type EditorPlaceholderCardProps, EditorToolbar, type EditorToolbarProps, type ErrorLogger, type ExecutionDetailRow, ExecutionDetailsPanel, type ExecutionDetailsPanelProps, type ExecutionStatus, ExtensionListCard, type ExtensionListCardProps, type ExtensionSource, type FileDiffInfo, type FileDiffStatus, FileDiffViewer, type FileDiffViewerProps, type FileEntry, FileStructureSection, type FileStructureSectionProps, FileTree, type FileTreeNode, type FileTreeProps, type FileTypeOption, FileTypeTabbedPromptEditor, type FileTypeTabbedPromptEditorProps, FilesPanel, type FilesPanelProps, FilterDropdown, type FilterDropdownProps, FormActions, type FormActionsProps, type FormColor, FrontmatterFormHeader, type FrontmatterFormHeaderProps, type GoldenLiveDiff, type GoldenMeta, type GoldenSnapshotsApi, type GoldenStatus, GoldenSyncPanel, type GoldenSyncPanelProps, ISSUE_TYPES, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonStatus, type IconButtonVariant, type IconName, Input, type InputProps, type IssueReport, type IssueReportResult, type IssueType, LIGHT_THEMES, Label, type LabelColor, type LabelProps, type LayoutTab, LayoutTabBar, type LayoutTabBarProps, type ModalKind, type ModalSize, NavCard, type NavCardProps, NavigationBar, type NavigationBarProps, NumberInput, type NumberInputProps, type PanelTab, type PreviewMode, type PromptEditorApi, type PromptPlaceholder, type PromptSnapshot, RegistryBrowser, type RegistryBrowserProps, RegistryCard, type RegistryCardProps, RegistryDetail, type RegistryDetailProps, type RegistryItemType, ReportBugForm, type ReportBugFormProps, type ResetResult, ResizableTextarea, type ResizableTextareaProps, SCALE_KEYS, SNIPPET_NAME_REGEX, SURFACE_KEYS, type ScaleKey, type ScenarioOption, ScopeBadge, type ScopeType, type Screenshot, type ScreenshotAttachment, ScreenshotUploader, type ScreenshotUploaderProps, type SeedInfo, type SeedrItemStatus, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectOption, type SelectProps, type SelectionCardItem, SelectionGrid, type SelectionGridProps, SettingRow, type SettingRowProps, SettingsHeader, type SettingsHeaderProps, SettingsPanel, type SettingsPanelProps, SettingsTreeNav, type SettingsTreeNavProps, type SettingsTreeNode, SimulatorPromptEditor, type SimulatorPromptEditorProps, type SnapshotBrowserApi, SnapshotBrowserPanel, type SnapshotBrowserPanelProps, SnapshotCard, type SnapshotCardProps, type SnapshotCategory, type SnapshotEntry, type SnapshotInfo, type SnapshotItem, SnapshotManager, type SnapshotManagerProps, type SnapshotScope, SnapshotTree, type SnapshotTreeProps, type SnapshotsManifest, type Snippet, type SnippetData, SnippetsEditor, type SnippetsEditorApi, type SnippetsEditorProps, SnippetsPanel, type SnippetsPanelProps, SortDropdown, type SortDropdownProps, type SortField, type StatusBanner, StatusCard, type StatusCardProps, type StatusItem, StatusOverview, type StatusOverviewProps, type SubmittedError, type SurfaceKey, type SystemInfo, TOOLR_APPS, type Tab, TabBar, type TabBarProps, TabbedPromptEditor, type TabbedPromptEditorProps, type ThemeId, Toggle, type ToggleColor, type ToggleProps, type ToggleSize, type ToggleVariant, type ToolDetectionResult, type ToolTab, type ToolrAppId, ToolrAppLogo, type ToolsPathsApi, ToolsPathsPanel, type ToolsPathsPanelProps, Tooltip, type TooltipAlign, TooltipButton, type TooltipContent, type TooltipPosition, type TrackedError, type UseCapturedIssuesOptions, type UseCapturedIssuesReturn, type UseGoldenSyncOptions, type UseGoldenSyncReturn, type UseNavigationHistoryReturn, type UsePromptEditorOptions, type UsePromptEditorReturn, type UseReportBugOptions, type UseReportBugReturn, type UseSnapshotBrowserOptions, type UseSnapshotBrowserReturn, type UseSnippetsEditorOptions, type UseSnippetsEditorReturn, type UseToolsPathsOptions, type UseToolsPathsReturn, VersionManager, type VersionManagerProps, applyTheme, cn, collectDirPaths, collectExpandablePaths, createErrorLogger, filterTree, findNodeByPath, formatBytes, formatCategory, formatDate, generateScale, getAllLeafPaths, getBreadcrumbFromPath, getLanguage, getLanguageFromPath, getParentPaths, hslToHex, iconMap, isLeafNode, isLightTheme, satCurve, submitIssueReport, useCapturedIssues, useClickOutside, useDropdownMaxHeight, useGoldenSync, useNavigationHistory, usePromptEditor, useReportBug, useSnapshotBrowser, useSnippetsEditor, useToolsPaths };
|
|
2822
|
+
export { ACCENT_DEFS, AI_TOOL_LOGOS, AI_TOOL_NAMES, type AccentColor, type AccentDef, ActionDialog, type ActionDialogProps, type ActionItem, AiActionButton, type AiActionButtonProps, type AiActionStatus, type AiCompletionResult, AiExecutionActionButtons, type AiExecutionActionButtonsProps, type AiToolConfig, AiToolIcon, type AiToolKey, AlertModal, type AlertModalProps, BASE_THEMES, Badge, type BadgeColor, type BadgeProps, BottomPanelHeader, type BottomPanelHeaderProps, Breadcrumb, type BreadcrumbProps, type BreadcrumbSegment, type CapturedError, type CapturedIssuesApi, CapturedIssuesPanel, type CapturedIssuesPanelProps, type ChangedComponents, Checkbox, type CheckboxColor, type CheckboxProps, type CheckboxSize, type CheckboxVariant, type CodingToolId, type CodingToolPresetConfig, CollapseButton, type CollapseButtonProps, CollapsibleSection, type CollapsibleSectionProps, type ComponentVersion, ConfirmBadge, type ConfirmBadgeColor, type ConfirmBadgeProps, ConfirmModal, type ConfirmModalProps, type ConsentChoice, CookieConsent, type CookieConsentProps, type CreateSnapshotResult, DARK_THEMES, DEFAULT_DIMS, DEFAULT_OUTLINE, type DetailRow, DetailSection, type DetailSectionProps, DetailViewWrapper, type DetailViewWrapperProps, type DiffSummary, type DiffTreeNode, type DirectoryStatus, EditorPlaceholderCard, type EditorPlaceholderCardProps, EditorToolbar, type EditorToolbarProps, type ErrorLogger, type ExecutionDetailRow, ExecutionDetailsPanel, type ExecutionDetailsPanelProps, type ExecutionStatus, ExtensionListCard, type ExtensionListCardProps, type ExtensionSource, type FileDiffInfo, type FileDiffStatus, FileDiffViewer, type FileDiffViewerProps, type FileEntry, FileStructureSection, type FileStructureSectionProps, FileTree, type FileTreeNode, type FileTreeProps, type FileTypeOption, FileTypeTabbedPromptEditor, type FileTypeTabbedPromptEditorProps, FilesPanel, type FilesPanelProps, FilterDropdown, type FilterDropdownProps, FormActions, type FormActionsProps, type FormColor, FrontmatterFormHeader, type FrontmatterFormHeaderProps, type GoldenLiveDiff, type GoldenMeta, type GoldenSnapshotsApi, type GoldenStatus, GoldenSyncPanel, type GoldenSyncPanelProps, ISSUE_TYPES, IconButton, type IconButtonColor, type IconButtonProps, type IconButtonStatus, type IconButtonVariant, type IconName, Input, type InputProps, type IssueReport, type IssueReportResult, type IssueType, LIGHT_THEMES, Label, type LabelColor, type LabelProps, type LayoutTab, LayoutTabBar, type LayoutTabBarProps, type ModalKind, type ModalSize, NavCard, type NavCardProps, NavigationBar, type NavigationBarProps, NumberInput, type NumberInputProps, type PanelTab, type PreviewMode, type PromptEditorApi, type PromptPlaceholder, type PromptSnapshot, RegistryBrowser, type RegistryBrowserProps, RegistryCard, type RegistryCardProps, RegistryDetail, type RegistryDetailProps, type RegistryItemType, ReportBugForm, type ReportBugFormProps, type ResetResult, ResizableTextarea, type ResizableTextareaProps, SCALE_KEYS, SNIPPET_NAME_REGEX, SURFACE_KEYS, type ScaleKey, type ScenarioOption, ScopeBadge, type ScopeType, type Screenshot, type ScreenshotAttachment, ScreenshotUploader, type ScreenshotUploaderProps, type SeedInfo, type SeedrItemStatus, SegmentedToggle, type SegmentedToggleOption, type SegmentedToggleProps, Select, type SelectOption, type SelectProps, type SelectionCardItem, SelectionGrid, type SelectionGridProps, SettingRow, type SettingRowProps, SettingsCard, type SettingsCardProps, SettingsHeader, type SettingsHeaderProps, SettingsInfoBox, type SettingsInfoBoxColor, type SettingsInfoBoxProps, SettingsPanel, type SettingsPanelProps, SettingsSectionTitle, type SettingsSectionTitleProps, SettingsTreeNav, type SettingsTreeNavProps, type SettingsTreeNode, SimulatorPromptEditor, type SimulatorPromptEditorProps, type SnapshotBrowserApi, SnapshotBrowserPanel, type SnapshotBrowserPanelProps, SnapshotCard, type SnapshotCardProps, type SnapshotCategory, type SnapshotEntry, type SnapshotInfo, type SnapshotItem, SnapshotManager, type SnapshotManagerProps, type SnapshotScope, SnapshotTree, type SnapshotTreeProps, type SnapshotsManifest, type Snippet, type SnippetData, SnippetsEditor, type SnippetsEditorApi, type SnippetsEditorProps, SnippetsPanel, type SnippetsPanelProps, SortDropdown, type SortDropdownProps, type SortField, type StatusBanner, StatusCard, type StatusCardProps, type StatusItem, StatusOverview, type StatusOverviewProps, type SubmittedError, type SurfaceKey, type SystemInfo, TOOLR_APPS, type Tab, TabBar, type TabBarProps, TabbedPromptEditor, type TabbedPromptEditorProps, type ThemeId, Toggle, type ToggleColor, type ToggleProps, type ToggleSize, type ToggleVariant, type ToolDetectionResult, type ToolTab, type ToolrAppId, ToolrAppLogo, type ToolsPathsApi, ToolsPathsPanel, type ToolsPathsPanelProps, Tooltip, type TooltipAlign, TooltipButton, type TooltipContent, type TooltipPosition, type TrackedError, type UseCapturedIssuesOptions, type UseCapturedIssuesReturn, type UseGoldenSyncOptions, type UseGoldenSyncReturn, type UseNavigationHistoryReturn, type UsePromptEditorOptions, type UsePromptEditorReturn, type UseReportBugOptions, type UseReportBugReturn, type UseSnapshotBrowserOptions, type UseSnapshotBrowserReturn, type UseSnippetsEditorOptions, type UseSnippetsEditorReturn, type UseToolsPathsOptions, type UseToolsPathsReturn, VersionManager, type VersionManagerProps, applyTheme, cn, collectDirPaths, collectExpandablePaths, createErrorLogger, filterTree, findNodeByPath, formatBytes, formatCategory, formatDate, generateScale, getAllLeafPaths, getBreadcrumbFromPath, getLanguage, getLanguageFromPath, getParentPaths, hslToHex, iconMap, isLeafNode, isLightTheme, satCurve, submitIssueReport, useCapturedIssues, useClickOutside, useDropdownMaxHeight, useGoldenSync, useNavigationHistory, usePromptEditor, useReportBug, useSnapshotBrowser, useSnippetsEditor, useToolsPaths };
|