@formkit/pro 0.122.16-b9c1fd1 → 0.122.17

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
@@ -201,39 +201,6 @@ export declare function createProPlugin(apiKey: string, inputs?: Record<string,
201
201
  */
202
202
  export declare function createSectionFactory(inputCode: string): SectionFactory;
203
203
 
204
- /**
205
- * Input definition for a toggle group input.
206
- * @public
207
- */
208
- export declare const currency: FormKitProInput;
209
-
210
- /**
211
- * Slot data for currency
212
- */
213
- export declare interface CurrencySlotData<Props extends FormKitInputs<Props>> {
214
- type: 'currency';
215
- value?: string | number;
216
- label?: string;
217
- disabled?: Bool;
218
- currency?: string;
219
- decimals?: Bool | number;
220
- minDecimals?: Bool | number;
221
- min?: number;
222
- max?: number;
223
- step?: number;
224
- displayLocale?: string;
225
- valueFormat?: string;
226
- handlers: FormKitFrameworkContext['handlers'] & {
227
- init(): void;
228
- handleInput: (e: InputEvent) => void;
229
- handleFocus: (e: InputEvent) => void;
230
- handleBlur(): void;
231
- handleBeforeInput: (e: InputEvent) => void;
232
- handleClick(e: MouseEvent): void;
233
- handleKeyDown: (e: InputEvent) => void;
234
- };
235
- }
236
-
237
204
  /**
238
205
  * Input definition for a datepicker input.
239
206
  * @public
@@ -492,23 +459,6 @@ export declare interface FormKitColorpickerSlots<Props extends FormKitInputs<Pro
492
459
  }>;
493
460
  }
494
461
 
495
- /**
496
- * Currency slots.
497
- *
498
- * @public
499
- */
500
- export declare interface FormKitCurrencySlots<Props extends FormKitInputs<Props>> {
501
- wrapper: FormKitSlotData<Props, CurrencySlotData<Props>>;
502
- input: FormKitSlotData<Props, CurrencySlotData<Props>>;
503
- prefix: FormKitSlotData<Props, CurrencySlotData<Props>>;
504
- suffix: FormKitSlotData<Props, CurrencySlotData<Props>>;
505
- help: FormKitSlotData<Props, CurrencySlotData<Props>>;
506
- messages: FormKitSlotData<Props, CurrencySlotData<Props>>;
507
- message: FormKitSlotData<Props, CurrencySlotData<Props> & {
508
- message: FormKitMessage;
509
- }>;
510
- }
511
-
512
462
  /**
513
463
  * Slot information that pertains specifically to the datepicker input.
514
464
  *
@@ -683,7 +633,6 @@ export declare type FormKitOverlaySlots<Props extends FormKitInputs<Props>> = Pr
683
633
  */
684
634
  declare interface FormKitProExtendableSection<IsRoot extends boolean = false> {
685
635
  (apiKey: string): ExtendableSchema<IsRoot>;
686
- _s?: string;
687
636
  }
688
637
 
689
638
  /**
@@ -996,23 +945,6 @@ export declare interface FormKitToggleSlots<Props extends FormKitInputs<Props>>
996
945
  }>;
997
946
  }
998
947
 
999
- /**
1000
- * Unit slots.
1001
- *
1002
- * @public
1003
- */
1004
- export declare interface FormKitUnitSlots<Props extends FormKitInputs<Props>> {
1005
- wrapper: FormKitSlotData<Props, UnitSlotData<Props>>;
1006
- input: FormKitSlotData<Props, UnitSlotData<Props>>;
1007
- prefix: FormKitSlotData<Props, UnitSlotData<Props>>;
1008
- suffix: FormKitSlotData<Props, UnitSlotData<Props>>;
1009
- help: FormKitSlotData<Props, UnitSlotData<Props>>;
1010
- messages: FormKitSlotData<Props, UnitSlotData<Props>>;
1011
- message: FormKitSlotData<Props, UnitSlotData<Props> & {
1012
- message: FormKitMessage;
1013
- }>;
1014
- }
1015
-
1016
948
  /**
1017
949
  * Behavioral group options.
1018
950
  */
@@ -1041,9 +973,7 @@ declare namespace inputs {
1041
973
  transferlist,
1042
974
  slider,
1043
975
  colorpicker,
1044
- togglebuttons,
1045
- currency,
1046
- unit
976
+ togglebuttons
1047
977
  }
1048
978
  }
1049
979
  export { inputs }
@@ -1444,39 +1374,6 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
1444
1374
  }>;
1445
1375
  }
1446
1376
 
