@formkit/pro 1.0.0-alpha.37-8aaac25 → 1.0.0-alpha.38
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/genesis.css +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -15
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/datepicker/datepicker.ts +0 -115
- package/datepicker/index.mjs +0 -1
- package/mask/index.mjs +0 -1
- package/mask/mask.ts +0 -53
package/mask/mask.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { FormKitProInput } from '@formkit/pro'
|
|
2
|
-
import {
|
|
3
|
-
outer,
|
|
4
|
-
wrapper,
|
|
5
|
-
inner,
|
|
6
|
-
label,
|
|
7
|
-
prefix,
|
|
8
|
-
suffix,
|
|
9
|
-
help,
|
|
10
|
-
messages,
|
|
11
|
-
message,
|
|
12
|
-
icon,
|
|
13
|
-
maskInput,
|
|
14
|
-
} from '../sections/maskSections'
|
|
15
|
-
import useMask from '../features/mask'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Input definition for a mask input.
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
export const mask: FormKitProInput = {
|
|
22
|
-
/**
|
|
23
|
-
* The actual schema of the input, or a function that returns the schema.
|
|
24
|
-
*/
|
|
25
|
-
schema: outer(
|
|
26
|
-
wrapper(
|
|
27
|
-
label('$label'),
|
|
28
|
-
inner(icon('prefix'), prefix(), maskInput(), suffix(), icon('suffix'))
|
|
29
|
-
),
|
|
30
|
-
help('$help'),
|
|
31
|
-
messages(message('$message.value'))
|
|
32
|
-
),
|
|
33
|
-
/**
|
|
34
|
-
* The type of node, can be a list, group, or input.
|
|
35
|
-
*/
|
|
36
|
-
type: 'input',
|
|
37
|
-
/**
|
|
38
|
-
* An array of extra props to accept for this input.
|
|
39
|
-
*/
|
|
40
|
-
props: [
|
|
41
|
-
'allowIncomplete',
|
|
42
|
-
'mask',
|
|
43
|
-
'mode',
|
|
44
|
-
'tokens',
|
|
45
|
-
'showMask',
|
|
46
|
-
'unmaskValue',
|
|
47
|
-
],
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Additional features that make this input work.
|
|
51
|
-
*/
|
|
52
|
-
features: [useMask],
|
|
53
|
-
}
|