@fiscozen/input 0.1.0 → 0.1.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": "@fiscozen/input",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Design System Input component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -27,8 +27,8 @@
27
27
  "vite-plugin-dts": "^3.8.3",
28
28
  "vitest": "^1.2.0",
29
29
  "vue-tsc": "^1.8.25",
30
- "@fiscozen/tsconfig": "^0.1.0",
31
30
  "@fiscozen/prettier-config": "^0.1.0",
31
+ "@fiscozen/tsconfig": "^0.1.0",
32
32
  "@fiscozen/eslint-config": "^0.1.0"
33
33
  },
34
34
  "license": "MIT",
package/src/FzInput.vue CHANGED
@@ -24,6 +24,8 @@
24
24
  ref="inputRef"
25
25
  :class="[staticInputClass]"
26
26
  :pattern="pattern"
27
+ :name
28
+ @focus="(e) => $emit('focus', e)"
27
29
  />
28
30
  <FzIcon
29
31
  v-if="valid"
@@ -89,7 +91,11 @@ const {
89
91
  containerWidth,
90
92
  } = useInputStyle(props, containerRef);
91
93
 
92
- const emit = defineEmits([]);
94
+ const emit = defineEmits(['input', 'focus']);
95
+ defineExpose({
96
+ inputRef,
97
+ containerRef
98
+ })
93
99
  </script>
94
100
 
95
101
  <style scoped></style>
package/src/types.ts CHANGED
@@ -53,6 +53,10 @@ type FzInputProps = {
53
53
  * Pattern to validate the input
54
54
  */
55
55
  pattern?: string;
56
+ /**
57
+ * Defines the textarea key in a form
58
+ */
59
+ name?: string;
56
60
  };
57
61
 
58
62
  export { FzInputProps };