@formkit/pro 0.129.0 → 0.129.2-next.773ca2

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
@@ -211,6 +211,8 @@ export declare const currency: FormKitProInput;
211
211
 
212
212
  /**
213
213
  * Slot data for currency
214
+ *
215
+ * @public
214
216
  */
215
217
  export declare interface CurrencySlotData<Props extends FormKitInputs<Props>> {
216
218
  type: 'currency';
@@ -306,6 +308,7 @@ export declare interface DropdownSlotData {
306
308
  debounce?: number | string;
307
309
  multiple?: Bool;
308
310
  selectionAppearance?: 'truncate' | 'tags';
311
+ optionsAppearance?: 'checkbox';
309
312
  openOnClick?: Bool;
310
313
  filter?: (option: FormKitOptionsItem, search: string) => boolean;
311
314
  optionLoader?: OptionLoader;
@@ -362,6 +365,11 @@ declare type ExtendableSchema<IsRoot> = IsRoot extends true ? FormKitExtendableS
362
365
 
363
366
  export { FormatStyleObj }
364
367
 
368
+ /**
369
+ * Autocomplete slots.
370
+ *
371
+ * @public
372
+ */
365
373
  export declare interface FormKitAutocompleteSlots<Props extends FormKitInputs<Props>> {
366
374
  outer: FormKitSlotData<Props, AutocompleteSlotData>;
367
375
  wrapper: FormKitSlotData<Props, AutocompleteSlotData>;
@@ -461,6 +469,11 @@ declare interface FormKitColorpickerSlotData {
461
469
  };
462
470
  }
463
471
 
472
+ /**
473
+ * Colorpicker slots.
474
+ *
475
+ * @public
476
+ */
464
477
  export declare interface FormKitColorpickerSlots<Props extends FormKitInputs<Props>> {
465
478
  swatchPreview: FormKitSlotData<Props, FormKitColorpickerSlotData>;
466
479
  valueString: FormKitSlotData<Props, FormKitColorpickerSlotData>;
@@ -599,6 +612,11 @@ export declare interface FormKitDatePickerSlots<Props extends FormKitInputs<Prop
599
612
  yearsHeader: FormKitSlotData<Props, DatePickerSlotData>;
600
613
  }
601
614
 
615
+ /**
616
+ * Dropdown slots.
617
+ *
618
+ * @public
619
+ */
602
620
  export declare interface FormKitDropdownSlots<Props extends FormKitInputs<Props>> {
603
621
  outer: FormKitSlotData<Props, DropdownSlotData>;
604
622
  wrapper: FormKitSlotData<Props, DropdownSlotData>;
@@ -666,6 +684,11 @@ export declare interface FormKitOptionsLoader {
666
684
  (...args: any[]): Promise<FormKitOptionsProp> | FormKitOptionsProp;
667
685
  }
668
686
 
687
+ /**
688
+ * Overlay slots.
689
+ *
690
+ * @public
691
+ */
669
692
  export declare type FormKitOverlaySlots<Props extends FormKitInputs<Props>> = Props['overlay'] extends Yes ? {
670
693
  overlay: FormKitSlotData<Props, DatePickerSlotData>;
671
694
  overlayChar: FormKitSlotData<Props, DatePickerSlotData & {
@@ -726,6 +749,11 @@ declare interface FormKitProSection<IsRoot extends boolean = false> {
726
749
  (...children: Array<string | FormKitProExtendableSection>): FormKitProExtendableSection<IsRoot>;
727
750
  }
728
751
 
752
+ /**
753
+ * Rating slots.
754
+ *
755
+ * @public
756
+ */
729
757
  export declare interface FormKitRatingSlots<Props extends FormKitInputs<Props>> {
730
758
  itemsWrapper: FormKitSlotData<Props, RatingSlotData>;
731
759
  onItem: FormKitSlotData<Props, RatingSlotData & {
@@ -893,6 +921,11 @@ export declare interface FormKitSliderSlots<Props extends FormKitInputs<Props>>
893
921
  messages: FormKitSlotData<Props, SliderSlotData>;
894
922
  }
895
923
 
924
+ /**
925
+ * Taglist slots.
926
+ *
927
+ * @public
928
+ */
896
929
  export declare interface FormKitTaglistSlots<Props extends FormKitInputs<Props>> {
897
930
  outer: FormKitSlotData<Props, TaglistSlotData>;
898
931
  wrapper: FormKitSlotData<Props, TaglistSlotData>;
@@ -1087,6 +1120,11 @@ declare interface Meta {
1087
1120
  type: 'placeholder' | 'literal' | 'char' | 'enum';
1088
1121
  }
1089
1122
 
1123
+ /**
1124
+ * Loads or resolves an option for option-based inputs.
1125
+ *
1126
+ * @public
1127
+ */
1090
1128
  export declare interface OptionLoader {
1091
1129
  (value: any, cachedItem: FormKitOptionsItem<any>): FormKitOptionsItem<any> | string | void | Promise<FormKitOptionsItem<any> | string | void>;
1092
1130
  }
@@ -1107,6 +1145,8 @@ export declare type Panels = 'year' | 'month' | 'day' | 'time';
1107
1145
 
1108
1146
  /**
1109
1147
  * A map of the parts used
1148
+ *
1149
+ * @public
1110
1150
  */
1111
1151
  export declare type PartMap<T = MaskPart> = {
1112
1152
  [index: string]: T;
@@ -1186,11 +1226,21 @@ export declare interface SliderChartSlots<Props extends FormKitInputs<Props>> {
1186
1226
  chartBar: FormKitSlotData<Props, SliderSlotData>;
1187
1227
  }
1188
1228
 
1229
+ /**
1230
+ * Intervals used by slider inputs.
1231
+ *
1232
+ * @public
1233
+ */
1189
1234
  export declare type SliderIntervals = {
1190
1235
  value: number;
1191
1236
  step: number;
1192
1237
  }[];
1193
1238
 
1239
+ /**
1240
+ * Scaling function used by slider inputs.
1241
+ *
1242
+ * @public
1243
+ */
1194
1244
  export declare type SliderScalingFunction = {
1195
1245
  forward: (value: number, min?: number, max?: number) => number;
1196
1246
  reverse: (value: number, min?: number, max?: number) => number;
@@ -1242,9 +1292,15 @@ export declare interface SliderSlotData {
1242
1292
  */
1243
1293
  export declare const taglist: FormKitProInput;
1244
1294
 
1295
+ /**
1296
+ * Data available to taglist slots.
1297
+ *
1298
+ * @public
1299
+ */
1245
1300
  export declare interface TaglistSlotData {
1246
1301
  options: FormKitOptionsItem[];
1247
1302
  debounce?: number | string;
1303
+ optionsAppearance?: 'checkbox';
1248
1304
  openOnClick?: Bool;
1249
1305
  filter?: (option: FormKitOptionsItem, search: string) => boolean;
1250
1306
  optionLoader?: OptionLoader;
@@ -1303,6 +1359,8 @@ export declare const togglebuttons: FormKitProInput;
1303
1359
 
1304
1360
  /**
1305
1361
  * Slot data for togglebuttons
1362
+ *
1363
+ * @public
1306
1364
  */
1307
1365
  export declare interface TogglebuttonsSlotData<Props extends FormKitInputs<Props>> {
1308
1366
  onValue?: any;
@@ -1324,6 +1382,8 @@ export declare interface TogglebuttonsSlotData<Props extends FormKitInputs<Props
1324
1382
 
1325
1383
  /**
1326
1384
  * Slot data for toggles
1385
+ *
1386
+ * @public
1327
1387
  */
1328
1388
  export declare interface ToggleSlotData<Props extends FormKitInputs<Props>> {
1329
1389
  onValue: Props['onValue'] extends AllReals ? Props['onValue'] : true;
@@ -1407,6 +1467,11 @@ export declare interface TransferlistSlotData {
1407
1467
  };
1408
1468
  }
1409
1469
 
1470
+ /**
1471
+ * Transferlist slots.
1472
+ *
1473
+ * @public
1474
+ */
1410
1475
  export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
1411
1476
  outer: FormKitSlotData<Props, TransferlistSlotData>;
1412
1477
  fieldset: FormKitSlotData<Props, TransferlistSlotData>;
@@ -1466,10 +1531,17 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
1466
1531
  */
1467
1532
  export declare const unit: FormKitProInput;
1468
1533
 
1534
+ /**
1535
+ * Unit types supported by unit conversions.
1536
+ *
1537
+ * @public
1538
+ */
1469
1539
  export declare type Units = DistanceUnits | TemperatureUnits | AreaUnits | WeightUnits | VolumenUnits | TimeUnits;
1470
1540
 
1471
1541
  /**
1472
1542
  * Slot data for unit
1543
+ *
1544
+ * @public
1473
1545
  */
1474
1546
  export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
1475
1547
  type: 'unit';
@@ -1512,6 +1584,11 @@ declare module '@formkit/core' {
1512
1584
  /* </declare> */
1513
1585
  /* <declare> */
1514
1586
  import type { FormKitBaseSlots } from '@formkit/inputs'
1587
+ /**
1588
+ * Loads or resolves an option for option-based inputs.
1589
+ *
1590
+ * @public
1591
+ */
1515
1592
  export interface OptionLoader {
1516
1593
  (value: any, cachedItem: FormKitOptionsItem<any>):
1517
1594
  | FormKitOptionsItem<any>
@@ -1636,6 +1713,7 @@ declare module '@formkit/inputs' {
1636
1713
  popover?: Bool
1637
1714
  options?: FormKitProOptionsProp
1638
1715
  selectionAppearance?: 'truncate' | 'tags'
1716
+ optionsAppearance?: Props['multiple'] extends Yes ? 'checkbox' : undefined
1639
1717
  filter?: (option: FormKitOptionsItem, search: string) => boolean
1640
1718
  optionLoader?: OptionLoader
1641
1719
  emptyMessage?: string
@@ -1724,6 +1802,7 @@ declare module '@formkit/inputs' {
1724
1802
  debounce?: number | string
1725
1803
  options?: FormKitProOptionsProp
1726
1804
  selectionAppearance?: 'truncate' | 'tags'
1805
+ optionsAppearance?: 'checkbox'
1727
1806
  popover?: Bool
1728
1807
  openOnClick?: Bool
1729
1808
  filter?: (option: FormKitOptionsItem, search: string) => boolean