Skip to content

ag-svelte/pkg-date-picker

 
 

Repository files navigation

Date Picker Svelte

License NPM Version NPM Downloads

Date and time picker for Svelte

Features:

  • Theming
  • Custom formats
  • Internationalization (i18n)
  • Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format)
  • Keyboard shortcuts

DemoDocumentationREPL

Install

npm install date-picker-svelte

Usage

<script>
  import { DateInput } from 'date-picker-svelte'
  let date = new Date()
</script>

<DateInput bind:value={date} />

Check the docs to learn more

Contributing

Get started

  1. Install Node.js (v14 works)
  2. Run npm install

Commands

  • npm run dev: Start site in dev mode
  • npm run build: Build package and site
  • npm run build:package: Build package
  • npm run build:site: Build site
  • npm run preview: Preview production site
  • npm run check: Run svelte-check
  • npm run lint: Lint

Publish new version

  1. Update CHANGELOG.md
  2. Check for errors
    npm run check
    
  3. Bump the version number
    npm version --no-git-tag <version>
    
  4. Generate the package
    npm run build:package
    
  5. Publish the package
    npm publish ./package
    
  6. Commit with a tag in format "v#.#.#"
  7. Create GitHub release with release notes

Packages

No packages published

Languages

  • Svelte 62.4%
  • TypeScript 27.2%
  • CSS 5.1%
  • JavaScript 2.7%
  • HTML 2.6%