@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,434 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getComponentCss } from "./diwa-button-styles";
|
|
3
|
+
import { getButtonAriaAttributes } from "./diwa-button-utils";
|
|
4
|
+
/**
|
|
5
|
+
* @component diwa-button
|
|
6
|
+
*
|
|
7
|
+
* A fully encapsulated, accessible button primitive.
|
|
8
|
+
* Renders as a native <button> (or <a> when `href` is supplied).
|
|
9
|
+
*
|
|
10
|
+
* Design token override API (set on :root or any ancestor):
|
|
11
|
+
* --diwa-button-bg Background color (primary variant default)
|
|
12
|
+
* --diwa-button-bg-hover Hover background
|
|
13
|
+
* --diwa-button-color Foreground / text color
|
|
14
|
+
* --diwa-button-radius Border radius
|
|
15
|
+
* --diwa-button-height Height for md size
|
|
16
|
+
* --diwa-button-height-sm Height for sm size
|
|
17
|
+
* --diwa-button-height-lg Height for lg size
|
|
18
|
+
* --diwa-button-padding-x Horizontal padding for md/lg
|
|
19
|
+
* --diwa-button-padding-x-sm Horizontal padding for sm
|
|
20
|
+
*
|
|
21
|
+
* Usage:
|
|
22
|
+
* <diwa-button variant="primary">Get Started</diwa-button>
|
|
23
|
+
* <diwa-button variant="secondary" size="sm" disabled>Cancel</diwa-button>
|
|
24
|
+
* <diwa-button href="/dashboard" target="_blank">Open Panel</diwa-button>
|
|
25
|
+
*
|
|
26
|
+
* @slot default — Button label content (text, icons, or mixed)
|
|
27
|
+
*/
|
|
28
|
+
export class DiwaButton {
|
|
29
|
+
constructor() {
|
|
30
|
+
// ──────────────────────────────────────────────────────────────
|
|
31
|
+
// Props — each @Prop generates a corresponding argType in Storybook
|
|
32
|
+
// and an HTML attribute on the custom element.
|
|
33
|
+
// ──────────────────────────────────────────────────────────────
|
|
34
|
+
/**
|
|
35
|
+
* Per-component theme override.
|
|
36
|
+
*
|
|
37
|
+
* Setting this reflects data-theme onto the host element, causing the light/dark
|
|
38
|
+
* token overrides in app.css to cascade into the Shadow DOM automatically.
|
|
39
|
+
* Mirrors the `theme` prop on every PDS component.
|
|
40
|
+
*/
|
|
41
|
+
this.theme = "dark";
|
|
42
|
+
/** Visual style variant. */
|
|
43
|
+
this.variant = "primary";
|
|
44
|
+
/** Size tier — controls height and padding. */
|
|
45
|
+
this.size = "md";
|
|
46
|
+
/**
|
|
47
|
+
* Native button type. Only applies when rendered as <button>
|
|
48
|
+
* (i.e., no `href` prop is set).
|
|
49
|
+
*/
|
|
50
|
+
this.type = "button";
|
|
51
|
+
/**
|
|
52
|
+
* Disabled state. Blocks all pointer and keyboard interaction.
|
|
53
|
+
* When rendered as <a>, sets aria-disabled instead of disabled
|
|
54
|
+
* (the `disabled` attribute is not valid on anchor elements).
|
|
55
|
+
*/
|
|
56
|
+
this.disabled = false;
|
|
57
|
+
/**
|
|
58
|
+
* Loading state. Shows an inline spinner, disables the button,
|
|
59
|
+
* and sets aria-busy="true" to communicate async activity to
|
|
60
|
+
* screen readers.
|
|
61
|
+
*/
|
|
62
|
+
this.loading = false;
|
|
63
|
+
/**
|
|
64
|
+
* When `true`, the default label slot is visually hidden so the button
|
|
65
|
+
* renders as a compact square (icon-only mode). The slot text is kept in
|
|
66
|
+
* the DOM for screen-reader accessible-name calculation.
|
|
67
|
+
*
|
|
68
|
+
* For best accessibility, always pair with the `label` prop **or** ensure
|
|
69
|
+
* the default slot contains descriptive text, so the button has a name.
|
|
70
|
+
*
|
|
71
|
+
* Usage:
|
|
72
|
+
* <diwa-button hide-label label="Save">
|
|
73
|
+
* <svg slot="icon-start">…</svg>
|
|
74
|
+
* </diwa-button>
|
|
75
|
+
*/
|
|
76
|
+
this.hideLabel = false;
|
|
77
|
+
/**
|
|
78
|
+
* Lucide icon name in kebab-case (e.g. `"star"`, `"arrow-right"`), or `'none'`
|
|
79
|
+
* to show no icon. When set to any value other than `'none'`, renders a
|
|
80
|
+
* `<diwa-icon>` in the leading (icon-start) position.
|
|
81
|
+
*
|
|
82
|
+
* The `icon-start` slot still works alongside this prop — the prop-rendered
|
|
83
|
+
* icon comes first, followed by any slotted content.
|
|
84
|
+
*/
|
|
85
|
+
this.icon = 'none';
|
|
86
|
+
this.handleClick = (e) => {
|
|
87
|
+
if (!this.isInteractive) {
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
e.stopPropagation();
|
|
90
|
+
}
|
|
91
|
+
// When interactive, allow the native click to retarget to the host element.
|
|
92
|
+
// Framework wrappers expose it as onClick (React) / @click (Vue) / (click) (Angular).
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
// ──────────────────────────────────────────────────────────────
|
|
96
|
+
// Private helpers
|
|
97
|
+
// ──────────────────────────────────────────────────────────────
|
|
98
|
+
get isInteractive() {
|
|
99
|
+
return !this.disabled && !this.loading;
|
|
100
|
+
}
|
|
101
|
+
get iconSize() {
|
|
102
|
+
return this.size === 'sm' ? 16 : this.size === 'lg' ? 24 : 20;
|
|
103
|
+
}
|
|
104
|
+
// ──────────────────────────────────────────────────────────────
|
|
105
|
+
// Render
|
|
106
|
+
// ──────────────────────────────────────────────────────────────
|
|
107
|
+
render() {
|
|
108
|
+
/**
|
|
109
|
+
* Render as <a> when href is provided (link semantics).
|
|
110
|
+
* Render as <button> for all interactive / form scenarios.
|
|
111
|
+
*/
|
|
112
|
+
const isLink = !!this.href;
|
|
113
|
+
const Tag = isLink ? "a" : "button";
|
|
114
|
+
// Consolidate all ARIA attributes via the utility — mirrors PDS getButtonAriaAttributes()
|
|
115
|
+
const ariaAttrs = getButtonAriaAttributes(this.disabled, this.loading, this.label, isLink);
|
|
116
|
+
const commonProps = Object.assign({ class: "inner", onClick: this.handleClick }, ariaAttrs);
|
|
117
|
+
const buttonProps = isLink
|
|
118
|
+
? {
|
|
119
|
+
href: this.href,
|
|
120
|
+
target: this.target,
|
|
121
|
+
rel: this.target === "_blank" ? "noopener noreferrer" : undefined,
|
|
122
|
+
// Disabled links have no native mechanism — suppress tab stop too
|
|
123
|
+
tabIndex: this.disabled || this.loading ? -1 : undefined,
|
|
124
|
+
}
|
|
125
|
+
: {
|
|
126
|
+
type: this.type,
|
|
127
|
+
name: this.name,
|
|
128
|
+
value: this.value,
|
|
129
|
+
disabled: this.disabled || this.loading,
|
|
130
|
+
};
|
|
131
|
+
return (
|
|
132
|
+
/**
|
|
133
|
+
* <Host> renders the outer custom element tag itself.
|
|
134
|
+
*
|
|
135
|
+
* data-theme is set from the `theme` prop so that the [data-theme="light"]
|
|
136
|
+
* CSS variable overrides in app.css cascade into this Shadow DOM tree via
|
|
137
|
+
* custom property inheritance — no colour values are hardcoded here.
|
|
138
|
+
*
|
|
139
|
+
* Reflecting `variant` and `size` as attributes allows CSS consumers to
|
|
140
|
+
* target the host from outside: diwa-button[variant="primary"] { ... }
|
|
141
|
+
*
|
|
142
|
+
* The part="base" exposes internals for ::part() in host-app stylesheets.
|
|
143
|
+
*/
|
|
144
|
+
h(Host, { key: '9182fd6e2a9ccce76a67596d99c5ef080dbdc219', "data-theme": this.theme, role: isLink ? undefined : "button", "aria-disabled": (this.disabled || this.loading) && isLink ? "true" : undefined }, h("style", { key: '349d3b828df53f57b23192854929f921a479146a', innerHTML: getComponentCss(this.variant, this.size, this.disabled, this.loading) }), h(Tag, Object.assign({ key: 'ffc8b04d99d508c5de77d07757ab362c57420132' }, commonProps, buttonProps, { part: "base" /* ::part(base) hook for consumers */ }), this.loading && (h("span", { key: '226b226efdd671e9494b6db3c83d09e609a08ae6', class: "spinner", "aria-hidden": "true", part: "spinner" })), h("span", { key: '571b34bc8dd3e712bb0702d35283c99c57dee34e', class: "icon-start", part: "icon-start", "aria-hidden": "true" }, this.icon !== 'none' && !this.loading && h("diwa-icon", { key: 'b4304efd1423d517b5aee0a079b6f17993700398', name: this.icon, size: this.iconSize }), h("slot", { key: '1262b1411d2e2faadbabdf6a05cdfa6863b4f53d', name: "icon-start" })), h("span", { key: '6da505ff94ceb539c2f5c063b0aa364ef62c0923', class: `label${this.hideLabel ? " label--hidden" : ""}`, part: "label" }, h("slot", { key: '055841a5c87793d21d7f2f02ce895326889fa887' })), h("span", { key: 'd6f33edb88b49bde1ca50968e3a4f6ac45b2ae77', class: "icon-end", part: "icon-end", "aria-hidden": "true" }, h("slot", { key: '6239635e5cbbfed9a064095b66fb77a466d77aa8', name: "icon-end" })))));
|
|
145
|
+
}
|
|
146
|
+
static get is() { return "diwa-button"; }
|
|
147
|
+
static get encapsulation() { return "shadow"; }
|
|
148
|
+
static get delegatesFocus() { return true; }
|
|
149
|
+
static get properties() {
|
|
150
|
+
return {
|
|
151
|
+
"theme": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "Theme",
|
|
156
|
+
"resolved": "\"dark\" | \"light\"",
|
|
157
|
+
"references": {
|
|
158
|
+
"Theme": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "../../utils/styles",
|
|
161
|
+
"id": "src/utils/styles.ts::Theme"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": "Per-component theme override.\r\n\r\nSetting this reflects data-theme onto the host element, causing the light/dark\r\ntoken overrides in app.css to cascade into the Shadow DOM automatically.\r\nMirrors the `theme` prop on every PDS component."
|
|
170
|
+
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
173
|
+
"attribute": "theme",
|
|
174
|
+
"reflect": true,
|
|
175
|
+
"defaultValue": "\"dark\""
|
|
176
|
+
},
|
|
177
|
+
"variant": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "ButtonVariant",
|
|
182
|
+
"resolved": "\"danger\" | \"ghost\" | \"primary\" | \"secondary\"",
|
|
183
|
+
"references": {
|
|
184
|
+
"ButtonVariant": {
|
|
185
|
+
"location": "import",
|
|
186
|
+
"path": "./types",
|
|
187
|
+
"id": "src/components/diwa-button/types.ts::ButtonVariant"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"required": false,
|
|
192
|
+
"optional": false,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": "Visual style variant."
|
|
196
|
+
},
|
|
197
|
+
"getter": false,
|
|
198
|
+
"setter": false,
|
|
199
|
+
"attribute": "variant",
|
|
200
|
+
"reflect": true,
|
|
201
|
+
"defaultValue": "\"primary\""
|
|
202
|
+
},
|
|
203
|
+
"size": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"mutable": false,
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "ButtonSize",
|
|
208
|
+
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
209
|
+
"references": {
|
|
210
|
+
"ButtonSize": {
|
|
211
|
+
"location": "import",
|
|
212
|
+
"path": "./types",
|
|
213
|
+
"id": "src/components/diwa-button/types.ts::ButtonSize"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"required": false,
|
|
218
|
+
"optional": false,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [],
|
|
221
|
+
"text": "Size tier \u2014 controls height and padding."
|
|
222
|
+
},
|
|
223
|
+
"getter": false,
|
|
224
|
+
"setter": false,
|
|
225
|
+
"attribute": "size",
|
|
226
|
+
"reflect": true,
|
|
227
|
+
"defaultValue": "\"md\""
|
|
228
|
+
},
|
|
229
|
+
"type": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"mutable": false,
|
|
232
|
+
"complexType": {
|
|
233
|
+
"original": "ButtonType",
|
|
234
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
235
|
+
"references": {
|
|
236
|
+
"ButtonType": {
|
|
237
|
+
"location": "import",
|
|
238
|
+
"path": "./types",
|
|
239
|
+
"id": "src/components/diwa-button/types.ts::ButtonType"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"required": false,
|
|
244
|
+
"optional": false,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "Native button type. Only applies when rendered as <button>\r\n(i.e., no `href` prop is set)."
|
|
248
|
+
},
|
|
249
|
+
"getter": false,
|
|
250
|
+
"setter": false,
|
|
251
|
+
"attribute": "type",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "\"button\""
|
|
254
|
+
},
|
|
255
|
+
"disabled": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"mutable": false,
|
|
258
|
+
"complexType": {
|
|
259
|
+
"original": "boolean",
|
|
260
|
+
"resolved": "boolean",
|
|
261
|
+
"references": {}
|
|
262
|
+
},
|
|
263
|
+
"required": false,
|
|
264
|
+
"optional": false,
|
|
265
|
+
"docs": {
|
|
266
|
+
"tags": [],
|
|
267
|
+
"text": "Disabled state. Blocks all pointer and keyboard interaction.\r\nWhen rendered as <a>, sets aria-disabled instead of disabled\r\n(the `disabled` attribute is not valid on anchor elements)."
|
|
268
|
+
},
|
|
269
|
+
"getter": false,
|
|
270
|
+
"setter": false,
|
|
271
|
+
"attribute": "disabled",
|
|
272
|
+
"reflect": true,
|
|
273
|
+
"defaultValue": "false"
|
|
274
|
+
},
|
|
275
|
+
"loading": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "boolean",
|
|
280
|
+
"resolved": "boolean",
|
|
281
|
+
"references": {}
|
|
282
|
+
},
|
|
283
|
+
"required": false,
|
|
284
|
+
"optional": false,
|
|
285
|
+
"docs": {
|
|
286
|
+
"tags": [],
|
|
287
|
+
"text": "Loading state. Shows an inline spinner, disables the button,\r\nand sets aria-busy=\"true\" to communicate async activity to\r\nscreen readers."
|
|
288
|
+
},
|
|
289
|
+
"getter": false,
|
|
290
|
+
"setter": false,
|
|
291
|
+
"attribute": "loading",
|
|
292
|
+
"reflect": true,
|
|
293
|
+
"defaultValue": "false"
|
|
294
|
+
},
|
|
295
|
+
"href": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"mutable": false,
|
|
298
|
+
"complexType": {
|
|
299
|
+
"original": "string",
|
|
300
|
+
"resolved": "string | undefined",
|
|
301
|
+
"references": {}
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"optional": true,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": "When set, the button renders as an <a> element (link semantics).\r\nPair with `target` for external links."
|
|
308
|
+
},
|
|
309
|
+
"getter": false,
|
|
310
|
+
"setter": false,
|
|
311
|
+
"attribute": "href",
|
|
312
|
+
"reflect": false
|
|
313
|
+
},
|
|
314
|
+
"target": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "\"_blank\" | \"_self\" | \"_parent\" | \"_top\"",
|
|
319
|
+
"resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\" | undefined",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": true,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [],
|
|
326
|
+
"text": "Link target \u2014 only meaningful when `href` is set."
|
|
327
|
+
},
|
|
328
|
+
"getter": false,
|
|
329
|
+
"setter": false,
|
|
330
|
+
"attribute": "target",
|
|
331
|
+
"reflect": false
|
|
332
|
+
},
|
|
333
|
+
"name": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"mutable": false,
|
|
336
|
+
"complexType": {
|
|
337
|
+
"original": "string",
|
|
338
|
+
"resolved": "string | undefined",
|
|
339
|
+
"references": {}
|
|
340
|
+
},
|
|
341
|
+
"required": false,
|
|
342
|
+
"optional": true,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": "Native button name \u2014 submitted with form data."
|
|
346
|
+
},
|
|
347
|
+
"getter": false,
|
|
348
|
+
"setter": false,
|
|
349
|
+
"attribute": "name",
|
|
350
|
+
"reflect": false
|
|
351
|
+
},
|
|
352
|
+
"value": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"mutable": false,
|
|
355
|
+
"complexType": {
|
|
356
|
+
"original": "string",
|
|
357
|
+
"resolved": "string | undefined",
|
|
358
|
+
"references": {}
|
|
359
|
+
},
|
|
360
|
+
"required": false,
|
|
361
|
+
"optional": true,
|
|
362
|
+
"docs": {
|
|
363
|
+
"tags": [],
|
|
364
|
+
"text": "Native button value \u2014 submitted with form data."
|
|
365
|
+
},
|
|
366
|
+
"getter": false,
|
|
367
|
+
"setter": false,
|
|
368
|
+
"attribute": "value",
|
|
369
|
+
"reflect": false
|
|
370
|
+
},
|
|
371
|
+
"label": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "string",
|
|
376
|
+
"resolved": "string | undefined",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": true,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Accessible label. Use when the visible slot content is not\r\ndescriptive enough (e.g., icon-only buttons)."
|
|
384
|
+
},
|
|
385
|
+
"getter": false,
|
|
386
|
+
"setter": false,
|
|
387
|
+
"attribute": "label",
|
|
388
|
+
"reflect": false
|
|
389
|
+
},
|
|
390
|
+
"hideLabel": {
|
|
391
|
+
"type": "boolean",
|
|
392
|
+
"mutable": false,
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "boolean",
|
|
395
|
+
"resolved": "boolean",
|
|
396
|
+
"references": {}
|
|
397
|
+
},
|
|
398
|
+
"required": false,
|
|
399
|
+
"optional": false,
|
|
400
|
+
"docs": {
|
|
401
|
+
"tags": [],
|
|
402
|
+
"text": "When `true`, the default label slot is visually hidden so the button\r\nrenders as a compact square (icon-only mode). The slot text is kept in\r\nthe DOM for screen-reader accessible-name calculation.\r\n\r\nFor best accessibility, always pair with the `label` prop **or** ensure\r\nthe default slot contains descriptive text, so the button has a name.\r\n\r\nUsage:\r\n <diwa-button hide-label label=\"Save\">\r\n <svg slot=\"icon-start\">\u2026</svg>\r\n </diwa-button>"
|
|
403
|
+
},
|
|
404
|
+
"getter": false,
|
|
405
|
+
"setter": false,
|
|
406
|
+
"attribute": "hide-label",
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"defaultValue": "false"
|
|
409
|
+
},
|
|
410
|
+
"icon": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "Lucide icon name in kebab-case (e.g. `\"star\"`, `\"arrow-right\"`), or `'none'`\r\nto show no icon. When set to any value other than `'none'`, renders a\r\n`<diwa-icon>` in the leading (icon-start) position.\r\n\r\nThe `icon-start` slot still works alongside this prop \u2014 the prop-rendered\r\nicon comes first, followed by any slotted content."
|
|
423
|
+
},
|
|
424
|
+
"getter": false,
|
|
425
|
+
"setter": false,
|
|
426
|
+
"attribute": "icon",
|
|
427
|
+
"reflect": false,
|
|
428
|
+
"defaultValue": "'none'"
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
static get elementRef() { return "host"; }
|
|
433
|
+
}
|
|
434
|
+
//# sourceMappingURL=diwa-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diwa-button.js","sourceRoot":"","sources":["../../../src/components/diwa-button/diwa-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAGlE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAgBH,MAAM,OAAO,UAAU;IAfvB;QAkBE,iEAAiE;QACjE,oEAAoE;QACpE,+CAA+C;QAC/C,iEAAiE;QAEjE;;;;;;WAMG;QACsB,UAAK,GAAU,MAAM,CAAC;QAE/C,4BAA4B;QACH,YAAO,GAAkB,SAAS,CAAC;QAE5D,+CAA+C;QACtB,SAAI,GAAe,IAAI,CAAC;QAEjD;;;WAGG;QACK,SAAI,GAAe,QAAQ,CAAC;QAEpC;;;;WAIG;QACsB,aAAQ,GAAY,KAAK,CAAC;QAEnD;;;;WAIG;QACsB,YAAO,GAAY,KAAK,CAAC;QAuBlD;;;;;;;;;;;;WAYG;QACsB,cAAS,GAAY,KAAK,CAAC;QAEpD;;;;;;;WAOG;QACK,SAAI,GAAW,MAAM,CAAC;QActB,gBAAW,GAAG,CAAC,CAAa,EAAQ,EAAE;YAC5C,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;gBACxB,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,CAAC,CAAC,eAAe,EAAE,CAAC;YACtB,CAAC;YACD,4EAA4E;YAC5E,sFAAsF;QACxF,CAAC,CAAC;KA0FH;IA7GC,iEAAiE;IACjE,kBAAkB;IAClB,iEAAiE;IAEjE,IAAY,aAAa;QACvB,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IACzC,CAAC;IAED,IAAY,QAAQ;QAClB,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,CAAC;IAWD,iEAAiE;IACjE,SAAS;IACT,iEAAiE;IAEjE,MAAM;QACJ;;;WAGG;QACH,MAAM,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC3B,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;QAEpC,0FAA0F;QAC1F,MAAM,SAAS,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAE3F,MAAM,WAAW,mBACf,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,IAAI,CAAC,WAAW,IACtB,SAAS,CACb,CAAC;QAEF,MAAM,WAAW,GAAG,MAAM;YACxB,CAAC,CAAC;gBACE,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,EAAE,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS;gBACjE,kEAAkE;gBAClE,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;aACzD;YACH,CAAC,CAAC;gBACE,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;aACxC,CAAC;QAEN,OAAO;QACL;;;;;;;;;;;WAWG;QACH,EAAC,IAAI,mEACS,IAAI,CAAC,KAAK,EACtB,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,mBAEjC,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;YAIhE,8DAAO,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,GAAI;YAE3F,EAAC,GAAG,qEACE,WAAW,EACX,WAAW,IACf,IAAI,EAAC,MAAM,CAAC,qCAAqC;gBAGhD,IAAI,CAAC,OAAO,IAAI,CACf,6DAAM,KAAK,EAAC,SAAS,iBAAa,MAAM,EAAC,IAAI,EAAC,SAAS,GAAG,CAC3D;gBAGD,6DAAM,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,YAAY,iBAAa,MAAM;oBAC1D,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,kEAAW,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAI;oBAC7F,6DAAM,IAAI,EAAC,YAAY,GAAG,CACrB;gBAGP,6DAAM,KAAK,EAAE,QAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAC,OAAO;oBACzE,8DAAQ,CACH;gBAGP,6DAAM,KAAK,EAAC,UAAU,EAAC,IAAI,EAAC,UAAU,iBAAa,MAAM;oBACvD,6DAAM,IAAI,EAAC,UAAU,GAAG,CACnB,CACH,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h } from \"@stencil/core\";\r\nimport type { ButtonSize, ButtonType, ButtonVariant } from \"./types\";\r\nimport type { Theme } from \"../../utils/styles\";\r\nimport { getComponentCss } from \"./diwa-button-styles\";\r\nimport { getButtonAriaAttributes } from \"./diwa-button-utils\";\r\n\r\n/**\r\n * @component diwa-button\r\n *\r\n * A fully encapsulated, accessible button primitive.\r\n * Renders as a native <button> (or <a> when `href` is supplied).\r\n *\r\n * Design token override API (set on :root or any ancestor):\r\n * --diwa-button-bg Background color (primary variant default)\r\n * --diwa-button-bg-hover Hover background\r\n * --diwa-button-color Foreground / text color\r\n * --diwa-button-radius Border radius\r\n * --diwa-button-height Height for md size\r\n * --diwa-button-height-sm Height for sm size\r\n * --diwa-button-height-lg Height for lg size\r\n * --diwa-button-padding-x Horizontal padding for md/lg\r\n * --diwa-button-padding-x-sm Horizontal padding for sm\r\n *\r\n * Usage:\r\n * <diwa-button variant=\"primary\">Get Started</diwa-button>\r\n * <diwa-button variant=\"secondary\" size=\"sm\" disabled>Cancel</diwa-button>\r\n * <diwa-button href=\"/dashboard\" target=\"_blank\">Open Panel</diwa-button>\r\n *\r\n * @slot default — Button label content (text, icons, or mixed)\r\n */\r\n@Component({\r\n tag: \"diwa-button\",\r\n /**\r\n * No styleUrl — styles are injected dynamically via getComponentCss().\r\n * This follows the PDS CSS-in-JS pattern, enabling per-component theming\r\n * and keeping style logic co-located with the component.\r\n *\r\n * shadow.delegatesFocus = true:\r\n * Forwards focus from the host element (<diwa-button>) to the first\r\n * focusable element inside the Shadow DOM (<button> or <a>).\r\n * This ensures keyboard navigation and :focus-visible work correctly\r\n * when host-app code calls .focus() on the custom element.\r\n */\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaButton {\r\n @Element() host!: HTMLDiwaButtonElement;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Props — each @Prop generates a corresponding argType in Storybook\r\n // and an HTML attribute on the custom element.\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /**\r\n * Per-component theme override.\r\n *\r\n * Setting this reflects data-theme onto the host element, causing the light/dark\r\n * token overrides in app.css to cascade into the Shadow DOM automatically.\r\n * Mirrors the `theme` prop on every PDS component.\r\n */\r\n @Prop({ reflect: true }) theme: Theme = \"dark\";\r\n\r\n /** Visual style variant. */\r\n @Prop({ reflect: true }) variant: ButtonVariant = \"primary\";\r\n\r\n /** Size tier — controls height and padding. */\r\n @Prop({ reflect: true }) size: ButtonSize = \"md\";\r\n\r\n /**\r\n * Native button type. Only applies when rendered as <button>\r\n * (i.e., no `href` prop is set).\r\n */\r\n @Prop() type: ButtonType = \"button\";\r\n\r\n /**\r\n * Disabled state. Blocks all pointer and keyboard interaction.\r\n * When rendered as <a>, sets aria-disabled instead of disabled\r\n * (the `disabled` attribute is not valid on anchor elements).\r\n */\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n\r\n /**\r\n * Loading state. Shows an inline spinner, disables the button,\r\n * and sets aria-busy=\"true\" to communicate async activity to\r\n * screen readers.\r\n */\r\n @Prop({ reflect: true }) loading: boolean = false;\r\n\r\n /**\r\n * When set, the button renders as an <a> element (link semantics).\r\n * Pair with `target` for external links.\r\n */\r\n @Prop() href?: string;\r\n\r\n /** Link target — only meaningful when `href` is set. */\r\n @Prop() target?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\";\r\n\r\n /** Native button name — submitted with form data. */\r\n @Prop() name?: string;\r\n\r\n /** Native button value — submitted with form data. */\r\n @Prop() value?: string;\r\n\r\n /**\r\n * Accessible label. Use when the visible slot content is not\r\n * descriptive enough (e.g., icon-only buttons).\r\n */\r\n @Prop() label?: string;\r\n\r\n /**\r\n * When `true`, the default label slot is visually hidden so the button\r\n * renders as a compact square (icon-only mode). The slot text is kept in\r\n * the DOM for screen-reader accessible-name calculation.\r\n *\r\n * For best accessibility, always pair with the `label` prop **or** ensure\r\n * the default slot contains descriptive text, so the button has a name.\r\n *\r\n * Usage:\r\n * <diwa-button hide-label label=\"Save\">\r\n * <svg slot=\"icon-start\">…</svg>\r\n * </diwa-button>\r\n */\r\n @Prop({ reflect: true }) hideLabel: boolean = false;\r\n\r\n /**\r\n * Lucide icon name in kebab-case (e.g. `\"star\"`, `\"arrow-right\"`), or `'none'`\r\n * to show no icon. When set to any value other than `'none'`, renders a\r\n * `<diwa-icon>` in the leading (icon-start) position.\r\n *\r\n * The `icon-start` slot still works alongside this prop — the prop-rendered\r\n * icon comes first, followed by any slotted content.\r\n */\r\n @Prop() icon: string = 'none';\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Private helpers\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n private get isInteractive(): boolean {\r\n return !this.disabled && !this.loading;\r\n }\r\n\r\n private get iconSize(): number {\r\n return this.size === 'sm' ? 16 : this.size === 'lg' ? 24 : 20;\r\n }\r\n\r\n private handleClick = (e: MouseEvent): void => {\r\n if (!this.isInteractive) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n }\r\n // When interactive, allow the native click to retarget to the host element.\r\n // Framework wrappers expose it as onClick (React) / @click (Vue) / (click) (Angular).\r\n };\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Render\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n render() {\r\n /**\r\n * Render as <a> when href is provided (link semantics).\r\n * Render as <button> for all interactive / form scenarios.\r\n */\r\n const isLink = !!this.href;\r\n const Tag = isLink ? \"a\" : \"button\";\r\n\r\n // Consolidate all ARIA attributes via the utility — mirrors PDS getButtonAriaAttributes()\r\n const ariaAttrs = getButtonAriaAttributes(this.disabled, this.loading, this.label, isLink);\r\n\r\n const commonProps = {\r\n class: \"inner\",\r\n onClick: this.handleClick,\r\n ...ariaAttrs,\r\n };\r\n\r\n const buttonProps = isLink\r\n ? {\r\n href: this.href,\r\n target: this.target,\r\n rel: this.target === \"_blank\" ? \"noopener noreferrer\" : undefined,\r\n // Disabled links have no native mechanism — suppress tab stop too\r\n tabIndex: this.disabled || this.loading ? -1 : undefined,\r\n }\r\n : {\r\n type: this.type,\r\n name: this.name,\r\n value: this.value,\r\n disabled: this.disabled || this.loading,\r\n };\r\n\r\n return (\r\n /**\r\n * <Host> renders the outer custom element tag itself.\r\n *\r\n * data-theme is set from the `theme` prop so that the [data-theme=\"light\"]\r\n * CSS variable overrides in app.css cascade into this Shadow DOM tree via\r\n * custom property inheritance — no colour values are hardcoded here.\r\n *\r\n * Reflecting `variant` and `size` as attributes allows CSS consumers to\r\n * target the host from outside: diwa-button[variant=\"primary\"] { ... }\r\n *\r\n * The part=\"base\" exposes internals for ::part() in host-app stylesheets.\r\n */\r\n <Host\r\n data-theme={this.theme}\r\n role={isLink ? undefined : \"button\"}\r\n aria-disabled={\r\n (this.disabled || this.loading) && isLink ? \"true\" : undefined\r\n }\r\n >\r\n {/* CSS-in-JS styles — injected into Shadow DOM, scoped automatically */}\r\n <style innerHTML={getComponentCss(this.variant, this.size, this.disabled, this.loading)} />\r\n\r\n <Tag\r\n {...commonProps}\r\n {...buttonProps}\r\n part=\"base\" /* ::part(base) hook for consumers */\r\n >\r\n {/* Loading spinner — visually hidden from AT via aria-hidden */}\r\n {this.loading && (\r\n <span class=\"spinner\" aria-hidden=\"true\" part=\"spinner\" />\r\n )}\r\n\r\n {/* Leading icon slot — decorative; aria-hidden keeps AT focused on label */}\r\n <span class=\"icon-start\" part=\"icon-start\" aria-hidden=\"true\">\r\n {this.icon !== 'none' && !this.loading && <diwa-icon name={this.icon} size={this.iconSize} />}\r\n <slot name=\"icon-start\" />\r\n </span>\r\n\r\n {/* Slot — content projection. Text, icons, or mixed content. */}\r\n <span class={`label${this.hideLabel ? \" label--hidden\" : \"\"}`} part=\"label\">\r\n <slot />\r\n </span>\r\n\r\n {/* Trailing icon slot */}\r\n <span class=\"icon-end\" part=\"icon-end\" aria-hidden=\"true\">\r\n <slot name=\"icon-end\" />\r\n </span>\r\n </Tag>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/diwa-button/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\r\n * diwa-button — Public TypeScript interfaces\r\n * ============================================\r\n * Exported so framework wrapper packages and consumers can share these types.\r\n */\r\n\r\n/** Visual variant of the button. Maps to distinct styled roles. */\r\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"ghost\" | \"danger\";\r\n\r\n/** Size tier. Controls height, padding, and font-size. */\r\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\r\n\r\n/** Native button type attribute — passthrough to the inner <button>. */\r\nexport type ButtonType = \"button\" | \"submit\" | \"reset\";\r\n\r\n/**\r\n * Per-component theme override.\r\n *\r\n * When set, the component writes `data-theme=\"light|dark\"` onto its host element.\r\n * This causes the [data-theme] CSS variable overrides in app.css to cascade into\r\n * the Shadow DOM via custom property inheritance — no hardcoded colour values needed.\r\n *\r\n * Use this to render a single component in the opposite theme from its surroundings,\r\n * e.g. a light-theme button inside a dark-mode layout.\r\n *\r\n * Mirrors the `theme` prop present on every PDS component.\r\n */\r\nexport type { Theme } from '../../utils/styles';\r\n"]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* diwa-button-pure-styles.ts
|
|
3
|
+
* ===========================
|
|
4
|
+
* CSS-in-JS styles for <diwa-button-pure>.
|
|
5
|
+
*
|
|
6
|
+
* A minimal, transparent button: icon + label only, no background or border.
|
|
7
|
+
* Mirrors the PDS p-button-pure aesthetic.
|
|
8
|
+
*
|
|
9
|
+
* Layout rules:
|
|
10
|
+
* alignLabel='end' (default) → icon label
|
|
11
|
+
* alignLabel='start' → label icon (via flex-direction: row-reverse)
|
|
12
|
+
* stretch=true → fills container width, gap between icon and label
|
|
13
|
+
*/
|
|
14
|
+
import { getFocusStyle, getReducedMotionStyle } from "../../utils/styles";
|
|
15
|
+
export const getComponentCss = (_size, _disabled, _loading, _underline, _active, _hideLabel, _alignLabel, _stretch) => `
|
|
16
|
+
|
|
17
|
+
/* ── Host ──────────────────────────────────────────────────────────── */
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
position: relative;
|
|
22
|
+
font-family: var(--diwa-font-family-base);
|
|
23
|
+
outline: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([hidden]) {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Stretch: fill the parent's inline axis */
|
|
31
|
+
:host([stretch]) {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* ── Root element (<button> or <a>) ─────────────────────────────────── */
|
|
37
|
+
|
|
38
|
+
.root {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--diwa-space-2);
|
|
42
|
+
flex-direction: row; /* overridden by alignLabel=start below */
|
|
43
|
+
|
|
44
|
+
background: transparent;
|
|
45
|
+
border: none;
|
|
46
|
+
padding: var(--diwa-space-0-5) var(--diwa-space-1);
|
|
47
|
+
margin: 0;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
|
|
50
|
+
font-family: inherit;
|
|
51
|
+
font-size: var(--diwa-font-size-base);
|
|
52
|
+
font-weight: var(--diwa-font-weight-regular);
|
|
53
|
+
line-height: 1;
|
|
54
|
+
color: var(--diwa-text-primary);
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
|
|
58
|
+
-webkit-appearance: none;
|
|
59
|
+
appearance: none;
|
|
60
|
+
-webkit-font-smoothing: antialiased;
|
|
61
|
+
|
|
62
|
+
border-radius: var(--diwa-radius-sm);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Stretch: push icon and label to opposite edges */
|
|
66
|
+
:host([stretch]) .root {
|
|
67
|
+
width: 100%;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ── Focus ring ─────────────────────────────────────────────────────── */
|
|
72
|
+
|
|
73
|
+
${getFocusStyle('.root')}
|
|
74
|
+
|
|
75
|
+
/* ── Size ───────────────────────────────────────────────────────────── */
|
|
76
|
+
|
|
77
|
+
:host([size="sm"]) .root {
|
|
78
|
+
font-size: var(--diwa-font-size-sm);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host([size="lg"]) .root {
|
|
82
|
+
font-size: var(--diwa-font-size-lg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* ── Hover / Active ─────────────────────────────────────────────────── */
|
|
86
|
+
|
|
87
|
+
.root:hover:not(:disabled) {
|
|
88
|
+
background-color: var(--diwa-bg-hover);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* ── Active state (CSS :active + [active] prop) ─────────────────────── */
|
|
92
|
+
|
|
93
|
+
:host([active]) .root,
|
|
94
|
+
.root:active:not(:disabled) {
|
|
95
|
+
background-color: var(--diwa-bg-active);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ── Disabled ───────────────────────────────────────────────────────── */
|
|
99
|
+
|
|
100
|
+
:host([disabled]) .root,
|
|
101
|
+
.root:disabled {
|
|
102
|
+
opacity: var(--diwa-opacity-disabled);
|
|
103
|
+
cursor: not-allowed;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ── Loading ────────────────────────────────────────────────────────── */
|
|
108
|
+
|
|
109
|
+
:host([loading]) .root {
|
|
110
|
+
cursor: wait;
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ── alignLabel: start → label on left, icon on right ──────────────── */
|
|
115
|
+
|
|
116
|
+
:host([align-label="start"]) .root {
|
|
117
|
+
flex-direction: row-reverse;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ── Underline label text ───────────────────────────────────────────── */
|
|
121
|
+
|
|
122
|
+
:host([underline]) .label {
|
|
123
|
+
text-decoration: underline;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ── Icon wrapper ───────────────────────────────────────────────────── */
|
|
127
|
+
|
|
128
|
+
.icon {
|
|
129
|
+
display: contents;
|
|
130
|
+
flex-shrink: 0;
|
|
131
|
+
line-height: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ── Label: visually hidden (sr-only / icon-only mode) ──────────────── */
|
|
135
|
+
|
|
136
|
+
.label--hidden {
|
|
137
|
+
border: 0;
|
|
138
|
+
clip: rect(0, 0, 0, 0);
|
|
139
|
+
height: 1px;
|
|
140
|
+
margin: -1px;
|
|
141
|
+
overflow: hidden;
|
|
142
|
+
padding: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
width: 1px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ── Spinner ────────────────────────────────────────────────────────── */
|
|
149
|
+
|
|
150
|
+
.spinner {
|
|
151
|
+
/* Size relative to current font-size so it scales with the button size tier */
|
|
152
|
+
width: 1em;
|
|
153
|
+
height: 1em;
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
border: var(--diwa-border-width-base) solid currentColor;
|
|
156
|
+
border-top-color: transparent;
|
|
157
|
+
border-radius: 50%;
|
|
158
|
+
animation: diwa-bp-spin var(--diwa-spinner-duration, 0.7s) linear infinite;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes diwa-bp-spin {
|
|
162
|
+
to { transform: rotate(360deg); }
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* ── Reduced motion ─────────────────────────────────────────────────── */
|
|
166
|
+
|
|
167
|
+
${getReducedMotionStyle('.root', '.spinner')}
|
|
168
|
+
`;
|
|
169
|
+
//# sourceMappingURL=diwa-button-pure-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diwa-button-pure-styles.js","sourceRoot":"","sources":["../../../src/components/diwa-button-pure/diwa-button-pure-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE1E,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAqB,EACrB,SAAkB,EAClB,QAAiB,EACjB,UAAmB,EACnB,OAAgB,EAChB,UAAmB,EACnB,WAAiC,EACjC,QAAiB,EACT,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DT,aAAa,CAAC,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8FtB,qBAAqB,CAAC,OAAO,EAAE,UAAU,CAAC;CAC7C,CAAC","sourcesContent":["/**\r\n * diwa-button-pure-styles.ts\r\n * ===========================\r\n * CSS-in-JS styles for <diwa-button-pure>.\r\n *\r\n * A minimal, transparent button: icon + label only, no background or border.\r\n * Mirrors the PDS p-button-pure aesthetic.\r\n *\r\n * Layout rules:\r\n * alignLabel='end' (default) → icon label\r\n * alignLabel='start' → label icon (via flex-direction: row-reverse)\r\n * stretch=true → fills container width, gap between icon and label\r\n */\r\n\r\nimport type { ButtonPureSize, ButtonPureAlignLabel } from './types';\r\nimport { getFocusStyle, getReducedMotionStyle } from '../../utils/styles';\r\n\r\nexport const getComponentCss = (\r\n _size: ButtonPureSize,\r\n _disabled: boolean,\r\n _loading: boolean,\r\n _underline: boolean,\r\n _active: boolean,\r\n _hideLabel: boolean,\r\n _alignLabel: ButtonPureAlignLabel,\r\n _stretch: boolean,\r\n): string => `\r\n\r\n /* ── Host ──────────────────────────────────────────────────────────── */\r\n\r\n :host {\r\n display: inline-flex;\r\n position: relative;\r\n font-family: var(--diwa-font-family-base);\r\n outline: none;\r\n }\r\n\r\n :host([hidden]) {\r\n display: none;\r\n }\r\n\r\n /* Stretch: fill the parent's inline axis */\r\n :host([stretch]) {\r\n display: flex;\r\n width: 100%;\r\n }\r\n\r\n /* ── Root element (<button> or <a>) ─────────────────────────────────── */\r\n\r\n .root {\r\n display: inline-flex;\r\n align-items: center;\r\n gap: var(--diwa-space-2);\r\n flex-direction: row; /* overridden by alignLabel=start below */\r\n\r\n background: transparent;\r\n border: none;\r\n padding: var(--diwa-space-0-5) var(--diwa-space-1);\r\n margin: 0;\r\n cursor: pointer;\r\n\r\n font-family: inherit;\r\n font-size: var(--diwa-font-size-base);\r\n font-weight: var(--diwa-font-weight-regular);\r\n line-height: 1;\r\n color: var(--diwa-text-primary);\r\n text-decoration: none;\r\n white-space: nowrap;\r\n\r\n -webkit-appearance: none;\r\n appearance: none;\r\n -webkit-font-smoothing: antialiased;\r\n\r\n border-radius: var(--diwa-radius-sm);\r\n }\r\n\r\n /* Stretch: push icon and label to opposite edges */\r\n :host([stretch]) .root {\r\n width: 100%;\r\n justify-content: space-between;\r\n }\r\n\r\n /* ── Focus ring ─────────────────────────────────────────────────────── */\r\n\r\n ${getFocusStyle('.root')}\r\n\r\n /* ── Size ───────────────────────────────────────────────────────────── */\r\n\r\n :host([size=\"sm\"]) .root {\r\n font-size: var(--diwa-font-size-sm);\r\n }\r\n\r\n :host([size=\"lg\"]) .root {\r\n font-size: var(--diwa-font-size-lg);\r\n }\r\n\r\n /* ── Hover / Active ─────────────────────────────────────────────────── */\r\n\r\n .root:hover:not(:disabled) {\r\n background-color: var(--diwa-bg-hover);\r\n }\r\n\r\n /* ── Active state (CSS :active + [active] prop) ─────────────────────── */\r\n\r\n :host([active]) .root,\r\n .root:active:not(:disabled) {\r\n background-color: var(--diwa-bg-active);\r\n }\r\n\r\n /* ── Disabled ───────────────────────────────────────────────────────── */\r\n\r\n :host([disabled]) .root,\r\n .root:disabled {\r\n opacity: var(--diwa-opacity-disabled);\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n }\r\n\r\n /* ── Loading ────────────────────────────────────────────────────────── */\r\n\r\n :host([loading]) .root {\r\n cursor: wait;\r\n pointer-events: none;\r\n }\r\n\r\n /* ── alignLabel: start → label on left, icon on right ──────────────── */\r\n\r\n :host([align-label=\"start\"]) .root {\r\n flex-direction: row-reverse;\r\n }\r\n\r\n /* ── Underline label text ───────────────────────────────────────────── */\r\n\r\n :host([underline]) .label {\r\n text-decoration: underline;\r\n }\r\n\r\n /* ── Icon wrapper ───────────────────────────────────────────────────── */\r\n\r\n .icon {\r\n display: contents;\r\n flex-shrink: 0;\r\n line-height: 0;\r\n }\r\n\r\n /* ── Label: visually hidden (sr-only / icon-only mode) ──────────────── */\r\n\r\n .label--hidden {\r\n border: 0;\r\n clip: rect(0, 0, 0, 0);\r\n height: 1px;\r\n margin: -1px;\r\n overflow: hidden;\r\n padding: 0;\r\n position: absolute;\r\n white-space: nowrap;\r\n width: 1px;\r\n }\r\n\r\n /* ── Spinner ────────────────────────────────────────────────────────── */\r\n\r\n .spinner {\r\n /* Size relative to current font-size so it scales with the button size tier */\r\n width: 1em;\r\n height: 1em;\r\n flex-shrink: 0;\r\n border: var(--diwa-border-width-base) solid currentColor;\r\n border-top-color: transparent;\r\n border-radius: 50%;\r\n animation: diwa-bp-spin var(--diwa-spinner-duration, 0.7s) linear infinite;\r\n }\r\n\r\n @keyframes diwa-bp-spin {\r\n to { transform: rotate(360deg); }\r\n }\r\n\r\n /* ── Reduced motion ─────────────────────────────────────────────────── */\r\n\r\n ${getReducedMotionStyle('.root', '.spinner')}\r\n`;\r\n"]}
|