@surrealdb/ui 1.0.101 → 1.1.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/ui.d.ts +21 -0
- package/dist/ui.js +2539 -2479
- package/dist/ui.js.map +1 -1
- package/package.json +3 -3
package/dist/ui.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import { MantineThemeOverride } from '@mantine/core';
|
|
|
30
30
|
import { PaperProps } from '@mantine/core';
|
|
31
31
|
import { PropsWithChildren } from 'react';
|
|
32
32
|
import type * as React_2 from 'react';
|
|
33
|
+
import { ReactElement } from 'react';
|
|
33
34
|
import { ReactNode } from 'react';
|
|
34
35
|
import { RefObject } from 'react';
|
|
35
36
|
import { SelectProps } from '@mantine/core';
|
|
@@ -39,6 +40,9 @@ import { StateField } from '@codemirror/state';
|
|
|
39
40
|
import { TabsListProps } from '@mantine/core';
|
|
40
41
|
import { TabsProps as TabsProps_2 } from '@mantine/core';
|
|
41
42
|
import { TabsTabProps } from '@mantine/core';
|
|
43
|
+
import { TextProps } from '@mantine/core';
|
|
44
|
+
import { TitleOrder } from '@mantine/core';
|
|
45
|
+
import { TitleProps } from '@mantine/core';
|
|
42
46
|
import { VideoHTMLAttributes } from 'react';
|
|
43
47
|
import { YooEditor } from '@yoopta/editor';
|
|
44
48
|
import { YooptaContentValue } from '@yoopta/editor';
|
|
@@ -575,6 +579,23 @@ export declare function getCDNImageURL(imageId: string | undefined, width?: numb
|
|
|
575
579
|
|
|
576
580
|
export declare function getCDNVideoURL(videoId: string | undefined, format?: "mp4" | "webm" | "mov", controls?: boolean): string | undefined;
|
|
577
581
|
|
|
582
|
+
export declare function Header({ order, kicker, description, kickerProps, titleProps, descriptionProps, children, ...boxProps }: PropsWithChildren<HeaderProps>): ReactElement;
|
|
583
|
+
|
|
584
|
+
export declare interface HeaderProps extends BoxProps {
|
|
585
|
+
/** The kicker text to display above the title */
|
|
586
|
+
kicker?: ReactNode;
|
|
587
|
+
/** Heading order (1-6), controls `font-size` when `size` is not set on the title. @default `1` */
|
|
588
|
+
order?: TitleOrder;
|
|
589
|
+
/** A description text to display below the title */
|
|
590
|
+
description?: string;
|
|
591
|
+
/** Props to pass to the kicker component */
|
|
592
|
+
kickerProps?: TextProps;
|
|
593
|
+
/** Props to pass to the title component */
|
|
594
|
+
titleProps?: TitleProps;
|
|
595
|
+
/** Props to pass to the description component */
|
|
596
|
+
descriptionProps?: TextProps;
|
|
597
|
+
}
|
|
598
|
+
|
|
578
599
|
export declare interface Heading {
|
|
579
600
|
id: string;
|
|
580
601
|
text: string;
|