@citizenplane/pimp 10.2.1 → 10.2.2
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/dist/pimp.es.js +2 -7
- package/dist/pimp.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/CpInput.vue +1 -9
package/package.json
CHANGED
|
@@ -63,8 +63,6 @@ interface Emits {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
interface Props {
|
|
66
|
-
autocomplete?: string
|
|
67
|
-
disabled?: boolean
|
|
68
66
|
errorMessage?: string
|
|
69
67
|
help?: string
|
|
70
68
|
inputId?: string | null
|
|
@@ -73,26 +71,20 @@ interface Props {
|
|
|
73
71
|
label?: string
|
|
74
72
|
mask?: string | Record<string, unknown> | null
|
|
75
73
|
modelValue?: string | number | boolean
|
|
76
|
-
placeholder?: string
|
|
77
74
|
removeBorder?: boolean
|
|
78
|
-
required?: boolean
|
|
79
75
|
size?: Sizes
|
|
80
76
|
tooltip?: string
|
|
81
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url'
|
|
82
77
|
}
|
|
83
78
|
|
|
84
79
|
const props = withDefaults(defineProps<Props>(), {
|
|
85
|
-
autocomplete: '',
|
|
86
80
|
errorMessage: '',
|
|
87
81
|
label: '',
|
|
88
82
|
help: '',
|
|
89
83
|
inputId: null,
|
|
90
84
|
mask: null,
|
|
91
85
|
modelValue: '',
|
|
92
|
-
placeholder: '',
|
|
93
86
|
size: Sizes.MD,
|
|
94
87
|
tooltip: '',
|
|
95
|
-
type: 'text',
|
|
96
88
|
})
|
|
97
89
|
|
|
98
90
|
const emit = defineEmits<Emits>()
|
|
@@ -131,7 +123,7 @@ const cpInputContainer = ref<HTMLDivElement | null>(null)
|
|
|
131
123
|
const isDisabled = computed(() => checkAttribute('disabled'))
|
|
132
124
|
const isRequired = computed(() => checkAttribute('required'))
|
|
133
125
|
|
|
134
|
-
const isEmail = computed(() =>
|
|
126
|
+
const isEmail = computed(() => attrs['type'] === 'email')
|
|
135
127
|
|
|
136
128
|
const dynamicClasses = computed(() => {
|
|
137
129
|
return [
|