Skip to content

Commit

Permalink
2.2.0: add date, time and color input types
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Apr 9, 2023
1 parent c129462 commit c98620c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for malle

## 2.2.0

* Add `color`, `date`, `time` input types.

## 2.1.0

* Add `after` hook, triggered after replacement of element.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deltablot/malle",
"version": "2.1.0",
"version": "2.2.0",
"description": "Make text elements malleable, without dependencies.",
"main": "dist/main.js",
"typings": "dist/main.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
*/

export enum InputType {
Color = 'color',
Date = 'date',
Datetime = 'datetime-local',
Email = 'email',
Number = 'number',
Select = 'select',
Text = 'text',
Textarea = 'textarea',
Time = 'time',
Url = 'url',
}

Expand Down

0 comments on commit c98620c

Please sign in to comment.