@formkit/pro 0.117.1 → 0.117.2

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
@@ -1058,6 +1058,16 @@ export declare interface SliderChartSlots<Props extends FormKitInputs<Props>> {
1058
1058
  chartBar: FormKitSlotData<Props, SliderSlotData>;
1059
1059
  }
1060
1060
 
1061
+ export declare type SliderIntervals = {
1062
+ value: number;
1063
+ step: number;
1064
+ }[];
1065
+
1066
+ export declare type SliderScalingFunction = {
1067
+ forward: (value: number, min?: number, max?: number) => number;
1068
+ reverse: (value: number, min?: number, max?: number) => number;
1069
+ };
1070
+
1061
1071
  /**
1062
1072
  * Slot data for sliders.
1063
1073
  *
@@ -1304,7 +1314,6 @@ declare module '@formkit/core' {
1304
1314
  }
1305
1315
  /* </declare> */
1306
1316
  /* <declare> */
1307
-
1308
1317
  export interface OptionLoader {
1309
1318
  (value: any, cachedItem: FormKitOptionsItem<any>):
1310
1319
  | FormKitOptionsItem<any>
@@ -1460,6 +1469,8 @@ declare module '@formkit/inputs' {
1460
1469
  suffix?: string
1461
1470
  tooltip?: Bool
1462
1471
  tooltipFormat?: (value: number, handle: string) => string | undefined
1472
+ scalingFunction?: 'linear' | 'log' | SliderScalingFunction
1473
+ intervals?: SliderIntervals
1463
1474
  }
1464
1475
 
1465
1476
  taglist: {