intl-tel-input icon indicating copy to clipboard operation
intl-tel-input copied to clipboard

feat(vue): add typescript support

Open reslear opened this issue 10 months ago • 5 comments
trafficstars

CleanShot 2025-01-07 at 02 37 32@2x

CleanShot 2025-01-07 at 03 01 10@2x

resolve: #1794

hi @jackocnr pls review :)

Changes:

  • Typed input-props and options

  • both components types support:

    import IntlTelInputWithUtils from 'intl-tel-input/vueWithUtils'
    import IntlTelInput from 'intl-tel-input/vue'
    
  • exportable SomeOptions not necessarily, but maybe in the future:

    import { type SomeOptions } from 'intl-tel-input/vue'
    
  • use modelValue instead value for v-model

  • used vite multiple entries instead double run vite with custom configs.

TODO on future:

  • use pnpm with worksapces, and move build data to shared package instead symlinks.
  • use better build system instead grunt e.g zx
  • need repo convert to monorepo (for clean installations for different frameworks, better ts support).
  • think about improved logic for importing “utils”
  • rename /vueWithUtils -> kebab-case e.g /vue-with-utils

reslear avatar Jan 07 '25 01:01 reslear