Skip to content

Commit

Permalink
Added WebflowElements types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiglesias93 committed Oct 4, 2021
1 parent 5144d26 commit fcf54aa
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@finsweet/ts-utils",
"version": "0.14.2",
"version": "0.15.0",
"description": "Typescript utils for custom Webflow projects.",
"main": "index.ts",
"module": "index.ts",
Expand Down
34 changes: 34 additions & 0 deletions types/WebflowElements.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* CMS
*/
export type CollectionListWrapperElement = HTMLDivElement;
export type CollectionListElement = HTMLDivElement;
export type CollectionItemElement = HTMLDivElement;
export type CollectionEmptyElement = HTMLDivElement;
export type PaginationButtonElement = HTMLAnchorElement;

/**
* Forms
*/
export type FormBlockElement = HTMLDivElement;
export type FormSuccessElement = HTMLDivElement;
export type FormErrorElement = HTMLDivElement;

/**
* Sliders
*/
export type SliderElement = HTMLDivElement;
export type SliderMaskElement = HTMLDivElement;
export type SlideElement = HTMLDivElement;
export type SliderArrowElement = HTMLDivElement;
export type SliderNavElement = HTMLDivElement;
export type SliderDotElement = HTMLDivElement;

/**
* Tabs
*/
export type TabsElement = HTMLDivElement;
export type TabsMenuElement = HTMLDivElement;
export type TabLinkElement = HTMLDivElement;
export type TabsContentElement = HTMLDivElement;
export type TabPaneElement = HTMLDivElement;
1 change: 1 addition & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export type { PickPartial } from './PickPartial';
export type { PickRequired } from './PickRequired';
export type { RequiredExcept } from './RequiredExcept';
export type { Webflow } from './Webflow';
export * from './WebflowElements';

0 comments on commit fcf54aa

Please sign in to comment.