1447
- /**
1448
- * Input definition for a toggle group input.
1449
- * @public
1450
- */
1451
- export declare const unit: FormKitProInput;
1452
-
1453
- /**
1454
- * Slot data for unit
1455
- */
1456
- export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
1457
- type: 'unit';
1458
- value?: string | number;
1459
- label?: string;
1460
- disabled?: Bool;
1461
- unit?: string;
1462
- decimals?: Bool | number;
1463
- minDecimals?: Bool | number;
1464
- min?: number;
1465
- max?: number;
1466
- step?: number;
1467
- displayLocale?: string;
1468
- valueFormat?: string;
1469
- handlers: FormKitFrameworkContext['handlers'] & {
1470
- init(): void;
1471
- handleInput: (e: InputEvent) => void;
1472
- handleFocus: (e: InputEvent) => void;
1473
- handleBlur(): void;
1474
- handleBeforeInput: (e: InputEvent) => void;
1475
- handleClick(e: MouseEvent): void;
1476
- handleKeyDown: (e: InputEvent) => void;
1477
- };
1478
- }
1479
-
1480
1377
  declare type Yes = 'true' | true | '';
1481
1378
 
1482
1379
  /* <declare> */
@@ -1513,7 +1410,7 @@ declare module '@formkit/inputs' {
1513
1410
  debounce?: number | string
1514
1411
  multiple?: Bool
1515
1412
  popover?: Bool
1516
- options: FormKitOptionsPropWithGroups
1413
+ options: FormKitProOptionsProp
1517
1414
  selectionAppearance?: 'option' | 'text-input'
1518
1415
  filter?: (option: FormKitOptionsItem, search: string) => boolean
1519
1416
  optionLoader?: OptionLoader
@@ -1547,38 +1444,6 @@ declare module '@formkit/inputs' {
1547
1444
  allowPaste?: Bool
1548
1445
  }
1549
1446
 
1550
- currency: {
1551
- type: 'currency'
1552
- value?: string | number
1553
- label?: string
1554
- disabled?: Bool
1555
- currency?: string
1556
- displayLocale?: string
1557
- decimals?: Bool | number
1558
- minDecimals?: number
1559
- min?: number
1560
- max?: number
1561
- step?: number
1562
- // valueLocale?: string
1563
- // valueFormat?: string
1564
- }
1565
-
1566
- unit: {
1567
- type: 'unit'
1568
- value?: string | number
1569
- label?: string
1570
- disabled?: Bool
1571
- unit?: string
1572
- displayLocale?: string
1573
- decimals?: Bool | number
1574
- minDecimals?: number
1575
- min?: number
1576
- max?: number
1577
- step?: number
1578
- // valueLocale?: string
1579
- // valueFormat?: string
1580
- }
1581
-
1582
1447
  datepicker: {
1583
1448
  type: 'datepicker'
1584
1449
  value?: string | Date
@@ -1611,7 +1476,7 @@ declare module '@formkit/inputs' {
1611
1476
  : OptionsProValue<Props['options']>
1612
1477
  multiple?: Bool
1613
1478
  popover?: Bool
1614
- options?: FormKitOptionsPropWithGroups
1479
+ options?: FormKitProOptionsProp
1615
1480
  selectionAppearance?: 'truncate' | 'tags'
1616
1481
  filter?: (option: FormKitOptionsItem, search: string) => boolean
1617
1482
  optionLoader?: OptionLoader
@@ -1699,7 +1564,7 @@ declare module '@formkit/inputs' {
1699
1564
  type: 'taglist'
1700
1565
  value?: any[]
1701
1566
  debounce?: number | string
1702
- options?: FormKitOptionsPropWithGroups
1567
+ options?: FormKitProOptionsProp
1703
1568
  selectionAppearance?: 'truncate' | 'tags'
1704
1569
  popover?: Bool
1705
1570
  openOnClick?: Bool
@@ -1772,7 +1637,6 @@ declare module '@formkit/inputs' {
1772
1637
  interface FormKitInputSlots<Props extends FormKitInputs<Props>> {
1773
1638
  autocomplete: FormKitAutocompleteSlots<Props>
1774
1639
  colorpicker: FormKitColorpickerSlots<Props>
1775
- currency: FormKitCurrencySlots<Props>
1776
1640
  datepicker: FormKitDatePickerSlots<Props> & FormKitOverlaySlots<Props>
1777
1641
  dropdown: FormKitDropdownSlots<Props>
1778
1642
  mask: FormKitBaseSlots<Props> & FormKitOverlaySlots<Props>
@@ -1786,7 +1650,6 @@ declare module '@formkit/inputs' {
1786
1650
  toggle: FormKitToggleSlots<Props>
1787
1651
  togglebuttons: FormKitTogglebuttonsSlots<Props>
1788
1652
  transferlist: TransferlistSlots<Props>
1789
- unit: FormKitUnitSlots<Props>
1790
1653
  }
1791
1654
  }
1792
1655
  /* </declare> */