@formkit/pro 0.126.15 → 0.126.16-6161671
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/currency/index.mjs +1 -1
- package/index.cjs +10 -10
- package/index.d.ts +18 -3
- package/index.mjs +65 -65
- package/package.json +1 -1
- package/unit/index.mjs +1 -1
- package/unit/unit.ts +3 -17
package/index.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ import { FormKitTypeDefinition } from '@formkit/core';
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function $if(condition: string, then: FormKitProExtendableSection | string, otherwise?: FormKitProExtendableSection | string): FormKitProExtendableSection;
|
|
27
27
|
|
|
28
|
+
declare type AreaUnits = 'acre' | 'hectare';
|
|
29
|
+
|
|
28
30
|
/**
|
|
29
31
|
* Input definition for a autocomplete input.
|
|
30
32
|
* @public
|
|
@@ -285,6 +287,8 @@ export declare type DatePickerSlotData = {
|
|
|
285
287
|
yearFormat: string;
|
|
286
288
|
};
|
|
287
289
|
|
|
290
|
+
declare type DistanceUnits = 'meter' | 'kilometer' | 'centimeter' | 'millimeter' | 'mile' | 'yard' | 'foot' | 'inch' | 'mile-scandinavian';
|
|
291
|
+
|
|
288
292
|
/**
|
|
289
293
|
* Input definition for a dropdown input.
|
|
290
294
|
* @public
|
|
@@ -1274,6 +1278,10 @@ export declare interface TaglistSlotData {
|
|
|
1274
1278
|
};
|
|
1275
1279
|
}
|
|
1276
1280
|
|
|
1281
|
+
declare type TemperatureUnits = 'celsius' | 'fahrenheit';
|
|
1282
|
+
|
|
1283
|
+
declare type TimeUnits = 'day' | 'hour' | 'microsecond' | 'millisecond' | 'minute' | 'month' | 'nanosecond' | 'second' | 'week' | 'year';
|
|
1284
|
+
|
|
1277
1285
|
/**
|
|
1278
1286
|
* Input definition for a toggle input.
|
|
1279
1287
|
* @public
|
|
@@ -1451,6 +1459,8 @@ export declare interface TransferlistSlots<Props extends FormKitInputs<Props>> {
|
|
|
1451
1459
|
*/
|
|
1452
1460
|
export declare const unit: FormKitProInput;
|
|
1453
1461
|
|
|
1462
|
+
export declare type Units = DistanceUnits | TemperatureUnits | AreaUnits | WeightUnits | VolumenUnits | TimeUnits;
|
|
1463
|
+
|
|
1454
1464
|
/**
|
|
1455
1465
|
* Slot data for unit
|
|
1456
1466
|
*/
|
|
@@ -1478,6 +1488,10 @@ export declare interface UnitSlotData<Props extends FormKitInputs<Props>> {
|
|
|
1478
1488
|
};
|
|
1479
1489
|
}
|
|
1480
1490
|
|
|
1491
|
+
declare type VolumenUnits = 'liter' | 'milliliter' | 'gallon' | 'fluid-ounce';
|
|
1492
|
+
|
|
1493
|
+
declare type WeightUnits = 'gram' | 'kilogram' | 'stone' | 'ounce' | 'pound';
|
|
1494
|
+
|
|
1481
1495
|
declare type Yes = 'true' | true | '';
|
|
1482
1496
|
|
|
1483
1497
|
/* <declare> */
|
|
@@ -1569,15 +1583,16 @@ declare module '@formkit/inputs' {
|
|
|
1569
1583
|
value?: string | number
|
|
1570
1584
|
label?: string
|
|
1571
1585
|
disabled?: Bool
|
|
1572
|
-
unit
|
|
1586
|
+
unit: Units
|
|
1573
1587
|
displayLocale?: string
|
|
1574
1588
|
decimals?: Bool | number | string
|
|
1575
1589
|
minDecimals?: number | string
|
|
1576
1590
|
min?: number | string
|
|
1577
1591
|
max?: number | string
|
|
1578
1592
|
step?: number
|
|
1579
|
-
|
|
1580
|
-
|
|
1593
|
+
valueUnit?: Units
|
|
1594
|
+
valueUnitDecimals?: number
|
|
1595
|
+
unitFormatting: boolean | string
|
|
1581
1596
|
}
|
|
1582
1597
|
|
|
1583
1598
|
datepicker: {
|