@surrealdb/ui 1.0.102 → 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/icons.d.ts CHANGED
@@ -350,13 +350,6 @@ export declare const Xml: string;
350
350
 
351
351
  export { }
352
352
 
353
- declare module "@mantine/core" {
354
- type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
355
- interface MantineThemeSizesOverride {
356
- spacing: Record<ExtendedCustomSizes, string>;
357
- }
358
- }
359
-
360
353
  declare module "@mantine/core" {
361
354
  type SurrealVariant = "surreal";
362
355
  type SurrealInputVariant = SurrealVariant | "gradient";
@@ -482,3 +475,10 @@ declare module "@mantine/core" {
482
475
  colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
483
476
  }
484
477
  }
478
+
479
+ declare module "@mantine/core" {
480
+ type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
481
+ interface MantineThemeSizesOverride {
482
+ spacing: Record<ExtendedCustomSizes, string>;
483
+ }
484
+ }
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;
@@ -2117,13 +2138,6 @@ declare interface ZeroOrMoreNode {
2117
2138
 
2118
2139
  export { }
2119
2140
 
2120
- declare module "@mantine/core" {
2121
- type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
2122
- interface MantineThemeSizesOverride {
2123
- spacing: Record<ExtendedCustomSizes, string>;
2124
- }
2125
- }
2126
-
2127
2141
  declare module "@mantine/core" {
2128
2142
  type SurrealVariant = "surreal";
2129
2143
  type SurrealInputVariant = SurrealVariant | "gradient";
@@ -2249,3 +2263,10 @@ declare module "@mantine/core" {
2249
2263
  colors: Record<ExtendedCustomColors, import("@mantine/core").MantineColorsTuple>;
2250
2264
  }
2251
2265
  }
2266
+
2267
+ declare module "@mantine/core" {
2268
+ type ExtendedCustomSizes = import("@mantine/core").DefaultMantineSize | "2xl" | "3xl";
2269
+ interface MantineThemeSizesOverride {
2270
+ spacing: Record<ExtendedCustomSizes, string>;
2271
+ }
2272
+ }