@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,191 @@
|
|
|
1
|
+
import { getFocusStyle, getReducedMotionStyle } from "../../utils/styles";
|
|
2
|
+
import { checkmarkSvg, getCheckboxBoxCss } from "../../utils/checkbox-mark";
|
|
3
|
+
/** White horizontal dash for indeterminate state on a 12×12 viewBox */
|
|
4
|
+
const indeterminateSvg = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2.5' y='5.25' width='7' height='1.5' rx='0.75' fill='white'/%3E%3C/svg%3E")`;
|
|
5
|
+
export const getComponentCss = (state, _disabled, compact, _hideLabel) => {
|
|
6
|
+
const boxSize = compact ? '14px' : '20px';
|
|
7
|
+
const messageColor = state === 'error'
|
|
8
|
+
? 'var(--diwa-notification-error)'
|
|
9
|
+
: state === 'success'
|
|
10
|
+
? 'var(--diwa-notification-success)'
|
|
11
|
+
: 'var(--diwa-text-secondary)';
|
|
12
|
+
return `
|
|
13
|
+
|
|
14
|
+
/* ── Host ─────────────────────────────────────────────────────────── */
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
font-family: var(--diwa-font-family-base);
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([hidden]) {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── Root layout ──────────────────────────────────────────────────── */
|
|
27
|
+
|
|
28
|
+
.root {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--diwa-space-1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ── Wrapper: checkbox + label side by side ───────────────────────── */
|
|
35
|
+
|
|
36
|
+
.wrapper {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
gap: var(--diwa-space-3);
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([disabled]) .wrapper {
|
|
44
|
+
cursor: not-allowed;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ── Input container ──────────────────────────────────────────────── */
|
|
48
|
+
|
|
49
|
+
.input-container {
|
|
50
|
+
position: relative;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
width: ${boxSize};
|
|
53
|
+
height: ${boxSize};
|
|
54
|
+
/* Center the box on the first line of label text (line-height: 1.5) */
|
|
55
|
+
margin-top: calc((1.5em - ${boxSize}) / 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ── Native checkbox ──────────────────────────────────────────────── */
|
|
59
|
+
|
|
60
|
+
input[type="checkbox"] {
|
|
61
|
+
appearance: none;
|
|
62
|
+
-webkit-appearance: none;
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
margin: 0;
|
|
67
|
+
padding: 0;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
|
|
71
|
+
${getCheckboxBoxCss()}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input[type="checkbox"]:disabled {
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* ── Focus ring ───────────────────────────────────────────────────── */
|
|
79
|
+
|
|
80
|
+
${getFocusStyle('input[type="checkbox"]')}
|
|
81
|
+
|
|
82
|
+
/* ── Hover ────────────────────────────────────────────────────────── */
|
|
83
|
+
|
|
84
|
+
input[type="checkbox"]:hover:not(:disabled) {
|
|
85
|
+
border-color: var(--diwa-accent);
|
|
86
|
+
background-color: var(--diwa-bg-hover);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ── Checked state ────────────────────────────────────────────────── */
|
|
90
|
+
|
|
91
|
+
input[type="checkbox"]:checked {
|
|
92
|
+
background-color: var(--diwa-accent);
|
|
93
|
+
border-color: var(--diwa-accent);
|
|
94
|
+
background-image: ${checkmarkSvg};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
input[type="checkbox"]:checked:hover:not(:disabled) {
|
|
98
|
+
background-color: var(--diwa-accent-hover);
|
|
99
|
+
border-color: var(--diwa-accent-hover);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ── Indeterminate state ──────────────────────────────────────────── */
|
|
103
|
+
|
|
104
|
+
input[type="checkbox"]:indeterminate {
|
|
105
|
+
background-color: var(--diwa-accent);
|
|
106
|
+
border-color: var(--diwa-accent);
|
|
107
|
+
background-image: ${indeterminateSvg};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
input[type="checkbox"]:indeterminate:hover:not(:disabled) {
|
|
111
|
+
background-color: var(--diwa-accent-hover);
|
|
112
|
+
border-color: var(--diwa-accent-hover);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ── Validation states ────────────────────────────────────────────── */
|
|
116
|
+
|
|
117
|
+
:host([state="error"]) input[type="checkbox"]:not(:checked):not(:indeterminate) {
|
|
118
|
+
border-color: var(--diwa-notification-error);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([state="error"]) input[type="checkbox"]:not(:checked):not(:indeterminate):hover:not(:disabled) {
|
|
122
|
+
border-color: var(--diwa-notification-error);
|
|
123
|
+
background-color: var(--diwa-bg-hover);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([state="success"]) input[type="checkbox"]:not(:checked):not(:indeterminate) {
|
|
127
|
+
border-color: var(--diwa-notification-success);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([state="success"]) input[type="checkbox"]:not(:checked):not(:indeterminate):hover:not(:disabled) {
|
|
131
|
+
border-color: var(--diwa-notification-success);
|
|
132
|
+
background-color: var(--diwa-bg-hover);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* ── Disabled ─────────────────────────────────────────────────────── */
|
|
136
|
+
|
|
137
|
+
:host([disabled]) {
|
|
138
|
+
opacity: var(--diwa-opacity-disabled);
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* ── Label ────────────────────────────────────────────────────────── */
|
|
143
|
+
|
|
144
|
+
.label {
|
|
145
|
+
font-size: var(--diwa-font-size-base);
|
|
146
|
+
font-weight: var(--diwa-font-weight-regular);
|
|
147
|
+
line-height: 1.5;
|
|
148
|
+
color: var(--diwa-text-primary);
|
|
149
|
+
cursor: pointer;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([disabled]) .label {
|
|
153
|
+
cursor: not-allowed;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Visually-hidden label (still read by screen readers) */
|
|
157
|
+
.label--hidden {
|
|
158
|
+
border: 0;
|
|
159
|
+
clip: rect(0, 0, 0, 0);
|
|
160
|
+
height: 1px;
|
|
161
|
+
margin: -1px;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
padding: 0;
|
|
164
|
+
position: absolute;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
width: 1px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Required asterisk */
|
|
170
|
+
.required {
|
|
171
|
+
color: var(--diwa-notification-error);
|
|
172
|
+
margin-left: var(--diwa-space-0-5);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ── Message ──────────────────────────────────────────────────────── */
|
|
176
|
+
|
|
177
|
+
.message {
|
|
178
|
+
display: block;
|
|
179
|
+
font-size: var(--diwa-font-size-sm);
|
|
180
|
+
line-height: 1.4;
|
|
181
|
+
color: ${messageColor};
|
|
182
|
+
/* Indent to align under the label, not the checkbox */
|
|
183
|
+
padding-left: calc(${boxSize} + var(--diwa-space-3));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* ── Reduced motion ───────────────────────────────────────────────── */
|
|
187
|
+
|
|
188
|
+
${getReducedMotionStyle('input[type="checkbox"]')}
|
|
189
|
+
`;
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=diwa-checkbox-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diwa-checkbox-styles.js","sourceRoot":"","sources":["../../../src/components/diwa-checkbox/diwa-checkbox-styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE5E,uEAAuE;AACvE,MAAM,gBAAgB,GAAG,gLAAgL,CAAC;AAE1M,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAoB,EACpB,SAAkB,EAClB,OAAgB,EAChB,UAAmB,EACX,EAAE;IACV,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,YAAY,GAChB,KAAK,KAAK,OAAO;QACf,CAAC,CAAC,gCAAgC;QAClC,CAAC,CAAC,KAAK,KAAK,SAAS;YACnB,CAAC,CAAC,kCAAkC;YACpC,CAAC,CAAC,4BAA4B,CAAC;IAErC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAwCI,OAAO;cACN,OAAO;;gCAEW,OAAO;;;;;;;;;;;;;;;;MAgBjC,iBAAiB,EAAE;;;;;;;;;IASrB,aAAa,CAAC,wBAAwB,CAAC;;;;;;;;;;;;;;wBAcnB,YAAY;;;;;;;;;;;;;wBAaZ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA0E3B,YAAY;;yBAEA,OAAO;;;;;IAK5B,qBAAqB,CAAC,wBAAwB,CAAC;CAClD,CAAC;AACF,CAAC,CAAC","sourcesContent":["import type { CheckboxState } from './types';\r\nimport { getFocusStyle, getReducedMotionStyle } from '../../utils/styles';\r\nimport { checkmarkSvg, getCheckboxBoxCss } from '../../utils/checkbox-mark';\r\n\r\n/** White horizontal dash for indeterminate state on a 12×12 viewBox */\r\nconst indeterminateSvg = `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='2.5' y='5.25' width='7' height='1.5' rx='0.75' fill='white'/%3E%3C/svg%3E\")`;\r\n\r\nexport const getComponentCss = (\r\n state: CheckboxState,\r\n _disabled: boolean,\r\n compact: boolean,\r\n _hideLabel: boolean,\r\n): string => {\r\n const boxSize = compact ? '14px' : '20px';\r\n const messageColor =\r\n state === 'error'\r\n ? 'var(--diwa-notification-error)'\r\n : state === 'success'\r\n ? 'var(--diwa-notification-success)'\r\n : 'var(--diwa-text-secondary)';\r\n\r\n return `\r\n\r\n /* ── Host ─────────────────────────────────────────────────────────── */\r\n\r\n :host {\r\n display: inline-block;\r\n font-family: var(--diwa-font-family-base);\r\n outline: none;\r\n }\r\n\r\n :host([hidden]) {\r\n display: none;\r\n }\r\n\r\n /* ── Root layout ──────────────────────────────────────────────────── */\r\n\r\n .root {\r\n display: flex;\r\n flex-direction: column;\r\n gap: var(--diwa-space-1);\r\n }\r\n\r\n /* ── Wrapper: checkbox + label side by side ───────────────────────── */\r\n\r\n .wrapper {\r\n display: inline-flex;\r\n align-items: flex-start;\r\n gap: var(--diwa-space-3);\r\n cursor: pointer;\r\n }\r\n\r\n :host([disabled]) .wrapper {\r\n cursor: not-allowed;\r\n }\r\n\r\n /* ── Input container ──────────────────────────────────────────────── */\r\n\r\n .input-container {\r\n position: relative;\r\n flex-shrink: 0;\r\n width: ${boxSize};\r\n height: ${boxSize};\r\n /* Center the box on the first line of label text (line-height: 1.5) */\r\n margin-top: calc((1.5em - ${boxSize}) / 2);\r\n }\r\n\r\n /* ── Native checkbox ──────────────────────────────────────────────── */\r\n\r\n input[type=\"checkbox\"] {\r\n appearance: none;\r\n -webkit-appearance: none;\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n margin: 0;\r\n padding: 0;\r\n box-sizing: border-box;\r\n cursor: pointer;\r\n\r\n ${getCheckboxBoxCss()}\r\n }\r\n\r\n input[type=\"checkbox\"]:disabled {\r\n cursor: not-allowed;\r\n }\r\n\r\n /* ── Focus ring ───────────────────────────────────────────────────── */\r\n\r\n ${getFocusStyle('input[type=\"checkbox\"]')}\r\n\r\n /* ── Hover ────────────────────────────────────────────────────────── */\r\n\r\n input[type=\"checkbox\"]:hover:not(:disabled) {\r\n border-color: var(--diwa-accent);\r\n background-color: var(--diwa-bg-hover);\r\n }\r\n\r\n /* ── Checked state ────────────────────────────────────────────────── */\r\n\r\n input[type=\"checkbox\"]:checked {\r\n background-color: var(--diwa-accent);\r\n border-color: var(--diwa-accent);\r\n background-image: ${checkmarkSvg};\r\n }\r\n\r\n input[type=\"checkbox\"]:checked:hover:not(:disabled) {\r\n background-color: var(--diwa-accent-hover);\r\n border-color: var(--diwa-accent-hover);\r\n }\r\n\r\n /* ── Indeterminate state ──────────────────────────────────────────── */\r\n\r\n input[type=\"checkbox\"]:indeterminate {\r\n background-color: var(--diwa-accent);\r\n border-color: var(--diwa-accent);\r\n background-image: ${indeterminateSvg};\r\n }\r\n\r\n input[type=\"checkbox\"]:indeterminate:hover:not(:disabled) {\r\n background-color: var(--diwa-accent-hover);\r\n border-color: var(--diwa-accent-hover);\r\n }\r\n\r\n /* ── Validation states ────────────────────────────────────────────── */\r\n\r\n :host([state=\"error\"]) input[type=\"checkbox\"]:not(:checked):not(:indeterminate) {\r\n border-color: var(--diwa-notification-error);\r\n }\r\n\r\n :host([state=\"error\"]) input[type=\"checkbox\"]:not(:checked):not(:indeterminate):hover:not(:disabled) {\r\n border-color: var(--diwa-notification-error);\r\n background-color: var(--diwa-bg-hover);\r\n }\r\n\r\n :host([state=\"success\"]) input[type=\"checkbox\"]:not(:checked):not(:indeterminate) {\r\n border-color: var(--diwa-notification-success);\r\n }\r\n\r\n :host([state=\"success\"]) input[type=\"checkbox\"]:not(:checked):not(:indeterminate):hover:not(:disabled) {\r\n border-color: var(--diwa-notification-success);\r\n background-color: var(--diwa-bg-hover);\r\n }\r\n\r\n /* ── Disabled ─────────────────────────────────────────────────────── */\r\n\r\n :host([disabled]) {\r\n opacity: var(--diwa-opacity-disabled);\r\n pointer-events: none;\r\n }\r\n\r\n /* ── Label ────────────────────────────────────────────────────────── */\r\n\r\n .label {\r\n font-size: var(--diwa-font-size-base);\r\n font-weight: var(--diwa-font-weight-regular);\r\n line-height: 1.5;\r\n color: var(--diwa-text-primary);\r\n cursor: pointer;\r\n }\r\n\r\n :host([disabled]) .label {\r\n cursor: not-allowed;\r\n }\r\n\r\n /* Visually-hidden label (still read by screen readers) */\r\n .label--hidden {\r\n border: 0;\r\n clip: rect(0, 0, 0, 0);\r\n height: 1px;\r\n margin: -1px;\r\n overflow: hidden;\r\n padding: 0;\r\n position: absolute;\r\n white-space: nowrap;\r\n width: 1px;\r\n }\r\n\r\n /* Required asterisk */\r\n .required {\r\n color: var(--diwa-notification-error);\r\n margin-left: var(--diwa-space-0-5);\r\n }\r\n\r\n /* ── Message ──────────────────────────────────────────────────────── */\r\n\r\n .message {\r\n display: block;\r\n font-size: var(--diwa-font-size-sm);\r\n line-height: 1.4;\r\n color: ${messageColor};\r\n /* Indent to align under the label, not the checkbox */\r\n padding-left: calc(${boxSize} + var(--diwa-space-3));\r\n }\r\n\r\n /* ── Reduced motion ───────────────────────────────────────────────── */\r\n\r\n ${getReducedMotionStyle('input[type=\"checkbox\"]')}\r\n`;\r\n};\r\n"]}
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getComponentCss } from "./diwa-checkbox-styles";
|
|
3
|
+
/**
|
|
4
|
+
* @component diwa-checkbox
|
|
5
|
+
*
|
|
6
|
+
* A fully accessible checkbox control with label, validation state,
|
|
7
|
+
* and indeterminate support. Mirrors the PDS p-checkbox API.
|
|
8
|
+
*
|
|
9
|
+
* Semi-controlled: the `checked` prop is mutable — the component
|
|
10
|
+
* updates it internally AND emits an `update` event. The consumer can
|
|
11
|
+
* either listen to `update` to manage state externally, or use it
|
|
12
|
+
* standalone without any event wiring.
|
|
13
|
+
*
|
|
14
|
+
* Accessibility:
|
|
15
|
+
* - Native `<input type="checkbox">` inside Shadow DOM with delegatesFocus
|
|
16
|
+
* - `aria-checked="mixed"` set automatically when `indeterminate` is true
|
|
17
|
+
* - `aria-describedby` wires the message element when state is error/success
|
|
18
|
+
* - `role` is implicit from native input — no extra ARIA needed
|
|
19
|
+
*
|
|
20
|
+
* Usage:
|
|
21
|
+
* <diwa-checkbox label="Accept terms" checked={accepted}
|
|
22
|
+
* onupdate={e => setAccepted(e.detail.checked)} />
|
|
23
|
+
*
|
|
24
|
+
* Note (V1): The inner <input name> is inside Shadow DOM and is therefore
|
|
25
|
+
* not visible to ancestor <form> elements for native form submission.
|
|
26
|
+
* Use ElementInternals (V2) or submit via JavaScript instead.
|
|
27
|
+
*/
|
|
28
|
+
export class DiwaCheckbox {
|
|
29
|
+
constructor() {
|
|
30
|
+
// ──────────────────────────────────────────────────────────────
|
|
31
|
+
// Props
|
|
32
|
+
// ──────────────────────────────────────────────────────────────
|
|
33
|
+
/** Per-component theme override (`light` / `dark`). */
|
|
34
|
+
this.theme = 'dark';
|
|
35
|
+
/** Visible label text rendered next to the checkbox. */
|
|
36
|
+
this.label = '';
|
|
37
|
+
/** Native name attribute (identifies the field in JS / form data). */
|
|
38
|
+
this.name = '';
|
|
39
|
+
/** Value submitted/emitted when the checkbox is checked. */
|
|
40
|
+
this.value = 'on';
|
|
41
|
+
/**
|
|
42
|
+
* Whether the checkbox is checked.
|
|
43
|
+
*
|
|
44
|
+
* Semi-controlled: mutates internally on user interaction and
|
|
45
|
+
* also emits an `update` event so the consumer can sync their state.
|
|
46
|
+
*/
|
|
47
|
+
this.checked = false;
|
|
48
|
+
/**
|
|
49
|
+
* Indeterminate state — renders a dash icon and sets `aria-checked="mixed"`.
|
|
50
|
+
* Setting this to `true` takes visual precedence over `checked`.
|
|
51
|
+
* The consumer is responsible for clearing it once the user toggles.
|
|
52
|
+
*/
|
|
53
|
+
this.indeterminate = false;
|
|
54
|
+
/** Puts the checkbox in a disabled state. Blocks interaction. */
|
|
55
|
+
this.disabled = false;
|
|
56
|
+
/** Marks the field as required. Shows a visual asterisk in the label. */
|
|
57
|
+
this.required = false;
|
|
58
|
+
/** Validation state: `'none'` (default), `'error'`, or `'success'`. */
|
|
59
|
+
this.state = 'none';
|
|
60
|
+
/** Helper / validation message shown below the checkbox. Only shown when state ≠ 'none'. */
|
|
61
|
+
this.message = '';
|
|
62
|
+
/** Reduces the checkbox size from 20 px to 14 px for denser layouts. */
|
|
63
|
+
this.compact = false;
|
|
64
|
+
/** Hides the label visually while keeping it accessible to screen readers. */
|
|
65
|
+
this.hideLabel = false;
|
|
66
|
+
// ──────────────────────────────────────────────────────────────
|
|
67
|
+
// Private helpers
|
|
68
|
+
// ──────────────────────────────────────────────────────────────
|
|
69
|
+
this.handleChange = (e) => {
|
|
70
|
+
const input = e.target;
|
|
71
|
+
this.checked = input.checked;
|
|
72
|
+
// Clear indeterminate on user interaction (standard browser behaviour)
|
|
73
|
+
if (this.indeterminate) {
|
|
74
|
+
this.host.removeAttribute('indeterminate');
|
|
75
|
+
}
|
|
76
|
+
this.update.emit({
|
|
77
|
+
checked: this.checked,
|
|
78
|
+
name: this.name,
|
|
79
|
+
value: this.value,
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
this.setCheckboxRef = (el) => {
|
|
83
|
+
this.checkboxEl = el;
|
|
84
|
+
if (el) {
|
|
85
|
+
el.indeterminate = this.indeterminate;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
// ──────────────────────────────────────────────────────────────
|
|
90
|
+
// Watchers
|
|
91
|
+
// ──────────────────────────────────────────────────────────────
|
|
92
|
+
/** Keep the native input's non-reflected .indeterminate property in sync. */
|
|
93
|
+
watchIndeterminate(value) {
|
|
94
|
+
if (this.checkboxEl) {
|
|
95
|
+
this.checkboxEl.indeterminate = value;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
// ──────────────────────────────────────────────────────────────
|
|
99
|
+
// Render
|
|
100
|
+
// ──────────────────────────────────────────────────────────────
|
|
101
|
+
render() {
|
|
102
|
+
const msgId = 'diwa-checkbox-msg';
|
|
103
|
+
const hasMessage = !!this.message && this.state !== 'none';
|
|
104
|
+
return (h(Host, { key: 'b60ee4bf0dc2eaa0d694a0ac739c5566d454f79c', "data-theme": this.theme }, h("style", { key: 'fd963d515b5fdca037224b97390978de46f2270a', innerHTML: getComponentCss(this.state, this.disabled, this.compact, this.hideLabel) }), h("div", { key: '367d56a1bb842175a37e542645189dce17a6e39a', class: "root" }, h("div", { key: '3e4b983191a2b57f5bf577b0da0fcabf3d99fef1', class: "wrapper" }, h("div", { key: '152025c208c44d6cc5dafc4c552e8a66c07e4a82', class: "input-container" }, h("input", { key: 'cbf1fd983bf14caf6ee7c6e5d99ff00a6db84eee', type: "checkbox", id: "cb", checked: this.checked, disabled: this.disabled, required: this.required, name: this.name, value: this.value, "aria-checked": this.indeterminate ? 'mixed' : undefined, "aria-describedby": hasMessage ? msgId : undefined, onChange: this.handleChange, ref: this.setCheckboxRef })), this.label && (h("label", { key: '149d0d96a058be632bc631dce0acdf10061857be', class: `label${this.hideLabel ? ' label--hidden' : ''}`, htmlFor: "cb" }, this.label, this.required && (h("span", { key: 'd05c35490b0539a9d2f2967e32d5866a600a95d2', class: "required", "aria-hidden": "true" }, ' ', "*"))))), hasMessage && (h("span", { key: '3dd6021761ad98aaacacff336dab64b1d5d531dd', id: msgId, class: "message" }, this.message)))));
|
|
105
|
+
}
|
|
106
|
+
static get is() { return "diwa-checkbox"; }
|
|
107
|
+
static get encapsulation() { return "shadow"; }
|
|
108
|
+
static get delegatesFocus() { return true; }
|
|
109
|
+
static get properties() {
|
|
110
|
+
return {
|
|
111
|
+
"theme": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"mutable": false,
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "Theme",
|
|
116
|
+
"resolved": "\"dark\" | \"light\"",
|
|
117
|
+
"references": {
|
|
118
|
+
"Theme": {
|
|
119
|
+
"location": "import",
|
|
120
|
+
"path": "../../utils/styles",
|
|
121
|
+
"id": "src/utils/styles.ts::Theme"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Per-component theme override (`light` / `dark`)."
|
|
130
|
+
},
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
133
|
+
"attribute": "theme",
|
|
134
|
+
"reflect": true,
|
|
135
|
+
"defaultValue": "'dark'"
|
|
136
|
+
},
|
|
137
|
+
"label": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"mutable": false,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "string",
|
|
142
|
+
"resolved": "string",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Visible label text rendered next to the checkbox."
|
|
150
|
+
},
|
|
151
|
+
"getter": false,
|
|
152
|
+
"setter": false,
|
|
153
|
+
"attribute": "label",
|
|
154
|
+
"reflect": false,
|
|
155
|
+
"defaultValue": "''"
|
|
156
|
+
},
|
|
157
|
+
"name": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"mutable": false,
|
|
160
|
+
"complexType": {
|
|
161
|
+
"original": "string",
|
|
162
|
+
"resolved": "string",
|
|
163
|
+
"references": {}
|
|
164
|
+
},
|
|
165
|
+
"required": false,
|
|
166
|
+
"optional": false,
|
|
167
|
+
"docs": {
|
|
168
|
+
"tags": [],
|
|
169
|
+
"text": "Native name attribute (identifies the field in JS / form data)."
|
|
170
|
+
},
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
173
|
+
"attribute": "name",
|
|
174
|
+
"reflect": false,
|
|
175
|
+
"defaultValue": "''"
|
|
176
|
+
},
|
|
177
|
+
"value": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"mutable": false,
|
|
180
|
+
"complexType": {
|
|
181
|
+
"original": "string",
|
|
182
|
+
"resolved": "string",
|
|
183
|
+
"references": {}
|
|
184
|
+
},
|
|
185
|
+
"required": false,
|
|
186
|
+
"optional": false,
|
|
187
|
+
"docs": {
|
|
188
|
+
"tags": [],
|
|
189
|
+
"text": "Value submitted/emitted when the checkbox is checked."
|
|
190
|
+
},
|
|
191
|
+
"getter": false,
|
|
192
|
+
"setter": false,
|
|
193
|
+
"attribute": "value",
|
|
194
|
+
"reflect": false,
|
|
195
|
+
"defaultValue": "'on'"
|
|
196
|
+
},
|
|
197
|
+
"checked": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"mutable": true,
|
|
200
|
+
"complexType": {
|
|
201
|
+
"original": "boolean",
|
|
202
|
+
"resolved": "boolean",
|
|
203
|
+
"references": {}
|
|
204
|
+
},
|
|
205
|
+
"required": false,
|
|
206
|
+
"optional": false,
|
|
207
|
+
"docs": {
|
|
208
|
+
"tags": [],
|
|
209
|
+
"text": "Whether the checkbox is checked.\r\n\r\nSemi-controlled: mutates internally on user interaction and\r\nalso emits an `update` event so the consumer can sync their state."
|
|
210
|
+
},
|
|
211
|
+
"getter": false,
|
|
212
|
+
"setter": false,
|
|
213
|
+
"attribute": "checked",
|
|
214
|
+
"reflect": true,
|
|
215
|
+
"defaultValue": "false"
|
|
216
|
+
},
|
|
217
|
+
"indeterminate": {
|
|
218
|
+
"type": "boolean",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "boolean",
|
|
222
|
+
"resolved": "boolean",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Indeterminate state \u2014 renders a dash icon and sets `aria-checked=\"mixed\"`.\r\nSetting this to `true` takes visual precedence over `checked`.\r\nThe consumer is responsible for clearing it once the user toggles."
|
|
230
|
+
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
233
|
+
"attribute": "indeterminate",
|
|
234
|
+
"reflect": true,
|
|
235
|
+
"defaultValue": "false"
|
|
236
|
+
},
|
|
237
|
+
"disabled": {
|
|
238
|
+
"type": "boolean",
|
|
239
|
+
"mutable": false,
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "boolean",
|
|
242
|
+
"resolved": "boolean",
|
|
243
|
+
"references": {}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": false,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": "Puts the checkbox in a disabled state. Blocks interaction."
|
|
250
|
+
},
|
|
251
|
+
"getter": false,
|
|
252
|
+
"setter": false,
|
|
253
|
+
"attribute": "disabled",
|
|
254
|
+
"reflect": true,
|
|
255
|
+
"defaultValue": "false"
|
|
256
|
+
},
|
|
257
|
+
"required": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Marks the field as required. Shows a visual asterisk in the label."
|
|
270
|
+
},
|
|
271
|
+
"getter": false,
|
|
272
|
+
"setter": false,
|
|
273
|
+
"attribute": "required",
|
|
274
|
+
"reflect": false,
|
|
275
|
+
"defaultValue": "false"
|
|
276
|
+
},
|
|
277
|
+
"state": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "CheckboxState",
|
|
282
|
+
"resolved": "\"error\" | \"none\" | \"success\"",
|
|
283
|
+
"references": {
|
|
284
|
+
"CheckboxState": {
|
|
285
|
+
"location": "import",
|
|
286
|
+
"path": "./types",
|
|
287
|
+
"id": "src/components/diwa-checkbox/types.ts::CheckboxState"
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": "Validation state: `'none'` (default), `'error'`, or `'success'`."
|
|
296
|
+
},
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false,
|
|
299
|
+
"attribute": "state",
|
|
300
|
+
"reflect": true,
|
|
301
|
+
"defaultValue": "'none'"
|
|
302
|
+
},
|
|
303
|
+
"message": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"mutable": false,
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "string",
|
|
308
|
+
"resolved": "string",
|
|
309
|
+
"references": {}
|
|
310
|
+
},
|
|
311
|
+
"required": false,
|
|
312
|
+
"optional": false,
|
|
313
|
+
"docs": {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": "Helper / validation message shown below the checkbox. Only shown when state \u2260 'none'."
|
|
316
|
+
},
|
|
317
|
+
"getter": false,
|
|
318
|
+
"setter": false,
|
|
319
|
+
"attribute": "message",
|
|
320
|
+
"reflect": false,
|
|
321
|
+
"defaultValue": "''"
|
|
322
|
+
},
|
|
323
|
+
"compact": {
|
|
324
|
+
"type": "boolean",
|
|
325
|
+
"mutable": false,
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "boolean",
|
|
328
|
+
"resolved": "boolean",
|
|
329
|
+
"references": {}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": "Reduces the checkbox size from 20 px to 14 px for denser layouts."
|
|
336
|
+
},
|
|
337
|
+
"getter": false,
|
|
338
|
+
"setter": false,
|
|
339
|
+
"attribute": "compact",
|
|
340
|
+
"reflect": true,
|
|
341
|
+
"defaultValue": "false"
|
|
342
|
+
},
|
|
343
|
+
"hideLabel": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "boolean",
|
|
348
|
+
"resolved": "boolean",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Hides the label visually while keeping it accessible to screen readers."
|
|
356
|
+
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
359
|
+
"attribute": "hide-label",
|
|
360
|
+
"reflect": true,
|
|
361
|
+
"defaultValue": "false"
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
static get events() {
|
|
366
|
+
return [{
|
|
367
|
+
"method": "update",
|
|
368
|
+
"name": "update",
|
|
369
|
+
"bubbles": false,
|
|
370
|
+
"cancelable": true,
|
|
371
|
+
"composed": false,
|
|
372
|
+
"docs": {
|
|
373
|
+
"tags": [],
|
|
374
|
+
"text": "Emitted when the user toggles the checkbox.\r\n`event.detail.checked` is the new checked state.\r\n\r\nReact consumers: use the lowercase `onupdate` prop:\r\n```jsx\r\n<diwa-checkbox onupdate={e => setChecked(e.detail.checked)} />\r\n```"
|
|
375
|
+
},
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "{ checked: boolean; name: string; value: string }",
|
|
378
|
+
"resolved": "{ checked: boolean; name: string; value: string; }",
|
|
379
|
+
"references": {}
|
|
380
|
+
}
|
|
381
|
+
}];
|
|
382
|
+
}
|
|
383
|
+
static get elementRef() { return "host"; }
|
|
384
|
+
static get watchers() {
|
|
385
|
+
return [{
|
|
386
|
+
"propName": "indeterminate",
|
|
387
|
+
"methodName": "watchIndeterminate"
|
|
388
|
+
}];
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
//# sourceMappingURL=diwa-checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diwa-checkbox.js","sourceRoot":"","sources":["../../../src/components/diwa-checkbox/diwa-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAqB,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAGnG,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,MAAM,OAAO,YAAY;IAJzB;QAOE,iEAAiE;QACjE,QAAQ;QACR,iEAAiE;QAEjE,uDAAuD;QAC9B,UAAK,GAAU,MAAM,CAAC;QAE/C,wDAAwD;QAChD,UAAK,GAAW,EAAE,CAAC;QAE3B,sEAAsE;QAC9D,SAAI,GAAW,EAAE,CAAC;QAE1B,4DAA4D;QACpD,UAAK,GAAW,IAAI,CAAC;QAE7B;;;;;WAKG;QACqC,YAAO,GAAY,KAAK,CAAC;QAEjE;;;;WAIG;QACsB,kBAAa,GAAY,KAAK,CAAC;QAExD,iEAAiE;QACxC,aAAQ,GAAY,KAAK,CAAC;QAEnD,yEAAyE;QACjE,aAAQ,GAAY,KAAK,CAAC;QAElC,uEAAuE;QAC9C,UAAK,GAAkB,MAAM,CAAC;QAEvD,4FAA4F;QACpF,YAAO,GAAW,EAAE,CAAC;QAE7B,wEAAwE;QAC/C,YAAO,GAAY,KAAK,CAAC;QAElD,8EAA8E;QAC5B,cAAS,GAAY,KAAK,CAAC;QAoC7E,iEAAiE;QACjE,kBAAkB;QAClB,iEAAiE;QAEzD,iBAAY,GAAG,CAAC,CAAQ,EAAQ,EAAE;YACxC,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC7B,uEAAuE;YACvE,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBACvB,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;YAC7C,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;gBACf,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC,CAAC;QAEM,mBAAc,GAAG,CAAC,EAAqB,EAAQ,EAAE;YACvD,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;YACrB,IAAI,EAAE,EAAE,CAAC;gBACP,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;YACxC,CAAC;QACH,CAAC,CAAC;KA+DH;IAlGC,iEAAiE;IACjE,WAAW;IACX,iEAAiE;IAEjE,6EAA6E;IAE7E,kBAAkB,CAAC,KAAc;QAC/B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,KAAK,CAAC;QACxC,CAAC;IACH,CAAC;IA2BD,iEAAiE;IACjE,SAAS;IACT,iEAAiE;IAEjE,MAAM;QACJ,MAAM,KAAK,GAAG,mBAAmB,CAAC;QAClC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAE3D,OAAO,CACL,EAAC,IAAI,mEAAa,IAAI,CAAC,KAAK;YAC1B,8DACE,SAAS,EAAE,eAAe,CACxB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,SAAS,CACf,GACD;YAEF,4DAAK,KAAK,EAAC,MAAM;gBACf,4DAAK,KAAK,EAAC,SAAS;oBAClB,4DAAK,KAAK,EAAC,iBAAiB;wBAC1B,8DACE,IAAI,EAAC,UAAU,EACf,EAAE,EAAC,IAAI,EACP,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,kBACH,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,sBACpC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAChD,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,GAAG,EAAE,IAAI,CAAC,cAAc,GACxB,CACE;oBAEL,IAAI,CAAC,KAAK,IAAI,CACb,8DACE,KAAK,EAAE,QAAQ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,EACvD,OAAO,EAAC,IAAI;wBAEX,IAAI,CAAC,KAAK;wBACV,IAAI,CAAC,QAAQ,IAAI,CAChB,6DAAM,KAAK,EAAC,UAAU,iBAAa,MAAM;4BACtC,GAAG;gCACC,CACR,CACK,CACT,CACG;gBAEL,UAAU,IAAI,CACb,6DAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAC,SAAS,IAC7B,IAAI,CAAC,OAAO,CACR,CACR,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, type EventEmitter, Host, Prop, Watch, h } from '@stencil/core';\r\nimport type { CheckboxState } from './types';\r\nimport type { Theme } from '../../utils/styles';\r\nimport { getComponentCss } from './diwa-checkbox-styles';\r\n\r\n/**\r\n * @component diwa-checkbox\r\n *\r\n * A fully accessible checkbox control with label, validation state,\r\n * and indeterminate support. Mirrors the PDS p-checkbox API.\r\n *\r\n * Semi-controlled: the `checked` prop is mutable — the component\r\n * updates it internally AND emits an `update` event. The consumer can\r\n * either listen to `update` to manage state externally, or use it\r\n * standalone without any event wiring.\r\n *\r\n * Accessibility:\r\n * - Native `<input type=\"checkbox\">` inside Shadow DOM with delegatesFocus\r\n * - `aria-checked=\"mixed\"` set automatically when `indeterminate` is true\r\n * - `aria-describedby` wires the message element when state is error/success\r\n * - `role` is implicit from native input — no extra ARIA needed\r\n *\r\n * Usage:\r\n * <diwa-checkbox label=\"Accept terms\" checked={accepted}\r\n * onupdate={e => setAccepted(e.detail.checked)} />\r\n *\r\n * Note (V1): The inner <input name> is inside Shadow DOM and is therefore\r\n * not visible to ancestor <form> elements for native form submission.\r\n * Use ElementInternals (V2) or submit via JavaScript instead.\r\n */\r\n@Component({\r\n tag: 'diwa-checkbox',\r\n shadow: { delegatesFocus: true },\r\n})\r\nexport class DiwaCheckbox {\r\n @Element() host!: HTMLDiwaCheckboxElement;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Props\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /** Per-component theme override (`light` / `dark`). */\r\n @Prop({ reflect: true }) theme: Theme = 'dark';\r\n\r\n /** Visible label text rendered next to the checkbox. */\r\n @Prop() label: string = '';\r\n\r\n /** Native name attribute (identifies the field in JS / form data). */\r\n @Prop() name: string = '';\r\n\r\n /** Value submitted/emitted when the checkbox is checked. */\r\n @Prop() value: string = 'on';\r\n\r\n /**\r\n * Whether the checkbox is checked.\r\n *\r\n * Semi-controlled: mutates internally on user interaction and\r\n * also emits an `update` event so the consumer can sync their state.\r\n */\r\n @Prop({ mutable: true, reflect: true }) checked: boolean = false;\r\n\r\n /**\r\n * Indeterminate state — renders a dash icon and sets `aria-checked=\"mixed\"`.\r\n * Setting this to `true` takes visual precedence over `checked`.\r\n * The consumer is responsible for clearing it once the user toggles.\r\n */\r\n @Prop({ reflect: true }) indeterminate: boolean = false;\r\n\r\n /** Puts the checkbox in a disabled state. Blocks interaction. */\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n\r\n /** Marks the field as required. Shows a visual asterisk in the label. */\r\n @Prop() required: boolean = false;\r\n\r\n /** Validation state: `'none'` (default), `'error'`, or `'success'`. */\r\n @Prop({ reflect: true }) state: CheckboxState = 'none';\r\n\r\n /** Helper / validation message shown below the checkbox. Only shown when state ≠ 'none'. */\r\n @Prop() message: string = '';\r\n\r\n /** Reduces the checkbox size from 20 px to 14 px for denser layouts. */\r\n @Prop({ reflect: true }) compact: boolean = false;\r\n\r\n /** Hides the label visually while keeping it accessible to screen readers. */\r\n @Prop({ reflect: true, attribute: 'hide-label' }) hideLabel: boolean = false;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Events\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /**\r\n * Emitted when the user toggles the checkbox.\r\n * `event.detail.checked` is the new checked state.\r\n *\r\n * React consumers: use the lowercase `onupdate` prop:\r\n * ```jsx\r\n * <diwa-checkbox onupdate={e => setChecked(e.detail.checked)} />\r\n * ```\r\n */\r\n @Event({ bubbles: false, composed: false })\r\n update!: EventEmitter<{ checked: boolean; name: string; value: string }>;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Private state\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n private checkboxEl?: HTMLInputElement;\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Watchers\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n /** Keep the native input's non-reflected .indeterminate property in sync. */\r\n @Watch('indeterminate')\r\n watchIndeterminate(value: boolean) {\r\n if (this.checkboxEl) {\r\n this.checkboxEl.indeterminate = value;\r\n }\r\n }\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Private helpers\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n private handleChange = (e: Event): void => {\r\n const input = e.target as HTMLInputElement;\r\n this.checked = input.checked;\r\n // Clear indeterminate on user interaction (standard browser behaviour)\r\n if (this.indeterminate) {\r\n this.host.removeAttribute('indeterminate');\r\n }\r\n this.update.emit({\r\n checked: this.checked,\r\n name: this.name,\r\n value: this.value,\r\n });\r\n };\r\n\r\n private setCheckboxRef = (el?: HTMLInputElement): void => {\r\n this.checkboxEl = el;\r\n if (el) {\r\n el.indeterminate = this.indeterminate;\r\n }\r\n };\r\n\r\n // ──────────────────────────────────────────────────────────────\r\n // Render\r\n // ──────────────────────────────────────────────────────────────\r\n\r\n render() {\r\n const msgId = 'diwa-checkbox-msg';\r\n const hasMessage = !!this.message && this.state !== 'none';\r\n\r\n return (\r\n <Host data-theme={this.theme}>\r\n <style\r\n innerHTML={getComponentCss(\r\n this.state,\r\n this.disabled,\r\n this.compact,\r\n this.hideLabel,\r\n )}\r\n />\r\n\r\n <div class=\"root\">\r\n <div class=\"wrapper\">\r\n <div class=\"input-container\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"cb\"\r\n checked={this.checked}\r\n disabled={this.disabled}\r\n required={this.required}\r\n name={this.name}\r\n value={this.value}\r\n aria-checked={this.indeterminate ? 'mixed' : undefined}\r\n aria-describedby={hasMessage ? msgId : undefined}\r\n onChange={this.handleChange}\r\n ref={this.setCheckboxRef}\r\n />\r\n </div>\r\n\r\n {this.label && (\r\n <label\r\n class={`label${this.hideLabel ? ' label--hidden' : ''}`}\r\n htmlFor=\"cb\"\r\n >\r\n {this.label}\r\n {this.required && (\r\n <span class=\"required\" aria-hidden=\"true\">\r\n {' '}*\r\n </span>\r\n )}\r\n </label>\r\n )}\r\n </div>\r\n\r\n {hasMessage && (\r\n <span id={msgId} class=\"message\">\r\n {this.message}\r\n </span>\r\n )}\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/diwa-checkbox/types.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\r\n * diwa-checkbox — Public TypeScript types\r\n */\r\n\r\nexport type CheckboxState = 'none' | 'error' | 'success';\r\n"]}
|