@diwacopilot/components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/checkbox-mark-06d56fe2.js +29 -0
- package/dist/cjs/checkbox-mark-06d56fe2.js.map +1 -0
- package/dist/cjs/diwa-accordion.cjs.entry.js +217 -0
- package/dist/cjs/diwa-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-badge.cjs.entry.js +103 -0
- package/dist/cjs/diwa-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-button-pure.cjs.entry.js +286 -0
- package/dist/cjs/diwa-button-pure.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-button.cjs.entry.js +420 -0
- package/dist/cjs/diwa-button.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-checkbox.cjs.entry.js +287 -0
- package/dist/cjs/diwa-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-components.cjs.js +27 -0
- package/dist/cjs/diwa-components.cjs.js.map +1 -0
- package/dist/cjs/diwa-divider.cjs.entry.js +67 -0
- package/dist/cjs/diwa-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-flyout.cjs.entry.js +203 -0
- package/dist/cjs/diwa-flyout.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-icon.cjs.entry.js +29195 -0
- package/dist/cjs/diwa-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-inline-notification.cjs.entry.js +179 -0
- package/dist/cjs/diwa-inline-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-date.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-date.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-email.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-email.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-month.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-month.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-number.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-number.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-password.cjs.entry.js +66 -0
- package/dist/cjs/diwa-input-password.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-search.cjs.entry.js +66 -0
- package/dist/cjs/diwa-input-search.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-tel.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-tel.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-text.cjs.entry.js +60 -0
- package/dist/cjs/diwa-input-text.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-time.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-time.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-url.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-url.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input-week.cjs.entry.js +58 -0
- package/dist/cjs/diwa-input-week.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-input.cjs.entry.js +239 -0
- package/dist/cjs/diwa-input.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-link-pure.cjs.entry.js +182 -0
- package/dist/cjs/diwa-link-pure.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-link.cjs.entry.js +225 -0
- package/dist/cjs/diwa-link.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-modal.cjs.entry.js +405 -0
- package/dist/cjs/diwa-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-multi-select-option.cjs.entry.js +172 -0
- package/dist/cjs/diwa-multi-select-option.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-multi-select.cjs.entry.js +644 -0
- package/dist/cjs/diwa-multi-select.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-pagination.cjs.entry.js +307 -0
- package/dist/cjs/diwa-pagination.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-pin-code.cjs.entry.js +192 -0
- package/dist/cjs/diwa-pin-code.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-popover.cjs.entry.js +102 -0
- package/dist/cjs/diwa-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-radio-group-item.cjs.entry.js +137 -0
- package/dist/cjs/diwa-radio-group-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-radio-group.cjs.entry.js +150 -0
- package/dist/cjs/diwa-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-scroller.cjs.entry.js +153 -0
- package/dist/cjs/diwa-scroller.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-segmented-control-item.cjs.entry.js +77 -0
- package/dist/cjs/diwa-segmented-control-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-segmented-control.cjs.entry.js +68 -0
- package/dist/cjs/diwa-segmented-control.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-select-option.cjs.entry.js +148 -0
- package/dist/cjs/diwa-select-option.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-select.cjs.entry.js +562 -0
- package/dist/cjs/diwa-select.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-spinner.cjs.entry.js +101 -0
- package/dist/cjs/diwa-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-stepper-horizontal-item.cjs.entry.js +118 -0
- package/dist/cjs/diwa-stepper-horizontal-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-stepper-horizontal.cjs.entry.js +78 -0
- package/dist/cjs/diwa-stepper-horizontal.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-switch.cjs.entry.js +134 -0
- package/dist/cjs/diwa-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table-body.cjs.entry.js +27 -0
- package/dist/cjs/diwa-table-body.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table-cell.cjs.entry.js +36 -0
- package/dist/cjs/diwa-table-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table-head-cell.cjs.entry.js +100 -0
- package/dist/cjs/diwa-table-head-cell.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table-head.cjs.entry.js +31 -0
- package/dist/cjs/diwa-table-head.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table-row.cjs.entry.js +30 -0
- package/dist/cjs/diwa-table-row.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-table.cjs.entry.js +73 -0
- package/dist/cjs/diwa-table.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-tabs-bar.cjs.entry.js +231 -0
- package/dist/cjs/diwa-tabs-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-tabs-item.cjs.entry.js +37 -0
- package/dist/cjs/diwa-tabs-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-tabs.cjs.entry.js +117 -0
- package/dist/cjs/diwa-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-tag-dismissible.cjs.entry.js +114 -0
- package/dist/cjs/diwa-tag-dismissible.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-tag.cjs.entry.js +92 -0
- package/dist/cjs/diwa-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-text-list-item.cjs.entry.js +34 -0
- package/dist/cjs/diwa-text-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-text-list.cjs.entry.js +49 -0
- package/dist/cjs/diwa-text-list.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-text.cjs.entry.js +87 -0
- package/dist/cjs/diwa-text.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-textarea.cjs.entry.js +158 -0
- package/dist/cjs/diwa-textarea.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-toast-item.cjs.entry.js +125 -0
- package/dist/cjs/diwa-toast-item.cjs.entry.js.map +1 -0
- package/dist/cjs/diwa-toast.cjs.entry.js +72 -0
- package/dist/cjs/diwa-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/index-d665fd57.js +1409 -0
- package/dist/cjs/index-d665fd57.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/input-styles-bac68ebc.js +224 -0
- package/dist/cjs/input-styles-bac68ebc.js.map +1 -0
- package/dist/cjs/loader-circle-938f782b.js +14 -0
- package/dist/cjs/loader-circle-938f782b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/styles-6342300d.js +77 -0
- package/dist/cjs/styles-6342300d.js.map +1 -0
- package/dist/collection/collection-manifest.json +68 -0
- package/dist/collection/components/diwa-accordion/diwa-accordion-styles.js +158 -0
- package/dist/collection/components/diwa-accordion/diwa-accordion-styles.js.map +1 -0
- package/dist/collection/components/diwa-accordion/diwa-accordion.js +207 -0
- package/dist/collection/components/diwa-accordion/diwa-accordion.js.map +1 -0
- package/dist/collection/components/diwa-accordion/types.js +2 -0
- package/dist/collection/components/diwa-accordion/types.js.map +1 -0
- package/dist/collection/components/diwa-badge/diwa-badge-styles.js +72 -0
- package/dist/collection/components/diwa-badge/diwa-badge-styles.js.map +1 -0
- package/dist/collection/components/diwa-badge/diwa-badge.js +147 -0
- package/dist/collection/components/diwa-badge/diwa-badge.js.map +1 -0
- package/dist/collection/components/diwa-badge/types.js +2 -0
- package/dist/collection/components/diwa-badge/types.js.map +1 -0
- package/dist/collection/components/diwa-button/diwa-button-styles.js +245 -0
- package/dist/collection/components/diwa-button/diwa-button-styles.js.map +1 -0
- package/dist/collection/components/diwa-button/diwa-button-utils.js +43 -0
- package/dist/collection/components/diwa-button/diwa-button-utils.js.map +1 -0
- package/dist/collection/components/diwa-button/diwa-button.js +434 -0
- package/dist/collection/components/diwa-button/diwa-button.js.map +1 -0
- package/dist/collection/components/diwa-button/types.js +2 -0
- package/dist/collection/components/diwa-button/types.js.map +1 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure-styles.js +169 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure-styles.js.map +1 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure-utils.js +19 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure-utils.js.map +1 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure.js +453 -0
- package/dist/collection/components/diwa-button-pure/diwa-button-pure.js.map +1 -0
- package/dist/collection/components/diwa-button-pure/types.js +2 -0
- package/dist/collection/components/diwa-button-pure/types.js.map +1 -0
- package/dist/collection/components/diwa-checkbox/diwa-checkbox-styles.js +191 -0
- package/dist/collection/components/diwa-checkbox/diwa-checkbox-styles.js.map +1 -0
- package/dist/collection/components/diwa-checkbox/diwa-checkbox.js +391 -0
- package/dist/collection/components/diwa-checkbox/diwa-checkbox.js.map +1 -0
- package/dist/collection/components/diwa-checkbox/types.js +2 -0
- package/dist/collection/components/diwa-checkbox/types.js.map +1 -0
- package/dist/collection/components/diwa-divider/diwa-divider-styles.js +34 -0
- package/dist/collection/components/diwa-divider/diwa-divider-styles.js.map +1 -0
- package/dist/collection/components/diwa-divider/diwa-divider.js +105 -0
- package/dist/collection/components/diwa-divider/diwa-divider.js.map +1 -0
- package/dist/collection/components/diwa-divider/types.js +2 -0
- package/dist/collection/components/diwa-divider/types.js.map +1 -0
- package/dist/collection/components/diwa-flyout/diwa-flyout-styles.js +117 -0
- package/dist/collection/components/diwa-flyout/diwa-flyout-styles.js.map +1 -0
- package/dist/collection/components/diwa-flyout/diwa-flyout.js +262 -0
- package/dist/collection/components/diwa-flyout/diwa-flyout.js.map +1 -0
- package/dist/collection/components/diwa-flyout/types.js +2 -0
- package/dist/collection/components/diwa-flyout/types.js.map +1 -0
- package/dist/collection/components/diwa-icon/diwa-icon-styles.js +13 -0
- package/dist/collection/components/diwa-icon/diwa-icon-styles.js.map +1 -0
- package/dist/collection/components/diwa-icon/diwa-icon.js +193 -0
- package/dist/collection/components/diwa-icon/diwa-icon.js.map +1 -0
- package/dist/collection/components/diwa-icon/types.js +2 -0
- package/dist/collection/components/diwa-icon/types.js.map +1 -0
- package/dist/collection/components/diwa-inline-notification/diwa-inline-notification-styles.js +109 -0
- package/dist/collection/components/diwa-inline-notification/diwa-inline-notification-styles.js.map +1 -0
- package/dist/collection/components/diwa-inline-notification/diwa-inline-notification.js +272 -0
- package/dist/collection/components/diwa-inline-notification/diwa-inline-notification.js.map +1 -0
- package/dist/collection/components/diwa-inline-notification/types.js +2 -0
- package/dist/collection/components/diwa-inline-notification/types.js.map +1 -0
- package/dist/collection/components/diwa-input/diwa-input-styles.js +162 -0
- package/dist/collection/components/diwa-input/diwa-input-styles.js.map +1 -0
- package/dist/collection/components/diwa-input/diwa-input.js +443 -0
- package/dist/collection/components/diwa-input/diwa-input.js.map +1 -0
- package/dist/collection/components/diwa-input/input-styles.js +218 -0
- package/dist/collection/components/diwa-input/input-styles.js.map +1 -0
- package/dist/collection/components/diwa-input/types.js +2 -0
- package/dist/collection/components/diwa-input/types.js.map +1 -0
- package/dist/collection/components/diwa-input-date/diwa-input-date-styles.js +2 -0
- package/dist/collection/components/diwa-input-date/diwa-input-date-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-date/diwa-input-date.js +458 -0
- package/dist/collection/components/diwa-input-date/diwa-input-date.js.map +1 -0
- package/dist/collection/components/diwa-input-email/diwa-input-email-styles.js +2 -0
- package/dist/collection/components/diwa-input-email/diwa-input-email-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-email/diwa-input-email.js +420 -0
- package/dist/collection/components/diwa-input-email/diwa-input-email.js.map +1 -0
- package/dist/collection/components/diwa-input-month/diwa-input-month-styles.js +2 -0
- package/dist/collection/components/diwa-input-month/diwa-input-month-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-month/diwa-input-month.js +458 -0
- package/dist/collection/components/diwa-input-month/diwa-input-month.js.map +1 -0
- package/dist/collection/components/diwa-input-number/diwa-input-number-styles.js +2 -0
- package/dist/collection/components/diwa-input-number/diwa-input-number-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-number/diwa-input-number.js +477 -0
- package/dist/collection/components/diwa-input-number/diwa-input-number.js.map +1 -0
- package/dist/collection/components/diwa-input-password/diwa-input-password-styles.js +2 -0
- package/dist/collection/components/diwa-input-password/diwa-input-password-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-password/diwa-input-password.js +449 -0
- package/dist/collection/components/diwa-input-password/diwa-input-password.js.map +1 -0
- package/dist/collection/components/diwa-input-search/diwa-input-search-styles.js +2 -0
- package/dist/collection/components/diwa-input-search/diwa-input-search-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-search/diwa-input-search.js +448 -0
- package/dist/collection/components/diwa-input-search/diwa-input-search.js.map +1 -0
- package/dist/collection/components/diwa-input-tel/diwa-input-tel-styles.js +2 -0
- package/dist/collection/components/diwa-input-tel/diwa-input-tel-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-tel/diwa-input-tel.js +420 -0
- package/dist/collection/components/diwa-input-tel/diwa-input-tel.js.map +1 -0
- package/dist/collection/components/diwa-input-text/diwa-input-text-styles.js +2 -0
- package/dist/collection/components/diwa-input-text/diwa-input-text-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-text/diwa-input-text.js +479 -0
- package/dist/collection/components/diwa-input-text/diwa-input-text.js.map +1 -0
- package/dist/collection/components/diwa-input-time/diwa-input-time-styles.js +2 -0
- package/dist/collection/components/diwa-input-time/diwa-input-time-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-time/diwa-input-time.js +477 -0
- package/dist/collection/components/diwa-input-time/diwa-input-time.js.map +1 -0
- package/dist/collection/components/diwa-input-url/diwa-input-url-styles.js +2 -0
- package/dist/collection/components/diwa-input-url/diwa-input-url-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-url/diwa-input-url.js +420 -0
- package/dist/collection/components/diwa-input-url/diwa-input-url.js.map +1 -0
- package/dist/collection/components/diwa-input-week/diwa-input-week-styles.js +2 -0
- package/dist/collection/components/diwa-input-week/diwa-input-week-styles.js.map +1 -0
- package/dist/collection/components/diwa-input-week/diwa-input-week.js +458 -0
- package/dist/collection/components/diwa-input-week/diwa-input-week.js.map +1 -0
- package/dist/collection/components/diwa-link/diwa-link-styles.js +184 -0
- package/dist/collection/components/diwa-link/diwa-link-styles.js.map +1 -0
- package/dist/collection/components/diwa-link/diwa-link.js +286 -0
- package/dist/collection/components/diwa-link/diwa-link.js.map +1 -0
- package/dist/collection/components/diwa-link/types.js +2 -0
- package/dist/collection/components/diwa-link/types.js.map +1 -0
- package/dist/collection/components/diwa-link-pure/diwa-link-pure-styles.js +130 -0
- package/dist/collection/components/diwa-link-pure/diwa-link-pure-styles.js.map +1 -0
- package/dist/collection/components/diwa-link-pure/diwa-link-pure.js +343 -0
- package/dist/collection/components/diwa-link-pure/diwa-link-pure.js.map +1 -0
- package/dist/collection/components/diwa-link-pure/types.js +2 -0
- package/dist/collection/components/diwa-link-pure/types.js.map +1 -0
- package/dist/collection/components/diwa-modal/diwa-modal-styles.js +201 -0
- package/dist/collection/components/diwa-modal/diwa-modal-styles.js.map +1 -0
- package/dist/collection/components/diwa-modal/diwa-modal-utils.js +58 -0
- package/dist/collection/components/diwa-modal/diwa-modal-utils.js.map +1 -0
- package/dist/collection/components/diwa-modal/diwa-modal.js +337 -0
- package/dist/collection/components/diwa-modal/diwa-modal.js.map +1 -0
- package/dist/collection/components/diwa-modal/types.js +2 -0
- package/dist/collection/components/diwa-modal/types.js.map +1 -0
- package/dist/collection/components/diwa-multi-select/diwa-multi-select-styles.js +299 -0
- package/dist/collection/components/diwa-multi-select/diwa-multi-select-styles.js.map +1 -0
- package/dist/collection/components/diwa-multi-select/diwa-multi-select.js +749 -0
- package/dist/collection/components/diwa-multi-select/diwa-multi-select.js.map +1 -0
- package/dist/collection/components/diwa-multi-select/types.js +2 -0
- package/dist/collection/components/diwa-multi-select/types.js.map +1 -0
- package/dist/collection/components/diwa-multi-select-option/diwa-multi-select-option-styles.js +104 -0
- package/dist/collection/components/diwa-multi-select-option/diwa-multi-select-option-styles.js.map +1 -0
- package/dist/collection/components/diwa-multi-select-option/diwa-multi-select-option.js +249 -0
- package/dist/collection/components/diwa-multi-select-option/diwa-multi-select-option.js.map +1 -0
- package/dist/collection/components/diwa-multi-select-option/types.js +2 -0
- package/dist/collection/components/diwa-multi-select-option/types.js.map +1 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination-styles.js +111 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination-styles.js.map +1 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination-utils.js +110 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination-utils.js.map +1 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination.js +258 -0
- package/dist/collection/components/diwa-pagination/diwa-pagination.js.map +1 -0
- package/dist/collection/components/diwa-pagination/types.js +2 -0
- package/dist/collection/components/diwa-pagination/types.js.map +1 -0
- package/dist/collection/components/diwa-pin-code/diwa-pin-code-styles.js +82 -0
- package/dist/collection/components/diwa-pin-code/diwa-pin-code-styles.js.map +1 -0
- package/dist/collection/components/diwa-pin-code/diwa-pin-code.js +392 -0
- package/dist/collection/components/diwa-pin-code/diwa-pin-code.js.map +1 -0
- package/dist/collection/components/diwa-pin-code/types.js +2 -0
- package/dist/collection/components/diwa-pin-code/types.js.map +1 -0
- package/dist/collection/components/diwa-popover/diwa-popover-styles.js +61 -0
- package/dist/collection/components/diwa-popover/diwa-popover-styles.js.map +1 -0
- package/dist/collection/components/diwa-popover/diwa-popover.js +134 -0
- package/dist/collection/components/diwa-popover/diwa-popover.js.map +1 -0
- package/dist/collection/components/diwa-popover/types.js +2 -0
- package/dist/collection/components/diwa-popover/types.js.map +1 -0
- package/dist/collection/components/diwa-radio-group/diwa-radio-group-styles.js +79 -0
- package/dist/collection/components/diwa-radio-group/diwa-radio-group-styles.js.map +1 -0
- package/dist/collection/components/diwa-radio-group/diwa-radio-group.js +372 -0
- package/dist/collection/components/diwa-radio-group/diwa-radio-group.js.map +1 -0
- package/dist/collection/components/diwa-radio-group/types.js +2 -0
- package/dist/collection/components/diwa-radio-group/types.js.map +1 -0
- package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item-styles.js +88 -0
- package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item.js +203 -0
- package/dist/collection/components/diwa-radio-group-item/diwa-radio-group-item.js.map +1 -0
- package/dist/collection/components/diwa-radio-group-item/types.js +1 -0
- package/dist/collection/components/diwa-radio-group-item/types.js.map +1 -0
- package/dist/collection/components/diwa-scroller/diwa-scroller-styles.js +90 -0
- package/dist/collection/components/diwa-scroller/diwa-scroller-styles.js.map +1 -0
- package/dist/collection/components/diwa-scroller/diwa-scroller.js +152 -0
- package/dist/collection/components/diwa-scroller/diwa-scroller.js.map +1 -0
- package/dist/collection/components/diwa-scroller/types.js +2 -0
- package/dist/collection/components/diwa-scroller/types.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control/diwa-segmented-control-styles.js +21 -0
- package/dist/collection/components/diwa-segmented-control/diwa-segmented-control-styles.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control/diwa-segmented-control.js +177 -0
- package/dist/collection/components/diwa-segmented-control/diwa-segmented-control.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control/types.js +2 -0
- package/dist/collection/components/diwa-segmented-control/types.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control-item/diwa-segmented-control-item-styles.js +41 -0
- package/dist/collection/components/diwa-segmented-control-item/diwa-segmented-control-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control-item/diwa-segmented-control-item.js +167 -0
- package/dist/collection/components/diwa-segmented-control-item/diwa-segmented-control-item.js.map +1 -0
- package/dist/collection/components/diwa-segmented-control-item/types.js +1 -0
- package/dist/collection/components/diwa-segmented-control-item/types.js.map +1 -0
- package/dist/collection/components/diwa-select/diwa-select-styles.js +265 -0
- package/dist/collection/components/diwa-select/diwa-select-styles.js.map +1 -0
- package/dist/collection/components/diwa-select/diwa-select.js +693 -0
- package/dist/collection/components/diwa-select/diwa-select.js.map +1 -0
- package/dist/collection/components/diwa-select/types.js +2 -0
- package/dist/collection/components/diwa-select/types.js.map +1 -0
- package/dist/collection/components/diwa-select-option/diwa-select-option-styles.js +95 -0
- package/dist/collection/components/diwa-select-option/diwa-select-option-styles.js.map +1 -0
- package/dist/collection/components/diwa-select-option/diwa-select-option.js +210 -0
- package/dist/collection/components/diwa-select-option/diwa-select-option.js.map +1 -0
- package/dist/collection/components/diwa-select-option/types.js +2 -0
- package/dist/collection/components/diwa-select-option/types.js.map +1 -0
- package/dist/collection/components/diwa-spinner/diwa-spinner-styles.js +44 -0
- package/dist/collection/components/diwa-spinner/diwa-spinner-styles.js.map +1 -0
- package/dist/collection/components/diwa-spinner/diwa-spinner.js +147 -0
- package/dist/collection/components/diwa-spinner/diwa-spinner.js.map +1 -0
- package/dist/collection/components/diwa-spinner/types.js +2 -0
- package/dist/collection/components/diwa-spinner/types.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal/diwa-stepper-horizontal-styles.js +22 -0
- package/dist/collection/components/diwa-stepper-horizontal/diwa-stepper-horizontal-styles.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal/diwa-stepper-horizontal.js +140 -0
- package/dist/collection/components/diwa-stepper-horizontal/diwa-stepper-horizontal.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal/types.js +2 -0
- package/dist/collection/components/diwa-stepper-horizontal/types.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item-styles.js +80 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item.js +178 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item.js.map +1 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/types.js +2 -0
- package/dist/collection/components/diwa-stepper-horizontal-item/types.js.map +1 -0
- package/dist/collection/components/diwa-switch/diwa-switch-styles.js +91 -0
- package/dist/collection/components/diwa-switch/diwa-switch-styles.js.map +1 -0
- package/dist/collection/components/diwa-switch/diwa-switch.js +201 -0
- package/dist/collection/components/diwa-switch/diwa-switch.js.map +1 -0
- package/dist/collection/components/diwa-switch/types.js +2 -0
- package/dist/collection/components/diwa-switch/types.js.map +1 -0
- package/dist/collection/components/diwa-table/diwa-table-styles.js +44 -0
- package/dist/collection/components/diwa-table/diwa-table-styles.js.map +1 -0
- package/dist/collection/components/diwa-table/diwa-table.js +191 -0
- package/dist/collection/components/diwa-table/diwa-table.js.map +1 -0
- package/dist/collection/components/diwa-table-body/diwa-table-body-styles.js +8 -0
- package/dist/collection/components/diwa-table-body/diwa-table-body-styles.js.map +1 -0
- package/dist/collection/components/diwa-table-body/diwa-table-body.js +44 -0
- package/dist/collection/components/diwa-table-body/diwa-table-body.js.map +1 -0
- package/dist/collection/components/diwa-table-cell/diwa-table-cell-styles.js +16 -0
- package/dist/collection/components/diwa-table-cell/diwa-table-cell-styles.js.map +1 -0
- package/dist/collection/components/diwa-table-cell/diwa-table-cell.js +65 -0
- package/dist/collection/components/diwa-table-cell/diwa-table-cell.js.map +1 -0
- package/dist/collection/components/diwa-table-head/diwa-table-head-styles.js +12 -0
- package/dist/collection/components/diwa-table-head/diwa-table-head-styles.js.map +1 -0
- package/dist/collection/components/diwa-table-head/diwa-table-head.js +44 -0
- package/dist/collection/components/diwa-table-head/diwa-table-head.js.map +1 -0
- package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell-styles.js +51 -0
- package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell-styles.js.map +1 -0
- package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell.js +137 -0
- package/dist/collection/components/diwa-table-head-cell/diwa-table-head-cell.js.map +1 -0
- package/dist/collection/components/diwa-table-head-cell/types.js +2 -0
- package/dist/collection/components/diwa-table-head-cell/types.js.map +1 -0
- package/dist/collection/components/diwa-table-row/diwa-table-row-styles.js +11 -0
- package/dist/collection/components/diwa-table-row/diwa-table-row-styles.js.map +1 -0
- package/dist/collection/components/diwa-table-row/diwa-table-row.js +44 -0
- package/dist/collection/components/diwa-table-row/diwa-table-row.js.map +1 -0
- package/dist/collection/components/diwa-tabs/diwa-tabs-styles.js +63 -0
- package/dist/collection/components/diwa-tabs/diwa-tabs-styles.js.map +1 -0
- package/dist/collection/components/diwa-tabs/diwa-tabs.js +138 -0
- package/dist/collection/components/diwa-tabs/diwa-tabs.js.map +1 -0
- package/dist/collection/components/diwa-tabs/types.js +2 -0
- package/dist/collection/components/diwa-tabs/types.js.map +1 -0
- package/dist/collection/components/diwa-tabs-bar/diwa-tabs-bar-styles.js +91 -0
- package/dist/collection/components/diwa-tabs-bar/diwa-tabs-bar-styles.js.map +1 -0
- package/dist/collection/components/diwa-tabs-bar/diwa-tabs-bar.js +240 -0
- package/dist/collection/components/diwa-tabs-bar/diwa-tabs-bar.js.map +1 -0
- package/dist/collection/components/diwa-tabs-bar/types.js +2 -0
- package/dist/collection/components/diwa-tabs-bar/types.js.map +1 -0
- package/dist/collection/components/diwa-tabs-item/diwa-tabs-item-styles.js +12 -0
- package/dist/collection/components/diwa-tabs-item/diwa-tabs-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-tabs-item/diwa-tabs-item.js +98 -0
- package/dist/collection/components/diwa-tabs-item/diwa-tabs-item.js.map +1 -0
- package/dist/collection/components/diwa-tabs-item/types.js +1 -0
- package/dist/collection/components/diwa-tabs-item/types.js.map +1 -0
- package/dist/collection/components/diwa-tag/diwa-tag-styles.js +68 -0
- package/dist/collection/components/diwa-tag/diwa-tag-styles.js.map +1 -0
- package/dist/collection/components/diwa-tag/diwa-tag.js +116 -0
- package/dist/collection/components/diwa-tag/diwa-tag.js.map +1 -0
- package/dist/collection/components/diwa-tag/types.js +2 -0
- package/dist/collection/components/diwa-tag/types.js.map +1 -0
- package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible-styles.js +82 -0
- package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible-styles.js.map +1 -0
- package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible.js +142 -0
- package/dist/collection/components/diwa-tag-dismissible/diwa-tag-dismissible.js.map +1 -0
- package/dist/collection/components/diwa-tag-dismissible/types.js +2 -0
- package/dist/collection/components/diwa-tag-dismissible/types.js.map +1 -0
- package/dist/collection/components/diwa-text/diwa-text-styles.js +42 -0
- package/dist/collection/components/diwa-text/diwa-text-styles.js.map +1 -0
- package/dist/collection/components/diwa-text/diwa-text.js +232 -0
- package/dist/collection/components/diwa-text/diwa-text.js.map +1 -0
- package/dist/collection/components/diwa-text/types.js +2 -0
- package/dist/collection/components/diwa-text/types.js.map +1 -0
- package/dist/collection/components/diwa-text-list/diwa-text-list-styles.js +21 -0
- package/dist/collection/components/diwa-text-list/diwa-text-list-styles.js.map +1 -0
- package/dist/collection/components/diwa-text-list/diwa-text-list.js +92 -0
- package/dist/collection/components/diwa-text-list/diwa-text-list.js.map +1 -0
- package/dist/collection/components/diwa-text-list/types.js +2 -0
- package/dist/collection/components/diwa-text-list/types.js.map +1 -0
- package/dist/collection/components/diwa-text-list-item/diwa-text-list-item-styles.js +14 -0
- package/dist/collection/components/diwa-text-list-item/diwa-text-list-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-text-list-item/diwa-text-list-item.js +57 -0
- package/dist/collection/components/diwa-text-list-item/diwa-text-list-item.js.map +1 -0
- package/dist/collection/components/diwa-text-list-item/types.js +1 -0
- package/dist/collection/components/diwa-text-list-item/types.js.map +1 -0
- package/dist/collection/components/diwa-textarea/diwa-textarea-styles.js +92 -0
- package/dist/collection/components/diwa-textarea/diwa-textarea-styles.js.map +1 -0
- package/dist/collection/components/diwa-textarea/diwa-textarea.js +475 -0
- package/dist/collection/components/diwa-textarea/diwa-textarea.js.map +1 -0
- package/dist/collection/components/diwa-textarea/types.js +2 -0
- package/dist/collection/components/diwa-textarea/types.js.map +1 -0
- package/dist/collection/components/diwa-toast/diwa-toast-styles.js +32 -0
- package/dist/collection/components/diwa-toast/diwa-toast-styles.js.map +1 -0
- package/dist/collection/components/diwa-toast/diwa-toast.js +113 -0
- package/dist/collection/components/diwa-toast/diwa-toast.js.map +1 -0
- package/dist/collection/components/diwa-toast/types.js +2 -0
- package/dist/collection/components/diwa-toast/types.js.map +1 -0
- package/dist/collection/components/diwa-toast-item/diwa-toast-item-styles.js +88 -0
- package/dist/collection/components/diwa-toast-item/diwa-toast-item-styles.js.map +1 -0
- package/dist/collection/components/diwa-toast-item/diwa-toast-item.js +130 -0
- package/dist/collection/components/diwa-toast-item/diwa-toast-item.js.map +1 -0
- package/dist/collection/components/diwa-toast-item/types.js +2 -0
- package/dist/collection/components/diwa-toast-item/types.js.map +1 -0
- package/dist/collection/styles/index.js +155 -0
- package/dist/collection/styles/index.js.map +1 -0
- package/dist/collection/utils/checkbox-mark.js +23 -0
- package/dist/collection/utils/checkbox-mark.js.map +1 -0
- package/dist/collection/utils/styles.js +70 -0
- package/dist/collection/utils/styles.js.map +1 -0
- package/dist/diwa-components/diwa-components.css +6 -0
- package/dist/diwa-components/diwa-components.esm.js +2 -0
- package/dist/diwa-components/diwa-components.esm.js.map +1 -0
- package/dist/diwa-components/index.esm.js +2 -0
- package/dist/diwa-components/index.esm.js.map +1 -0
- package/dist/diwa-components/p-043e3e19.entry.js +2 -0
- package/dist/diwa-components/p-043e3e19.entry.js.map +1 -0
- package/dist/diwa-components/p-05988905.entry.js +2 -0
- package/dist/diwa-components/p-05988905.entry.js.map +1 -0
- package/dist/diwa-components/p-084204ab.entry.js +2 -0
- package/dist/diwa-components/p-084204ab.entry.js.map +1 -0
- package/dist/diwa-components/p-08c584fb.entry.js +2 -0
- package/dist/diwa-components/p-08c584fb.entry.js.map +1 -0
- package/dist/diwa-components/p-09a9e0a0.entry.js +2 -0
- package/dist/diwa-components/p-09a9e0a0.entry.js.map +1 -0
- package/dist/diwa-components/p-0cbe8ed4.entry.js +2 -0
- package/dist/diwa-components/p-0cbe8ed4.entry.js.map +1 -0
- package/dist/diwa-components/p-1022a474.entry.js +2 -0
- package/dist/diwa-components/p-1022a474.entry.js.map +1 -0
- package/dist/diwa-components/p-139f619d.entry.js +2 -0
- package/dist/diwa-components/p-139f619d.entry.js.map +1 -0
- package/dist/diwa-components/p-178d18c2.entry.js +2 -0
- package/dist/diwa-components/p-178d18c2.entry.js.map +1 -0
- package/dist/diwa-components/p-1a1bd7ed.entry.js +2 -0
- package/dist/diwa-components/p-1a1bd7ed.entry.js.map +1 -0
- package/dist/diwa-components/p-20fd1505.entry.js +2 -0
- package/dist/diwa-components/p-20fd1505.entry.js.map +1 -0
- package/dist/diwa-components/p-230692aa.entry.js +2 -0
- package/dist/diwa-components/p-230692aa.entry.js.map +1 -0
- package/dist/diwa-components/p-2b54c761.entry.js +2 -0
- package/dist/diwa-components/p-2b54c761.entry.js.map +1 -0
- package/dist/diwa-components/p-2b72a324.entry.js +2 -0
- package/dist/diwa-components/p-2b72a324.entry.js.map +1 -0
- package/dist/diwa-components/p-332838f8.js +2 -0
- package/dist/diwa-components/p-332838f8.js.map +1 -0
- package/dist/diwa-components/p-339f6ba7.entry.js +2 -0
- package/dist/diwa-components/p-339f6ba7.entry.js.map +1 -0
- package/dist/diwa-components/p-358e1177.entry.js +2 -0
- package/dist/diwa-components/p-358e1177.entry.js.map +1 -0
- package/dist/diwa-components/p-35c7c864.js +2 -0
- package/dist/diwa-components/p-35c7c864.js.map +1 -0
- package/dist/diwa-components/p-3b7a1431.entry.js +2 -0
- package/dist/diwa-components/p-3b7a1431.entry.js.map +1 -0
- package/dist/diwa-components/p-48009a79.entry.js +2 -0
- package/dist/diwa-components/p-48009a79.entry.js.map +1 -0
- package/dist/diwa-components/p-4a84fee8.entry.js +2 -0
- package/dist/diwa-components/p-4a84fee8.entry.js.map +1 -0
- package/dist/diwa-components/p-4ac5a26e.entry.js +2 -0
- package/dist/diwa-components/p-4ac5a26e.entry.js.map +1 -0
- package/dist/diwa-components/p-4ff58224.entry.js +2 -0
- package/dist/diwa-components/p-4ff58224.entry.js.map +1 -0
- package/dist/diwa-components/p-51673c06.entry.js +2 -0
- package/dist/diwa-components/p-51673c06.entry.js.map +1 -0
- package/dist/diwa-components/p-53e21a74.entry.js +2 -0
- package/dist/diwa-components/p-53e21a74.entry.js.map +1 -0
- package/dist/diwa-components/p-565f623e.entry.js +2 -0
- package/dist/diwa-components/p-565f623e.entry.js.map +1 -0
- package/dist/diwa-components/p-57db0c31.entry.js +2 -0
- package/dist/diwa-components/p-57db0c31.entry.js.map +1 -0
- package/dist/diwa-components/p-5c2325aa.entry.js +2 -0
- package/dist/diwa-components/p-5c2325aa.entry.js.map +1 -0
- package/dist/diwa-components/p-5cd79382.entry.js +2 -0
- package/dist/diwa-components/p-5cd79382.entry.js.map +1 -0
- package/dist/diwa-components/p-6253fff6.entry.js +2 -0
- package/dist/diwa-components/p-6253fff6.entry.js.map +1 -0
- package/dist/diwa-components/p-666844e0.entry.js +2 -0
- package/dist/diwa-components/p-666844e0.entry.js.map +1 -0
- package/dist/diwa-components/p-67950f59.entry.js +2 -0
- package/dist/diwa-components/p-67950f59.entry.js.map +1 -0
- package/dist/diwa-components/p-70bbb21a.js +2 -0
- package/dist/diwa-components/p-70bbb21a.js.map +1 -0
- package/dist/diwa-components/p-711e295e.entry.js +2 -0
- package/dist/diwa-components/p-711e295e.entry.js.map +1 -0
- package/dist/diwa-components/p-7f0ce623.entry.js +2 -0
- package/dist/diwa-components/p-7f0ce623.entry.js.map +1 -0
- package/dist/diwa-components/p-8012c384.entry.js +2 -0
- package/dist/diwa-components/p-8012c384.entry.js.map +1 -0
- package/dist/diwa-components/p-851cbfb8.entry.js +2 -0
- package/dist/diwa-components/p-851cbfb8.entry.js.map +1 -0
- package/dist/diwa-components/p-87ea8001.entry.js +2 -0
- package/dist/diwa-components/p-87ea8001.entry.js.map +1 -0
- package/dist/diwa-components/p-8afa6931.entry.js +2 -0
- package/dist/diwa-components/p-8afa6931.entry.js.map +1 -0
- package/dist/diwa-components/p-9088f057.entry.js +2 -0
- package/dist/diwa-components/p-9088f057.entry.js.map +1 -0
- package/dist/diwa-components/p-94f603c2.entry.js +2 -0
- package/dist/diwa-components/p-94f603c2.entry.js.map +1 -0
- package/dist/diwa-components/p-996f7110.entry.js +2 -0
- package/dist/diwa-components/p-996f7110.entry.js.map +1 -0
- package/dist/diwa-components/p-9eef4779.entry.js +2 -0
- package/dist/diwa-components/p-9eef4779.entry.js.map +1 -0
- package/dist/diwa-components/p-9f140e14.entry.js +2 -0
- package/dist/diwa-components/p-9f140e14.entry.js.map +1 -0
- package/dist/diwa-components/p-ac8e14be.js +8 -0
- package/dist/diwa-components/p-ac8e14be.js.map +1 -0
- package/dist/diwa-components/p-b7132ea7.entry.js +2 -0
- package/dist/diwa-components/p-b7132ea7.entry.js.map +1 -0
- package/dist/diwa-components/p-b988c5b3.entry.js +2 -0
- package/dist/diwa-components/p-b988c5b3.entry.js.map +1 -0
- package/dist/diwa-components/p-ba1ffa71.entry.js +2 -0
- package/dist/diwa-components/p-ba1ffa71.entry.js.map +1 -0
- package/dist/diwa-components/p-bb04cdd6.entry.js +2 -0
- package/dist/diwa-components/p-bb04cdd6.entry.js.map +1 -0
- package/dist/diwa-components/p-bbede25d.entry.js +2 -0
- package/dist/diwa-components/p-bbede25d.entry.js.map +1 -0
- package/dist/diwa-components/p-bc2eecd2.entry.js +2 -0
- package/dist/diwa-components/p-bc2eecd2.entry.js.map +1 -0
- package/dist/diwa-components/p-c0614fb1.entry.js +2 -0
- package/dist/diwa-components/p-c0614fb1.entry.js.map +1 -0
- package/dist/diwa-components/p-c1c85f9e.entry.js +2 -0
- package/dist/diwa-components/p-c1c85f9e.entry.js.map +1 -0
- package/dist/diwa-components/p-c37374ab.entry.js +2 -0
- package/dist/diwa-components/p-c37374ab.entry.js.map +1 -0
- package/dist/diwa-components/p-c896dfa5.entry.js +10220 -0
- package/dist/diwa-components/p-c896dfa5.entry.js.map +1 -0
- package/dist/diwa-components/p-cf960cf6.entry.js +2 -0
- package/dist/diwa-components/p-cf960cf6.entry.js.map +1 -0
- package/dist/diwa-components/p-d0762292.entry.js +2 -0
- package/dist/diwa-components/p-d0762292.entry.js.map +1 -0
- package/dist/diwa-components/p-e1255160.js +2 -0
- package/dist/diwa-components/p-e1255160.js.map +1 -0
- package/dist/diwa-components/p-e19ad9fa.entry.js +2 -0
- package/dist/diwa-components/p-e19ad9fa.entry.js.map +1 -0
- package/dist/diwa-components/p-ed4017f0.js +3 -0
- package/dist/diwa-components/p-ed4017f0.js.map +1 -0
- package/dist/diwa-components/p-f22b6145.entry.js +2 -0
- package/dist/diwa-components/p-f22b6145.entry.js.map +1 -0
- package/dist/diwa-components/p-f4a589b5.entry.js +2 -0
- package/dist/diwa-components/p-f4a589b5.entry.js.map +1 -0
- package/dist/diwa-components/p-fbe73240.entry.js +2 -0
- package/dist/diwa-components/p-fbe73240.entry.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/checkbox-mark-37be8b2e.js +26 -0
- package/dist/esm/checkbox-mark-37be8b2e.js.map +1 -0
- package/dist/esm/diwa-accordion.entry.js +213 -0
- package/dist/esm/diwa-accordion.entry.js.map +1 -0
- package/dist/esm/diwa-badge.entry.js +99 -0
- package/dist/esm/diwa-badge.entry.js.map +1 -0
- package/dist/esm/diwa-button-pure.entry.js +282 -0
- package/dist/esm/diwa-button-pure.entry.js.map +1 -0
- package/dist/esm/diwa-button.entry.js +416 -0
- package/dist/esm/diwa-button.entry.js.map +1 -0
- package/dist/esm/diwa-checkbox.entry.js +283 -0
- package/dist/esm/diwa-checkbox.entry.js.map +1 -0
- package/dist/esm/diwa-components.js +22 -0
- package/dist/esm/diwa-components.js.map +1 -0
- package/dist/esm/diwa-divider.entry.js +63 -0
- package/dist/esm/diwa-divider.entry.js.map +1 -0
- package/dist/esm/diwa-flyout.entry.js +199 -0
- package/dist/esm/diwa-flyout.entry.js.map +1 -0
- package/dist/esm/diwa-icon.entry.js +29191 -0
- package/dist/esm/diwa-icon.entry.js.map +1 -0
- package/dist/esm/diwa-inline-notification.entry.js +175 -0
- package/dist/esm/diwa-inline-notification.entry.js.map +1 -0
- package/dist/esm/diwa-input-date.entry.js +54 -0
- package/dist/esm/diwa-input-date.entry.js.map +1 -0
- package/dist/esm/diwa-input-email.entry.js +54 -0
- package/dist/esm/diwa-input-email.entry.js.map +1 -0
- package/dist/esm/diwa-input-month.entry.js +54 -0
- package/dist/esm/diwa-input-month.entry.js.map +1 -0
- package/dist/esm/diwa-input-number.entry.js +54 -0
- package/dist/esm/diwa-input-number.entry.js.map +1 -0
- package/dist/esm/diwa-input-password.entry.js +62 -0
- package/dist/esm/diwa-input-password.entry.js.map +1 -0
- package/dist/esm/diwa-input-search.entry.js +62 -0
- package/dist/esm/diwa-input-search.entry.js.map +1 -0
- package/dist/esm/diwa-input-tel.entry.js +54 -0
- package/dist/esm/diwa-input-tel.entry.js.map +1 -0
- package/dist/esm/diwa-input-text.entry.js +56 -0
- package/dist/esm/diwa-input-text.entry.js.map +1 -0
- package/dist/esm/diwa-input-time.entry.js +54 -0
- package/dist/esm/diwa-input-time.entry.js.map +1 -0
- package/dist/esm/diwa-input-url.entry.js +54 -0
- package/dist/esm/diwa-input-url.entry.js.map +1 -0
- package/dist/esm/diwa-input-week.entry.js +54 -0
- package/dist/esm/diwa-input-week.entry.js.map +1 -0
- package/dist/esm/diwa-input.entry.js +235 -0
- package/dist/esm/diwa-input.entry.js.map +1 -0
- package/dist/esm/diwa-link-pure.entry.js +178 -0
- package/dist/esm/diwa-link-pure.entry.js.map +1 -0
- package/dist/esm/diwa-link.entry.js +221 -0
- package/dist/esm/diwa-link.entry.js.map +1 -0
- package/dist/esm/diwa-modal.entry.js +401 -0
- package/dist/esm/diwa-modal.entry.js.map +1 -0
- package/dist/esm/diwa-multi-select-option.entry.js +168 -0
- package/dist/esm/diwa-multi-select-option.entry.js.map +1 -0
- package/dist/esm/diwa-multi-select.entry.js +640 -0
- package/dist/esm/diwa-multi-select.entry.js.map +1 -0
- package/dist/esm/diwa-pagination.entry.js +303 -0
- package/dist/esm/diwa-pagination.entry.js.map +1 -0
- package/dist/esm/diwa-pin-code.entry.js +188 -0
- package/dist/esm/diwa-pin-code.entry.js.map +1 -0
- package/dist/esm/diwa-popover.entry.js +98 -0
- package/dist/esm/diwa-popover.entry.js.map +1 -0
- package/dist/esm/diwa-radio-group-item.entry.js +133 -0
- package/dist/esm/diwa-radio-group-item.entry.js.map +1 -0
- package/dist/esm/diwa-radio-group.entry.js +146 -0
- package/dist/esm/diwa-radio-group.entry.js.map +1 -0
- package/dist/esm/diwa-scroller.entry.js +149 -0
- package/dist/esm/diwa-scroller.entry.js.map +1 -0
- package/dist/esm/diwa-segmented-control-item.entry.js +73 -0
- package/dist/esm/diwa-segmented-control-item.entry.js.map +1 -0
- package/dist/esm/diwa-segmented-control.entry.js +64 -0
- package/dist/esm/diwa-segmented-control.entry.js.map +1 -0
- package/dist/esm/diwa-select-option.entry.js +144 -0
- package/dist/esm/diwa-select-option.entry.js.map +1 -0
- package/dist/esm/diwa-select.entry.js +558 -0
- package/dist/esm/diwa-select.entry.js.map +1 -0
- package/dist/esm/diwa-spinner.entry.js +97 -0
- package/dist/esm/diwa-spinner.entry.js.map +1 -0
- package/dist/esm/diwa-stepper-horizontal-item.entry.js +114 -0
- package/dist/esm/diwa-stepper-horizontal-item.entry.js.map +1 -0
- package/dist/esm/diwa-stepper-horizontal.entry.js +74 -0
- package/dist/esm/diwa-stepper-horizontal.entry.js.map +1 -0
- package/dist/esm/diwa-switch.entry.js +130 -0
- package/dist/esm/diwa-switch.entry.js.map +1 -0
- package/dist/esm/diwa-table-body.entry.js +23 -0
- package/dist/esm/diwa-table-body.entry.js.map +1 -0
- package/dist/esm/diwa-table-cell.entry.js +32 -0
- package/dist/esm/diwa-table-cell.entry.js.map +1 -0
- package/dist/esm/diwa-table-head-cell.entry.js +96 -0
- package/dist/esm/diwa-table-head-cell.entry.js.map +1 -0
- package/dist/esm/diwa-table-head.entry.js +27 -0
- package/dist/esm/diwa-table-head.entry.js.map +1 -0
- package/dist/esm/diwa-table-row.entry.js +26 -0
- package/dist/esm/diwa-table-row.entry.js.map +1 -0
- package/dist/esm/diwa-table.entry.js +69 -0
- package/dist/esm/diwa-table.entry.js.map +1 -0
- package/dist/esm/diwa-tabs-bar.entry.js +227 -0
- package/dist/esm/diwa-tabs-bar.entry.js.map +1 -0
- package/dist/esm/diwa-tabs-item.entry.js +33 -0
- package/dist/esm/diwa-tabs-item.entry.js.map +1 -0
- package/dist/esm/diwa-tabs.entry.js +113 -0
- package/dist/esm/diwa-tabs.entry.js.map +1 -0
- package/dist/esm/diwa-tag-dismissible.entry.js +110 -0
- package/dist/esm/diwa-tag-dismissible.entry.js.map +1 -0
- package/dist/esm/diwa-tag.entry.js +88 -0
- package/dist/esm/diwa-tag.entry.js.map +1 -0
- package/dist/esm/diwa-text-list-item.entry.js +30 -0
- package/dist/esm/diwa-text-list-item.entry.js.map +1 -0
- package/dist/esm/diwa-text-list.entry.js +45 -0
- package/dist/esm/diwa-text-list.entry.js.map +1 -0
- package/dist/esm/diwa-text.entry.js +83 -0
- package/dist/esm/diwa-text.entry.js.map +1 -0
- package/dist/esm/diwa-textarea.entry.js +154 -0
- package/dist/esm/diwa-textarea.entry.js.map +1 -0
- package/dist/esm/diwa-toast-item.entry.js +121 -0
- package/dist/esm/diwa-toast-item.entry.js.map +1 -0
- package/dist/esm/diwa-toast.entry.js +68 -0
- package/dist/esm/diwa-toast.entry.js.map +1 -0
- package/dist/esm/index-3fa02c74.js +1379 -0
- package/dist/esm/index-3fa02c74.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/input-styles-c4f4fa96.js +222 -0
- package/dist/esm/input-styles-c4f4fa96.js.map +1 -0
- package/dist/esm/loader-circle-300f00a4.js +12 -0
- package/dist/esm/loader-circle-300f00a4.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/styles-e5a47a2d.js +73 -0
- package/dist/esm/styles-e5a47a2d.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/diwa-accordion/diwa-accordion-styles.d.ts +13 -0
- package/dist/types/components/diwa-accordion/diwa-accordion.d.ts +62 -0
- package/dist/types/components/diwa-accordion/types.d.ts +3 -0
- package/dist/types/components/diwa-badge/diwa-badge-styles.d.ts +2 -0
- package/dist/types/components/diwa-badge/diwa-badge.d.ts +38 -0
- package/dist/types/components/diwa-badge/types.d.ts +10 -0
- package/dist/types/components/diwa-button/diwa-button-styles.d.ts +29 -0
- package/dist/types/components/diwa-button/diwa-button-utils.d.ts +42 -0
- package/dist/types/components/diwa-button/diwa-button.d.ts +102 -0
- package/dist/types/components/diwa-button/types.d.ts +25 -0
- package/dist/types/components/diwa-button-pure/diwa-button-pure-styles.d.ts +16 -0
- package/dist/types/components/diwa-button-pure/diwa-button-pure-utils.d.ts +12 -0
- package/dist/types/components/diwa-button-pure/diwa-button-pure.d.ts +82 -0
- package/dist/types/components/diwa-button-pure/types.d.ts +5 -0
- package/dist/types/components/diwa-checkbox/diwa-checkbox-styles.d.ts +3 -0
- package/dist/types/components/diwa-checkbox/diwa-checkbox.d.ts +85 -0
- package/dist/types/components/diwa-checkbox/types.d.ts +5 -0
- package/dist/types/components/diwa-divider/diwa-divider-styles.d.ts +3 -0
- package/dist/types/components/diwa-divider/diwa-divider.d.ts +37 -0
- package/dist/types/components/diwa-divider/types.d.ts +5 -0
- package/dist/types/components/diwa-flyout/diwa-flyout-styles.d.ts +21 -0
- package/dist/types/components/diwa-flyout/diwa-flyout.d.ts +75 -0
- package/dist/types/components/diwa-flyout/types.d.ts +18 -0
- package/dist/types/components/diwa-icon/diwa-icon-styles.d.ts +2 -0
- package/dist/types/components/diwa-icon/diwa-icon.d.ts +49 -0
- package/dist/types/components/diwa-icon/types.d.ts +10 -0
- package/dist/types/components/diwa-inline-notification/diwa-inline-notification-styles.d.ts +15 -0
- package/dist/types/components/diwa-inline-notification/diwa-inline-notification.d.ts +73 -0
- package/dist/types/components/diwa-inline-notification/types.d.ts +6 -0
- package/dist/types/components/diwa-input/diwa-input-styles.d.ts +2 -0
- package/dist/types/components/diwa-input/diwa-input.d.ts +100 -0
- package/dist/types/components/diwa-input/input-styles.d.ts +10 -0
- package/dist/types/components/diwa-input/types.d.ts +15 -0
- package/dist/types/components/diwa-input-date/diwa-input-date-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-date/diwa-input-date.d.ts +37 -0
- package/dist/types/components/diwa-input-email/diwa-input-email-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-email/diwa-input-email.d.ts +33 -0
- package/dist/types/components/diwa-input-month/diwa-input-month-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-month/diwa-input-month.d.ts +37 -0
- package/dist/types/components/diwa-input-number/diwa-input-number-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-number/diwa-input-number.d.ts +39 -0
- package/dist/types/components/diwa-input-password/diwa-input-password-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-password/diwa-input-password.d.ts +38 -0
- package/dist/types/components/diwa-input-search/diwa-input-search-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-search/diwa-input-search.d.ts +36 -0
- package/dist/types/components/diwa-input-tel/diwa-input-tel-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-tel/diwa-input-tel.d.ts +33 -0
- package/dist/types/components/diwa-input-text/diwa-input-text-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-text/diwa-input-text.d.ts +36 -0
- package/dist/types/components/diwa-input-time/diwa-input-time-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-time/diwa-input-time.d.ts +39 -0
- package/dist/types/components/diwa-input-url/diwa-input-url-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-url/diwa-input-url.d.ts +33 -0
- package/dist/types/components/diwa-input-week/diwa-input-week-styles.d.ts +2 -0
- package/dist/types/components/diwa-input-week/diwa-input-week.d.ts +37 -0
- package/dist/types/components/diwa-link/diwa-link-styles.d.ts +2 -0
- package/dist/types/components/diwa-link/diwa-link.d.ts +42 -0
- package/dist/types/components/diwa-link/types.d.ts +3 -0
- package/dist/types/components/diwa-link-pure/diwa-link-pure-styles.d.ts +2 -0
- package/dist/types/components/diwa-link-pure/diwa-link-pure.d.ts +53 -0
- package/dist/types/components/diwa-link-pure/types.d.ts +4 -0
- package/dist/types/components/diwa-modal/diwa-modal-styles.d.ts +30 -0
- package/dist/types/components/diwa-modal/diwa-modal-utils.d.ts +32 -0
- package/dist/types/components/diwa-modal/diwa-modal.d.ts +95 -0
- package/dist/types/components/diwa-modal/types.d.ts +9 -0
- package/dist/types/components/diwa-multi-select/diwa-multi-select-styles.d.ts +3 -0
- package/dist/types/components/diwa-multi-select/diwa-multi-select.d.ts +110 -0
- package/dist/types/components/diwa-multi-select/types.d.ts +14 -0
- package/dist/types/components/diwa-multi-select-option/diwa-multi-select-option-styles.d.ts +2 -0
- package/dist/types/components/diwa-multi-select-option/diwa-multi-select-option.d.ts +53 -0
- package/dist/types/components/diwa-multi-select-option/types.d.ts +5 -0
- package/dist/types/components/diwa-pagination/diwa-pagination-styles.d.ts +2 -0
- package/dist/types/components/diwa-pagination/diwa-pagination-utils.d.ts +46 -0
- package/dist/types/components/diwa-pagination/diwa-pagination.d.ts +57 -0
- package/dist/types/components/diwa-pagination/types.d.ts +11 -0
- package/dist/types/components/diwa-pin-code/diwa-pin-code-styles.d.ts +3 -0
- package/dist/types/components/diwa-pin-code/diwa-pin-code.d.ts +43 -0
- package/dist/types/components/diwa-pin-code/types.d.ts +6 -0
- package/dist/types/components/diwa-popover/diwa-popover-styles.d.ts +3 -0
- package/dist/types/components/diwa-popover/diwa-popover.d.ts +21 -0
- package/dist/types/components/diwa-popover/types.d.ts +2 -0
- package/dist/types/components/diwa-radio-group/diwa-radio-group-styles.d.ts +3 -0
- package/dist/types/components/diwa-radio-group/diwa-radio-group.d.ts +57 -0
- package/dist/types/components/diwa-radio-group/types.d.ts +9 -0
- package/dist/types/components/diwa-radio-group-item/diwa-radio-group-item-styles.d.ts +2 -0
- package/dist/types/components/diwa-radio-group-item/diwa-radio-group-item.d.ts +38 -0
- package/dist/types/components/diwa-radio-group-item/types.d.ts +4 -0
- package/dist/types/components/diwa-scroller/diwa-scroller-styles.d.ts +3 -0
- package/dist/types/components/diwa-scroller/diwa-scroller.d.ts +26 -0
- package/dist/types/components/diwa-scroller/types.d.ts +2 -0
- package/dist/types/components/diwa-segmented-control/diwa-segmented-control-styles.d.ts +2 -0
- package/dist/types/components/diwa-segmented-control/diwa-segmented-control.d.ts +40 -0
- package/dist/types/components/diwa-segmented-control/types.d.ts +7 -0
- package/dist/types/components/diwa-segmented-control-item/diwa-segmented-control-item-styles.d.ts +2 -0
- package/dist/types/components/diwa-segmented-control-item/diwa-segmented-control-item.d.ts +35 -0
- package/dist/types/components/diwa-segmented-control-item/types.d.ts +4 -0
- package/dist/types/components/diwa-select/diwa-select-styles.d.ts +3 -0
- package/dist/types/components/diwa-select/diwa-select.d.ts +96 -0
- package/dist/types/components/diwa-select/types.d.ts +14 -0
- package/dist/types/components/diwa-select-option/diwa-select-option-styles.d.ts +2 -0
- package/dist/types/components/diwa-select-option/diwa-select-option.d.ts +48 -0
- package/dist/types/components/diwa-select-option/types.d.ts +5 -0
- package/dist/types/components/diwa-spinner/diwa-spinner-styles.d.ts +2 -0
- package/dist/types/components/diwa-spinner/diwa-spinner.d.ts +37 -0
- package/dist/types/components/diwa-spinner/types.d.ts +8 -0
- package/dist/types/components/diwa-stepper-horizontal/diwa-stepper-horizontal-styles.d.ts +2 -0
- package/dist/types/components/diwa-stepper-horizontal/diwa-stepper-horizontal.d.ts +37 -0
- package/dist/types/components/diwa-stepper-horizontal/types.d.ts +7 -0
- package/dist/types/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item-styles.d.ts +3 -0
- package/dist/types/components/diwa-stepper-horizontal-item/diwa-stepper-horizontal-item.d.ts +30 -0
- package/dist/types/components/diwa-stepper-horizontal-item/types.d.ts +5 -0
- package/dist/types/components/diwa-switch/diwa-switch-styles.d.ts +3 -0
- package/dist/types/components/diwa-switch/diwa-switch.d.ts +28 -0
- package/dist/types/components/diwa-switch/types.d.ts +5 -0
- package/dist/types/components/diwa-table/diwa-table-styles.d.ts +2 -0
- package/dist/types/components/diwa-table/diwa-table.d.ts +21 -0
- package/dist/types/components/diwa-table-body/diwa-table-body-styles.d.ts +2 -0
- package/dist/types/components/diwa-table-body/diwa-table-body.d.ts +7 -0
- package/dist/types/components/diwa-table-cell/diwa-table-cell-styles.d.ts +2 -0
- package/dist/types/components/diwa-table-cell/diwa-table-cell.d.ts +8 -0
- package/dist/types/components/diwa-table-head/diwa-table-head-styles.d.ts +2 -0
- package/dist/types/components/diwa-table-head/diwa-table-head.d.ts +7 -0
- package/dist/types/components/diwa-table-head-cell/diwa-table-head-cell-styles.d.ts +2 -0
- package/dist/types/components/diwa-table-head-cell/diwa-table-head-cell.d.ts +13 -0
- package/dist/types/components/diwa-table-head-cell/types.d.ts +8 -0
- package/dist/types/components/diwa-table-row/diwa-table-row-styles.d.ts +2 -0
- package/dist/types/components/diwa-table-row/diwa-table-row.d.ts +7 -0
- package/dist/types/components/diwa-tabs/diwa-tabs-styles.d.ts +2 -0
- package/dist/types/components/diwa-tabs/diwa-tabs.d.ts +36 -0
- package/dist/types/components/diwa-tabs/types.d.ts +7 -0
- package/dist/types/components/diwa-tabs-bar/diwa-tabs-bar-styles.d.ts +2 -0
- package/dist/types/components/diwa-tabs-bar/diwa-tabs-bar.d.ts +42 -0
- package/dist/types/components/diwa-tabs-bar/types.d.ts +7 -0
- package/dist/types/components/diwa-tabs-item/diwa-tabs-item-styles.d.ts +2 -0
- package/dist/types/components/diwa-tabs-item/diwa-tabs-item.d.ts +21 -0
- package/dist/types/components/diwa-tabs-item/types.d.ts +4 -0
- package/dist/types/components/diwa-tag/diwa-tag-styles.d.ts +3 -0
- package/dist/types/components/diwa-tag/diwa-tag.d.ts +17 -0
- package/dist/types/components/diwa-tag/types.d.ts +3 -0
- package/dist/types/components/diwa-tag-dismissible/diwa-tag-dismissible-styles.d.ts +3 -0
- package/dist/types/components/diwa-tag-dismissible/diwa-tag-dismissible.d.ts +21 -0
- package/dist/types/components/diwa-tag-dismissible/types.d.ts +3 -0
- package/dist/types/components/diwa-text/diwa-text-styles.d.ts +3 -0
- package/dist/types/components/diwa-text/diwa-text.d.ts +39 -0
- package/dist/types/components/diwa-text/types.d.ts +17 -0
- package/dist/types/components/diwa-text-list/diwa-text-list-styles.d.ts +3 -0
- package/dist/types/components/diwa-text-list/diwa-text-list.d.ts +29 -0
- package/dist/types/components/diwa-text-list/types.d.ts +6 -0
- package/dist/types/components/diwa-text-list-item/diwa-text-list-item-styles.d.ts +2 -0
- package/dist/types/components/diwa-text-list-item/diwa-text-list-item.d.ts +20 -0
- package/dist/types/components/diwa-text-list-item/types.d.ts +7 -0
- package/dist/types/components/diwa-textarea/diwa-textarea-styles.d.ts +5 -0
- package/dist/types/components/diwa-textarea/diwa-textarea.d.ts +56 -0
- package/dist/types/components/diwa-textarea/types.d.ts +5 -0
- package/dist/types/components/diwa-toast/diwa-toast-styles.d.ts +2 -0
- package/dist/types/components/diwa-toast/diwa-toast.d.ts +31 -0
- package/dist/types/components/diwa-toast/types.d.ts +10 -0
- package/dist/types/components/diwa-toast-item/diwa-toast-item-styles.d.ts +3 -0
- package/dist/types/components/diwa-toast-item/diwa-toast-item.d.ts +24 -0
- package/dist/types/components/diwa-toast-item/types.d.ts +5 -0
- package/dist/types/components.d.ts +5924 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/styles/index.d.ts +129 -0
- package/dist/types/utils/checkbox-mark.d.ts +15 -0
- package/dist/types/utils/styles.d.ts +45 -0
- package/dist-custom-elements/diwa-accordion.d.ts +11 -0
- package/dist-custom-elements/diwa-accordion.js +244 -0
- package/dist-custom-elements/diwa-accordion.js.map +1 -0
- package/dist-custom-elements/diwa-badge.d.ts +11 -0
- package/dist-custom-elements/diwa-badge.js +123 -0
- package/dist-custom-elements/diwa-badge.js.map +1 -0
- package/dist-custom-elements/diwa-button-pure.d.ts +11 -0
- package/dist-custom-elements/diwa-button-pure.js +8 -0
- package/dist-custom-elements/diwa-button-pure.js.map +1 -0
- package/dist-custom-elements/diwa-button.d.ts +11 -0
- package/dist-custom-elements/diwa-button.js +455 -0
- package/dist-custom-elements/diwa-button.js.map +1 -0
- package/dist-custom-elements/diwa-checkbox.d.ts +11 -0
- package/dist-custom-elements/diwa-checkbox.js +317 -0
- package/dist-custom-elements/diwa-checkbox.js.map +1 -0
- package/dist-custom-elements/diwa-divider.d.ts +11 -0
- package/dist-custom-elements/diwa-divider.js +85 -0
- package/dist-custom-elements/diwa-divider.js.map +1 -0
- package/dist-custom-elements/diwa-flyout.d.ts +11 -0
- package/dist-custom-elements/diwa-flyout.js +238 -0
- package/dist-custom-elements/diwa-flyout.js.map +1 -0
- package/dist-custom-elements/diwa-icon.d.ts +11 -0
- package/dist-custom-elements/diwa-icon.js +8 -0
- package/dist-custom-elements/diwa-icon.js.map +1 -0
- package/dist-custom-elements/diwa-inline-notification.d.ts +11 -0
- package/dist-custom-elements/diwa-inline-notification.js +214 -0
- package/dist-custom-elements/diwa-inline-notification.js.map +1 -0
- package/dist-custom-elements/diwa-input-date.d.ts +11 -0
- package/dist-custom-elements/diwa-input-date.js +91 -0
- package/dist-custom-elements/diwa-input-date.js.map +1 -0
- package/dist-custom-elements/diwa-input-email.d.ts +11 -0
- package/dist-custom-elements/diwa-input-email.js +89 -0
- package/dist-custom-elements/diwa-input-email.js.map +1 -0
- package/dist-custom-elements/diwa-input-month.d.ts +11 -0
- package/dist-custom-elements/diwa-input-month.js +91 -0
- package/dist-custom-elements/diwa-input-month.js.map +1 -0
- package/dist-custom-elements/diwa-input-number.d.ts +11 -0
- package/dist-custom-elements/diwa-input-number.js +92 -0
- package/dist-custom-elements/diwa-input-number.js.map +1 -0
- package/dist-custom-elements/diwa-input-password.d.ts +11 -0
- package/dist-custom-elements/diwa-input-password.js +105 -0
- package/dist-custom-elements/diwa-input-password.js.map +1 -0
- package/dist-custom-elements/diwa-input-search.d.ts +11 -0
- package/dist-custom-elements/diwa-input-search.js +104 -0
- package/dist-custom-elements/diwa-input-search.js.map +1 -0
- package/dist-custom-elements/diwa-input-tel.d.ts +11 -0
- package/dist-custom-elements/diwa-input-tel.js +89 -0
- package/dist-custom-elements/diwa-input-tel.js.map +1 -0
- package/dist-custom-elements/diwa-input-text.d.ts +11 -0
- package/dist-custom-elements/diwa-input-text.js +94 -0
- package/dist-custom-elements/diwa-input-text.js.map +1 -0
- package/dist-custom-elements/diwa-input-time.d.ts +11 -0
- package/dist-custom-elements/diwa-input-time.js +92 -0
- package/dist-custom-elements/diwa-input-time.js.map +1 -0
- package/dist-custom-elements/diwa-input-url.d.ts +11 -0
- package/dist-custom-elements/diwa-input-url.js +89 -0
- package/dist-custom-elements/diwa-input-url.js.map +1 -0
- package/dist-custom-elements/diwa-input-week.d.ts +11 -0
- package/dist-custom-elements/diwa-input-week.js +91 -0
- package/dist-custom-elements/diwa-input-week.js.map +1 -0
- package/dist-custom-elements/diwa-input.d.ts +11 -0
- package/dist-custom-elements/diwa-input.js +268 -0
- package/dist-custom-elements/diwa-input.js.map +1 -0
- package/dist-custom-elements/diwa-link-pure.d.ts +11 -0
- package/dist-custom-elements/diwa-link-pure.js +217 -0
- package/dist-custom-elements/diwa-link-pure.js.map +1 -0
- package/dist-custom-elements/diwa-link.d.ts +11 -0
- package/dist-custom-elements/diwa-link.js +258 -0
- package/dist-custom-elements/diwa-link.js.map +1 -0
- package/dist-custom-elements/diwa-modal.d.ts +11 -0
- package/dist-custom-elements/diwa-modal.js +431 -0
- package/dist-custom-elements/diwa-modal.js.map +1 -0
- package/dist-custom-elements/diwa-multi-select-option.d.ts +11 -0
- package/dist-custom-elements/diwa-multi-select-option.js +199 -0
- package/dist-custom-elements/diwa-multi-select-option.js.map +1 -0
- package/dist-custom-elements/diwa-multi-select.d.ts +11 -0
- package/dist-custom-elements/diwa-multi-select.js +683 -0
- package/dist-custom-elements/diwa-multi-select.js.map +1 -0
- package/dist-custom-elements/diwa-pagination.d.ts +11 -0
- package/dist-custom-elements/diwa-pagination.js +329 -0
- package/dist-custom-elements/diwa-pagination.js.map +1 -0
- package/dist-custom-elements/diwa-pin-code.d.ts +11 -0
- package/dist-custom-elements/diwa-pin-code.js +220 -0
- package/dist-custom-elements/diwa-pin-code.js.map +1 -0
- package/dist-custom-elements/diwa-popover.d.ts +11 -0
- package/dist-custom-elements/diwa-popover.js +122 -0
- package/dist-custom-elements/diwa-popover.js.map +1 -0
- package/dist-custom-elements/diwa-radio-group-item.d.ts +11 -0
- package/dist-custom-elements/diwa-radio-group-item.js +161 -0
- package/dist-custom-elements/diwa-radio-group-item.js.map +1 -0
- package/dist-custom-elements/diwa-radio-group.d.ts +11 -0
- package/dist-custom-elements/diwa-radio-group.js +178 -0
- package/dist-custom-elements/diwa-radio-group.js.map +1 -0
- package/dist-custom-elements/diwa-scroller.d.ts +11 -0
- package/dist-custom-elements/diwa-scroller.js +175 -0
- package/dist-custom-elements/diwa-scroller.js.map +1 -0
- package/dist-custom-elements/diwa-segmented-control-item.d.ts +11 -0
- package/dist-custom-elements/diwa-segmented-control-item.js +98 -0
- package/dist-custom-elements/diwa-segmented-control-item.js.map +1 -0
- package/dist-custom-elements/diwa-segmented-control.d.ts +11 -0
- package/dist-custom-elements/diwa-segmented-control.js +88 -0
- package/dist-custom-elements/diwa-segmented-control.js.map +1 -0
- package/dist-custom-elements/diwa-select-option.d.ts +11 -0
- package/dist-custom-elements/diwa-select-option.js +170 -0
- package/dist-custom-elements/diwa-select-option.js.map +1 -0
- package/dist-custom-elements/diwa-select.d.ts +11 -0
- package/dist-custom-elements/diwa-select.js +599 -0
- package/dist-custom-elements/diwa-select.js.map +1 -0
- package/dist-custom-elements/diwa-spinner.d.ts +11 -0
- package/dist-custom-elements/diwa-spinner.js +8 -0
- package/dist-custom-elements/diwa-spinner.js.map +1 -0
- package/dist-custom-elements/diwa-stepper-horizontal-item.d.ts +11 -0
- package/dist-custom-elements/diwa-stepper-horizontal-item.js +140 -0
- package/dist-custom-elements/diwa-stepper-horizontal-item.js.map +1 -0
- package/dist-custom-elements/diwa-stepper-horizontal.d.ts +11 -0
- package/dist-custom-elements/diwa-stepper-horizontal.js +98 -0
- package/dist-custom-elements/diwa-stepper-horizontal.js.map +1 -0
- package/dist-custom-elements/diwa-switch.d.ts +11 -0
- package/dist-custom-elements/diwa-switch.js +162 -0
- package/dist-custom-elements/diwa-switch.js.map +1 -0
- package/dist-custom-elements/diwa-table-body.d.ts +11 -0
- package/dist-custom-elements/diwa-table-body.js +44 -0
- package/dist-custom-elements/diwa-table-body.js.map +1 -0
- package/dist-custom-elements/diwa-table-cell.d.ts +11 -0
- package/dist-custom-elements/diwa-table-cell.js +54 -0
- package/dist-custom-elements/diwa-table-cell.js.map +1 -0
- package/dist-custom-elements/diwa-table-head-cell.d.ts +11 -0
- package/dist-custom-elements/diwa-table-head-cell.js +120 -0
- package/dist-custom-elements/diwa-table-head-cell.js.map +1 -0
- package/dist-custom-elements/diwa-table-head.d.ts +11 -0
- package/dist-custom-elements/diwa-table-head.js +48 -0
- package/dist-custom-elements/diwa-table-head.js.map +1 -0
- package/dist-custom-elements/diwa-table-row.d.ts +11 -0
- package/dist-custom-elements/diwa-table-row.js +47 -0
- package/dist-custom-elements/diwa-table-row.js.map +1 -0
- package/dist-custom-elements/diwa-table.d.ts +11 -0
- package/dist-custom-elements/diwa-table.js +95 -0
- package/dist-custom-elements/diwa-table.js.map +1 -0
- package/dist-custom-elements/diwa-tabs-bar.d.ts +11 -0
- package/dist-custom-elements/diwa-tabs-bar.js +251 -0
- package/dist-custom-elements/diwa-tabs-bar.js.map +1 -0
- package/dist-custom-elements/diwa-tabs-item.d.ts +11 -0
- package/dist-custom-elements/diwa-tabs-item.js +56 -0
- package/dist-custom-elements/diwa-tabs-item.js.map +1 -0
- package/dist-custom-elements/diwa-tabs.d.ts +11 -0
- package/dist-custom-elements/diwa-tabs.js +137 -0
- package/dist-custom-elements/diwa-tabs.js.map +1 -0
- package/dist-custom-elements/diwa-tag-dismissible.d.ts +11 -0
- package/dist-custom-elements/diwa-tag-dismissible.js +134 -0
- package/dist-custom-elements/diwa-tag-dismissible.js.map +1 -0
- package/dist-custom-elements/diwa-tag.d.ts +11 -0
- package/dist-custom-elements/diwa-tag.js +118 -0
- package/dist-custom-elements/diwa-tag.js.map +1 -0
- package/dist-custom-elements/diwa-text-list-item.d.ts +11 -0
- package/dist-custom-elements/diwa-text-list-item.js +51 -0
- package/dist-custom-elements/diwa-text-list-item.js.map +1 -0
- package/dist-custom-elements/diwa-text-list.d.ts +11 -0
- package/dist-custom-elements/diwa-text-list.js +67 -0
- package/dist-custom-elements/diwa-text-list.js.map +1 -0
- package/dist-custom-elements/diwa-text.d.ts +11 -0
- package/dist-custom-elements/diwa-text.js +110 -0
- package/dist-custom-elements/diwa-text.js.map +1 -0
- package/dist-custom-elements/diwa-textarea.d.ts +11 -0
- package/dist-custom-elements/diwa-textarea.js +191 -0
- package/dist-custom-elements/diwa-textarea.js.map +1 -0
- package/dist-custom-elements/diwa-toast-item.d.ts +11 -0
- package/dist-custom-elements/diwa-toast-item.js +8 -0
- package/dist-custom-elements/diwa-toast-item.js.map +1 -0
- package/dist-custom-elements/diwa-toast.d.ts +11 -0
- package/dist-custom-elements/diwa-toast.js +97 -0
- package/dist-custom-elements/diwa-toast.js.map +1 -0
- package/dist-custom-elements/index.d.ts +33 -0
- package/dist-custom-elements/index.js +3 -0
- package/dist-custom-elements/index.js.map +1 -0
- package/dist-custom-elements/p-302af10d.js +29213 -0
- package/dist-custom-elements/p-302af10d.js.map +1 -0
- package/dist-custom-elements/p-332838f8.js +26 -0
- package/dist-custom-elements/p-332838f8.js.map +1 -0
- package/dist-custom-elements/p-35c7c864.js +222 -0
- package/dist-custom-elements/p-35c7c864.js.map +1 -0
- package/dist-custom-elements/p-54e5b3fb.js +321 -0
- package/dist-custom-elements/p-54e5b3fb.js.map +1 -0
- package/dist-custom-elements/p-5eacc7d0.js +1187 -0
- package/dist-custom-elements/p-5eacc7d0.js.map +1 -0
- package/dist-custom-elements/p-70bbb21a.js +73 -0
- package/dist-custom-elements/p-70bbb21a.js.map +1 -0
- package/dist-custom-elements/p-ac8e14be.js +12 -0
- package/dist-custom-elements/p-ac8e14be.js.map +1 -0
- package/dist-custom-elements/p-ed901570.js +117 -0
- package/dist-custom-elements/p-ed901570.js.map +1 -0
- package/dist-custom-elements/p-f480bce8.js +141 -0
- package/dist-custom-elements/p-f480bce8.js.map +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +78 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* diwa-inline-notification-styles.ts
|
|
9
|
+
* ====================================
|
|
10
|
+
* CSS-in-JS styles for <diwa-inline-notification>.
|
|
11
|
+
*
|
|
12
|
+
* The notification is a static flex-row banner:
|
|
13
|
+
* [icon-wrap] [content: heading + description] [actions: action-btn + dismiss-btn]
|
|
14
|
+
*
|
|
15
|
+
* Background and border colours are driven entirely by the `state` prop.
|
|
16
|
+
* All values are CSS custom properties so that the [data-theme="light"]
|
|
17
|
+
* overrides in app.css cascade into the Shadow DOM correctly.
|
|
18
|
+
*/
|
|
19
|
+
const STATE_TOKENS = {
|
|
20
|
+
info: {
|
|
21
|
+
bg: 'var(--diwa-notification-info-soft)',
|
|
22
|
+
border: 'var(--diwa-color-info-300)',
|
|
23
|
+
iconColor: 'var(--diwa-notification-info)',
|
|
24
|
+
},
|
|
25
|
+
success: {
|
|
26
|
+
bg: 'var(--diwa-notification-success-soft)',
|
|
27
|
+
border: 'var(--diwa-color-success-100)',
|
|
28
|
+
iconColor: 'var(--diwa-notification-success)',
|
|
29
|
+
},
|
|
30
|
+
warning: {
|
|
31
|
+
bg: 'var(--diwa-notification-warning-soft)',
|
|
32
|
+
border: 'var(--diwa-color-warning-100)',
|
|
33
|
+
iconColor: 'var(--diwa-notification-warning)',
|
|
34
|
+
},
|
|
35
|
+
error: {
|
|
36
|
+
bg: 'var(--diwa-notification-error-soft)',
|
|
37
|
+
border: 'var(--diwa-color-danger-200)',
|
|
38
|
+
iconColor: 'var(--diwa-notification-error)',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const getComponentCss = (state) => {
|
|
42
|
+
const { bg, border, iconColor } = STATE_TOKENS[state];
|
|
43
|
+
return `
|
|
44
|
+
/* ── Host ──────────────────────────────────────────────────────────── */
|
|
45
|
+
|
|
46
|
+
:host {
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
font-family: var(--diwa-font-family-base);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([hidden]) {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Root wrapper — carries all visual styling ───────────────────── */
|
|
57
|
+
|
|
58
|
+
.root {
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
gap: var(--diwa-space-3);
|
|
62
|
+
padding: var(--diwa-space-5) var(--diwa-space-6);
|
|
63
|
+
border-radius: var(--diwa-radius-md);
|
|
64
|
+
border: var(--diwa-border-width-thin) solid ${border};
|
|
65
|
+
background: ${bg};
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ── Status icon ────────────────────────────────────────────────────── */
|
|
71
|
+
|
|
72
|
+
.icon-wrap {
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
margin-top: var(--diwa-space-px);
|
|
75
|
+
color: ${iconColor};
|
|
76
|
+
line-height: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* ── Content ────────────────────────────────────────────────────────── */
|
|
80
|
+
|
|
81
|
+
.content {
|
|
82
|
+
flex: 1;
|
|
83
|
+
min-width: 0;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: var(--diwa-space-1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.heading {
|
|
90
|
+
display: block;
|
|
91
|
+
font-size: var(--diwa-font-size-base);
|
|
92
|
+
font-weight: var(--diwa-font-weight-semibold);
|
|
93
|
+
color: var(--diwa-text-primary);
|
|
94
|
+
line-height: var(--diwa-line-height-tight);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.description {
|
|
98
|
+
margin: 0;
|
|
99
|
+
font-size: var(--diwa-font-size-sm);
|
|
100
|
+
color: var(--diwa-text-secondary);
|
|
101
|
+
line-height: var(--diwa-line-height-normal);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ── Actions ────────────────────────────────────────────────────────── */
|
|
105
|
+
|
|
106
|
+
.actions {
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--diwa-space-2);
|
|
111
|
+
margin-top: var(--diwa-space-px);
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const STATE_ICON = {
|
|
117
|
+
info: 'info',
|
|
118
|
+
success: 'circle-check',
|
|
119
|
+
warning: 'triangle-alert',
|
|
120
|
+
error: 'circle-alert',
|
|
121
|
+
};
|
|
122
|
+
const DiwaInlineNotification = class {
|
|
123
|
+
constructor(hostRef) {
|
|
124
|
+
index.registerInstance(this, hostRef);
|
|
125
|
+
this.dismiss = index.createEvent(this, "dismiss", 1);
|
|
126
|
+
this.action = index.createEvent(this, "action", 1);
|
|
127
|
+
// ──────────────────────────────────────────────────────────────
|
|
128
|
+
// Props
|
|
129
|
+
// ──────────────────────────────────────────────────────────────
|
|
130
|
+
/** Per-component theme override (`light` / `dark`). */
|
|
131
|
+
this.theme = 'dark';
|
|
132
|
+
/**
|
|
133
|
+
* Semantic state — governs colour treatment, icon, and ARIA live role.
|
|
134
|
+
* - `info` — neutral informational (role="status", polite)
|
|
135
|
+
* - `success` — positive confirmation (role="status", polite)
|
|
136
|
+
* - `warning` — non-blocking caution (role="status", polite)
|
|
137
|
+
* - `error` — critical or blocking (role="alert", assertive)
|
|
138
|
+
*/
|
|
139
|
+
this.state = 'info';
|
|
140
|
+
/** Bold heading text rendered above the description. */
|
|
141
|
+
this.heading = '';
|
|
142
|
+
/**
|
|
143
|
+
* Description text.
|
|
144
|
+
* When empty, the default slot is rendered instead — allowing rich markup.
|
|
145
|
+
*/
|
|
146
|
+
this.description = '';
|
|
147
|
+
/**
|
|
148
|
+
* Whether to show the dismiss (×) button.
|
|
149
|
+
* When `false`, the notification can only be removed programmatically.
|
|
150
|
+
*/
|
|
151
|
+
this.dismissButton = true;
|
|
152
|
+
/**
|
|
153
|
+
* Shows a loading indicator on the action button and blocks its interaction.
|
|
154
|
+
* Has no effect when `actionLabel` is not set.
|
|
155
|
+
*/
|
|
156
|
+
this.actionLoading = false;
|
|
157
|
+
// ──────────────────────────────────────────────────────────────
|
|
158
|
+
// Handlers
|
|
159
|
+
// ──────────────────────────────────────────────────────────────
|
|
160
|
+
this.handleDismiss = () => {
|
|
161
|
+
this.dismiss.emit();
|
|
162
|
+
};
|
|
163
|
+
this.handleAction = () => {
|
|
164
|
+
this.action.emit();
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
// ──────────────────────────────────────────────────────────────
|
|
168
|
+
// Render
|
|
169
|
+
// ──────────────────────────────────────────────────────────────
|
|
170
|
+
render() {
|
|
171
|
+
const isAlert = this.state === 'error';
|
|
172
|
+
const showActions = this.dismissButton || Boolean(this.actionLabel);
|
|
173
|
+
return (index.h(index.Host, { key: '9c5daaa90736893373306014a7a81ceff288038e', "data-theme": this.theme }, index.h("style", { key: '703bad80df2e60ab7348d4c769ac3ef68def40e8', innerHTML: getComponentCss(this.state) }), index.h("div", { key: '8bcc89834f5664f7bc0bcd856735ec4793346ea7', class: "root" }, index.h("div", { key: '252d48eb839a4bf50039607bf7740c520d0ac78f', class: "icon-wrap", "aria-hidden": "true" }, index.h("diwa-icon", { key: '968fbde38c713c9de87571d9470f48845c398dab', name: STATE_ICON[this.state], size: 16 })), index.h("div", { key: '5d7a97ac06d8eadb6e586d8460d9bcd593a80abb', class: "content", role: isAlert ? 'alert' : 'status', "aria-live": isAlert ? 'assertive' : 'polite' }, this.heading && index.h("span", { key: 'b3e0f71b3fd449585b262c4cd6eb05837cee7713', class: "heading" }, this.heading), index.h("p", { key: '91da63ee4efbbe5333f96ff80d548fe9546c4284', class: "description" }, this.description || index.h("slot", { key: '562c57c90e98b8623e9b64f751bfcc4f3ee7a08c' }))), showActions && (index.h("div", { key: '9e9b140ff5968750cbba94bc793fa9643bad75bb', class: "actions" }, this.actionLabel && (index.h("diwa-button-pure", { key: '12794cd50df008bba55ad71808c5392ef18344ed', icon: "arrow-right", size: "sm", loading: this.actionLoading, theme: this.theme, onClick: this.handleAction }, this.actionLabel)), this.dismissButton && (index.h("diwa-button-pure", { key: '23c15e5eb4fb8114fbb760f65d7e09652c45d862', icon: "x", label: "Dismiss notification", hideLabel: true, size: "sm", theme: this.theme, onClick: this.handleDismiss })))))));
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.diwa_inline_notification = DiwaInlineNotification;
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=diwa-inline-notification.cjs.entry.js.map
|
|
@@ -0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AAK,EAAC,sBAAsB,EAC5B,SAAS,EAAE,IAAI,EACf,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,aAAa,GAC3B,CACH,CACG,CACP,CACG,CACD,EACP;KACH;;;;;","names":["h","Host"],"sources":["src/components/diwa-inline-notification/diwa-inline-notification-styles.ts","src/components/diwa-inline-notification/diwa-inline-notification.tsx"],"sourcesContent":["/**\r\n * diwa-inline-notification-styles.ts\r\n * ====================================\r\n * CSS-in-JS styles for <diwa-inline-notification>.\r\n *\r\n * The notification is a static flex-row banner:\r\n * [icon-wrap] [content: heading + description] [actions: action-btn + dismiss-btn]\r\n *\r\n * Background and border colours are driven entirely by the `state` prop.\r\n * All values are CSS custom properties so that the [data-theme=\"light\"]\r\n * overrides in app.css cascade into the Shadow DOM correctly.\r\n */\r\n\r\nimport type { InlineNotificationState } from './types';\r\n\r\ntype StateTokens = { bg: string; border: string; iconColor: string };\r\n\r\nconst STATE_TOKENS: Record<InlineNotificationState, StateTokens> = {\r\n info: {\r\n bg: 'var(--diwa-notification-info-soft)',\r\n border: 'var(--diwa-color-info-300)',\r\n iconColor: 'var(--diwa-notification-info)',\r\n },\r\n success: {\r\n bg: 'var(--diwa-notification-success-soft)',\r\n border: 'var(--diwa-color-success-100)',\r\n iconColor: 'var(--diwa-notification-success)',\r\n },\r\n warning: {\r\n bg: 'var(--diwa-notification-warning-soft)',\r\n border: 'var(--diwa-color-warning-100)',\r\n iconColor: 'var(--diwa-notification-warning)',\r\n },\r\n error: {\r\n bg: 'var(--diwa-notification-error-soft)',\r\n border: 'var(--diwa-color-danger-200)',\r\n iconColor: 'var(--diwa-notification-error)',\r\n },\r\n};\r\n\r\nexport const getComponentCss = (state: InlineNotificationState): string => {\r\n const { bg, border, iconColor } = STATE_TOKENS[state];\r\n\r\n return `\r\n /* ── Host ──────────────────────────────────────────────────────────── */\r\n\r\n :host {\r\n display: block;\r\n width: 100%;\r\n font-family: var(--diwa-font-family-base);\r\n }\r\n\r\n :host([hidden]) {\r\n display: none;\r\n }\r\n\r\n /* ── Root wrapper — carries all visual styling ───────────────────── */\r\n\r\n .root {\r\n display: flex;\r\n align-items: flex-start;\r\n gap: var(--diwa-space-3);\r\n padding: var(--diwa-space-5) var(--diwa-space-6);\r\n border-radius: var(--diwa-radius-md);\r\n border: var(--diwa-border-width-thin) solid ${border};\r\n background: ${bg};\r\n box-sizing: border-box;\r\n width: 100%;\r\n }\r\n\r\n /* ── Status icon ────────────────────────────────────────────────────── */\r\n\r\n .icon-wrap {\r\n flex-shrink: 0;\r\n margin-top: var(--diwa-space-px);\r\n color: ${iconColor};\r\n line-height: 0;\r\n }\r\n\r\n /* ── Content ────────────────────────────────────────────────────────── */\r\n\r\n .content {\r\n flex: 1;\r\n min-width: 0;\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--diwa-space-1);\r\n }\r\n\r\n .heading {\r\n display: block;\r\n font-size: var(--diwa-font-size-base);\r\n font-weight: var(--diwa-font-weight-semibold);\r\n color: var(--diwa-text-primary);\r\n line-height: var(--diwa-line-height-tight);\r\n }\r\n\r\n .description {\r\n margin: 0;\r\n font-size: var(--diwa-font-size-sm);\r\n color: var(--diwa-text-secondary);\r\n line-height: var(--diwa-line-height-normal);\r\n }\r\n\r\n /* ── Actions ────────────────────────────────────────────────────────── */\r\n\r\n .actions {\r\n flex-shrink: 0;\r\n display: flex;\r\n align-items: center;\r\n gap: var(--diwa-space-2);\r\n margin-top: var(--diwa-space-px);\r\n }\r\n`;\r\n};\r\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\r\nimport type { InlineNotificationState } from './types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-inline-notification-styles';\r\n\r\nconst STATE_ICON: Record<InlineNotificationState, string> = {\r\n info: 'info',\r\n success: 'circle-check',\r\n warning: 'triangle-alert',\r\n error: 'circle-alert',\r\n};\r\n\r\n/**\r\n * @component diwa-inline-notification\r\n *\r\n * A static inline banner that communicates contextual feedback.\r\n * Supports four semantic states — info, success, warning, error — each with\r\n * a distinct colour treatment and Lucide status icon.\r\n *\r\n * Accessibility:\r\n * - state=\"error\" uses role=\"alert\" (assertive live region)\r\n * - All other states use role=\"status\" (polite live region)\r\n * - The icon is aria-hidden — semantic meaning is carried by the text\r\n * - The dismiss button has an accessible label via label + hideLabel\r\n *\r\n * Usage:\r\n * <diwa-inline-notification\r\n * state=\"success\"\r\n * heading=\"Saved\"\r\n * description=\"Your changes have been saved.\"\r\n * />\r\n *\r\n * @slot default — Fallback description content when the description prop is empty.\r\n */\r\n@Component({\r\n tag: 'diwa-inline-notification',\r\n shadow: true,\r\n})\r\nexport class DiwaInlineNotification {\r\n // ──────────────────────────────────────────────────────────────\r\n // Props\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /** Per-component theme override (`light` / `dark`). */\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n /**\r\n * Semantic state — governs colour treatment, icon, and ARIA live role.\r\n * - `info` — neutral informational (role=\"status\", polite)\r\n * - `success` — positive confirmation (role=\"status\", polite)\r\n * - `warning` — non-blocking caution (role=\"status\", polite)\r\n * - `error` — critical or blocking (role=\"alert\", assertive)\r\n */\r\n @Prop({ reflect: true }) state: InlineNotificationState = 'info';\r\n\r\n /** Bold heading text rendered above the description. */\r\n @Prop() heading: string = '';\r\n\r\n /**\r\n * Description text.\r\n * When empty, the default slot is rendered instead — allowing rich markup.\r\n */\r\n @Prop() description: string = '';\r\n\r\n /**\r\n * Whether to show the dismiss (×) button.\r\n * When `false`, the notification can only be removed programmatically.\r\n */\r\n @Prop() dismissButton: boolean = true;\r\n\r\n /**\r\n * Optional label for a secondary action button rendered beside the dismiss button.\r\n * When set, a diwa-button-pure with an arrow icon emits the `action` event on click.\r\n */\r\n @Prop() actionLabel?: string;\r\n\r\n /**\r\n * Shows a loading indicator on the action button and blocks its interaction.\r\n * Has no effect when `actionLabel` is not set.\r\n */\r\n @Prop() actionLoading: boolean = false;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Events\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /**\r\n * Emitted when the dismiss (×) button is clicked.\r\n * The consumer is responsible for removing or hiding the notification in response.\r\n */\r\n @Event({ bubbles: false, composed: false })\r\n dismiss!: EventEmitter<void>;\r\n\r\n /**\r\n * Emitted when the action button is clicked.\r\n * Only fired when `actionLabel` is set and the button is not in a loading state.\r\n */\r\n @Event({ bubbles: false, composed: false })\r\n action!: EventEmitter<void>;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Handlers\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n private handleDismiss = (): void => {\r\n this.dismiss.emit();\r\n };\r\n\r\n private handleAction = (): void => {\r\n this.action.emit();\r\n };\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Render\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n render() {\r\n const isAlert = this.state === 'error';\r\n const showActions = this.dismissButton || Boolean(this.actionLabel);\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.state)} />\r\n\r\n <div class=\"root\">\r\n {/* Status icon — decorative, hidden from assistive technology */}\r\n <div class=\"icon-wrap\" aria-hidden=\"true\">\r\n <diwa-icon name={STATE_ICON[this.state]} size={16} />\r\n </div>\r\n\r\n {/* Content — ARIA live region */}\r\n <div\r\n class=\"content\"\r\n role={isAlert ? 'alert' : 'status'}\r\n aria-live={isAlert ? 'assertive' : 'polite'}\r\n >\r\n {this.heading && <span class=\"heading\">{this.heading}</span>}\r\n <p class=\"description\">{this.description || <slot />}</p>\r\n </div>\r\n\r\n {/* Actions row */}\r\n {showActions && (\r\n <div class=\"actions\">\r\n {this.actionLabel && (\r\n <diwa-button-pure\r\n icon=\"arrow-right\"\r\n size=\"sm\"\r\n loading={this.actionLoading}\r\n theme={this.theme}\r\n onClick={this.handleAction}\r\n >\r\n {this.actionLabel}\r\n </diwa-button-pure>\r\n )}\r\n {this.dismissButton && (\r\n <diwa-button-pure\r\n icon=\"x\"\r\n label=\"Dismiss notification\"\r\n hideLabel={true}\r\n size=\"sm\"\r\n theme={this.theme}\r\n onClick={this.handleDismiss}\r\n />\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
const inputStyles = require('./input-styles-bac68ebc.js');
|
|
7
|
+
require('./styles-6342300d.js');
|
|
8
|
+
|
|
9
|
+
const DiwaInputDate = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.change = index.createEvent(this, "change", 7);
|
|
13
|
+
this.input = index.createEvent(this, "input", 7);
|
|
14
|
+
this.blur = index.createEvent(this, "blur", 3);
|
|
15
|
+
this.focus = index.createEvent(this, "focus", 3);
|
|
16
|
+
this._hasStart = false;
|
|
17
|
+
this._hasEnd = false;
|
|
18
|
+
this.label = '';
|
|
19
|
+
this.description = '';
|
|
20
|
+
this.message = '';
|
|
21
|
+
this.state = 'none';
|
|
22
|
+
this.name = '';
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.placeholder = '';
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.required = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.hideLabel = false;
|
|
29
|
+
this.compact = false;
|
|
30
|
+
this.theme = 'dark';
|
|
31
|
+
this.handleInput = (e) => {
|
|
32
|
+
this.value = e.target.value;
|
|
33
|
+
this.input.emit(this.value);
|
|
34
|
+
};
|
|
35
|
+
this.handleChange = (e) => {
|
|
36
|
+
this.value = e.target.value;
|
|
37
|
+
this.change.emit(this.value);
|
|
38
|
+
};
|
|
39
|
+
this.handleBlur = (e) => { this.blur.emit(e); };
|
|
40
|
+
this.handleFocus = (e) => { this.focus.emit(e); };
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this._hasStart = !!this.el.querySelector('[slot="start"]');
|
|
44
|
+
this._hasEnd = !!this.el.querySelector('[slot="end"]');
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const inputId = 'input';
|
|
48
|
+
const descId = 'desc';
|
|
49
|
+
const msgId = 'msg';
|
|
50
|
+
return (index.h(index.Host, { key: '5f4369927da0d74c2564b4b147dc4964820cd2dd', "data-theme": this.theme }, index.h("style", { key: '5662055af38b2245350dd16e72ad01cfc88f7884', innerHTML: inputStyles.getInputCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), index.h("div", { key: 'eebc09dc97886920cee9ff5680c49697cd1d7637', class: "root" }, !this.hideLabel && this.label && (index.h("div", { key: 'd6b3d2a4d2338132b9c8fc86b6a4de5aba65605c', class: "label-row" }, index.h("label", { key: 'f9f3cd718b6c43ce95f4d3b0ad691ba817955552', class: "label", htmlFor: inputId }, this.label, this.required && index.h("span", { key: 'bd542448712be17c8c67725b5cc9346944a1b11b', class: "required", "aria-hidden": "true" }, " *")), index.h("slot", { key: '24a53071abaaa6ac6a377eecc10b26a9422ad5b0', name: "label-after" }))), index.h("div", { key: '4aed4bb669fc3f4a13fec05e2845961672f56d73', class: "input-wrapper" }, this._hasStart && index.h("div", { key: '32ef1a846195d61b5001deabc0a63fec5e1b4252', class: "slot-start" }, index.h("slot", { key: 'aeab0a7ac116d58b9256b78097a3e8ba2ef4df7e', name: "start" })), index.h("input", { key: 'd638d2a0b495e12d3b74e4868302c03733d5a505', id: inputId, class: "input", type: "date", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && index.h("div", { key: 'b528ac2bdd016d563f8786111907850543da776e', class: "slot-end" }, index.h("slot", { key: '9ec29e9ac4340f47c34201156b70ad0cf2f8b35f', name: "end" }))), !this.message && this.description && (index.h("p", { key: '404219ce20aa844461ca10964d23d63cfe21a5fb', id: descId, class: "description" }, this.description)), this.message && (index.h("p", { key: '8c59dabacdfc8f553bc2308549fe9a51fb9ef224', id: msgId, class: "message" }, this.message)))));
|
|
51
|
+
}
|
|
52
|
+
static get delegatesFocus() { return true; }
|
|
53
|
+
get el() { return index.getElement(this); }
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.diwa_input_date = DiwaInputDate;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=diwa-input-date.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-input-date.entry.cjs.js","mappings":";;;;;;;;MASa,aAAa;IAJ1B;;;;;;QAMmB,cAAS,GAAG,KAAK,CAAC;QAClB,YAAO,GAAG,KAAK,CAAC;QAEzB,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,GAAW,EAAE,CAAC;QACzB,YAAO,GAAW,EAAE,CAAC;QACrB,UAAK,GAAoB,MAAM,CAAC;QAChC,SAAI,GAAW,EAAE,CAAC;QACe,UAAK,GAAW,EAAE,CAAC;QACpD,gBAAW,GAAW,EAAE,CAAC;QACR,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC3C,cAAS,GAAY,KAAK,CAAC;QAC3B,YAAO,GAAY,KAAK,CAAC;QAEzB,UAAK,GAAU,MAAM,CAAC;QAiBtB,gBAAW,GAAG,CAAC,CAAQ;YAC7B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC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,CAC5D,EACL,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,KAChCA,gEAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAK,CAC1D,EACA,IAAI,CAAC,OAAO,KACXA,gEAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAK,CACjD,CACG,CACD,EACP;KACH;;;;;;;","names":["h","Host","getComponentCss"],"sources":["src/components/diwa-input-date/diwa-input-date.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\r\nimport type { InputFieldState } from '../diwa-input/types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-input-date-styles';\r\n\r\n@Component({\r\n tag: 'diwa-input-date',\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaInputDate {\r\n @Element() el!: HTMLElement;\r\n @State() private _hasStart = false;\r\n @State() private _hasEnd = false;\r\n\r\n @Prop() label: string = '';\r\n @Prop() description: string = '';\r\n @Prop() message: string = '';\r\n @Prop() state: InputFieldState = 'none';\r\n @Prop() name: string = '';\r\n @Prop({ mutable: true, reflect: false }) value: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n @Prop({ reflect: true }) required: boolean = false;\r\n @Prop({ reflect: true }) readonly: boolean = false;\r\n @Prop() hideLabel: boolean = false;\r\n @Prop() compact: boolean = false;\r\n @Prop() autoComplete?: string;\r\n @Prop() theme: Theme = 'dark';\r\n\r\n /** ISO 8601 date string (YYYY-MM-DD) for the minimum allowed date. */\r\n @Prop() min?: string;\r\n /** ISO 8601 date string (YYYY-MM-DD) for the maximum allowed date. */\r\n @Prop() max?: string;\r\n\r\n @Event({ bubbles: true }) change!: EventEmitter<string>;\r\n @Event({ bubbles: true }) input!: EventEmitter<string>;\r\n @Event({ bubbles: false }) blur!: EventEmitter<FocusEvent>;\r\n @Event({ bubbles: false }) focus!: EventEmitter<FocusEvent>;\r\n\r\n connectedCallback(): void {\r\n this._hasStart = !!this.el.querySelector('[slot=\"start\"]');\r\n this._hasEnd = !!this.el.querySelector('[slot=\"end\"]');\r\n }\r\n\r\n private handleInput = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.input.emit(this.value);\r\n };\r\n\r\n private handleChange = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.change.emit(this.value);\r\n };\r\n\r\n private handleBlur = (e: FocusEvent): void => { this.blur.emit(e); };\r\n private handleFocus = (e: FocusEvent): void => { this.focus.emit(e); };\r\n\r\n render() {\r\n const inputId = 'input';\r\n const descId = 'desc';\r\n const msgId = 'msg';\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false)} />\r\n <div class=\"root\">\r\n {!this.hideLabel && this.label && (\r\n <div class=\"label-row\">\r\n <label class=\"label\" htmlFor={inputId}>\r\n {this.label}\r\n {this.required && <span class=\"required\" aria-hidden=\"true\"> *</span>}\r\n </label>\r\n <slot name=\"label-after\" />\r\n </div>\r\n )}\r\n <div class=\"input-wrapper\">\r\n {this._hasStart && <div class=\"slot-start\"><slot name=\"start\" /></div>}\r\n <input\r\n id={inputId}\r\n class=\"input\"\r\n type=\"date\"\r\n name={this.name || undefined}\r\n value={this.value}\r\n disabled={this.disabled}\r\n required={this.required}\r\n readOnly={this.readonly}\r\n min={this.min}\r\n max={this.max}\r\n autocomplete={this.autoComplete}\r\n aria-label={this.hideLabel && this.label ? this.label : undefined}\r\n aria-invalid={this.state === 'error' ? 'true' : undefined}\r\n aria-required={this.required ? 'true' : undefined}\r\n aria-describedby={this.message ? msgId : this.description ? descId : undefined}\r\n onInput={this.handleInput}\r\n onChange={this.handleChange}\r\n onBlur={this.handleBlur}\r\n onFocus={this.handleFocus}\r\n />\r\n {this._hasEnd && <div class=\"slot-end\"><slot name=\"end\" /></div>}\r\n </div>\r\n {!this.message && this.description && (\r\n <p id={descId} class=\"description\">{this.description}</p>\r\n )}\r\n {this.message && (\r\n <p id={msgId} class=\"message\">{this.message}</p>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
const inputStyles = require('./input-styles-bac68ebc.js');
|
|
7
|
+
require('./styles-6342300d.js');
|
|
8
|
+
|
|
9
|
+
const DiwaInputEmail = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.change = index.createEvent(this, "change", 7);
|
|
13
|
+
this.input = index.createEvent(this, "input", 7);
|
|
14
|
+
this.blur = index.createEvent(this, "blur", 3);
|
|
15
|
+
this.focus = index.createEvent(this, "focus", 3);
|
|
16
|
+
this._hasStart = false;
|
|
17
|
+
this._hasEnd = false;
|
|
18
|
+
this.label = '';
|
|
19
|
+
this.description = '';
|
|
20
|
+
this.message = '';
|
|
21
|
+
this.state = 'none';
|
|
22
|
+
this.name = '';
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.placeholder = '';
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.required = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.hideLabel = false;
|
|
29
|
+
this.compact = false;
|
|
30
|
+
this.theme = 'dark';
|
|
31
|
+
this.handleInput = (e) => {
|
|
32
|
+
this.value = e.target.value;
|
|
33
|
+
this.input.emit(this.value);
|
|
34
|
+
};
|
|
35
|
+
this.handleChange = (e) => {
|
|
36
|
+
this.value = e.target.value;
|
|
37
|
+
this.change.emit(this.value);
|
|
38
|
+
};
|
|
39
|
+
this.handleBlur = (e) => { this.blur.emit(e); };
|
|
40
|
+
this.handleFocus = (e) => { this.focus.emit(e); };
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this._hasStart = !!this.el.querySelector('[slot="start"]');
|
|
44
|
+
this._hasEnd = !!this.el.querySelector('[slot="end"]');
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const inputId = 'input';
|
|
48
|
+
const descId = 'desc';
|
|
49
|
+
const msgId = 'msg';
|
|
50
|
+
return (index.h(index.Host, { key: '1a6687d10bd153eec0539353d3268e3dc2290b32', "data-theme": this.theme }, index.h("style", { key: '09469b584447016ad849afb25e925f057330e863', innerHTML: inputStyles.getInputCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), index.h("div", { key: 'ba00b4ecf8ab9afb5d7a57d503383eab8d2edf98', class: "root" }, !this.hideLabel && this.label && (index.h("div", { key: '22389218bba90ee2fff6ab51d9d45bb5801e6173', class: "label-row" }, index.h("label", { key: '06e1d34f6c601df85b58165e7fb21e09ca12bcca', class: "label", htmlFor: inputId }, this.label, this.required && index.h("span", { key: '5588e28c407f8635ebcce2e1279b6be6c539263e', class: "required", "aria-hidden": "true" }, " *")), index.h("slot", { key: 'f7643dca94c7b4091fbd2133181612745cc84ef6', name: "label-after" }))), index.h("div", { key: '135ba5099bab6c8221ee7b5e873aa3f12bdcc7c7', class: "input-wrapper" }, this._hasStart && index.h("div", { key: '63f1226e41d09fec87678bbd68ec19139b20f221', class: "slot-start" }, index.h("slot", { key: '98740dc661a2dcbc15124abf589a230200259c55', name: "start" })), index.h("input", { key: '1dce2b09f9bbb77b1f308879a9c905362938e48b', id: inputId, class: "input", type: "email", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && index.h("div", { key: '4e651437e42eaf82bdcba017fe4d744e4697c911', class: "slot-end" }, index.h("slot", { key: 'f999ab791c914938a73b589ca53d28ff9b357734', name: "end" }))), !this.message && this.description && (index.h("p", { key: 'c19e97d4d817f4c215005a2981bcb1d2860a0904', id: descId, class: "description" }, this.description)), this.message && (index.h("p", { key: '050b53ccb7310f186e4d1e767d1ff20efd5e7064', id: msgId, class: "message" }, this.message)))));
|
|
51
|
+
}
|
|
52
|
+
static get delegatesFocus() { return true; }
|
|
53
|
+
get el() { return index.getElement(this); }
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.diwa_input_email = DiwaInputEmail;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=diwa-input-email.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-input-email.entry.cjs.js","mappings":";;;;;;;;MASa,cAAc;IAJ3B;;;;;;QAMmB,cAAS,GAAG,KAAK,CAAC;QAClB,YAAO,GAAG,KAAK,CAAC;QAEzB,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,GAAW,EAAE,CAAC;QACzB,YAAO,GAAW,EAAE,CAAC;QACrB,UAAK,GAAoB,MAAM,CAAC;QAChC,SAAI,GAAW,EAAE,CAAC;QACe,UAAK,GAAW,EAAE,CAAC;QACpD,gBAAW,GAAW,EAAE,CAAC;QACR,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC3C,cAAS,GAAY,KAAK,CAAC;QAC3B,YAAO,GAAY,KAAK,CAAC;QAEzB,UAAK,GAAU,MAAM,CAAC;QAYtB,gBAAW,GAAG,CAAC,CAAQ;YAC7B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;YAClD,IAAI,CAAC,KAAK,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AAI,CAAC,WAAW,KAChCA,gEAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAK,CAC1D,EACA,IAAI,CAAC,OAAO,KACXA,gEAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAK,CACjD,CACG,CACD,EACP;KACH;;;;;;;","names":["h","Host","getComponentCss"],"sources":["src/components/diwa-input-email/diwa-input-email.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\r\nimport type { InputFieldState } from '../diwa-input/types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-input-email-styles';\r\n\r\n@Component({\r\n tag: 'diwa-input-email',\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaInputEmail {\r\n @Element() el!: HTMLElement;\r\n @State() private _hasStart = false;\r\n @State() private _hasEnd = false;\r\n\r\n @Prop() label: string = '';\r\n @Prop() description: string = '';\r\n @Prop() message: string = '';\r\n @Prop() state: InputFieldState = 'none';\r\n @Prop() name: string = '';\r\n @Prop({ mutable: true, reflect: false }) value: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n @Prop({ reflect: true }) required: boolean = false;\r\n @Prop({ reflect: true }) readonly: boolean = false;\r\n @Prop() hideLabel: boolean = false;\r\n @Prop() compact: boolean = false;\r\n @Prop() autoComplete?: string;\r\n @Prop() theme: Theme = 'dark';\r\n\r\n @Event({ bubbles: true }) change!: EventEmitter<string>;\r\n @Event({ bubbles: true }) input!: EventEmitter<string>;\r\n @Event({ bubbles: false }) blur!: EventEmitter<FocusEvent>;\r\n @Event({ bubbles: false }) focus!: EventEmitter<FocusEvent>;\r\n\r\n connectedCallback(): void {\r\n this._hasStart = !!this.el.querySelector('[slot=\"start\"]');\r\n this._hasEnd = !!this.el.querySelector('[slot=\"end\"]');\r\n }\r\n\r\n private handleInput = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.input.emit(this.value);\r\n };\r\n\r\n private handleChange = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.change.emit(this.value);\r\n };\r\n\r\n private handleBlur = (e: FocusEvent): void => { this.blur.emit(e); };\r\n private handleFocus = (e: FocusEvent): void => { this.focus.emit(e); };\r\n\r\n render() {\r\n const inputId = 'input';\r\n const descId = 'desc';\r\n const msgId = 'msg';\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false)} />\r\n <div class=\"root\">\r\n {!this.hideLabel && this.label && (\r\n <div class=\"label-row\">\r\n <label class=\"label\" htmlFor={inputId}>\r\n {this.label}\r\n {this.required && <span class=\"required\" aria-hidden=\"true\"> *</span>}\r\n </label>\r\n <slot name=\"label-after\" />\r\n </div>\r\n )}\r\n <div class=\"input-wrapper\">\r\n {this._hasStart && <div class=\"slot-start\"><slot name=\"start\" /></div>}\r\n <input\r\n id={inputId}\r\n class=\"input\"\r\n type=\"email\"\r\n name={this.name || undefined}\r\n value={this.value}\r\n placeholder={this.placeholder || undefined}\r\n disabled={this.disabled}\r\n required={this.required}\r\n readOnly={this.readonly}\r\n autocomplete={this.autoComplete}\r\n aria-label={this.hideLabel && this.label ? this.label : undefined}\r\n aria-invalid={this.state === 'error' ? 'true' : undefined}\r\n aria-required={this.required ? 'true' : undefined}\r\n aria-describedby={this.message ? msgId : this.description ? descId : undefined}\r\n onInput={this.handleInput}\r\n onChange={this.handleChange}\r\n onBlur={this.handleBlur}\r\n onFocus={this.handleFocus}\r\n />\r\n {this._hasEnd && <div class=\"slot-end\"><slot name=\"end\" /></div>}\r\n </div>\r\n {!this.message && this.description && (\r\n <p id={descId} class=\"description\">{this.description}</p>\r\n )}\r\n {this.message && (\r\n <p id={msgId} class=\"message\">{this.message}</p>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
const inputStyles = require('./input-styles-bac68ebc.js');
|
|
7
|
+
require('./styles-6342300d.js');
|
|
8
|
+
|
|
9
|
+
const DiwaInputMonth = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.change = index.createEvent(this, "change", 7);
|
|
13
|
+
this.input = index.createEvent(this, "input", 7);
|
|
14
|
+
this.blur = index.createEvent(this, "blur", 3);
|
|
15
|
+
this.focus = index.createEvent(this, "focus", 3);
|
|
16
|
+
this._hasStart = false;
|
|
17
|
+
this._hasEnd = false;
|
|
18
|
+
this.label = '';
|
|
19
|
+
this.description = '';
|
|
20
|
+
this.message = '';
|
|
21
|
+
this.state = 'none';
|
|
22
|
+
this.name = '';
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.placeholder = '';
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.required = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.hideLabel = false;
|
|
29
|
+
this.compact = false;
|
|
30
|
+
this.theme = 'dark';
|
|
31
|
+
this.handleInput = (e) => {
|
|
32
|
+
this.value = e.target.value;
|
|
33
|
+
this.input.emit(this.value);
|
|
34
|
+
};
|
|
35
|
+
this.handleChange = (e) => {
|
|
36
|
+
this.value = e.target.value;
|
|
37
|
+
this.change.emit(this.value);
|
|
38
|
+
};
|
|
39
|
+
this.handleBlur = (e) => { this.blur.emit(e); };
|
|
40
|
+
this.handleFocus = (e) => { this.focus.emit(e); };
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this._hasStart = !!this.el.querySelector('[slot="start"]');
|
|
44
|
+
this._hasEnd = !!this.el.querySelector('[slot="end"]');
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const inputId = 'input';
|
|
48
|
+
const descId = 'desc';
|
|
49
|
+
const msgId = 'msg';
|
|
50
|
+
return (index.h(index.Host, { key: 'e7b42335a448f264e605a22e8c973a4703027711', "data-theme": this.theme }, index.h("style", { key: '97a4f13c5867744270eced8aa13b209f9139f582', innerHTML: inputStyles.getInputCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), index.h("div", { key: '4d20197cbf918b7be8cf1b67e5f0fdc3e338f2f4', class: "root" }, !this.hideLabel && this.label && (index.h("div", { key: '0e79bf6e67eab3600a3a1e5d3f2d7a73a83abdc9', class: "label-row" }, index.h("label", { key: '7adcf80c3a0e61c1ba0634308657fef73054e7ea', class: "label", htmlFor: inputId }, this.label, this.required && index.h("span", { key: 'd8cf7249d82461d2fd51f000737a4f0ebd15afc4', class: "required", "aria-hidden": "true" }, " *")), index.h("slot", { key: '738298b5cd67496e40173687a02432191754ebd6', name: "label-after" }))), index.h("div", { key: '0fb96733077c26851196e46220a80af39b8dd757', class: "input-wrapper" }, this._hasStart && index.h("div", { key: 'f13788a2afa4855aa772db164ee436aa0356f0cf', class: "slot-start" }, index.h("slot", { key: '06a5012bd82608a9b6ff4d84d89a8b1a8dadc2d3', name: "start" })), index.h("input", { key: '1bebc847823145ec56aa3a540a3e55463990fd6d', id: inputId, class: "input", type: "month", name: this.name || undefined, value: this.value, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min, max: this.max, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && index.h("div", { key: '7fad070fcca5acd9dc849e3f1549708c49ad85f9', class: "slot-end" }, index.h("slot", { key: '58f0310c841b893f7b9679ec0ee0c702150e6476', name: "end" }))), !this.message && this.description && (index.h("p", { key: '6889e36e3f5f1e859f2c2be2fee4aa4766b9898c', id: descId, class: "description" }, this.description)), this.message && (index.h("p", { key: 'bfb61253f688d25ede2e488306cf6d61ed8cc8e9', id: msgId, class: "message" }, this.message)))));
|
|
51
|
+
}
|
|
52
|
+
static get delegatesFocus() { return true; }
|
|
53
|
+
get el() { return index.getElement(this); }
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.diwa_input_month = DiwaInputMonth;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=diwa-input-month.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-input-month.entry.cjs.js","mappings":";;;;;;;;MASa,cAAc;IAJ3B;;;;;;QAMmB,cAAS,GAAG,KAAK,CAAC;QAClB,YAAO,GAAG,KAAK,CAAC;QAEzB,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,GAAW,EAAE,CAAC;QACzB,YAAO,GAAW,EAAE,CAAC;QACrB,UAAK,GAAoB,MAAM,CAAC;QAChC,SAAI,GAAW,EAAE,CAAC;QACe,UAAK,GAAW,EAAE,CAAC;QACpD,gBAAW,GAAW,EAAE,CAAC;QACR,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC3C,cAAS,GAAY,KAAK,CAAC;QAC3B,YAAO,GAAY,KAAK,CAAC;QAEzB,UAAK,GAAU,MAAM,CAAC;QAiBtB,gBAAW,GAAG,CAAC,CAAQ;YAC7B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;YAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7B,CAAC;QAEM,iBAAY,GAAG,CAAC,CAAQ;YAC9B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,C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A,gEAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAK,CACjD,CACG,CACD,EACP;KACH;;;;;;;","names":["h","Host","getComponentCss"],"sources":["src/components/diwa-input-month/diwa-input-month.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\r\nimport type { InputFieldState } from '../diwa-input/types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-input-month-styles';\r\n\r\n@Component({\r\n tag: 'diwa-input-month',\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaInputMonth {\r\n @Element() el!: HTMLElement;\r\n @State() private _hasStart = false;\r\n @State() private _hasEnd = false;\r\n\r\n @Prop() label: string = '';\r\n @Prop() description: string = '';\r\n @Prop() message: string = '';\r\n @Prop() state: InputFieldState = 'none';\r\n @Prop() name: string = '';\r\n @Prop({ mutable: true, reflect: false }) value: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n @Prop({ reflect: true }) required: boolean = false;\r\n @Prop({ reflect: true }) readonly: boolean = false;\r\n @Prop() hideLabel: boolean = false;\r\n @Prop() compact: boolean = false;\r\n @Prop() autoComplete?: string;\r\n @Prop() theme: Theme = 'dark';\r\n\r\n /** Minimum month in YYYY-MM format. */\r\n @Prop() min?: string;\r\n /** Maximum month in YYYY-MM format. */\r\n @Prop() max?: string;\r\n\r\n @Event({ bubbles: true }) change!: EventEmitter<string>;\r\n @Event({ bubbles: true }) input!: EventEmitter<string>;\r\n @Event({ bubbles: false }) blur!: EventEmitter<FocusEvent>;\r\n @Event({ bubbles: false }) focus!: EventEmitter<FocusEvent>;\r\n\r\n connectedCallback(): void {\r\n this._hasStart = !!this.el.querySelector('[slot=\"start\"]');\r\n this._hasEnd = !!this.el.querySelector('[slot=\"end\"]');\r\n }\r\n\r\n private handleInput = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.input.emit(this.value);\r\n };\r\n\r\n private handleChange = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.change.emit(this.value);\r\n };\r\n\r\n private handleBlur = (e: FocusEvent): void => { this.blur.emit(e); };\r\n private handleFocus = (e: FocusEvent): void => { this.focus.emit(e); };\r\n\r\n render() {\r\n const inputId = 'input';\r\n const descId = 'desc';\r\n const msgId = 'msg';\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false)} />\r\n <div class=\"root\">\r\n {!this.hideLabel && this.label && (\r\n <div class=\"label-row\">\r\n <label class=\"label\" htmlFor={inputId}>\r\n {this.label}\r\n {this.required && <span class=\"required\" aria-hidden=\"true\"> *</span>}\r\n </label>\r\n <slot name=\"label-after\" />\r\n </div>\r\n )}\r\n <div class=\"input-wrapper\">\r\n {this._hasStart && <div class=\"slot-start\"><slot name=\"start\" /></div>}\r\n <input\r\n id={inputId}\r\n class=\"input\"\r\n type=\"month\"\r\n name={this.name || undefined}\r\n value={this.value}\r\n disabled={this.disabled}\r\n required={this.required}\r\n readOnly={this.readonly}\r\n min={this.min}\r\n max={this.max}\r\n autocomplete={this.autoComplete}\r\n aria-label={this.hideLabel && this.label ? this.label : undefined}\r\n aria-invalid={this.state === 'error' ? 'true' : undefined}\r\n aria-required={this.required ? 'true' : undefined}\r\n aria-describedby={this.message ? msgId : this.description ? descId : undefined}\r\n onInput={this.handleInput}\r\n onChange={this.handleChange}\r\n onBlur={this.handleBlur}\r\n onFocus={this.handleFocus}\r\n />\r\n {this._hasEnd && <div class=\"slot-end\"><slot name=\"end\" /></div>}\r\n </div>\r\n {!this.message && this.description && (\r\n <p id={descId} class=\"description\">{this.description}</p>\r\n )}\r\n {this.message && (\r\n <p id={msgId} class=\"message\">{this.message}</p>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
const inputStyles = require('./input-styles-bac68ebc.js');
|
|
7
|
+
require('./styles-6342300d.js');
|
|
8
|
+
|
|
9
|
+
const DiwaInputNumber = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.change = index.createEvent(this, "change", 7);
|
|
13
|
+
this.input = index.createEvent(this, "input", 7);
|
|
14
|
+
this.blur = index.createEvent(this, "blur", 3);
|
|
15
|
+
this.focus = index.createEvent(this, "focus", 3);
|
|
16
|
+
this._hasStart = false;
|
|
17
|
+
this._hasEnd = false;
|
|
18
|
+
this.label = '';
|
|
19
|
+
this.description = '';
|
|
20
|
+
this.message = '';
|
|
21
|
+
this.state = 'none';
|
|
22
|
+
this.name = '';
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.placeholder = '';
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.required = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.hideLabel = false;
|
|
29
|
+
this.compact = false;
|
|
30
|
+
this.theme = 'dark';
|
|
31
|
+
this.handleInput = (e) => {
|
|
32
|
+
this.value = e.target.value;
|
|
33
|
+
this.input.emit(this.value);
|
|
34
|
+
};
|
|
35
|
+
this.handleChange = (e) => {
|
|
36
|
+
this.value = e.target.value;
|
|
37
|
+
this.change.emit(this.value);
|
|
38
|
+
};
|
|
39
|
+
this.handleBlur = (e) => { this.blur.emit(e); };
|
|
40
|
+
this.handleFocus = (e) => { this.focus.emit(e); };
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this._hasStart = !!this.el.querySelector('[slot="start"]');
|
|
44
|
+
this._hasEnd = !!this.el.querySelector('[slot="end"]');
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const inputId = 'input';
|
|
48
|
+
const descId = 'desc';
|
|
49
|
+
const msgId = 'msg';
|
|
50
|
+
return (index.h(index.Host, { key: '09f9b5cf859ef7c03ef84256357c2ff08ee49e0d', "data-theme": this.theme }, index.h("style", { key: '3bbe107a46f9b4e98a58fb93e71f3d80225188bc', innerHTML: inputStyles.getInputCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false) }), index.h("div", { key: '0809b3f8e6540f2bca95ab41682cbdd1bf087718', class: "root" }, !this.hideLabel && this.label && (index.h("div", { key: '93e3454fda5faef279f540d8ff4179e08c7fd1f1', class: "label-row" }, index.h("label", { key: '171ab7d14f740ef31bff359cb51ad25d54b183ce', class: "label", htmlFor: inputId }, this.label, this.required && index.h("span", { key: '707c033e74161a76254cdfe9c798a78772d22833', class: "required", "aria-hidden": "true" }, " *")), index.h("slot", { key: '5eb701dd4c2d30d80cb11b07c07b1f9d48333ab6', name: "label-after" }))), index.h("div", { key: 'adc124185bbcbe37f0f1ff56a3b0fa8d0d725e07', class: "input-wrapper" }, this._hasStart && index.h("div", { key: 'a2ee97d7ce58f3f3f16dd0dab5cd6695573160fc', class: "slot-start" }, index.h("slot", { key: 'fe16cba2f95ce86de6721fff8a61236b618e8485', name: "start" })), index.h("input", { key: 'a1f15b79921da77f172033d34a91daf6548722ee', id: inputId, class: "input", type: "number", name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, min: this.min !== undefined ? String(this.min) : undefined, max: this.max !== undefined ? String(this.max) : undefined, step: this.step !== undefined ? String(this.step) : undefined, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && index.h("div", { key: 'e2772476adc180f91281a784200f9e4b53038a0c', class: "slot-end" }, index.h("slot", { key: '11cb85cf049deab38a7fec5a7841c082391b2009', name: "end" }))), !this.message && this.description && (index.h("p", { key: '6c64debb7f04fa9da7483854c04888842267898b', id: descId, class: "description" }, this.description)), this.message && (index.h("p", { key: '8f34cc860cac36c591ab7e3cf4e89722cb907da7', id: msgId, class: "message" }, this.message)))));
|
|
51
|
+
}
|
|
52
|
+
static get delegatesFocus() { return true; }
|
|
53
|
+
get el() { return index.getElement(this); }
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
exports.diwa_input_number = DiwaInputNumber;
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=diwa-input-number.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-input-number.entry.cjs.js","mappings":";;;;;;;;MASa,eAAe;IAJ5B;;;;;;QAMmB,cAAS,GAAG,KAAK,CAAC;QAClB,YAAO,GAAG,KAAK,CAAC;QAEzB,UAAK,GAAW,EAAE,CAAC;QACnB,gBAAW,GAAW,EAAE,CAAC;QACzB,YAAO,GAAW,EAAE,CAAC;QACrB,UAAK,GAAoB,MAAM,CAAC;QAChC,SAAI,GAAW,EAAE,CAAC;QACe,UAAK,GAAW,EAAE,CAAC;QACpD,gBAAW,GAAW,EAAE,CAAC;QACR,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAC3C,cAAS,GAAY,KAAK,CAAC;QAC3B,YAAO,GAAY,KAAK,CAAC;QAEzB,UAAK,GAAU,MAAM,CAAC;QAmBtB,gBAAW,GAAG,CAAC,CAAQ;YAC7B,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC;YAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC7B,CAAC;QAEM,iBAAY,GAAG,CAAC,CAAQ;YAC9B,IAAI,CAAC,KAAK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C,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,EACD,IAAI,CAAC,OAAO,IAAIA,kEAAK,KAAK,EAAC,UAAU,IAACA,mEAAM,IAAI,EAAC,KAAK,GAAG,CAAM,CAC5D,EACL,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,WAAW,KAChCA,gEAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAK,CAC1D,EACA,IAAI,CAAC,OAAO,KACXA,gEAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAK,CACjD,CACG,CACD,EACP;KACH;;;;;;;","names":["h","Host","getComponentCss"],"sources":["src/components/diwa-input-number/diwa-input-number.tsx"],"sourcesContent":["import { Component, Element, Event, EventEmitter, Host, Prop, State, h } from '@stencil/core';\r\nimport type { InputFieldState } from '../diwa-input/types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-input-number-styles';\r\n\r\n@Component({\r\n tag: 'diwa-input-number',\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaInputNumber {\r\n @Element() el!: HTMLElement;\r\n @State() private _hasStart = false;\r\n @State() private _hasEnd = false;\r\n\r\n @Prop() label: string = '';\r\n @Prop() description: string = '';\r\n @Prop() message: string = '';\r\n @Prop() state: InputFieldState = 'none';\r\n @Prop() name: string = '';\r\n @Prop({ mutable: true, reflect: false }) value: string = '';\r\n @Prop() placeholder: string = '';\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n @Prop({ reflect: true }) required: boolean = false;\r\n @Prop({ reflect: true }) readonly: boolean = false;\r\n @Prop() hideLabel: boolean = false;\r\n @Prop() compact: boolean = false;\r\n @Prop() autoComplete?: string;\r\n @Prop() theme: Theme = 'dark';\r\n\r\n /** Minimum allowed value. */\r\n @Prop() min?: number;\r\n /** Maximum allowed value. */\r\n @Prop() max?: number;\r\n /** Step increment. */\r\n @Prop() step?: number;\r\n\r\n @Event({ bubbles: true }) change!: EventEmitter<string>;\r\n @Event({ bubbles: true }) input!: EventEmitter<string>;\r\n @Event({ bubbles: false }) blur!: EventEmitter<FocusEvent>;\r\n @Event({ bubbles: false }) focus!: EventEmitter<FocusEvent>;\r\n\r\n connectedCallback(): void {\r\n this._hasStart = !!this.el.querySelector('[slot=\"start\"]');\r\n this._hasEnd = !!this.el.querySelector('[slot=\"end\"]');\r\n }\r\n\r\n private handleInput = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.input.emit(this.value);\r\n };\r\n\r\n private handleChange = (e: Event): void => {\r\n this.value = (e.target as HTMLInputElement).value;\r\n this.change.emit(this.value);\r\n };\r\n\r\n private handleBlur = (e: FocusEvent): void => { this.blur.emit(e); };\r\n private handleFocus = (e: FocusEvent): void => { this.focus.emit(e); };\r\n\r\n render() {\r\n const inputId = 'input';\r\n const descId = 'desc';\r\n const msgId = 'msg';\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, false)} />\r\n <div class=\"root\">\r\n {!this.hideLabel && this.label && (\r\n <div class=\"label-row\">\r\n <label class=\"label\" htmlFor={inputId}>\r\n {this.label}\r\n {this.required && <span class=\"required\" aria-hidden=\"true\"> *</span>}\r\n </label>\r\n <slot name=\"label-after\" />\r\n </div>\r\n )}\r\n <div class=\"input-wrapper\">\r\n {this._hasStart && <div class=\"slot-start\"><slot name=\"start\" /></div>}\r\n <input\r\n id={inputId}\r\n class=\"input\"\r\n type=\"number\"\r\n name={this.name || undefined}\r\n value={this.value}\r\n placeholder={this.placeholder || undefined}\r\n disabled={this.disabled}\r\n required={this.required}\r\n readOnly={this.readonly}\r\n min={this.min !== undefined ? String(this.min) : undefined}\r\n max={this.max !== undefined ? String(this.max) : undefined}\r\n step={this.step !== undefined ? String(this.step) : undefined}\r\n autocomplete={this.autoComplete}\r\n aria-label={this.hideLabel && this.label ? this.label : undefined}\r\n aria-invalid={this.state === 'error' ? 'true' : undefined}\r\n aria-required={this.required ? 'true' : undefined}\r\n aria-describedby={this.message ? msgId : this.description ? descId : undefined}\r\n onInput={this.handleInput}\r\n onChange={this.handleChange}\r\n onBlur={this.handleBlur}\r\n onFocus={this.handleFocus}\r\n />\r\n {this._hasEnd && <div class=\"slot-end\"><slot name=\"end\" /></div>}\r\n </div>\r\n {!this.message && this.description && (\r\n <p id={descId} class=\"description\">{this.description}</p>\r\n )}\r\n {this.message && (\r\n <p id={msgId} class=\"message\">{this.message}</p>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d665fd57.js');
|
|
6
|
+
const inputStyles = require('./input-styles-bac68ebc.js');
|
|
7
|
+
require('./styles-6342300d.js');
|
|
8
|
+
|
|
9
|
+
const DiwaInputPassword = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.change = index.createEvent(this, "change", 7);
|
|
13
|
+
this.input = index.createEvent(this, "input", 7);
|
|
14
|
+
this.blur = index.createEvent(this, "blur", 3);
|
|
15
|
+
this.focus = index.createEvent(this, "focus", 3);
|
|
16
|
+
this._hasStart = false;
|
|
17
|
+
this._hasEnd = false;
|
|
18
|
+
this.label = '';
|
|
19
|
+
this.description = '';
|
|
20
|
+
this.message = '';
|
|
21
|
+
this.state = 'none';
|
|
22
|
+
this.name = '';
|
|
23
|
+
this.value = '';
|
|
24
|
+
this.placeholder = '';
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
this.required = false;
|
|
27
|
+
this.readonly = false;
|
|
28
|
+
this.hideLabel = false;
|
|
29
|
+
this.compact = false;
|
|
30
|
+
this.theme = 'dark';
|
|
31
|
+
/** Show the eye icon button to toggle password visibility. */
|
|
32
|
+
this.showToggle = true;
|
|
33
|
+
/** Internal visibility state for the password toggle. */
|
|
34
|
+
this.showPassword = false;
|
|
35
|
+
this.handleInput = (e) => {
|
|
36
|
+
this.value = e.target.value;
|
|
37
|
+
this.input.emit(this.value);
|
|
38
|
+
};
|
|
39
|
+
this.handleChange = (e) => {
|
|
40
|
+
this.value = e.target.value;
|
|
41
|
+
this.change.emit(this.value);
|
|
42
|
+
};
|
|
43
|
+
this.handleBlur = (e) => { this.blur.emit(e); };
|
|
44
|
+
this.handleFocus = (e) => { this.focus.emit(e); };
|
|
45
|
+
this.handleToggle = () => {
|
|
46
|
+
this.showPassword = !this.showPassword;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
connectedCallback() {
|
|
50
|
+
this._hasStart = !!this.el.querySelector('[slot="start"]');
|
|
51
|
+
this._hasEnd = !!this.el.querySelector('[slot="end"]');
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
const inputId = 'input';
|
|
55
|
+
const descId = 'desc';
|
|
56
|
+
const msgId = 'msg';
|
|
57
|
+
const hasSuffix = this.showToggle && !this.disabled;
|
|
58
|
+
return (index.h(index.Host, { key: 'a7d1c2c451e9eb743f2cc211cf644409620b0e3e', "data-theme": this.theme }, index.h("style", { key: 'c1cde1b42b4ebb897bb1d2a3e9f7ff29b8a3a669', innerHTML: inputStyles.getInputCss(this.state, this.disabled, this.readonly, this.compact, this._hasStart, this._hasEnd, hasSuffix) }), index.h("div", { key: 'ec516af67a3fb9e8b070a5a4d3ef7611fdd09fd9', class: "root" }, !this.hideLabel && this.label && (index.h("div", { key: 'fa07e74dca79660dc1f300f72008fad7b71ee5da', class: "label-row" }, index.h("label", { key: 'a60036096fd791a62ca1b8ebddd91e22baacae9b', class: "label", htmlFor: inputId }, this.label, this.required && index.h("span", { key: '199100c093d8d8e7ec5ee49adf063ec8929160e4', class: "required", "aria-hidden": "true" }, " *")), index.h("slot", { key: 'ca35bdaf076776a53dabd36b4ab4f8203982da43', name: "label-after" }))), index.h("div", { key: '8e7a21233a3b41e04cdc23ce66f2899fee409707', class: "input-wrapper" }, this._hasStart && index.h("div", { key: 'e7b2175413d06a766612db4eba899f172fb4e0cc', class: "slot-start" }, index.h("slot", { key: '0fe18213e7cdebe3e77857050ace2d5b7e2fa1c9', name: "start" })), index.h("input", { key: '33503e876400fba6914fa39e9dab5272db655144', id: inputId, class: "input", type: this.showPassword ? 'text' : 'password', name: this.name || undefined, value: this.value, placeholder: this.placeholder || undefined, disabled: this.disabled, required: this.required, readOnly: this.readonly, autocomplete: this.autoComplete, "aria-label": this.hideLabel && this.label ? this.label : undefined, "aria-invalid": this.state === 'error' ? 'true' : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": this.message ? msgId : this.description ? descId : undefined, onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus }), this._hasEnd && index.h("div", { key: '796c7a85e6ac142d76dbb4789b774f67c9ce457f', class: "slot-end" }, index.h("slot", { key: '11802f147f1b820ef6bf50d25e551503fa9a6685', name: "end" })), hasSuffix && (index.h("button", { key: '526415a8043733850a39415f653f74e282db83b8', class: "suffix-btn", type: "button", "aria-label": this.showPassword ? 'Hide password' : 'Show password', onClick: this.handleToggle }, index.h("diwa-icon", { key: 'b2b40c55f74d7917aa69656ce1447d2ca4d455bf', name: this.showPassword ? 'eye-off' : 'eye', size: 16 })))), !this.message && this.description && (index.h("p", { key: '2f2a7c3da7c326077fadc8faa9d9f5d41d89fa25', id: descId, class: "description" }, this.description)), this.message && (index.h("p", { key: '5fd706ae0de4235b60493438b5be67caa2aae317', id: msgId, class: "message" }, this.message)))));
|
|
59
|
+
}
|
|
60
|
+
static get delegatesFocus() { return true; }
|
|
61
|
+
get el() { return index.getElement(this); }
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
exports.diwa_input_password = DiwaInputPassword;
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=diwa-input-password.cjs.entry.js.map
|