Home

Awesome

Dile Components LEGACY

This is the "dile-components" catalog in its first version. This is now a LEGACY repository, and we are no longer maintaining it. We have developed a new iteration to reorganize the "dile" custom elements more effectively. The new version of this component catalog can be found in this repository: https://github.com/Polydile/dile-components.

See the docs and demos in the dile-components website

We have a new webiste with our components catalog docs and demos!! 🎉

https://dile-components.polydile.com/

What is dile-components

Dile components is a collection of Custom Elements created and maintained by @EscuelaIT's students and instructors.

This components are created to solve common purpouses in websites and web applications. Each compoment has many of CSS custom properties to adapt the component look & feel to your neeeds.

Components

Component / MixinPackage nameShort descriptionnpm version
dile-app-drawer@dile/dile-app-drawerAnimated app menunpm version
dile-avatar@dile/dile-avatarConfigurable user avatarnpm version
dile-breadcrumbs@dile/dile breadcrumbsCreate custom breadcrumbsnpm version
dile-button@dile/dile-buttonCustomizable buttonnpm version
dile-button-icon@dile/dile-button-iconCustomizable button with an iconnpm version
dile-card@dile/dile-cardCard elementnpm version
dile-checkbox@dile/dile-checkboxCheckbox elementnpm version
DileCloseDocumentClickMixin@dile/dile-close-document-click-mixinMixin to close elements when user clicks outside themselvesnpm version
closeIcon@dile/dile-close-icon-templateClose icon lit-html templatenpm version
DileCloseOnEscPressed@dile/dile-close-on-esc-pressed-mixinMixin to close element when esc key is pressednpm version
dile-confirm@dile/dile-confirmModal confirm/cancel actionsnpm version
dile-countdown-time@dile/dile-countdown-timeCountdown hours, minutes and seconds to a date-timenpm version
dile-datepicker@dile/dile-datepickerInput element to introduce a date with a calendarnpm version
dile-calendar@dile/dile-datepickerAccesible calendar with styles
dile-date-without-calendar@dile/dile-date-without-calendarInput element to introduce a datenpm version
DileFormMixin@dile/dile-form-mixinIntroduces some functionality to formsnpm version
dile-graph@dile/dile-graphWrapper of Chart.jsnpm version
dile-hamburger@dile/dile-hamburgerAnimated hamburger menu iconnpm version
dile-html-transform@dile/dile-html-transformApply breaklines and links on textnpm version
dile-icon@dile/dile-iconShow an icon you should providenpm version
dile-info-box@dile/dile-info-boxStyled box for information purposes, with close functionalitynpm version
dile-input@dile/dile-inputCustomizable input elementnpm version
dile-input-integer@dile/dile-inputCustomizable input element to integer values
dile-input-money@dile/dile-inputCustomizable input element to money values (two decimals)
dile-input-percentage@dile/dile-inputCustomizable input element to percentage values
dile-input-search@dile/dile-input-searchCustomizable text search elementnpm version
dile-input-number-mask@dile/dile-input-number-maskCustomized mask to input elementsnpm version
dile-menu-hamburger@dile/dile-menu-hamburgerComplete app menunpm version
dile-menu-overlay@dile/dile-menu-overlayMenu interface on floating layernpm version
dile-message@dile/dile-messageDisplay a message with a close iconnpm version
dile-modal@dile/dile-modalCustomizable modal box interfacenpm version
dile-nav@dile/dile-navNav varnpm version
dile-network@dile/dile-networkNetwork status helpernpm version
dile-order-switch@dile/dile-order-switchChange order interfacenpm version
DileOverlayMixin@dile/dile-overlay-mixinMixin to create overlay elements easilynpm version
dile-pages@dile/dile-pagesDisplay one content or othernpm version
dile-password@dile/dile-passwordCustomizable input password elementnpm version
dile-progress-bar@dile/dile-progress-barCustomizable progress bar componentnpm version
dile-radio@dile/dile-radio-groupOne radio button
dile-radio-group@dile/dile-radio-groupGroup of radio buttonsnpm version
dile-rating@dile/dile-ratingStar rating interfacenpm version
dile-rating-scale-question@dile/dile-rating-scale-questionSemantic-differential rating-scale questionsnpm version
DileSelectorMixin@dile/dile-selector-mixinMixin to select one item from a listnpm version
dile-select@dile/dile-selectSelect native element with more functionalitynpm version
dile-select-ajax@dile/dile-selectSelect element that loads its values using ajax
dile-selector@dile/dile-selectorGeneric selector interfacenpm version
dile-selector-item@dile/dile-selectorGeneric selector item
dile-slide-show@dile/dile-slide-showCollapsable content with animationnpm version
DileSlideDownMixin@dile/dile-slide-down-mixinMixin to create slidedown/slideup effectsnpm version
dile-smooth-scroll@dile/dile-smooth-scrollCreate smooth scrolls easilynpm version
DileSmoothScrollMixin@dile/dile-smooth-scrollMethods to scroll the entire document
DileSmoothScrollElementMixin@dile/dile-smooth-scrollScroll on elements own scrolling section
dile-social-icon@dile/dile-social-iconSVG icons of many social networksnpm version
dile-spinner@dile/dile-spinnerCSS spinner loadernpm version
dile-spinner-modal@dile/dile-spinnerCSS spinner loader in a overlay
dile-spinner-horizontal@dile/dile-spinnerCSS spinner with horizontal bars animation
dile-tabs@dile/dile-tabsTabs interfacenpm version
dile-tab@dile/dile-tabsOne tab
dile-textarea@dile/dile-textareaCustomizable textarea elementnpm version
dile-toast@dile/dile-toastToast feedback messagesnpm version
dile-toast-persistent@dile/dile-toastDisplay a toast with message for a undefined timenpm version
dile-tooltip@dile/dile-tooltipCreate tooltip elementsnpm version
icons@dile/iconsSome utility svg icons to use in dile-componentsnpm version

Usage

1.- Install any of the web components

npm install @dile/dile-input

2.- Import the component

Into your HTML page

<script src="./node_modules/@dile/dile-input/dile-input.js" type="module"></script>

... or into your module script

import '@dile/dile-input/dile-input';

3.- Use the component

<dile-input
  name="name"
  label="Name"
  value="John"
></dile-input>

4.- Read the component documentation for more information about component properties, CSS custom properties, API methods and custom events.

Each component documentation is on the related package folder. For example, the <dile-input> documentation is located on the file: packages/dile-input/README.md.

5.- Serve your proyect

There are many development servers to help you in this area. Our recomendation is to use web-dev-server.

6.- Enjoy!

Develop

This is a monorepository managed by Lerna.

To develop web components or run the demos allocated on the demo folder, you need to use Lerna to solve the common dependencies installed on the monorepo.

1.- Clone this repository

2.- Run npm install to install the dependencies

3.- Run npm run start to launch the demos

When a new component is published in its own package, in order to use the component in the demos or docs is necesary to run 'npm install'. With this command the package will be available in the npm workspace managed by Lerna v7+.