@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
4
4
  "scripts": {
5
5
  "dev": "storybook dev -p 8080",
6
6
  "build-storybook": "storybook build --output-dir ./docs",
@@ -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(() => props.type === 'email')
126
+ const isEmail = computed(() => attrs['type'] === 'email')
135
127
 
136
128
  const dynamicClasses = computed(() => {
137
129
  return [