@gv-tech/ui-core 2.15.1 → 2.16.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.d.ts +46 -0
- package/package.json +1 -1
- package/src/contracts/search.ts +1 -0
- package/src/contracts/table-of-contents.ts +50 -0
- package/src/index.ts +9 -0
package/dist/index.d.ts
CHANGED
|
@@ -555,6 +555,12 @@ export declare interface FormMessageBaseProps {
|
|
|
555
555
|
children?: React_2.ReactNode;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
+
export declare interface HeadingItem {
|
|
559
|
+
id: string;
|
|
560
|
+
text: string;
|
|
561
|
+
level: number;
|
|
562
|
+
}
|
|
563
|
+
|
|
558
564
|
export declare interface HoverCardBaseProps {
|
|
559
565
|
children?: React_2.ReactNode;
|
|
560
566
|
open?: boolean;
|
|
@@ -869,6 +875,7 @@ export declare interface SearchTriggerBaseProps {
|
|
|
869
875
|
className?: string;
|
|
870
876
|
placeholder?: string;
|
|
871
877
|
variant?: 'default' | 'compact';
|
|
878
|
+
responsive?: boolean;
|
|
872
879
|
}
|
|
873
880
|
|
|
874
881
|
export declare interface SelectBaseProps {
|
|
@@ -1081,6 +1088,45 @@ export declare interface TableHeaderBaseProps {
|
|
|
1081
1088
|
children?: React_2.ReactNode;
|
|
1082
1089
|
}
|
|
1083
1090
|
|
|
1091
|
+
export declare interface TableOfContentsBaseProps {
|
|
1092
|
+
/**
|
|
1093
|
+
* Optional custom class name.
|
|
1094
|
+
*/
|
|
1095
|
+
className?: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Optional currently active heading ID to override the intersection observer.
|
|
1098
|
+
*/
|
|
1099
|
+
activeId?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* Optional minimum heading level to include.
|
|
1102
|
+
* Default: 1 (h1)
|
|
1103
|
+
*/
|
|
1104
|
+
minLevel?: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* Optional maximum heading level to include.
|
|
1107
|
+
* Default: 3 (h3)
|
|
1108
|
+
*/
|
|
1109
|
+
maxLevel?: number;
|
|
1110
|
+
/**
|
|
1111
|
+
* The selector used to query the DOM for headings.
|
|
1112
|
+
* Default: "h1, h2, h3, h4, h5, h6"
|
|
1113
|
+
*/
|
|
1114
|
+
selector?: string;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
export declare interface TableOfContentsContentBaseProps {
|
|
1118
|
+
children: React_2.ReactNode;
|
|
1119
|
+
className?: string;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
export declare interface TableOfContentsListBaseProps {
|
|
1123
|
+
className?: string;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
export declare interface TableOfContentsRootBaseProps extends TableOfContentsBaseProps {
|
|
1127
|
+
children: React_2.ReactNode;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1084
1130
|
export declare interface TableRowBaseProps {
|
|
1085
1131
|
className?: string;
|
|
1086
1132
|
children?: React_2.ReactNode;
|
package/package.json
CHANGED
package/src/contracts/search.ts
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TableOfContentsBaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* Optional custom class name.
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Optional currently active heading ID to override the intersection observer.
|
|
11
|
+
*/
|
|
12
|
+
activeId?: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Optional minimum heading level to include.
|
|
16
|
+
* Default: 1 (h1)
|
|
17
|
+
*/
|
|
18
|
+
minLevel?: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Optional maximum heading level to include.
|
|
22
|
+
* Default: 3 (h3)
|
|
23
|
+
*/
|
|
24
|
+
maxLevel?: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The selector used to query the DOM for headings.
|
|
28
|
+
* Default: "h1, h2, h3, h4, h5, h6"
|
|
29
|
+
*/
|
|
30
|
+
selector?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface TableOfContentsRootBaseProps extends TableOfContentsBaseProps {
|
|
34
|
+
children: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface TableOfContentsListBaseProps {
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface TableOfContentsContentBaseProps {
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface HeadingItem {
|
|
47
|
+
id: string;
|
|
48
|
+
text: string;
|
|
49
|
+
level: number;
|
|
50
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -325,3 +325,12 @@ export type { ThemeToggleBaseProps } from './contracts/theme-toggle';
|
|
|
325
325
|
|
|
326
326
|
// Toaster
|
|
327
327
|
export type { ToasterBaseProps } from './contracts/toaster';
|
|
328
|
+
|
|
329
|
+
// TableOfContents
|
|
330
|
+
export type {
|
|
331
|
+
HeadingItem,
|
|
332
|
+
TableOfContentsBaseProps,
|
|
333
|
+
TableOfContentsContentBaseProps,
|
|
334
|
+
TableOfContentsListBaseProps,
|
|
335
|
+
TableOfContentsRootBaseProps,
|
|
336
|
+
} from './contracts/table-of-contents';
|