@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,32 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = (multiline) => `
|
|
4
|
+
:host {
|
|
5
|
+
display: table-cell;
|
|
6
|
+
padding: var(--diwa-table-padding, var(--diwa-space-fluid-md));
|
|
7
|
+
font-size: var(--diwa-font-size-sm);
|
|
8
|
+
color: var(--diwa-text-primary);
|
|
9
|
+
border-bottom: var(--diwa-border-width-thin) solid var(--diwa-table-border-color, var(--diwa-border));
|
|
10
|
+
border-right: var(--diwa-table-column-border, none);
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
line-height: var(--diwa-line-height-normal);
|
|
13
|
+
white-space: ${multiline ? 'normal' : 'nowrap'};
|
|
14
|
+
}
|
|
15
|
+
:host(:last-child) { border-right: none; }
|
|
16
|
+
:host([hidden]) { display: none; }
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
const DiwaTableCell = class {
|
|
20
|
+
constructor(hostRef) {
|
|
21
|
+
registerInstance(this, hostRef);
|
|
22
|
+
this.theme = 'dark';
|
|
23
|
+
this.multiline = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h(Host, { key: '6940c2ca96ade3969829050cd472541073e14e10', role: "cell" }, h("style", { key: '9268605b392a8e0d63c036a94aaf06b1f8921d19', innerHTML: getComponentCss(this.multiline) }), h("slot", { key: 'ce6ec575f27242e9bb5892a9b4417bbcf31a7dd1' })));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { DiwaTableCell as diwa_table_cell };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=diwa-table-cell.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-table-cell.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,CAAC,SAAkB,KAAa;;;;;;;;;;mBAU5C,SAAS,GAAG,QAAQ,GAAG,QAAQ;;;;CAIjD;;MCRY,aAAa;IAD1B;;QAE2B,UAAK,GAAU,MAAM,CAAC;QACvC,cAAS,GAAY,KAAK,CAAC;KAUpC;IARC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,MAAM,IACf,8DAAO,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAI,EACrD,8DAAQ,CACH,EACP;KACH;;;;;","names":[],"sources":["src/components/diwa-table-cell/diwa-table-cell-styles.ts","src/components/diwa-table-cell/diwa-table-cell.tsx"],"sourcesContent":["export const getComponentCss = (multiline: boolean): string => `\r\n :host {\r\n display: table-cell;\r\n padding: var(--diwa-table-padding, var(--diwa-space-fluid-md));\r\n font-size: var(--diwa-font-size-sm);\r\n color: var(--diwa-text-primary);\r\n border-bottom: var(--diwa-border-width-thin) solid var(--diwa-table-border-color, var(--diwa-border));\r\n border-right: var(--diwa-table-column-border, none);\r\n vertical-align: middle;\r\n line-height: var(--diwa-line-height-normal);\r\n white-space: ${multiline ? 'normal' : 'nowrap'};\r\n }\r\n :host(:last-child) { border-right: none; }\r\n :host([hidden]) { display: none; }\r\n`;\r\n","import { Component, Host, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-table-cell-styles';\r\n\r\n/** @component diwa-table-cell — Maps to <td> inside a diwa-table-row. */\r\n@Component({ tag: 'diwa-table-cell', shadow: true })\r\nexport class DiwaTableCell {\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n @Prop() multiline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <Host role=\"cell\">\r\n <style innerHTML={getComponentCss(this.multiline)} />\r\n <slot />\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = (sortable, multiline) => `
|
|
4
|
+
:host {
|
|
5
|
+
display: table-cell;
|
|
6
|
+
padding: var(--diwa-table-padding, var(--diwa-space-fluid-md));
|
|
7
|
+
background: var(--diwa-table-header-bg, var(--diwa-bg-elevated));
|
|
8
|
+
text-align: start;
|
|
9
|
+
font-size: var(--diwa-font-size-sm);
|
|
10
|
+
font-weight: var(--diwa-font-weight-semibold);
|
|
11
|
+
color: var(--diwa-text-secondary);
|
|
12
|
+
border-bottom: var(--diwa-border-width-base) solid var(--diwa-table-border-color, var(--diwa-border));
|
|
13
|
+
border-right: var(--diwa-table-column-border, none);
|
|
14
|
+
white-space: ${multiline ? 'normal' : 'nowrap'};
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
}
|
|
17
|
+
:host(:last-child) { border-right: none; }
|
|
18
|
+
:host([hidden]) { display: none; }
|
|
19
|
+
|
|
20
|
+
.sr-only {
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 1px;
|
|
23
|
+
height: 1px;
|
|
24
|
+
padding: 0;
|
|
25
|
+
margin: -1px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
clip: rect(0, 0, 0, 0);
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
border: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
${sortable ? `
|
|
33
|
+
.sort-btn {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: var(--diwa-space-1);
|
|
37
|
+
background: transparent;
|
|
38
|
+
border: 0;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
font: inherit;
|
|
41
|
+
color: inherit;
|
|
42
|
+
padding: 0;
|
|
43
|
+
text-align: start;
|
|
44
|
+
outline-offset: 2px;
|
|
45
|
+
transition: color var(--diwa-transition-base);
|
|
46
|
+
white-space: ${multiline ? 'normal' : 'nowrap'};
|
|
47
|
+
}
|
|
48
|
+
.sort-btn:hover {
|
|
49
|
+
color: var(--diwa-text-primary);
|
|
50
|
+
}
|
|
51
|
+
` : ''}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
const DiwaTableHeadCell = class {
|
|
55
|
+
constructor(hostRef) {
|
|
56
|
+
registerInstance(this, hostRef);
|
|
57
|
+
this.theme = 'dark';
|
|
58
|
+
this.hideLabel = false;
|
|
59
|
+
this.multiline = false;
|
|
60
|
+
this.handleSort = () => {
|
|
61
|
+
if (!this.sort)
|
|
62
|
+
return;
|
|
63
|
+
const next = this.sort.active
|
|
64
|
+
? this.sort.direction === 'asc' ? 'desc' : 'asc'
|
|
65
|
+
: this.sort.direction;
|
|
66
|
+
this.host.dispatchEvent(new CustomEvent('diwaTableUpdate', {
|
|
67
|
+
bubbles: true,
|
|
68
|
+
composed: true,
|
|
69
|
+
detail: { id: this.sort.id, active: true, direction: next },
|
|
70
|
+
}));
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const { sort, hideLabel, multiline } = this;
|
|
75
|
+
const isSortable = !!sort;
|
|
76
|
+
const ariaSort = !isSortable
|
|
77
|
+
? undefined
|
|
78
|
+
: sort.active
|
|
79
|
+
? sort.direction === 'asc' ? 'ascending' : 'descending'
|
|
80
|
+
: 'none';
|
|
81
|
+
const labelEl = (h("span", { key: '3763494f5c22dc12b37dcac58c213597c84e6711', class: hideLabel ? 'sr-only' : undefined }, h("slot", { key: '0b5b5c768b9c225e73c45a257ce26d4521777266' })));
|
|
82
|
+
const sortIcon = (h("svg", { key: '12e03df96dcd7ba962cdd00a6d013833e23a86b0', width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", style: {
|
|
83
|
+
opacity: (sort === null || sort === void 0 ? void 0 : sort.active) ? '1' : '0.4',
|
|
84
|
+
transform: (sort === null || sort === void 0 ? void 0 : sort.direction) === 'desc' ? 'rotate(180deg)' : 'none',
|
|
85
|
+
transition: 'opacity 150ms ease, transform 150ms ease',
|
|
86
|
+
flexShrink: '0',
|
|
87
|
+
display: 'block',
|
|
88
|
+
} }, h("path", { key: 'd2ecf59d26781da72b37a4be364aa293531c79cd', d: "M4 10L8 6L12 10", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
89
|
+
return (h(Host, { key: 'd34447c382406fccd6da18cd313524c0fa7572ae', role: "columnheader", "aria-sort": ariaSort }, h("style", { key: '867bd55aad47be3565ac1393f02d5e8473293c99', innerHTML: getComponentCss(isSortable, multiline) }), isSortable ? (h("button", { type: "button", class: "sort-btn", onClick: this.handleSort }, labelEl, sortIcon)) : (labelEl)));
|
|
90
|
+
}
|
|
91
|
+
get host() { return getElement(this); }
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { DiwaTableHeadCell as diwa_table_head_cell };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=diwa-table-head-cell.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-table-head-cell.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,CAAC,QAAiB,EAAE,SAAkB,KAAa;;;;;;;;;;;mBAW/D,SAAS,GAAG,QAAQ,GAAG,QAAQ;;;;;;;;;;;;;;;;;;IAkB9C,QAAQ,GAAG;;;;;;;;;;;;;;mBAcI,SAAS,GAAG,QAAQ,GAAG,QAAQ;;;;;GAK/C,GAAG,EAAE;CACP;;MC1CY,iBAAiB;IAD9B;;QAI2B,UAAK,GAAU,MAAM,CAAC;QAEvC,cAAS,GAAY,KAAK,CAAC;QAC3B,cAAS,GAAY,KAAK,CAAC;QAE3B,eAAU,GAAG;YACnB,IAAI,CAAC,IAAI,CAAC,IAAI;gBAAE,OAAO;YACvB,MAAM,IAAI,GAAc,IAAI,CAAC,IAAI,CAAC,MAAM;kBACpC,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK;kBAC9C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;YACxB,IAAI,CAAC,IAAI,CAAC,aAAa,CACrB,IAAI,WAAW,CAAyB,iBAAiB,EAAE;gBACzD,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE;aAC5D,CAAC,CACH,CAAC;SACH,CAAC;KAwDH;IAtDC,MAAM;QACJ,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAC5C,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;QAC1B,MAAM,QAAQ,GAAG,CAAC,UAAU;cACxB,SAAS;cACT,IAAI,CAAC,MAAM;kBACT,IAAI,CAAC,SAAS,KAAK,KAAK,GAAG,WAAW,GAAG,YAAY;kBACrD,MAAM,CAAC;QAEb,MAAM,OAAO,IACX,6DAAM,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,IAC5C,8DAAQ,CACH,CACR,CAAC;QAEF,MAAM,QAAQ,IACZ,4DACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,iBACC,MAAM,EAClB,KAAK,EAAE;gBACL,OAAO,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,IAAG,GAAG,GAAG,KAAK;gBACnC,SAAS,EAAE,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,MAAK,MAAM,GAAG,gBAAgB,GAAG,MAAM;gBACjE,UAAU,EAAE,0CAA0C;gBACtD,UAAU,EAAE,GAAG;gBACf,OAAO,EAAE,OAAO;aACjB,IAED,6DACE,CAAC,EAAC,iBAAiB,EACnB,MAAM,EAAC,cAAc,kBACR,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC;QAEF,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,cAAc,eAAY,QAAQ,IAC3C,8DAAO,SAAS,EAAE,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,GAAI,EAC3D,UAAU,IACT,cAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,UAAU,IAC5D,OAAO,EACP,QAAQ,CACF,KAET,OAAO,CACR,CACI,EACP;KACH;;;;;;","names":[],"sources":["src/components/diwa-table-head-cell/diwa-table-head-cell-styles.ts","src/components/diwa-table-head-cell/diwa-table-head-cell.tsx"],"sourcesContent":["export const getComponentCss = (sortable: boolean, multiline: boolean): string => `\r\n :host {\r\n display: table-cell;\r\n padding: var(--diwa-table-padding, var(--diwa-space-fluid-md));\r\n background: var(--diwa-table-header-bg, var(--diwa-bg-elevated));\r\n text-align: start;\r\n font-size: var(--diwa-font-size-sm);\r\n font-weight: var(--diwa-font-weight-semibold);\r\n color: var(--diwa-text-secondary);\r\n border-bottom: var(--diwa-border-width-base) solid var(--diwa-table-border-color, var(--diwa-border));\r\n border-right: var(--diwa-table-column-border, none);\r\n white-space: ${multiline ? 'normal' : 'nowrap'};\r\n vertical-align: middle;\r\n }\r\n :host(:last-child) { border-right: none; }\r\n :host([hidden]) { display: none; }\r\n\r\n .sr-only {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n padding: 0;\r\n margin: -1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n white-space: nowrap;\r\n border: 0;\r\n }\r\n\r\n ${sortable ? `\r\n .sort-btn {\r\n display: inline-flex;\r\n align-items: center;\r\n gap: var(--diwa-space-1);\r\n background: transparent;\r\n border: 0;\r\n cursor: pointer;\r\n font: inherit;\r\n color: inherit;\r\n padding: 0;\r\n text-align: start;\r\n outline-offset: 2px;\r\n transition: color var(--diwa-transition-base);\r\n white-space: ${multiline ? 'normal' : 'nowrap'};\r\n }\r\n .sort-btn:hover {\r\n color: var(--diwa-text-primary);\r\n }\r\n ` : ''}\r\n`;\r\n","import { Component, Element, Host, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport type { Direction, TableHeadCellSort, TableUpdateEventDetail } from './types';\r\nimport { getComponentCss } from './diwa-table-head-cell-styles';\r\n\r\n/** @component diwa-table-head-cell — Maps to <th> inside a diwa-table-head row. */\r\n@Component({ tag: 'diwa-table-head-cell', shadow: true })\r\nexport class DiwaTableHeadCell {\r\n @Element() host!: HTMLElement;\r\n\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n @Prop() sort?: TableHeadCellSort;\r\n @Prop() hideLabel: boolean = false;\r\n @Prop() multiline: boolean = false;\r\n\r\n private handleSort = (): void => {\r\n if (!this.sort) return;\r\n const next: Direction = this.sort.active\r\n ? this.sort.direction === 'asc' ? 'desc' : 'asc'\r\n : this.sort.direction;\r\n this.host.dispatchEvent(\r\n new CustomEvent<TableUpdateEventDetail>('diwaTableUpdate', {\r\n bubbles: true,\r\n composed: true,\r\n detail: { id: this.sort.id, active: true, direction: next },\r\n }),\r\n );\r\n };\r\n\r\n render() {\r\n const { sort, hideLabel, multiline } = this;\r\n const isSortable = !!sort;\r\n const ariaSort = !isSortable\r\n ? undefined\r\n : sort.active\r\n ? sort.direction === 'asc' ? 'ascending' : 'descending'\r\n : 'none';\r\n\r\n const labelEl = (\r\n <span class={hideLabel ? 'sr-only' : undefined}>\r\n <slot />\r\n </span>\r\n );\r\n\r\n const sortIcon = (\r\n <svg\r\n width=\"16\"\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n aria-hidden=\"true\"\r\n style={{\r\n opacity: sort?.active ? '1' : '0.4',\r\n transform: sort?.direction === 'desc' ? 'rotate(180deg)' : 'none',\r\n transition: 'opacity 150ms ease, transform 150ms ease',\r\n flexShrink: '0',\r\n display: 'block',\r\n }}\r\n >\r\n <path\r\n d=\"M4 10L8 6L12 10\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"1.5\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n );\r\n\r\n return (\r\n <Host role=\"columnheader\" aria-sort={ariaSort}>\r\n <style innerHTML={getComponentCss(isSortable, multiline)} />\r\n {isSortable ? (\r\n <button type=\"button\" class=\"sort-btn\" onClick={this.handleSort}>\r\n {labelEl}\r\n {sortIcon}\r\n </button>\r\n ) : (\r\n labelEl\r\n )}\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = () => `
|
|
4
|
+
:host {
|
|
5
|
+
display: table-header-group;
|
|
6
|
+
background: var(--diwa-table-header-bg, var(--diwa-bg-elevated));
|
|
7
|
+
font-size: var(--diwa-font-size-sm);
|
|
8
|
+
font-weight: var(--diwa-font-weight-semibold);
|
|
9
|
+
color: var(--diwa-text-secondary);
|
|
10
|
+
--diwa-table-hover-color: transparent;
|
|
11
|
+
}
|
|
12
|
+
:host([hidden]) { display: none; }
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
const DiwaTableHead = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
registerInstance(this, hostRef);
|
|
18
|
+
this.theme = 'dark';
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h(Host, { key: '4a79b101f25908a4c8d952a6cabeba242d361d45', role: "rowgroup", "data-theme": this.theme }, h("style", { key: '2fe92018084cd53e3eecfa6fa7cfcd314609d383', innerHTML: getComponentCss() }), h("slot", { key: 'f9d45fc32ddc9eb5532dd8e85fadac06df35cfb3' })));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { DiwaTableHead as diwa_table_head };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=diwa-table-head.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-table-head.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,MAAc;;;;;;;;;;CAU5C;;MCJY,aAAa;IAD1B;;QAE2B,UAAK,GAAU,MAAM,CAAC;KAUhD;IARC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,gBAAa,IAAI,CAAC,KAAK,IAC1C,8DAAO,SAAS,EAAE,eAAe,EAAE,GAAI,EACvC,8DAAQ,CACH,EACP;KACH;;;;;","names":[],"sources":["src/components/diwa-table-head/diwa-table-head-styles.ts","src/components/diwa-table-head/diwa-table-head.tsx"],"sourcesContent":["export const getComponentCss = (): string => `\r\n :host {\r\n display: table-header-group;\r\n background: var(--diwa-table-header-bg, var(--diwa-bg-elevated));\r\n font-size: var(--diwa-font-size-sm);\r\n font-weight: var(--diwa-font-weight-semibold);\r\n color: var(--diwa-text-secondary);\r\n --diwa-table-hover-color: transparent;\r\n }\r\n :host([hidden]) { display: none; }\r\n`;\r\n","import { Component, Host, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-table-head-styles';\r\n\r\n/** @component diwa-table-head — Maps to <thead> inside diwa-table. */\r\n@Component({ tag: 'diwa-table-head', shadow: true })\r\nexport class DiwaTableHead {\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n render() {\r\n return (\r\n <Host role=\"rowgroup\" data-theme={this.theme}>\r\n <style innerHTML={getComponentCss()} />\r\n <slot />\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = () => `
|
|
4
|
+
:host {
|
|
5
|
+
display: table-row;
|
|
6
|
+
transition: background var(--diwa-transition-base);
|
|
7
|
+
}
|
|
8
|
+
:host([hidden]) { display: none; }
|
|
9
|
+
:host(:hover) {
|
|
10
|
+
background: var(--diwa-table-hover-color, transparent);
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const DiwaTableRow = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
registerInstance(this, hostRef);
|
|
17
|
+
this.theme = 'dark';
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (h(Host, { key: 'f931d12bc8db13a256549d53e08596154fe99633', role: "row", "data-theme": this.theme }, h("style", { key: '5492581027421a4455b3831766e0f6126cc32a30', innerHTML: getComponentCss() }), h("slot", { key: 'e66bff1a9c8d1661227bcefa9f6fa835c2109df8' })));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { DiwaTableRow as diwa_table_row };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=diwa-table-row.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-table-row.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,MAAc;;;;;;;;;CAS5C;;MCHY,YAAY;IADzB;;QAE2B,UAAK,GAAU,MAAM,CAAC;KAUhD;IARC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,KAAK,gBAAa,IAAI,CAAC,KAAK,IACrC,8DAAO,SAAS,EAAE,eAAe,EAAE,GAAI,EACvC,8DAAQ,CACH,EACP;KACH;;;;;","names":[],"sources":["src/components/diwa-table-row/diwa-table-row-styles.ts","src/components/diwa-table-row/diwa-table-row.tsx"],"sourcesContent":["export const getComponentCss = (): string => `\r\n :host {\r\n display: table-row;\r\n transition: background var(--diwa-transition-base);\r\n }\r\n :host([hidden]) { display: none; }\r\n :host(:hover) {\r\n background: var(--diwa-table-hover-color, transparent);\r\n }\r\n`;\r\n","import { Component, Host, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-table-row-styles';\r\n\r\n/** @component diwa-table-row — Maps to <tr> inside diwa-table-head or diwa-table-body. */\r\n@Component({ tag: 'diwa-table-row', shadow: true })\r\nexport class DiwaTableRow {\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n render() {\r\n return (\r\n <Host role=\"row\" data-theme={this.theme}>\r\n <style innerHTML={getComponentCss()} />\r\n <slot />\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = (compact, layout, bordered, striped) => `
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
font-family: var(--diwa-font-family-base);
|
|
7
|
+
width: 100%;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
background: var(--diwa-bg-surface);
|
|
10
|
+
border-radius: var(--diwa-radius-lg);
|
|
11
|
+
--diwa-table-padding: ${compact ? 'var(--diwa-space-fluid-xs)' : 'var(--diwa-space-fluid-md)'};
|
|
12
|
+
--diwa-table-hover-color: var(--diwa-bg-hover);
|
|
13
|
+
--diwa-table-border-color: var(--diwa-border);
|
|
14
|
+
--diwa-table-column-border: ${bordered ? 'var(--diwa-border-width-thin) solid var(--diwa-border)' : 'none'};
|
|
15
|
+
--diwa-table-stripe-color: ${striped ? 'var(--diwa-bg-elevated)' : 'transparent'};
|
|
16
|
+
--diwa-table-header-bg: var(--diwa-bg-elevated);
|
|
17
|
+
${bordered ? `
|
|
18
|
+
border: var(--diwa-border-width-thin) solid var(--diwa-border);
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
` : ''}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([hidden]) { display: none; }
|
|
24
|
+
|
|
25
|
+
.table {
|
|
26
|
+
width: 100%;
|
|
27
|
+
border-collapse: collapse;
|
|
28
|
+
background: var(--diwa-bg-surface);
|
|
29
|
+
font-size: var(--diwa-font-size-base);
|
|
30
|
+
color: var(--diwa-text-primary);
|
|
31
|
+
${layout === 'fixed' ? 'table-layout: fixed;' : ''}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.sr-only {
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 1px;
|
|
37
|
+
height: 1px;
|
|
38
|
+
padding: 0;
|
|
39
|
+
margin: -1px;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
clip: rect(0, 0, 0, 0);
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
border: 0;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
const DiwaTable = class {
|
|
48
|
+
constructor(hostRef) {
|
|
49
|
+
registerInstance(this, hostRef);
|
|
50
|
+
this.update = createEvent(this, "update", 1);
|
|
51
|
+
this.theme = 'dark';
|
|
52
|
+
this.caption = '';
|
|
53
|
+
this.compact = false;
|
|
54
|
+
this.layout = 'auto';
|
|
55
|
+
this.bordered = false;
|
|
56
|
+
this.striped = false;
|
|
57
|
+
}
|
|
58
|
+
handleTableUpdate(e) {
|
|
59
|
+
e.stopPropagation();
|
|
60
|
+
this.update.emit(e.detail);
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (h(Host, { key: 'f44c979bd3fe3e5dac8c82d74519f433ae6617f3', "data-theme": this.theme }, h("style", { key: '864a46be2b5682fc4876bb392b6e85484fed3a92', innerHTML: getComponentCss(this.compact, this.layout, this.bordered, this.striped) }), h("table", { key: 'f79f51a9cccc9df05c92b16b013a5e7400d30012', class: "table" }, this.caption && h("caption", { key: 'd7bc36ebb05f3e452c953fc772dfb3988705c04a', class: "sr-only" }, this.caption), h("slot", { key: '4586f22dd7b51da6ec44ca11773297db6a75e1e6' }))));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { DiwaTable as diwa_table };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=diwa-table.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-table.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,CAC7B,OAAgB,EAChB,MAAwB,EACxB,QAAiB,EACjB,OAAgB,KACL;;;;;;;;4BAQe,OAAO,GAAG,4BAA4B,GAAG,4BAA4B;;;kCAG/D,QAAQ,GAAG,wDAAwD,GAAG,MAAM;iCAC7E,OAAO,GAAG,yBAAyB,GAAG,aAAa;;MAE9E,QAAQ,GAAG;;;KAGZ,GAAG,EAAE;;;;;;;;;;;MAWJ,MAAM,KAAK,OAAO,GAAG,sBAAsB,GAAG,EAAE;;;;;;;;;;;;;;CAcrD;;MCnCY,SAAS;IADtB;;;QAE2B,UAAK,GAAU,MAAM,CAAC;QACvC,YAAO,GAAW,EAAE,CAAC;QACrB,YAAO,GAAY,KAAK,CAAC;QACzB,WAAM,GAAqB,MAAM,CAAC;QAClC,aAAQ,GAAY,KAAK,CAAC;QAC1B,YAAO,GAAY,KAAK,CAAC;KAsBlC;IAhBW,iBAAiB,CAAC,CAAsC;QAChE,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;KAC5B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,mEAAa,IAAI,CAAC,KAAK,IAC1B,8DAAO,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,GAAI,EAC7F,8DAAO,KAAK,EAAC,OAAO,IACjB,IAAI,CAAC,OAAO,IAAI,gEAAS,KAAK,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAW,EAClE,8DAAQ,CACF,CACH,EACP;KACH;;;;;","names":[],"sources":["src/components/diwa-table/diwa-table-styles.ts","src/components/diwa-table/diwa-table.tsx"],"sourcesContent":["export const getComponentCss = (\r\n compact: boolean,\r\n layout: 'auto' | 'fixed',\r\n bordered: boolean,\r\n striped: boolean,\r\n): string => `\r\n :host {\r\n display: block;\r\n font-family: var(--diwa-font-family-base);\r\n width: 100%;\r\n overflow-x: auto;\r\n background: var(--diwa-bg-surface);\r\n border-radius: var(--diwa-radius-lg);\r\n --diwa-table-padding: ${compact ? 'var(--diwa-space-fluid-xs)' : 'var(--diwa-space-fluid-md)'};\r\n --diwa-table-hover-color: var(--diwa-bg-hover);\r\n --diwa-table-border-color: var(--diwa-border);\r\n --diwa-table-column-border: ${bordered ? 'var(--diwa-border-width-thin) solid var(--diwa-border)' : 'none'};\r\n --diwa-table-stripe-color: ${striped ? 'var(--diwa-bg-elevated)' : 'transparent'};\r\n --diwa-table-header-bg: var(--diwa-bg-elevated);\r\n ${bordered ? `\r\n border: var(--diwa-border-width-thin) solid var(--diwa-border);\r\n overflow: hidden;\r\n ` : ''}\r\n }\r\n\r\n :host([hidden]) { display: none; }\r\n\r\n .table {\r\n width: 100%;\r\n border-collapse: collapse;\r\n background: var(--diwa-bg-surface);\r\n font-size: var(--diwa-font-size-base);\r\n color: var(--diwa-text-primary);\r\n ${layout === 'fixed' ? 'table-layout: fixed;' : ''}\r\n }\r\n\r\n .sr-only {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n padding: 0;\r\n margin: -1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n white-space: nowrap;\r\n border: 0;\r\n }\r\n`;\r\n","import { Component, Event, type EventEmitter, Host, Listen, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport type { TableUpdateEventDetail } from '../diwa-table-head-cell/types';\r\nimport { getComponentCss } from './diwa-table-styles';\r\n\r\n/**\r\n * @component diwa-table\r\n * Wrapper for a data table. Uses native HTML table layout via display CSS.\r\n * Structure: diwa-table > diwa-table-head > diwa-table-row > diwa-table-head-cell\r\n * > diwa-table-body > diwa-table-row > diwa-table-cell\r\n */\r\n@Component({ tag: 'diwa-table', shadow: true })\r\nexport class DiwaTable {\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n @Prop() caption: string = '';\r\n @Prop() compact: boolean = false;\r\n @Prop() layout: 'auto' | 'fixed' = 'auto';\r\n @Prop() bordered: boolean = false;\r\n @Prop() striped: boolean = false;\r\n\r\n @Event({ bubbles: false, composed: false })\r\n update!: EventEmitter<TableUpdateEventDetail>;\r\n\r\n @Listen('diwaTableUpdate')\r\n protected handleTableUpdate(e: CustomEvent<TableUpdateEventDetail>): void {\r\n e.stopPropagation();\r\n this.update.emit(e.detail);\r\n }\r\n\r\n render() {\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.compact, this.layout, this.bordered, this.striped)} />\r\n <table class=\"table\">\r\n {this.caption && <caption class=\"sr-only\">{this.caption}</caption>}\r\n <slot />\r\n </table>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-3fa02c74.js';
|
|
2
|
+
import { a as getReducedMotionStyle } from './styles-e5a47a2d.js';
|
|
3
|
+
|
|
4
|
+
const getComponentCss = () => `
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
font-family: var(--diwa-font-family-base);
|
|
8
|
+
color: var(--diwa-text-primary);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([hidden]) {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.bar {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
gap: 0;
|
|
19
|
+
border-bottom: var(--diwa-border-width-thin) solid var(--diwa-border);
|
|
20
|
+
overflow-x: auto;
|
|
21
|
+
scrollbar-width: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.bar::-webkit-scrollbar {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
::slotted(a),
|
|
29
|
+
::slotted(button) {
|
|
30
|
+
/* !important guards against light-DOM author styles (e.g. Tailwind preflight
|
|
31
|
+
padding: 0 on button) overriding ::slotted() rules per the CSS shadow-DOM
|
|
32
|
+
cascade spec where light-DOM author styles win over ::slotted(). */
|
|
33
|
+
display: inline-flex !important;
|
|
34
|
+
align-items: center;
|
|
35
|
+
min-height: var(--diwa-touch-target-min-size, 44px) !important;
|
|
36
|
+
gap: var(--diwa-space-2);
|
|
37
|
+
padding: var(--diwa-space-4) var(--diwa-space-7) !important;
|
|
38
|
+
border: none !important;
|
|
39
|
+
border-bottom: var(--diwa-border-width-base) solid transparent !important;
|
|
40
|
+
background: transparent !important;
|
|
41
|
+
color: var(--diwa-text-secondary) !important;
|
|
42
|
+
font-size: var(--diwa-font-size-base) !important;
|
|
43
|
+
font-family: inherit !important;
|
|
44
|
+
font-weight: var(--diwa-font-weight-medium) !important;
|
|
45
|
+
text-decoration: none !important;
|
|
46
|
+
white-space: nowrap !important;
|
|
47
|
+
cursor: pointer !important;
|
|
48
|
+
transition:
|
|
49
|
+
color var(--diwa-transition-base),
|
|
50
|
+
border-color var(--diwa-transition-base);
|
|
51
|
+
margin-bottom: -1px;
|
|
52
|
+
outline: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (hover: hover) and (pointer: fine) {
|
|
56
|
+
::slotted(a:hover),
|
|
57
|
+
::slotted(button:hover) {
|
|
58
|
+
color: var(--diwa-text-primary) !important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
::slotted(a[data-active]),
|
|
63
|
+
::slotted(button[data-active]),
|
|
64
|
+
::slotted(a.active),
|
|
65
|
+
::slotted(button.active),
|
|
66
|
+
::slotted([aria-selected="true"]) {
|
|
67
|
+
color: var(--diwa-accent) !important;
|
|
68
|
+
border-bottom-color: var(--diwa-accent) !important;
|
|
69
|
+
font-weight: var(--diwa-font-weight-medium) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
::slotted(a:focus-visible),
|
|
73
|
+
::slotted(button:focus-visible) {
|
|
74
|
+
outline: var(--diwa-focus-ring-width) solid var(--diwa-border-focus);
|
|
75
|
+
outline-offset: var(--diwa-focus-ring-offset);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
::slotted(a:focus:not(:focus-visible)),
|
|
79
|
+
::slotted(button:focus:not(:focus-visible)) {
|
|
80
|
+
outline: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
::slotted(button:disabled) {
|
|
84
|
+
background: transparent !important;
|
|
85
|
+
color: var(--diwa-text-muted) !important;
|
|
86
|
+
opacity: 0.5 !important;
|
|
87
|
+
cursor: not-allowed !important;
|
|
88
|
+
pointer-events: none !important;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
${getReducedMotionStyle('::slotted(a)', '::slotted(button)')}
|
|
92
|
+
`;
|
|
93
|
+
|
|
94
|
+
const DiwaTabsBar = class {
|
|
95
|
+
constructor(hostRef) {
|
|
96
|
+
registerInstance(this, hostRef);
|
|
97
|
+
this.update = createEvent(this, "update", 1);
|
|
98
|
+
/** Per-component theme override. */
|
|
99
|
+
this.theme = 'dark';
|
|
100
|
+
/** Zero-based index of the active tab. */
|
|
101
|
+
this.activeTabIndex = 0;
|
|
102
|
+
}
|
|
103
|
+
handleIndexChange() {
|
|
104
|
+
this.syncTabs();
|
|
105
|
+
}
|
|
106
|
+
componentDidLoad() {
|
|
107
|
+
this.syncTabs();
|
|
108
|
+
}
|
|
109
|
+
handleClick(event) {
|
|
110
|
+
const tabs = this.getTabElements();
|
|
111
|
+
const idx = this.getTabIndexFromEventTarget(event.target, tabs);
|
|
112
|
+
if (idx === -1 || idx === this.activeTabIndex || this.isTabDisabled(tabs[idx])) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
this.setActiveTab(idx);
|
|
116
|
+
}
|
|
117
|
+
handleKeydown(event) {
|
|
118
|
+
var _a;
|
|
119
|
+
const tabs = this.getTabElements();
|
|
120
|
+
const currentIndex = this.getTabIndexFromEventTarget(event.target, tabs);
|
|
121
|
+
if (currentIndex === -1) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
let nextIndex = -1;
|
|
125
|
+
switch (event.key) {
|
|
126
|
+
case 'ArrowLeft':
|
|
127
|
+
case 'ArrowUp':
|
|
128
|
+
nextIndex = this.getNextEnabledIndex(currentIndex, -1, tabs);
|
|
129
|
+
break;
|
|
130
|
+
case 'ArrowRight':
|
|
131
|
+
case 'ArrowDown':
|
|
132
|
+
nextIndex = this.getNextEnabledIndex(currentIndex, 1, tabs);
|
|
133
|
+
break;
|
|
134
|
+
case 'Home':
|
|
135
|
+
nextIndex = this.getBoundaryEnabledIndex('start', tabs);
|
|
136
|
+
break;
|
|
137
|
+
case 'End':
|
|
138
|
+
nextIndex = this.getBoundaryEnabledIndex('end', tabs);
|
|
139
|
+
break;
|
|
140
|
+
default:
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (nextIndex === -1) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
this.setActiveTab(nextIndex);
|
|
148
|
+
(_a = tabs[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
149
|
+
}
|
|
150
|
+
getTabElements() {
|
|
151
|
+
var _a;
|
|
152
|
+
const slot = (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
153
|
+
if (!slot)
|
|
154
|
+
return [];
|
|
155
|
+
return slot
|
|
156
|
+
.assignedElements({ flatten: true })
|
|
157
|
+
.filter((el) => el instanceof HTMLElement);
|
|
158
|
+
}
|
|
159
|
+
getTabIndexFromEventTarget(target, tabs) {
|
|
160
|
+
if (!(target instanceof Node)) {
|
|
161
|
+
return -1;
|
|
162
|
+
}
|
|
163
|
+
return tabs.findIndex((tab) => tab === target || tab.contains(target));
|
|
164
|
+
}
|
|
165
|
+
isTabDisabled(tab) {
|
|
166
|
+
if (!tab) {
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
return tab.hasAttribute('disabled') || tab.getAttribute('aria-disabled') === 'true';
|
|
170
|
+
}
|
|
171
|
+
getNextEnabledIndex(currentIndex, direction, tabs) {
|
|
172
|
+
for (let step = 1; step <= tabs.length; step += 1) {
|
|
173
|
+
const candidateIndex = (currentIndex + direction * step + tabs.length) % tabs.length;
|
|
174
|
+
if (!this.isTabDisabled(tabs[candidateIndex])) {
|
|
175
|
+
return candidateIndex;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return -1;
|
|
179
|
+
}
|
|
180
|
+
getBoundaryEnabledIndex(edge, tabs) {
|
|
181
|
+
const candidates = edge === 'start' ? tabs : [...tabs].reverse();
|
|
182
|
+
const match = candidates.find((tab) => !this.isTabDisabled(tab));
|
|
183
|
+
if (!match) {
|
|
184
|
+
return -1;
|
|
185
|
+
}
|
|
186
|
+
return tabs.indexOf(match);
|
|
187
|
+
}
|
|
188
|
+
setActiveTab(index) {
|
|
189
|
+
this.activeTabIndex = index;
|
|
190
|
+
this.update.emit({ activeTabIndex: this.activeTabIndex });
|
|
191
|
+
this.syncTabs();
|
|
192
|
+
}
|
|
193
|
+
syncTabs() {
|
|
194
|
+
const tabs = this.getTabElements();
|
|
195
|
+
tabs.forEach((tab, i) => {
|
|
196
|
+
const isActive = i === this.activeTabIndex;
|
|
197
|
+
tab.setAttribute('role', 'tab');
|
|
198
|
+
tab.setAttribute('aria-selected', isActive ? 'true' : 'false');
|
|
199
|
+
if (this.isTabDisabled(tab)) {
|
|
200
|
+
tab.setAttribute('aria-disabled', 'true');
|
|
201
|
+
tab.setAttribute('tabindex', '-1');
|
|
202
|
+
tab.removeAttribute('data-active');
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
tab.removeAttribute('aria-disabled');
|
|
206
|
+
if (isActive) {
|
|
207
|
+
tab.setAttribute('data-active', '');
|
|
208
|
+
tab.setAttribute('tabindex', '0');
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
tab.removeAttribute('data-active');
|
|
212
|
+
tab.setAttribute('tabindex', '-1');
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
render() {
|
|
217
|
+
return (h(Host, { key: '5d85c7ca55c93cf266fb1f9469f602c8d17194b4', role: "tablist", "data-theme": this.theme }, h("style", { key: 'd4e17c0bcdd6d656990ac95f72bec8bd2a33ce46', innerHTML: getComponentCss() }), h("div", { key: '5850b9e2b9551db5b1c7651c167d4a0927d94ffb', class: "bar" }, h("slot", { key: '01727b6bf42cce8dfdca1d886ca717d154babdb3' }))));
|
|
218
|
+
}
|
|
219
|
+
get host() { return getElement(this); }
|
|
220
|
+
static get watchers() { return {
|
|
221
|
+
"activeTabIndex": ["handleIndexChange"]
|
|
222
|
+
}; }
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export { DiwaTabsBar as diwa_tabs_bar };
|
|
226
|
+
|
|
227
|
+
//# sourceMappingURL=diwa-tabs-bar.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-tabs-bar.entry.js","mappings":";;;AAEO,MAAM,eAAe,GAAG,MAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAuFzC,qBAAqB,CAAC,cAAc,EAAE,mBAAmB,CAAC;CAC7D;;MClEY,WAAW;IAJxB;;;;QAQ2B,UAAK,GAAU,MAAM,CAAC;;QAI/C,mBAAc,GAAW,CAAC,CAAC;KAgK5B;IAvJC,iBAAiB;QACf,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAED,gBAAgB;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAGD,WAAW,CAAC,KAAY;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEhE,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,KAAK,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;YAC9E,OAAO;SACR;QAED,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;KACxB;IAGD,aAAa,CAAC,KAAoB;;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG,IAAI,CAAC,0BAA0B,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAEzE,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE;YACvB,OAAO;SACR;QAED,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC;QAEnB,QAAQ,KAAK,CAAC,GAAG;YACf,KAAK,WAAW,CAAC;YACjB,KAAK,SAAS;gBACZ,SAAS,GAAG,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;gBAC7D,MAAM;YACR,KAAK,YAAY,CAAC;YAClB,KAAK,WAAW;gBACd,SAAS,GAAG,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;gBAC5D,MAAM;YACR,KAAK,MAAM;gBACT,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBACxD,MAAM;YACR,KAAK,KAAK;gBACR,SAAS,GAAG,IAAI,CAAC,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBACtD,MAAM;YACR;gBACE,OAAO;SACV;QAED,IAAI,SAAS,KAAK,CAAC,CAAC,EAAE;YACpB,OAAO;SACR;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QAC7B,MAAA,IAAI,CAAC,SAAS,CAAC,0CAAE,KAAK,EAAE,CAAC;KAC1B;IAEO,cAAc;;QACpB,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,aAAa,CAAC,MAAM,CAA2B,CAAC;QACnF,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,OAAO,IAAI;aACR,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;aACnC,MAAM,CAAC,CAAC,EAAE,KAAwB,EAAE,YAAY,WAAW,CAAC,CAAC;KACjE;IAEO,0BAA0B,CAAC,MAA0B,EAAE,IAAmB;QAChF,IAAI,EAAE,MAAM,YAAY,IAAI,CAAC,EAAE;YAC7B,OAAO,CAAC,CAAC,CAAC;SACX;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,GAAG,KAAK,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;KACxE;IAEO,aAAa,CAAC,GAA4B;QAChD,IAAI,CAAC,GAAG,EAAE;YACR,OAAO,IAAI,CAAC;SACb;QAED,OAAO,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,MAAM,CAAC;KACrF;IAEO,mBAAmB,CACzB,YAAoB,EACpB,SAAiB,EACjB,IAAmB;QAEnB,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,EAAE;YACjD,MAAM,cAAc,GAAG,CAAC,YAAY,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;YACrF,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,EAAE;gBAC7C,OAAO,cAAc,CAAC;aACvB;SACF;QAED,OAAO,CAAC,CAAC,CAAC;KACX;IAEO,uBAAuB,CAAC,IAAqB,EAAE,IAAmB;QACxE,MAAM,UAAU,GAAG,IAAI,KAAK,OAAO,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC;QACjE,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;QAEjE,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,CAAC,CAAC,CAAC;SACX;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC5B;IAEO,YAAY,CAAC,KAAa;QAChC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,EAAE,CAAC;KACjB;IAEO,QAAQ;QACd,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC;YAClB,MAAM,QAAQ,GAAG,CAAC,KAAK,IAAI,CAAC,cAAc,CAAC;YAC3C,GAAG,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;YAChC,GAAG,CAAC,YAAY,CAAC,eAAe,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;YAE/D,IAAI,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE;gBAC3B,GAAG,CAAC,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;gBAC1C,GAAG,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;gBACnC,GAAG,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;gBACnC,OAAO;aACR;YAED,GAAG,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;YAErC,IAAI,QAAQ,EAAE;gBACZ,GAAG,CAAC,YAAY,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;gBACpC,GAAG,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;aACnC;iBAAM;gBACL,GAAG,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;gBACnC,GAAG,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;aACpC;SACF,CAAC,CAAC;KACJ;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,SAAS,gBAAa,IAAI,CAAC,KAAK,IACzC,8DAAO,SAAS,EAAE,eAAe,EAAE,GAAI,EACvC,4DAAK,KAAK,EAAC,KAAK,IACd,8DAAQ,CACJ,CACD,EACP;KACH;;;;;;;;;","names":[],"sources":["src/components/diwa-tabs-bar/diwa-tabs-bar-styles.ts","src/components/diwa-tabs-bar/diwa-tabs-bar.tsx"],"sourcesContent":["import { getReducedMotionStyle } from '../../utils/styles';\r\n\r\nexport const getComponentCss = (): string => `\r\n :host {\r\n display: block;\r\n font-family: var(--diwa-font-family-base);\r\n color: var(--diwa-text-primary);\r\n }\r\n\r\n :host([hidden]) {\r\n display: none;\r\n }\r\n\r\n .bar {\r\n display: flex;\r\n align-items: stretch;\r\n gap: 0;\r\n border-bottom: var(--diwa-border-width-thin) solid var(--diwa-border);\r\n overflow-x: auto;\r\n scrollbar-width: none;\r\n }\r\n\r\n .bar::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n ::slotted(a),\n ::slotted(button) {\n /* !important guards against light-DOM author styles (e.g. Tailwind preflight\r\n padding: 0 on button) overriding ::slotted() rules per the CSS shadow-DOM\r\n cascade spec where light-DOM author styles win over ::slotted(). */\r\n display: inline-flex !important;\n align-items: center;\n min-height: var(--diwa-touch-target-min-size, 44px) !important;\n gap: var(--diwa-space-2);\n padding: var(--diwa-space-4) var(--diwa-space-7) !important;\r\n border: none !important;\r\n border-bottom: var(--diwa-border-width-base) solid transparent !important;\r\n background: transparent !important;\r\n color: var(--diwa-text-secondary) !important;\r\n font-size: var(--diwa-font-size-base) !important;\r\n font-family: inherit !important;\r\n font-weight: var(--diwa-font-weight-medium) !important;\r\n text-decoration: none !important;\r\n white-space: nowrap !important;\r\n cursor: pointer !important;\r\n transition:\r\n color var(--diwa-transition-base),\r\n border-color var(--diwa-transition-base);\r\n margin-bottom: -1px;\r\n outline: none;\r\n }\r\n\r\n @media (hover: hover) and (pointer: fine) {\n ::slotted(a:hover),\n ::slotted(button:hover) {\n color: var(--diwa-text-primary) !important;\n }\n }\n\r\n ::slotted(a[data-active]),\r\n ::slotted(button[data-active]),\r\n ::slotted(a.active),\r\n ::slotted(button.active),\r\n ::slotted([aria-selected=\"true\"]) {\r\n color: var(--diwa-accent) !important;\r\n border-bottom-color: var(--diwa-accent) !important;\r\n font-weight: var(--diwa-font-weight-medium) !important;\r\n }\r\n\r\n ::slotted(a:focus-visible),\r\n ::slotted(button:focus-visible) {\r\n outline: var(--diwa-focus-ring-width) solid var(--diwa-border-focus);\r\n outline-offset: var(--diwa-focus-ring-offset);\r\n }\r\n\r\n ::slotted(a:focus:not(:focus-visible)),\r\n ::slotted(button:focus:not(:focus-visible)) {\r\n outline: none;\r\n }\r\n\r\n ::slotted(button:disabled) {\r\n background: transparent !important;\r\n color: var(--diwa-text-muted) !important;\r\n opacity: 0.5 !important;\r\n cursor: not-allowed !important;\r\n pointer-events: none !important;\r\n }\r\n\r\n ${getReducedMotionStyle('::slotted(a)', '::slotted(button)')}\r\n`;\r\n","import { Component, Element, Event, type EventEmitter, Host, Listen, Prop, Watch, h } from '@stencil/core';\r\nimport type { TabsBarUpdateEventDetail } from './types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-tabs-bar-styles';\r\n\r\n/**\r\n * @component diwa-tabs-bar\r\n *\r\n * A styled tab navigation bar. Accepts `<a>` or `<button>` elements in the\r\n * default slot and tracks the active index. Mark the active tab with the\r\n * `data-active` attribute or the `active` CSS class, or let the component\r\n * manage it by providing `activeTabIndex`.\r\n *\r\n * Usage:\r\n * <diwa-tabs-bar active-tab-index={1} onupdate={e => setTab(e.detail.activeTabIndex)}>\r\n * <button>Tab 1</button>\r\n * <button>Tab 2</button>\r\n * <button>Tab 3</button>\r\n * </diwa-tabs-bar>\r\n */\r\n@Component({\r\n tag: 'diwa-tabs-bar',\r\n shadow: true,\r\n})\r\nexport class DiwaTabsBar {\r\n @Element() host!: HTMLDiwaTabsBarElement;\r\n\r\n /** Per-component theme override. */\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n /** Zero-based index of the active tab. */\r\n @Prop({ mutable: true, attribute: 'active-tab-index' })\r\n activeTabIndex: number = 0;\r\n\r\n /**\r\n * Emitted when the active tab changes.\r\n */\r\n @Event({ bubbles: false, composed: false })\r\n update!: EventEmitter<TabsBarUpdateEventDetail>;\r\n\r\n @Watch('activeTabIndex')\r\n handleIndexChange() {\r\n this.syncTabs();\r\n }\r\n\r\n componentDidLoad() {\r\n this.syncTabs();\r\n }\r\n\r\n @Listen('click')\r\n handleClick(event: Event) {\r\n const tabs = this.getTabElements();\r\n const idx = this.getTabIndexFromEventTarget(event.target, tabs);\r\n\r\n if (idx === -1 || idx === this.activeTabIndex || this.isTabDisabled(tabs[idx])) {\r\n return;\r\n }\r\n\r\n this.setActiveTab(idx);\r\n }\r\n\r\n @Listen('keydown')\r\n handleKeydown(event: KeyboardEvent) {\r\n const tabs = this.getTabElements();\r\n const currentIndex = this.getTabIndexFromEventTarget(event.target, tabs);\r\n\r\n if (currentIndex === -1) {\r\n return;\r\n }\r\n\r\n let nextIndex = -1;\r\n\r\n switch (event.key) {\r\n case 'ArrowLeft':\r\n case 'ArrowUp':\r\n nextIndex = this.getNextEnabledIndex(currentIndex, -1, tabs);\r\n break;\r\n case 'ArrowRight':\r\n case 'ArrowDown':\r\n nextIndex = this.getNextEnabledIndex(currentIndex, 1, tabs);\r\n break;\r\n case 'Home':\r\n nextIndex = this.getBoundaryEnabledIndex('start', tabs);\r\n break;\r\n case 'End':\r\n nextIndex = this.getBoundaryEnabledIndex('end', tabs);\r\n break;\r\n default:\r\n return;\r\n }\r\n\r\n if (nextIndex === -1) {\r\n return;\r\n }\r\n\r\n event.preventDefault();\r\n this.setActiveTab(nextIndex);\r\n tabs[nextIndex]?.focus();\r\n }\r\n\r\n private getTabElements(): HTMLElement[] {\r\n const slot = this.host.shadowRoot?.querySelector('slot') as HTMLSlotElement | null;\r\n if (!slot) return [];\r\n return slot\r\n .assignedElements({ flatten: true })\r\n .filter((el): el is HTMLElement => el instanceof HTMLElement);\r\n }\r\n\r\n private getTabIndexFromEventTarget(target: EventTarget | null, tabs: HTMLElement[]): number {\r\n if (!(target instanceof Node)) {\r\n return -1;\r\n }\r\n\r\n return tabs.findIndex((tab) => tab === target || tab.contains(target));\r\n }\r\n\r\n private isTabDisabled(tab: HTMLElement | undefined): boolean {\r\n if (!tab) {\r\n return true;\r\n }\r\n\r\n return tab.hasAttribute('disabled') || tab.getAttribute('aria-disabled') === 'true';\r\n }\r\n\r\n private getNextEnabledIndex(\r\n currentIndex: number,\r\n direction: -1 | 1,\r\n tabs: HTMLElement[],\r\n ): number {\r\n for (let step = 1; step <= tabs.length; step += 1) {\r\n const candidateIndex = (currentIndex + direction * step + tabs.length) % tabs.length;\r\n if (!this.isTabDisabled(tabs[candidateIndex])) {\r\n return candidateIndex;\r\n }\r\n }\r\n\r\n return -1;\r\n }\r\n\r\n private getBoundaryEnabledIndex(edge: 'start' | 'end', tabs: HTMLElement[]): number {\r\n const candidates = edge === 'start' ? tabs : [...tabs].reverse();\r\n const match = candidates.find((tab) => !this.isTabDisabled(tab));\r\n\r\n if (!match) {\r\n return -1;\r\n }\r\n\r\n return tabs.indexOf(match);\r\n }\r\n\r\n private setActiveTab(index: number) {\r\n this.activeTabIndex = index;\r\n this.update.emit({ activeTabIndex: this.activeTabIndex });\r\n this.syncTabs();\r\n }\r\n\r\n private syncTabs() {\r\n const tabs = this.getTabElements();\r\n tabs.forEach((tab, i) => {\r\n const isActive = i === this.activeTabIndex;\r\n tab.setAttribute('role', 'tab');\r\n tab.setAttribute('aria-selected', isActive ? 'true' : 'false');\r\n\r\n if (this.isTabDisabled(tab)) {\r\n tab.setAttribute('aria-disabled', 'true');\r\n tab.setAttribute('tabindex', '-1');\r\n tab.removeAttribute('data-active');\r\n return;\r\n }\r\n\r\n tab.removeAttribute('aria-disabled');\r\n\r\n if (isActive) {\r\n tab.setAttribute('data-active', '');\r\n tab.setAttribute('tabindex', '0');\r\n } else {\r\n tab.removeAttribute('data-active');\r\n tab.setAttribute('tabindex', '-1');\r\n }\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host role=\"tablist\" data-theme={this.theme}>\r\n <style innerHTML={getComponentCss()} />\r\n <div class=\"bar\">\r\n <slot />\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-3fa02c74.js';
|
|
2
|
+
|
|
3
|
+
const getComponentCss = (active) => `
|
|
4
|
+
:host {
|
|
5
|
+
display: ${active ? 'block' : 'none'};
|
|
6
|
+
font-family: var(--diwa-font-family-base);
|
|
7
|
+
color: var(--diwa-text-primary);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host([hidden]) {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
const DiwaTabsItem = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
registerInstance(this, hostRef);
|
|
18
|
+
/** Per-component theme override. */
|
|
19
|
+
this.theme = 'dark';
|
|
20
|
+
/** Tab button label. Rendered by the parent diwa-tabs component. */
|
|
21
|
+
this.label = '';
|
|
22
|
+
/** Whether this panel is currently visible. Managed by the parent diwa-tabs. */
|
|
23
|
+
this.active = false;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return (h(Host, { key: 'f6ec3970642fee656b67bd7af43c37121ebf4c93', role: "tabpanel", "aria-hidden": this.active ? 'false' : 'true', "data-theme": this.theme }, h("style", { key: '2ab72810f41d6680c657f375186f03839f5a9d78', innerHTML: getComponentCss(this.active) }), h("slot", { key: '7508c2bd4a5e797400b26446f9531b80ee38cc2a' })));
|
|
27
|
+
}
|
|
28
|
+
get host() { return getElement(this); }
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { DiwaTabsItem as diwa_tabs_item };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=diwa-tabs-item.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"diwa-tabs-item.entry.js","mappings":";;AAAO,MAAM,eAAe,GAAG,CAAC,MAAe,KAAa;;eAE7C,MAAM,GAAG,OAAO,GAAG,MAAM;;;;;;;;CAQvC;;MCOY,YAAY;IAJzB;;;QAQ2B,UAAK,GAAU,MAAM,CAAC;;QAGvC,UAAK,GAAW,EAAE,CAAC;;QAGa,WAAM,GAAY,KAAK,CAAC;KAUjE;IARC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,iBAAc,IAAI,CAAC,MAAM,GAAG,OAAO,GAAG,MAAM,gBAAc,IAAI,CAAC,KAAK,IACvF,8DAAO,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,GAAI,EAClD,8DAAQ,CACH,EACP;KACH;;;;;;","names":[],"sources":["src/components/diwa-tabs-item/diwa-tabs-item-styles.ts","src/components/diwa-tabs-item/diwa-tabs-item.tsx"],"sourcesContent":["export const getComponentCss = (active: boolean): string => `\r\n :host {\r\n display: ${active ? 'block' : 'none'};\r\n font-family: var(--diwa-font-family-base);\r\n color: var(--diwa-text-primary);\r\n }\r\n\r\n :host([hidden]) {\r\n display: none;\r\n }\r\n`;\r\n","import { Component, Element, Host, Prop, h } from '@stencil/core';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-tabs-item-styles';\r\n\r\n/**\r\n * @component diwa-tabs-item\r\n *\r\n * A single panel used inside `diwa-tabs`. The parent renders the tab button\r\n * from the `label` prop, and shows/hides this panel via `active`.\r\n *\r\n * Usage:\r\n * <diwa-tabs-item label=\"Overview\">Panel content here</diwa-tabs-item>\r\n */\r\n@Component({\r\n tag: 'diwa-tabs-item',\r\n shadow: true,\r\n})\r\nexport class DiwaTabsItem {\r\n @Element() host!: HTMLDiwaTabsItemElement;\r\n\r\n /** Per-component theme override. */\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n /** Tab button label. Rendered by the parent diwa-tabs component. */\r\n @Prop() label: string = '';\r\n\r\n /** Whether this panel is currently visible. Managed by the parent diwa-tabs. */\r\n @Prop({ mutable: true, reflect: true }) active: boolean = false;\r\n\r\n render() {\r\n return (\r\n <Host role=\"tabpanel\" aria-hidden={this.active ? 'false' : 'true'} data-theme={this.theme}>\r\n <style innerHTML={getComponentCss(this.active)} />\r\n <slot />\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
|