@formkit/pro 0.126.14 → 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/mask/index.mjs CHANGED
@@ -1 +1 @@
1
- import{createSectionFactory as e,createBaseSections as r,createMaskOverlaySections as a}from"../index.mjs";const l=/* #__PURE__ */e("mk"),{outer:o,wrapper:n,inner:s,label:d,prefix:i,suffix:t,help:p,messages:u,message:y,icon:$}=/* #__PURE__ */r(l),{overlayPlaceholder:m,overlayLiteral:b,overlayChar:c,overlayEnum:v,overlay:h,overlayParts:f,overlayInner:x}=/* #__PURE__ */a(l),I=l("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onBlur:"$handlers.blur",onInput:"$handlers.DOMInput",value:"$_maskValue",placeholder:"$placeholder",id:"$id","aria-describedby":"$describedBy"}})));export{l as createSection,p as help,$ as icon,s as inner,d as label,I as maskInput,y as message,u as messages,o as outer,h as overlay,c as overlayChar,v as overlayEnum,x as overlayInner,b as overlayLiteral,f as overlayParts,m as overlayPlaceholder,i as prefix,t as suffix,n as wrapper};
1
+ import{createSectionFactory as e,createBaseSections as r,createMaskOverlaySections as a}from"../index.mjs";const l=/* #__PURE__ */e("mk"),{outer:o,wrapper:n,inner:s,label:d,prefix:t,suffix:i,help:p,messages:u,message:m,icon:y}=/* #__PURE__ */r(l),{overlayPlaceholder:$,overlayLiteral:b,overlayChar:c,overlayEnum:v,overlay:h,overlayParts:f,overlayInner:x}=/* #__PURE__ */a(l),I=l("input",(()=>({$el:"input",bind:"$attrs",attrs:{type:"text",disabled:"$disabled",name:"$node.name",onBlur:"$handlers.blur",onInput:"$handlers.DOMInput",value:"$_maskValue",placeholder:"$placeholder",id:"$id","aria-describedby":"$describedBy"}})));export{l as createSection,p as help,y as icon,s as inner,d as label,I as maskInput,m as message,u as messages,o as outer,h as overlay,c as overlayChar,v as overlayEnum,x as overlayInner,b as overlayLiteral,f as overlayParts,$ as overlayPlaceholder,t as prefix,i as suffix,n as wrapper};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formkit/pro",
3
- "version": "0.126.14",
3
+ "version": "0.126.16-17d9277",
4
4
  "description": "FormKit Pro — Form inputs and tools for high quality forms.",
5
5
  "main": "index.cjs",
6
6
  "module": "index.mjs",
@@ -52,30 +52,25 @@ export const repeater: FormKitProInput = {
52
52
  $if(
53
53
  '$value.length === 0',
54
54
  $if('$slots.empty', empty()),
55
- $if(
56
- '$slots.default',
57
- items(
58
- item(
59
- dragHandleWrapper(dragHandle(icon('dragHandle'))),
60
- content(group('$slots.default')),
61
- controls(
62
- up(
63
- upControl(controlLabel('$ui.moveUp.value'), icon('moveUp'))
64
- ),
65
- remove(
66
- removeControl(
67
- controlLabel('$ui.remove.value'),
68
- icon('remove')
69
- )
70
- ),
71
- insert(
72
- insertControl(controlLabel('$ui.add.value'), icon('add'))
73
- ),
74
- down(
75
- downControl(
76
- controlLabel('$ui.moveDown.value'),
77
- icon('moveDown')
78
- )
55
+ items(
56
+ item(
57
+ dragHandleWrapper(dragHandle(icon('dragHandle'))),
58
+ content(group('$slots.default')),
59
+ controls(
60
+ up(upControl(controlLabel('$ui.moveUp.value'), icon('moveUp'))),
61
+ remove(
62
+ removeControl(
63
+ controlLabel('$ui.remove.value'),
64
+ icon('remove')
65
+ )
66
+ ),
67
+ insert(
68
+ insertControl(controlLabel('$ui.add.value'), icon('add'))
69
+ ),
70
+ down(
71
+ downControl(
72
+ controlLabel('$ui.moveDown.value'),
73
+ icon('moveDown')
79
74
  )
80
75
  )
81
76
  )
package/unit/index.mjs CHANGED
@@ -1 +1 @@
1
- import{createSectionFactory as a,createBaseSections as e}from"../index.mjs";const n=/* #__PURE__ */a("ut"),{outer:l,inner:t,wrapper:d,label:o,prefix:i,suffix:r,help:u,messages:s,message:p,icon:$}=/* #__PURE__ */e(n),c=n("input",(()=>({$el:"input",bind:"$attrs",attrs:{name:"$node.name",autocomplete:"$attrs.autocomplete || off",id:"$id",onChange:"$handlers.handleInput",onInput:"$handlers.handleInput",onKeydown:"$handlers.handleKeyDown",onBeforeinput:"$handlers.handleBeforeInput",readonly:"$readonly",inputmode:"decimal",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,$ as icon,t as inner,c as input,o as label,p as message,s as messages,l as outer,i as prefix,r as suffix,d as wrapper};
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, optionsCore],
43
+ features: [unitFeatures],
58
44
  }