@formkit/pro 0.126.15 → 0.126.16-17d9277
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 +19 -3
- package/index.mjs +65 -65
- package/package.json +1 -1
- package/unit/index.mjs +1 -1
- package/unit/unit.ts +3 -17
package/package.json
CHANGED
package/unit/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSectionFactory as
|
|
1
|
+
import{createSectionFactory as e,createBaseSections as a}from"../index.mjs";const n=/* #__PURE__ */e("ut"),{outer:l,inner:t,wrapper:d,label:o,prefix:r,suffix:i,help:u,messages:s,message:$,icon:p}=/* #__PURE__ */a(n),c=n("input",(()=>({$el:"input",bind:"$attrs",attrs:{name:"$node.name",autocomplete:"$attrs.autocomplete || off",id:"$id",onChange:"$handlers.handleInput",onBlur:"$handlers.unitBlur",onInput:"$handlers.handleInput",onKeydown:"$handlers.handleKeyDown",onBeforeinput:"$handlers.handleBeforeInput",readonly:"$readonly",inputmode:"decimal",placeholder:"$placeholder || $unitParts.unit",disabled:"$disabled","data-unit":"$unit","data-currency":"$currency","data-display-locale":"$displayLocale","data-value-locale":"$valueLocale","data-decimals":"$decimals","data-trailing":"$trailingZeros","data-numeric-value":"$_numericValue","data-align":"$_valueAlignAuto"}})));export{n as createSection,u as help,p as icon,t as inner,c as input,o as label,$ as message,s as messages,l as outer,r as prefix,i as suffix,d as wrapper};
|
package/unit/unit.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FormKitProInput } from '@formkit/pro'
|
|
2
|
-
import { options as optionsCore } from '@formkit/inputs'
|
|
3
2
|
import {
|
|
4
3
|
outer,
|
|
5
4
|
inner,
|
|
@@ -9,7 +8,7 @@ import {
|
|
|
9
8
|
help,
|
|
10
9
|
messages,
|
|
11
10
|
message,
|
|
12
|
-
prefix,
|
|
11
|
+
prefix,
|
|
13
12
|
suffix,
|
|
14
13
|
icon,
|
|
15
14
|
} from '../sections/unitSections'
|
|
@@ -26,13 +25,7 @@ export const unit: FormKitProInput = {
|
|
|
26
25
|
schema: outer(
|
|
27
26
|
wrapper(
|
|
28
27
|
label('$label'),
|
|
29
|
-
inner(
|
|
30
|
-
icon('prefix'),
|
|
31
|
-
prefix(),
|
|
32
|
-
input(),
|
|
33
|
-
suffix(),
|
|
34
|
-
icon('suffix')
|
|
35
|
-
)
|
|
28
|
+
inner(icon('prefix'), prefix(), input(), suffix(), icon('suffix'))
|
|
36
29
|
),
|
|
37
30
|
help('$help'),
|
|
38
31
|
messages(message('$message.value'))
|
|
@@ -44,15 +37,8 @@ export const unit: FormKitProInput = {
|
|
|
44
37
|
|
|
45
38
|
family: 'text',
|
|
46
39
|
|
|
47
|
-
/**
|
|
48
|
-
* An array of extra props to accept for this input.
|
|
49
|
-
*/
|
|
50
|
-
props: [
|
|
51
|
-
'options'
|
|
52
|
-
],
|
|
53
|
-
|
|
54
40
|
/**
|
|
55
41
|
* Additional features that make this input work.
|
|
56
42
|
*/
|
|
57
|
-
features: [unitFeatures
|
|
43
|
+
features: [unitFeatures],
|
|
58
44
|
}
|