@fiscozen/input 0.1.1 → 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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/FzInput.vue +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiscozen/input",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Design System Input component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -27,9 +27,9 @@
27
27
  "vite-plugin-dts": "^3.8.3",
28
28
  "vitest": "^1.2.0",
29
29
  "vue-tsc": "^1.8.25",
30
- "@fiscozen/eslint-config": "^0.1.0",
31
30
  "@fiscozen/prettier-config": "^0.1.0",
32
- "@fiscozen/tsconfig": "^0.1.0"
31
+ "@fiscozen/tsconfig": "^0.1.0",
32
+ "@fiscozen/eslint-config": "^0.1.0"
33
33
  },
34
34
  "license": "MIT",
35
35
  "scripts": {
package/src/FzInput.vue CHANGED
@@ -25,6 +25,7 @@
25
25
  :class="[staticInputClass]"
26
26
  :pattern="pattern"
27
27
  :name
28
+ @focus="(e) => $emit('focus', e)"
28
29
  />
29
30
  <FzIcon
30
31
  v-if="valid"
@@ -90,7 +91,11 @@ const {
90
91
  containerWidth,
91
92
  } = useInputStyle(props, containerRef);
92
93
 
93
- const emit = defineEmits([]);
94
+ const emit = defineEmits(['input', 'focus']);
95
+ defineExpose({
96
+ inputRef,
97
+ containerRef
98
+ })
94
99
  </script>
95
100
 
96
101
  <style scoped></style>