vanilla-jui 1.7.7 → 1.7.8

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 CHANGED
@@ -1008,6 +1008,14 @@ interface TocClassNames {
1008
1008
  indicator: string;
1009
1009
  }
1010
1010
  type TocClassNameConfig = Partial<TocClassNames>;
1011
+ interface TocIndicatorConfig {
1012
+ width: string;
1013
+ heightRatio: number;
1014
+ radius: string;
1015
+ left: string;
1016
+ color: string;
1017
+ }
1018
+ type TocIndicatorConfigInput = Partial<TocIndicatorConfig>;
1011
1019
  interface TocItem {
1012
1020
  id: string;
1013
1021
  text: string;
@@ -1030,8 +1038,7 @@ interface TocProps extends Record<string, unknown> {
1030
1038
  offset?: number;
1031
1039
  reactive?: boolean;
1032
1040
  title?: boolean;
1033
- indicatorWidth?: string;
1034
- indicatorHeightRatio?: number;
1041
+ indicator?: TocIndicatorConfigInput;
1035
1042
  className?: TocClassNameConfig;
1036
1043
  onChange?: ((item: TocItem | null, index: number, toc: TocInstance) => void) | null;
1037
1044
  }
@@ -1041,8 +1048,7 @@ interface ResolvedTocProps extends Record<string, unknown> {
1041
1048
  offset: number;
1042
1049
  reactive: boolean;
1043
1050
  title: boolean;
1044
- indicatorWidth: string;
1045
- indicatorHeightRatio: number;
1051
+ indicator: TocIndicatorConfig;
1046
1052
  className: TocClassNames;
1047
1053
  onChange: ((item: TocItem | null, index: number, toc: TocInstance) => void) | null;
1048
1054
  }