@formkit/pro
Advanced tools
Comparing version 0.126.15 to 0.126.16-6161671
@@ -28,2 +28,4 @@ import type { AllReals } from '@formkit/inputs'; | ||
declare type AreaUnits = 'acre' | 'hectare'; | ||
/** | ||
@@ -289,2 +291,4 @@ * Input definition for a autocomplete input. | ||
declare type DistanceUnits = 'meter' | 'kilometer' | 'centimeter' | 'millimeter' | 'mile' | 'yard' | 'foot' | 'inch' | 'mile-scandinavian'; | ||
/** | ||
@@ -1279,2 +1283,6 @@ * Input definition for a dropdown input. | ||
declare type TemperatureUnits = 'celsius' | 'fahrenheit'; | ||
declare type TimeUnits = 'day' | 'hour' | 'microsecond' | 'millisecond' | 'minute' | 'month' | 'nanosecond' | 'second' | 'week' | 'year'; | ||
/** | ||
@@ -1457,2 +1465,4 @@ * Input definition for a toggle input. | ||
export declare type Units = DistanceUnits | TemperatureUnits | AreaUnits | WeightUnits | VolumenUnits | TimeUnits; | ||
/** | ||
@@ -1485,2 +1495,6 @@ * Slot data for unit | ||
declare type VolumenUnits = 'liter' | 'milliliter' | 'gallon' | 'fluid-ounce'; | ||
declare type WeightUnits = 'gram' | 'kilogram' | 'stone' | 'ounce' | 'pound'; | ||
declare type Yes = 'true' | true | ''; | ||
@@ -1577,3 +1591,3 @@ | ||
disabled?: Bool | ||
unit?: string | ||
unit: Units | ||
displayLocale?: string | ||
@@ -1585,4 +1599,5 @@ decimals?: Bool | number | string | ||
step?: number | ||
// valueLocale?: string | ||
// valueFormat?: string | ||
valueUnit?: Units | ||
valueUnitDecimals?: number | ||
unitFormatting: boolean | string | ||
} | ||
@@ -1589,0 +1604,0 @@ |
{ | ||
"name": "@formkit/pro", | ||
"version": "0.126.15", | ||
"version": "0.126.16-6161671", | ||
"description": "FormKit Pro — Form inputs and tools for high quality forms.", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
import { FormKitProInput } from '@formkit/pro' | ||
import { options as optionsCore } from '@formkit/inputs' | ||
import { | ||
@@ -12,3 +11,3 @@ outer, | ||
message, | ||
prefix, | ||
prefix, | ||
suffix, | ||
@@ -30,9 +29,3 @@ icon, | ||
label('$label'), | ||
inner( | ||
icon('prefix'), | ||
prefix(), | ||
input(), | ||
suffix(), | ||
icon('suffix') | ||
) | ||
inner(icon('prefix'), prefix(), input(), suffix(), icon('suffix')) | ||
), | ||
@@ -50,12 +43,5 @@ help('$help'), | ||
/** | ||
* An array of extra props to accept for this input. | ||
*/ | ||
props: [ | ||
'options' | ||
], | ||
/** | ||
* Additional features that make this input work. | ||
*/ | ||
features: [unitFeatures, optionsCore], | ||
features: [unitFeatures], | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
758510
5823