@surrealdb/ui 1.0.19 → 1.0.20
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/ui.d.ts +16 -0
- package/dist/ui.js +2361 -2333
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
- package/res/_mixins.scss +6 -0
package/dist/ui.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { FC } from 'react';
|
|
|
4
4
|
import { Highlighter } from '@lezer/highlight';
|
|
5
5
|
import { HighlightStyle } from '@codemirror/language';
|
|
6
6
|
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { ImageProps } from '@mantine/core';
|
|
7
8
|
import { MantineColor } from '@mantine/core';
|
|
8
9
|
import { MantineColorScheme } from '@mantine/core';
|
|
9
10
|
import { MantineFontSize } from '@mantine/core';
|
|
@@ -1117,6 +1118,21 @@ export declare type ThemeConfig = {
|
|
|
1117
1118
|
dark: HighlightStyle;
|
|
1118
1119
|
};
|
|
1119
1120
|
|
|
1121
|
+
/**
|
|
1122
|
+
* ThemedImage component that displays different images based on the current color scheme.
|
|
1123
|
+
* Extends Mantine's Image component with support for light/dark mode images.
|
|
1124
|
+
* Uses Mantine's useColorScheme hook to determine the current theme.
|
|
1125
|
+
* Users can override via the colorScheme prop.
|
|
1126
|
+
*
|
|
1127
|
+
* For pre-loading both images, consider adding <link rel="preload"> tags in your HTML head.
|
|
1128
|
+
*/
|
|
1129
|
+
export declare const ThemedImage: FC<ThemedImageProps>;
|
|
1130
|
+
|
|
1131
|
+
export declare interface ThemedImageProps extends ImageProps {
|
|
1132
|
+
darkSrc: string;
|
|
1133
|
+
colorScheme?: "light" | "dark";
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1120
1136
|
/**
|
|
1121
1137
|
* Trigger a new render and invoke the passed function
|
|
1122
1138
|
* during this next call. Useful when you require the component
|