@optilogic/core 1.4.0 → 1.6.0
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.cjs +249 -102
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +59 -10
- package/dist/index.d.ts +59 -10
- package/dist/index.js +247 -103
- package/dist/index.js.map +1 -1
- package/dist/styles.css +12 -0
- package/dist/tailwind-preset.cjs +10 -2
- package/dist/tailwind-preset.cjs.map +1 -1
- package/dist/tailwind-preset.js +10 -2
- package/dist/tailwind-preset.js.map +1 -1
- package/package.json +2 -2
- package/src/components/confirmation-modal.tsx +41 -6
- package/src/components/data-grid/components/CellEditor.tsx +5 -2
- package/src/components/data-grid/components/FilterPopover.tsx +7 -4
- package/src/components/data-grid/utils/dataProcessing.ts +2 -1
- package/src/components/modal.tsx +55 -1
- package/src/components/resizable-panel.tsx +1 -1
- package/src/components/theme-picker.tsx +4 -2
- package/src/index.ts +3 -0
- package/src/styles.css +12 -0
- package/src/tailwind-preset.ts +9 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/presets.ts +166 -91
- package/src/theme/types.ts +8 -0
- package/src/theme/utils.ts +57 -0
package/dist/index.d.cts
CHANGED
|
@@ -1021,6 +1021,20 @@ interface ModalProps {
|
|
|
1021
1021
|
* `"w-[80vw] max-w-none"`.
|
|
1022
1022
|
*/
|
|
1023
1023
|
contentClassName?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Opt into mobile-friendly rendering. When `true`, the modal renders full-
|
|
1026
|
+
* screen (no border, no rounded corners, fills the viewport) under
|
|
1027
|
+
* `@media (pointer: coarse) and (hover: none)` — i.e. on touch devices
|
|
1028
|
+
* without hover. On desktop / hybrid input devices the named `size` is
|
|
1029
|
+
* preserved. Default: `false`.
|
|
1030
|
+
*/
|
|
1031
|
+
responsive?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Force mobile (full-screen) rendering regardless of device. Useful for
|
|
1034
|
+
* Storybook, manual QA, and the rare case where sheet-style rendering is
|
|
1035
|
+
* desired on desktop. Overrides `responsive`. Default: `false`.
|
|
1036
|
+
*/
|
|
1037
|
+
forceMobile?: boolean;
|
|
1024
1038
|
}
|
|
1025
1039
|
/**
|
|
1026
1040
|
* Modal component
|
|
@@ -1052,8 +1066,20 @@ interface ModalProps {
|
|
|
1052
1066
|
* >
|
|
1053
1067
|
* ...
|
|
1054
1068
|
* </Modal>
|
|
1069
|
+
*
|
|
1070
|
+
* @example
|
|
1071
|
+
* // Full-screen on mobile (touch devices), `lg` width on desktop
|
|
1072
|
+
* <Modal
|
|
1073
|
+
* isOpen={open}
|
|
1074
|
+
* onClose={() => setOpen(false)}
|
|
1075
|
+
* title="New Database"
|
|
1076
|
+
* size="lg"
|
|
1077
|
+
* responsive
|
|
1078
|
+
* >
|
|
1079
|
+
* ...
|
|
1080
|
+
* </Modal>
|
|
1055
1081
|
*/
|
|
1056
|
-
declare function Modal({ isOpen, onClose, title, children, footer, size, zIndex, className, contentClassName, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
1082
|
+
declare function Modal({ isOpen, onClose, title, children, footer, size, zIndex, className, contentClassName, responsive, forceMobile, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
1057
1083
|
/**
|
|
1058
1084
|
* ModalButton component
|
|
1059
1085
|
* @deprecated Use Button component from @optilogic/core instead
|
|
@@ -2385,6 +2411,12 @@ interface Theme {
|
|
|
2385
2411
|
border: string;
|
|
2386
2412
|
input: string;
|
|
2387
2413
|
ring: string;
|
|
2414
|
+
/** Hover states (optional, with fallbacks) */
|
|
2415
|
+
primaryHover?: string;
|
|
2416
|
+
accentHover?: string;
|
|
2417
|
+
/** Brand identity gradient (optional, with fallbacks) */
|
|
2418
|
+
brandGradientFrom?: string;
|
|
2419
|
+
brandGradientTo?: string;
|
|
2388
2420
|
/** Elevated surface border (optional, with fallback) */
|
|
2389
2421
|
popoverBorder?: string;
|
|
2390
2422
|
/** Divider/separator color (optional, with fallback) */
|
|
@@ -2532,18 +2564,24 @@ interface ColorFieldConfig {
|
|
|
2532
2564
|
*/
|
|
2533
2565
|
|
|
2534
2566
|
/**
|
|
2535
|
-
* Optilogic
|
|
2567
|
+
* Optilogic Light Theme - Default light theme
|
|
2536
2568
|
*
|
|
2537
|
-
*
|
|
2569
|
+
* The current Optilogic light theme, synced from platform-leapfrog. Indigo
|
|
2570
|
+
* (#5766F2) primary on a soft lavender-white surface.
|
|
2538
2571
|
*/
|
|
2539
|
-
declare const
|
|
2572
|
+
declare const OPTILOGIC_LIGHT_THEME: Theme;
|
|
2540
2573
|
/**
|
|
2541
|
-
* Optilogic Dark Theme -
|
|
2574
|
+
* Optilogic Dark Theme - Default dark mode
|
|
2542
2575
|
*
|
|
2543
|
-
*
|
|
2544
|
-
*
|
|
2576
|
+
* The current Optilogic dark theme, synced from platform-leapfrog. Indigo
|
|
2577
|
+
* primary on a deep navy surface.
|
|
2545
2578
|
*/
|
|
2546
2579
|
declare const OPTILOGIC_DARK_THEME: Theme;
|
|
2580
|
+
/**
|
|
2581
|
+
* @deprecated Use OPTILOGIC_LIGHT_THEME. Retained so existing imports resolve;
|
|
2582
|
+
* now points at the current Optilogic Light theme.
|
|
2583
|
+
*/
|
|
2584
|
+
declare const OPTILOGIC_LEGACY_THEME: Theme;
|
|
2547
2585
|
/**
|
|
2548
2586
|
* Modern Light Theme - Clean, readable light mode
|
|
2549
2587
|
*
|
|
@@ -2567,7 +2605,13 @@ declare const MODERN_DARK_THEME: Theme;
|
|
|
2567
2605
|
*/
|
|
2568
2606
|
declare const DARK_ELEGANT_THEME: Theme;
|
|
2569
2607
|
/**
|
|
2570
|
-
*
|
|
2608
|
+
* Green Theme - Natural, earthy greens
|
|
2609
|
+
*
|
|
2610
|
+
* Synced from platform-leapfrog. Soft green primary on deep forest surfaces.
|
|
2611
|
+
*/
|
|
2612
|
+
declare const GREEN_THEME: Theme;
|
|
2613
|
+
/**
|
|
2614
|
+
* All available preset themes (shown in the theme picker).
|
|
2571
2615
|
*/
|
|
2572
2616
|
declare const PRESET_THEMES: Theme[];
|
|
2573
2617
|
/**
|
|
@@ -2575,7 +2619,12 @@ declare const PRESET_THEMES: Theme[];
|
|
|
2575
2619
|
*/
|
|
2576
2620
|
declare const ALL_THEMES: Theme[];
|
|
2577
2621
|
/**
|
|
2578
|
-
*
|
|
2622
|
+
* Retired preset IDs mapped to their current replacement, so themes saved
|
|
2623
|
+
* under an old ID (e.g. in localStorage) resolve to a shipping preset.
|
|
2624
|
+
*/
|
|
2625
|
+
declare const LEGACY_THEME_ID_MAP: Record<string, string>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Get a preset theme by ID, transparently resolving retired IDs.
|
|
2579
2628
|
*/
|
|
2580
2629
|
declare function getPresetTheme(id: string): Theme | undefined;
|
|
2581
2630
|
/**
|
|
@@ -3248,4 +3297,4 @@ type SortingConfig = {
|
|
|
3248
3297
|
onSort: (field: string) => void;
|
|
3249
3298
|
};
|
|
3250
3299
|
|
|
3251
|
-
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, type BuiltInContentType, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, CodeRenderer, type ColorFieldConfig, type ColumnDef, Combobox, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, type ContentType, type ContentTypeDetectionResult, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CosmicFrogIcon, type CosmicFrogIconProps, CsvRenderer, DARK_ELEGANT_THEME, DEFAULT_RENDERERS, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, DataStarIcon, type DataStarIconProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSort, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, type FileRenderer, type FileRendererProps, FileView, type FileViewError, type FileViewProps, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, HtmlRenderer, IconButton, type IconButtonProps, ImageRenderer, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, MODERN_DARK_THEME, MODERN_LIGHT_THEME, MarkdownRenderer, Modal, ModalButton, type ModalButtonProps, type ModalProps, MultiSelect, type MultiSelectProps, type NumberFilterOperator, OPTILOGIC_DARK_THEME, OPTILOGIC_LEGACY_THEME, OptilogicLogo, type OptilogicLogoProps, OptilogicLogoWithText, type OptilogicLogoWithTextProps, PRESET_THEMES, type PaginationConfig, PlainTextRenderer, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, type RendererRegistry, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, type ResolveImageUrl, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectItemDescription, type SelectItemDescriptionProps, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContentTypeOptions, type UseContentTypeReturn, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, detectContentType, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getFileExtension, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, isTextContentType, isUrlContentType, labelVariants, loadingSpinnerVariants, mergeRenderers, resolveRenderer, tabsListVariants, tabsTriggerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContentType, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
|
3300
|
+
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, type BuiltInContentType, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, CodeRenderer, type ColorFieldConfig, type ColumnDef, Combobox, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, type ContentType, type ContentTypeDetectionResult, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CosmicFrogIcon, type CosmicFrogIconProps, CsvRenderer, DARK_ELEGANT_THEME, DEFAULT_RENDERERS, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, DataStarIcon, type DataStarIconProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSort, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, type FileRenderer, type FileRendererProps, FileView, type FileViewError, type FileViewProps, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, HtmlRenderer, IconButton, type IconButtonProps, ImageRenderer, Input, type InputProps, LEGACY_THEME_ID_MAP, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, MODERN_DARK_THEME, MODERN_LIGHT_THEME, MarkdownRenderer, Modal, ModalButton, type ModalButtonProps, type ModalProps, MultiSelect, type MultiSelectProps, type NumberFilterOperator, OPTILOGIC_DARK_THEME, OPTILOGIC_LEGACY_THEME, OPTILOGIC_LIGHT_THEME, OptilogicLogo, type OptilogicLogoProps, OptilogicLogoWithText, type OptilogicLogoWithTextProps, PRESET_THEMES, type PaginationConfig, PlainTextRenderer, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, type RendererRegistry, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, type ResolveImageUrl, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectItemDescription, type SelectItemDescriptionProps, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContentTypeOptions, type UseContentTypeReturn, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, detectContentType, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getFileExtension, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, isTextContentType, isUrlContentType, labelVariants, loadingSpinnerVariants, mergeRenderers, resolveRenderer, tabsListVariants, tabsTriggerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContentType, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -1021,6 +1021,20 @@ interface ModalProps {
|
|
|
1021
1021
|
* `"w-[80vw] max-w-none"`.
|
|
1022
1022
|
*/
|
|
1023
1023
|
contentClassName?: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* Opt into mobile-friendly rendering. When `true`, the modal renders full-
|
|
1026
|
+
* screen (no border, no rounded corners, fills the viewport) under
|
|
1027
|
+
* `@media (pointer: coarse) and (hover: none)` — i.e. on touch devices
|
|
1028
|
+
* without hover. On desktop / hybrid input devices the named `size` is
|
|
1029
|
+
* preserved. Default: `false`.
|
|
1030
|
+
*/
|
|
1031
|
+
responsive?: boolean;
|
|
1032
|
+
/**
|
|
1033
|
+
* Force mobile (full-screen) rendering regardless of device. Useful for
|
|
1034
|
+
* Storybook, manual QA, and the rare case where sheet-style rendering is
|
|
1035
|
+
* desired on desktop. Overrides `responsive`. Default: `false`.
|
|
1036
|
+
*/
|
|
1037
|
+
forceMobile?: boolean;
|
|
1024
1038
|
}
|
|
1025
1039
|
/**
|
|
1026
1040
|
* Modal component
|
|
@@ -1052,8 +1066,20 @@ interface ModalProps {
|
|
|
1052
1066
|
* >
|
|
1053
1067
|
* ...
|
|
1054
1068
|
* </Modal>
|
|
1069
|
+
*
|
|
1070
|
+
* @example
|
|
1071
|
+
* // Full-screen on mobile (touch devices), `lg` width on desktop
|
|
1072
|
+
* <Modal
|
|
1073
|
+
* isOpen={open}
|
|
1074
|
+
* onClose={() => setOpen(false)}
|
|
1075
|
+
* title="New Database"
|
|
1076
|
+
* size="lg"
|
|
1077
|
+
* responsive
|
|
1078
|
+
* >
|
|
1079
|
+
* ...
|
|
1080
|
+
* </Modal>
|
|
1055
1081
|
*/
|
|
1056
|
-
declare function Modal({ isOpen, onClose, title, children, footer, size, zIndex, className, contentClassName, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
1082
|
+
declare function Modal({ isOpen, onClose, title, children, footer, size, zIndex, className, contentClassName, responsive, forceMobile, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
1057
1083
|
/**
|
|
1058
1084
|
* ModalButton component
|
|
1059
1085
|
* @deprecated Use Button component from @optilogic/core instead
|
|
@@ -2385,6 +2411,12 @@ interface Theme {
|
|
|
2385
2411
|
border: string;
|
|
2386
2412
|
input: string;
|
|
2387
2413
|
ring: string;
|
|
2414
|
+
/** Hover states (optional, with fallbacks) */
|
|
2415
|
+
primaryHover?: string;
|
|
2416
|
+
accentHover?: string;
|
|
2417
|
+
/** Brand identity gradient (optional, with fallbacks) */
|
|
2418
|
+
brandGradientFrom?: string;
|
|
2419
|
+
brandGradientTo?: string;
|
|
2388
2420
|
/** Elevated surface border (optional, with fallback) */
|
|
2389
2421
|
popoverBorder?: string;
|
|
2390
2422
|
/** Divider/separator color (optional, with fallback) */
|
|
@@ -2532,18 +2564,24 @@ interface ColorFieldConfig {
|
|
|
2532
2564
|
*/
|
|
2533
2565
|
|
|
2534
2566
|
/**
|
|
2535
|
-
* Optilogic
|
|
2567
|
+
* Optilogic Light Theme - Default light theme
|
|
2536
2568
|
*
|
|
2537
|
-
*
|
|
2569
|
+
* The current Optilogic light theme, synced from platform-leapfrog. Indigo
|
|
2570
|
+
* (#5766F2) primary on a soft lavender-white surface.
|
|
2538
2571
|
*/
|
|
2539
|
-
declare const
|
|
2572
|
+
declare const OPTILOGIC_LIGHT_THEME: Theme;
|
|
2540
2573
|
/**
|
|
2541
|
-
* Optilogic Dark Theme -
|
|
2574
|
+
* Optilogic Dark Theme - Default dark mode
|
|
2542
2575
|
*
|
|
2543
|
-
*
|
|
2544
|
-
*
|
|
2576
|
+
* The current Optilogic dark theme, synced from platform-leapfrog. Indigo
|
|
2577
|
+
* primary on a deep navy surface.
|
|
2545
2578
|
*/
|
|
2546
2579
|
declare const OPTILOGIC_DARK_THEME: Theme;
|
|
2580
|
+
/**
|
|
2581
|
+
* @deprecated Use OPTILOGIC_LIGHT_THEME. Retained so existing imports resolve;
|
|
2582
|
+
* now points at the current Optilogic Light theme.
|
|
2583
|
+
*/
|
|
2584
|
+
declare const OPTILOGIC_LEGACY_THEME: Theme;
|
|
2547
2585
|
/**
|
|
2548
2586
|
* Modern Light Theme - Clean, readable light mode
|
|
2549
2587
|
*
|
|
@@ -2567,7 +2605,13 @@ declare const MODERN_DARK_THEME: Theme;
|
|
|
2567
2605
|
*/
|
|
2568
2606
|
declare const DARK_ELEGANT_THEME: Theme;
|
|
2569
2607
|
/**
|
|
2570
|
-
*
|
|
2608
|
+
* Green Theme - Natural, earthy greens
|
|
2609
|
+
*
|
|
2610
|
+
* Synced from platform-leapfrog. Soft green primary on deep forest surfaces.
|
|
2611
|
+
*/
|
|
2612
|
+
declare const GREEN_THEME: Theme;
|
|
2613
|
+
/**
|
|
2614
|
+
* All available preset themes (shown in the theme picker).
|
|
2571
2615
|
*/
|
|
2572
2616
|
declare const PRESET_THEMES: Theme[];
|
|
2573
2617
|
/**
|
|
@@ -2575,7 +2619,12 @@ declare const PRESET_THEMES: Theme[];
|
|
|
2575
2619
|
*/
|
|
2576
2620
|
declare const ALL_THEMES: Theme[];
|
|
2577
2621
|
/**
|
|
2578
|
-
*
|
|
2622
|
+
* Retired preset IDs mapped to their current replacement, so themes saved
|
|
2623
|
+
* under an old ID (e.g. in localStorage) resolve to a shipping preset.
|
|
2624
|
+
*/
|
|
2625
|
+
declare const LEGACY_THEME_ID_MAP: Record<string, string>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Get a preset theme by ID, transparently resolving retired IDs.
|
|
2579
2628
|
*/
|
|
2580
2629
|
declare function getPresetTheme(id: string): Theme | undefined;
|
|
2581
2630
|
/**
|
|
@@ -3248,4 +3297,4 @@ type SortingConfig = {
|
|
|
3248
3297
|
onSort: (field: string) => void;
|
|
3249
3298
|
};
|
|
3250
3299
|
|
|
3251
|
-
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, type BuiltInContentType, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, CodeRenderer, type ColorFieldConfig, type ColumnDef, Combobox, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, type ContentType, type ContentTypeDetectionResult, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CosmicFrogIcon, type CosmicFrogIconProps, CsvRenderer, DARK_ELEGANT_THEME, DEFAULT_RENDERERS, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, DataStarIcon, type DataStarIconProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSort, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, type FileRenderer, type FileRendererProps, FileView, type FileViewError, type FileViewProps, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, HtmlRenderer, IconButton, type IconButtonProps, ImageRenderer, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, MODERN_DARK_THEME, MODERN_LIGHT_THEME, MarkdownRenderer, Modal, ModalButton, type ModalButtonProps, type ModalProps, MultiSelect, type MultiSelectProps, type NumberFilterOperator, OPTILOGIC_DARK_THEME, OPTILOGIC_LEGACY_THEME, OptilogicLogo, type OptilogicLogoProps, OptilogicLogoWithText, type OptilogicLogoWithTextProps, PRESET_THEMES, type PaginationConfig, PlainTextRenderer, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, type RendererRegistry, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, type ResolveImageUrl, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectItemDescription, type SelectItemDescriptionProps, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContentTypeOptions, type UseContentTypeReturn, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, detectContentType, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getFileExtension, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, isTextContentType, isUrlContentType, labelVariants, loadingSpinnerVariants, mergeRenderers, resolveRenderer, tabsListVariants, tabsTriggerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContentType, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
|
3300
|
+
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, type BuiltInContentType, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, CodeRenderer, type ColorFieldConfig, type ColumnDef, Combobox, type ComboboxProps, ConfirmationModal, type ConfirmationModalProps, type ContentType, type ContentTypeDetectionResult, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, CosmicFrogIcon, type CosmicFrogIconProps, CsvRenderer, DARK_ELEGANT_THEME, DEFAULT_RENDERERS, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, DataStarIcon, type DataStarIconProps, DataTable, type DataTableColumn, type DataTableProps, type DataTableSort, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, type FileRenderer, type FileRendererProps, FileView, type FileViewError, type FileViewProps, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, HtmlRenderer, IconButton, type IconButtonProps, ImageRenderer, Input, type InputProps, LEGACY_THEME_ID_MAP, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, MODERN_DARK_THEME, MODERN_LIGHT_THEME, MarkdownRenderer, Modal, ModalButton, type ModalButtonProps, type ModalProps, MultiSelect, type MultiSelectProps, type NumberFilterOperator, OPTILOGIC_DARK_THEME, OPTILOGIC_LEGACY_THEME, OPTILOGIC_LIGHT_THEME, OptilogicLogo, type OptilogicLogoProps, OptilogicLogoWithText, type OptilogicLogoWithTextProps, PRESET_THEMES, type PaginationConfig, PlainTextRenderer, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, type RendererRegistry, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, type ResolveImageUrl, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectItemDescription, type SelectItemDescriptionProps, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, type TabsListProps, TabsTrigger, type TabsTriggerProps, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContentTypeOptions, type UseContentTypeReturn, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, detectContentType, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getFileExtension, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, isTextContentType, isUrlContentType, labelVariants, loadingSpinnerVariants, mergeRenderers, resolveRenderer, tabsListVariants, tabsTriggerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContentType, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|