@formkit/pro 0.115.9 → 0.115.10-4a6aac9

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/index.d.ts CHANGED
@@ -958,6 +958,16 @@ export declare interface SliderChartSlots<Props extends FormKitInputs<Props>> {
958
958
  chartBar: FormKitSlotData<Props, SliderSlotData>;
959
959
  }
960
960
 
961
+ export declare type SliderIntervals = {
962
+ value: number;
963
+ step: number;
964
+ }[];
965
+
966
+ export declare type SliderScalingFunction = {
967
+ forward: (value: number, min?: number, max?: number) => number;
968
+ reverse: (value: number, min?: number, max?: number) => number;
969
+ };
970
+
961
971
  /**
962
972
  * Slot data for sliders.
963
973
  *
@@ -1204,7 +1214,6 @@ declare module '@formkit/core' {
1204
1214
  }
1205
1215
  /* </declare> */
1206
1216
  /* <declare> */
1207
-
1208
1217
  export interface OptionLoader {
1209
1218
  (value: any, cachedItem: FormKitOptionsItem<any>):
1210
1219
  | FormKitOptionsItem<any>
@@ -1345,6 +1354,8 @@ declare module '@formkit/inputs' {
1345
1354
  suffix?: string
1346
1355
  tooltip?: Bool
1347
1356
  tooltipFormat?: (value: number, handle: string) => string | undefined
1357
+ scalingFunction?: 'linear' | 'log' | SliderScalingFunction
1358
+ intervals?: SliderIntervals
1348
1359
  }
1349
1360
 
1350
1361
  taglist: {