@pocketprep/ui-kit 3.5.20 → 3.5.21
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/@pocketprep/ui-kit.js +181 -172
- package/dist/@pocketprep/ui-kit.js.map +1 -1
- package/dist/@pocketprep/ui-kit.umd.cjs +3 -3
- package/dist/@pocketprep/ui-kit.umd.cjs.map +1 -1
- package/lib/components/Forms/Input.vue +2 -0
- package/lib/components/Forms/Select.vue +3 -0
- package/package.json +1 -1
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
:id="componentId"
|
|
72
72
|
v-dark="isDarkMode"
|
|
73
73
|
:type="fieldType"
|
|
74
|
+
:min="minNumber"
|
|
74
75
|
:value="modelValue"
|
|
75
76
|
:disabled="disabled"
|
|
76
77
|
:aria-labelledby="`${componentId}--label`"
|
|
@@ -113,6 +114,7 @@ export default class Input extends Vue {
|
|
|
113
114
|
@Prop() label?: string
|
|
114
115
|
@Prop() labelSubtext?: string
|
|
115
116
|
@Prop({ default: 'text' }) fieldType?: string
|
|
117
|
+
@Prop() minNumber?: number
|
|
116
118
|
@Prop({ default: '' }) placeholder?: string
|
|
117
119
|
@Prop({ default: '524288' }) maxlength?: string // that's the default input field length
|
|
118
120
|
@Prop({ default: false }) center?: boolean
|
|
@@ -184,6 +184,7 @@ export default class Select extends Vue {
|
|
|
184
184
|
@Prop() typeahead?: boolean
|
|
185
185
|
@Prop() error?: boolean
|
|
186
186
|
@Prop() openMenuAbove?: boolean
|
|
187
|
+
@Prop() customDropdownTop?: number
|
|
187
188
|
@Prop({ default: false }) isDarkMode!: boolean
|
|
188
189
|
@Prop({ default: false }) dropdownOverride!: boolean // Can override the icon to be an X instead
|
|
189
190
|
@Prop({ default: false }) showTypeaheadClear!: boolean
|
|
@@ -206,6 +207,8 @@ export default class Select extends Vue {
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
get menuPositionTop () {
|
|
210
|
+
if (this.customDropdownTop) return this.customDropdownTop
|
|
211
|
+
|
|
209
212
|
if (this.menuHeight) return `-${this.menuHeight}`
|
|
210
213
|
|
|
211
214
|
if (this.subtext) return 60
|