@fiscozen/input 0.1.4 → 0.1.5-currencynullonempty.1

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.4",
3
+ "version": "0.1.5-currencynullonempty.1",
4
4
  "description": "Design System Input component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -9,7 +9,7 @@
9
9
  "peerDependencies": {
10
10
  "tailwindcss": "^3.4.1",
11
11
  "vue": "^3.4.13",
12
- "@fiscozen/composables": "^0.1.15",
12
+ "@fiscozen/composables": "^0.1.20",
13
13
  "@fiscozen/icons": "^0.1.9"
14
14
  },
15
15
  "devDependencies": {
@@ -28,9 +28,9 @@
28
28
  "vite-plugin-dts": "^3.8.3",
29
29
  "vitest": "^1.2.0",
30
30
  "vue-tsc": "^1.8.25",
31
- "@fiscozen/tsconfig": "^0.1.0",
31
+ "@fiscozen/eslint-config": "^0.1.0",
32
32
  "@fiscozen/prettier-config": "^0.1.0",
33
- "@fiscozen/eslint-config": "^0.1.0"
33
+ "@fiscozen/tsconfig": "^0.1.0"
34
34
  },
35
35
  "license": "MIT",
36
36
  "scripts": {
@@ -9,11 +9,11 @@
9
9
  <script setup lang="ts">
10
10
  import {onMounted, ref} from 'vue'
11
11
  import FzInput from './FzInput.vue'
12
- import {FzInputProps} from './types'
12
+ import {FzCurrencyInputProps} from './types'
13
13
  import {useCurrency} from '@fiscozen/composables'
14
14
 
15
15
  const fzInputRef = ref();
16
- const props = defineProps<Omit<FzInputProps, 'type'>>();
16
+ const props = defineProps<FzCurrencyInputProps>();
17
17
  const {inputRef} = useCurrency();
18
18
 
19
19
  onMounted(() => {
package/src/types.ts CHANGED
@@ -65,6 +65,11 @@ type FzInputProps = {
65
65
 
66
66
  };
67
67
 
68
- type FzCurrencyInputProps = Omit<FzInputProps, 'type'>
68
+ interface FzCurrencyInputProps extends Omit<FzInputProps, 'type'> {
69
+ /**
70
+ * Is set to true, an empty string will be casted to null
71
+ */
72
+ nullOnEmpty?: boolean;
73
+ }
69
74
 
70
75
  export { FzInputProps, FzCurrencyInputProps };
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './src/index'