@devschile/chucao 2.3.0 → 2.5.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 +17 -16
- package/dist/chucao/chucao.css +1 -1
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/index.esm.js +1 -1
- package/dist/chucao/index.esm.js.map +1 -1
- package/dist/chucao/p-0bc141a2.entry.js +2 -0
- package/dist/chucao/p-0bc141a2.entry.js.map +1 -0
- package/dist/chucao/p-0e044eff.entry.js +2 -0
- package/dist/chucao/p-0e044eff.entry.js.map +1 -0
- package/dist/chucao/{p-ff5f5c1f.entry.js → p-1108062e.entry.js} +2 -2
- package/dist/chucao/p-26e144ff.entry.js +2 -0
- package/dist/chucao/p-26e144ff.entry.js.map +1 -0
- package/dist/chucao/p-2c681cc0.entry.js +2 -0
- package/dist/chucao/p-2c681cc0.entry.js.map +1 -0
- package/dist/chucao/p-2e785177.entry.js +2 -0
- package/dist/chucao/p-2e785177.entry.js.map +1 -0
- package/dist/chucao/{p-04dbcfa0.entry.js → p-337d7f68.entry.js} +2 -2
- package/dist/chucao/p-350f974d.entry.js +2 -0
- package/dist/chucao/p-350f974d.entry.js.map +1 -0
- package/dist/chucao/p-4846cac4.entry.js +2 -0
- package/dist/chucao/p-6345c9e1.entry.js +2 -0
- package/dist/chucao/p-6345c9e1.entry.js.map +1 -0
- package/dist/chucao/p-957acf39.entry.js +2 -0
- package/dist/chucao/p-957acf39.entry.js.map +1 -0
- package/dist/chucao/p-97655c41.entry.js +2 -0
- package/dist/chucao/p-97655c41.entry.js.map +1 -0
- package/dist/chucao/{p-6a4bc80c.entry.js → p-9f73855e.entry.js} +2 -2
- package/dist/chucao/p-BXzZsX2r.js +2 -0
- package/dist/chucao/p-BXzZsX2r.js.map +1 -0
- package/dist/chucao/p-CIV5Gg1o.js +3 -0
- package/dist/chucao/p-CIV5Gg1o.js.map +1 -0
- package/dist/chucao/p-CnivhwvG.js +2 -0
- package/dist/chucao/p-CnivhwvG.js.map +1 -0
- package/dist/chucao/p-b53d954e.entry.js +2 -0
- package/dist/chucao/p-b53d954e.entry.js.map +1 -0
- package/dist/chucao/{p-c986036f.entry.js → p-b6cc08f0.entry.js} +2 -2
- package/dist/chucao/p-be7b5c21.entry.js +2 -0
- package/dist/chucao/p-be7b5c21.entry.js.map +1 -0
- package/dist/chucao/p-c165f839.entry.js +2 -0
- package/dist/chucao/p-c165f839.entry.js.map +1 -0
- package/dist/chucao/p-c251b0d1.entry.js +2 -0
- package/dist/chucao/p-c251b0d1.entry.js.map +1 -0
- package/dist/chucao/p-f5b74bca.entry.js +2 -0
- package/dist/chucao/p-f5b74bca.entry.js.map +1 -0
- package/dist/chucao/p-f9fe752c.entry.js +2 -0
- package/dist/chucao/p-f9fe752c.entry.js.map +1 -0
- package/dist/chucao/p-fdf065e6.entry.js +2 -0
- package/dist/chucao/p-fdf065e6.entry.js.map +1 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +69 -38
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +9 -11
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-cluster.cjs.entry.js +47 -0
- package/dist/cjs/ch-cluster.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-divider.cjs.entry.js +2 -2
- package/dist/cjs/ch-drawer.cjs.entry.js +4 -3
- package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
- package/dist/cjs/ch-empty-state.cjs.entry.js +34 -0
- package/dist/cjs/ch-empty-state.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-grid.cjs.entry.js +59 -0
- package/dist/cjs/ch-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-icon-button.cjs.entry.js +51 -0
- package/dist/cjs/ch-icon-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-icon.cjs.entry.js +38 -0
- package/dist/cjs/ch-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +4 -3
- package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-page-header.cjs.entry.js +45 -0
- package/dist/cjs/ch-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +9 -11
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-segmented-control.cjs.entry.js +8 -7
- package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-skeleton.cjs.entry.js +58 -0
- package/dist/cjs/ch-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-stack.cjs.entry.js +37 -0
- package/dist/cjs/ch-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +9 -11
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +204 -5
- package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/icons-CNyDgV-q.js +88 -0
- package/dist/cjs/icons-CNyDgV-q.js.map +1 -0
- package/dist/cjs/{index-C9cpLteP.js → index-ByZY6aTj.js} +119 -16
- package/dist/cjs/index-ByZY6aTj.js.map +1 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/validation-message-bbtJ2sa_.js +26 -0
- package/dist/cjs/validation-message-bbtJ2sa_.js.map +1 -0
- package/dist/collection/collection-manifest.json +9 -1
- package/dist/collection/components/ch-alert/ch-alert.css +13 -0
- package/dist/collection/components/ch-alert/ch-alert.js +44 -1
- package/dist/collection/components/ch-alert/ch-alert.js.map +1 -1
- package/dist/collection/components/ch-badge/ch-badge.css +30 -1
- package/dist/collection/components/ch-badge/ch-badge.js +35 -1
- package/dist/collection/components/ch-badge/ch-badge.js.map +1 -1
- package/dist/collection/components/ch-button/ch-button.js +9 -2
- package/dist/collection/components/ch-button/ch-button.js.map +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +8 -10
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
- package/dist/collection/components/ch-cluster/ch-cluster.css +93 -0
- package/dist/collection/components/ch-cluster/ch-cluster.js +152 -0
- package/dist/collection/components/ch-cluster/ch-cluster.js.map +1 -0
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-drawer/ch-drawer.js +9 -3
- package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
- package/dist/collection/components/ch-empty-state/ch-empty-state.css +67 -0
- package/dist/collection/components/ch-empty-state/ch-empty-state.js +108 -0
- package/dist/collection/components/ch-empty-state/ch-empty-state.js.map +1 -0
- package/dist/collection/components/ch-grid/ch-grid.css +47 -0
- package/dist/collection/components/ch-grid/ch-grid.js +137 -0
- package/dist/collection/components/ch-grid/ch-grid.js.map +1 -0
- package/dist/collection/components/ch-icon/ch-icon.css +25 -0
- package/dist/collection/components/ch-icon/ch-icon.js +121 -0
- package/dist/collection/components/ch-icon/ch-icon.js.map +1 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.css +99 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.js +216 -0
- package/dist/collection/components/ch-icon-button/ch-icon-button.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.js +8 -10
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +9 -3
- package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
- package/dist/collection/components/ch-page-header/ch-page-header.css +84 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js +162 -0
- package/dist/collection/components/ch-page-header/ch-page-header.js.map +1 -0
- package/dist/collection/components/ch-radio/ch-radio.js +8 -10
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +7 -6
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -1
- package/dist/collection/components/ch-select/ch-select.js +8 -10
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-skeleton/ch-skeleton.css +50 -0
- package/dist/collection/components/ch-skeleton/ch-skeleton.js +175 -0
- package/dist/collection/components/ch-skeleton/ch-skeleton.js.map +1 -0
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-stack/ch-stack.css +83 -0
- package/dist/collection/components/ch-stack/ch-stack.js +124 -0
- package/dist/collection/components/ch-stack/ch-stack.js.map +1 -0
- package/dist/collection/components/ch-switch/ch-switch.js +8 -10
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +8 -10
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.css +29 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +125 -6
- package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
- package/dist/collection/tokens/tokens.js +12 -0
- package/dist/collection/tokens/tokens.js.map +1 -1
- package/dist/collection/tokens/types.js.map +1 -1
- package/dist/collection/utils/accessibility.js +24 -0
- package/dist/collection/utils/accessibility.js.map +1 -0
- package/dist/collection/utils/icons.js +82 -0
- package/dist/collection/utils/icons.js.map +1 -0
- package/dist/collection/utils/overlay.js +101 -0
- package/dist/collection/utils/overlay.js.map +1 -0
- package/dist/collection/utils/validation-message.js +20 -0
- package/dist/collection/utils/validation-message.js.map +1 -0
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-alert.js.map +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-badge.js.map +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-button.js.map +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-checkbox.js.map +1 -1
- package/dist/components/ch-cluster.d.ts +11 -0
- package/dist/components/ch-cluster.js +2 -0
- package/dist/components/ch-cluster.js.map +1 -0
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-drawer.js +1 -1
- package/dist/components/ch-drawer.js.map +1 -1
- package/dist/components/ch-emoji.js +1 -1
- package/dist/components/ch-empty-state.d.ts +11 -0
- package/dist/components/ch-empty-state.js +2 -0
- package/dist/components/ch-empty-state.js.map +1 -0
- package/dist/components/ch-grid.d.ts +11 -0
- package/dist/components/ch-grid.js +2 -0
- package/dist/components/ch-grid.js.map +1 -0
- package/dist/components/ch-icon-button.d.ts +11 -0
- package/dist/components/ch-icon-button.js +2 -0
- package/dist/components/ch-icon-button.js.map +1 -0
- package/dist/components/ch-icon.d.ts +11 -0
- package/dist/components/ch-icon.js +2 -0
- package/dist/components/ch-icon.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-modal.js.map +1 -1
- package/dist/components/ch-page-header.d.ts +11 -0
- package/dist/components/ch-page-header.js +2 -0
- package/dist/components/ch-page-header.js.map +1 -0
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-radio.js.map +1 -1
- package/dist/components/ch-segmented-control.js +1 -1
- package/dist/components/ch-segmented-control.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-skeleton.d.ts +11 -0
- package/dist/components/ch-skeleton.js +2 -0
- package/dist/components/ch-skeleton.js.map +1 -0
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-stack.d.ts +11 -0
- package/dist/components/ch-stack.js +2 -0
- package/dist/components/ch-stack.js.map +1 -0
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-textarea.js.map +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/ch-tooltip.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-BXzZsX2r.js +2 -0
- package/dist/components/p-BXzZsX2r.js.map +1 -0
- package/dist/components/{p-C1995t1C.js → p-CV0rD-fF.js} +2 -2
- package/dist/components/p-CnivhwvG.js +2 -0
- package/dist/components/p-CnivhwvG.js.map +1 -0
- package/dist/components/p-qP_9qshx.js +2 -0
- package/dist/components/p-qP_9qshx.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +69 -38
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +9 -11
- package/dist/esm/ch-checkbox.entry.js.map +1 -1
- package/dist/esm/ch-cluster.entry.js +45 -0
- package/dist/esm/ch-cluster.entry.js.map +1 -0
- package/dist/esm/ch-divider.entry.js +2 -2
- package/dist/esm/ch-drawer.entry.js +4 -3
- package/dist/esm/ch-drawer.entry.js.map +1 -1
- package/dist/esm/ch-emoji.entry.js +2 -2
- package/dist/esm/ch-empty-state.entry.js +32 -0
- package/dist/esm/ch-empty-state.entry.js.map +1 -0
- package/dist/esm/ch-grid.entry.js +57 -0
- package/dist/esm/ch-grid.entry.js.map +1 -0
- package/dist/esm/ch-icon-button.entry.js +49 -0
- package/dist/esm/ch-icon-button.entry.js.map +1 -0
- package/dist/esm/ch-icon.entry.js +36 -0
- package/dist/esm/ch-icon.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +4 -3
- package/dist/esm/ch-modal.entry.js.map +1 -1
- package/dist/esm/ch-page-header.entry.js +43 -0
- package/dist/esm/ch-page-header.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +9 -11
- package/dist/esm/ch-radio.entry.js.map +1 -1
- package/dist/esm/ch-segmented-control.entry.js +8 -7
- package/dist/esm/ch-segmented-control.entry.js.map +1 -1
- package/dist/esm/ch-skeleton.entry.js +56 -0
- package/dist/esm/ch-skeleton.entry.js.map +1 -0
- package/dist/esm/ch-stack.entry.js +35 -0
- package/dist/esm/ch-stack.entry.js.map +1 -0
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +9 -11
- package/dist/esm/ch-textarea.entry.js.map +1 -1
- package/dist/esm/ch-tooltip.entry.js +204 -5
- package/dist/esm/ch-tooltip.entry.js.map +1 -1
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/icons-CnivhwvG.js +86 -0
- package/dist/esm/icons-CnivhwvG.js.map +1 -0
- package/dist/esm/{index-DWC12BJ-.js → index-CIV5Gg1o.js} +119 -17
- package/dist/esm/index-CIV5Gg1o.js.map +1 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/validation-message-BXzZsX2r.js +24 -0
- package/dist/esm/validation-message-BXzZsX2r.js.map +1 -0
- package/dist/types/components/ch-alert/ch-alert.d.ts +11 -0
- package/dist/types/components/ch-badge/ch-badge.d.ts +14 -0
- package/dist/types/components/ch-button/ch-button.d.ts +3 -1
- package/dist/types/components/ch-cluster/ch-cluster.d.ts +28 -0
- package/dist/types/components/ch-drawer/ch-drawer.d.ts +2 -1
- package/dist/types/components/ch-empty-state/ch-empty-state.d.ts +25 -0
- package/dist/types/components/ch-grid/ch-grid.d.ts +38 -0
- package/dist/types/components/ch-icon/ch-icon.d.ts +29 -0
- package/dist/types/components/ch-icon-button/ch-icon-button.d.ts +36 -0
- package/dist/types/components/ch-modal/ch-modal.d.ts +2 -1
- package/dist/types/components/ch-page-header/ch-page-header.d.ts +39 -0
- package/dist/types/components/ch-skeleton/ch-skeleton.d.ts +39 -0
- package/dist/types/components/ch-stack/ch-stack.d.ts +26 -0
- package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +32 -2
- package/dist/types/components.d.ts +807 -8
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/tokens/tokens.d.ts +12 -0
- package/dist/types/tokens/types.d.ts +2 -1
- package/dist/types/utils/accessibility.d.ts +2 -0
- package/dist/types/utils/icons.d.ts +15 -0
- package/dist/types/utils/overlay.d.ts +49 -0
- package/dist/types/utils/validation-message.d.ts +20 -0
- package/dist-react/components.d.ts +27 -1
- package/dist-react/components.js +72 -0
- package/dist-react/components.ts +97 -1
- package/dist-vue/index.d.ts +8 -0
- package/dist-vue/index.js +62 -1
- package/dist-vue/index.ts +78 -1
- package/hydrate/index.js +1114 -132
- package/hydrate/index.mjs +1114 -132
- package/package.json +112 -5
- package/dist/chucao/p-37e7f9cc.entry.js +0 -2
- package/dist/chucao/p-37e7f9cc.entry.js.map +0 -1
- package/dist/chucao/p-3db38c49.entry.js +0 -2
- package/dist/chucao/p-3db38c49.entry.js.map +0 -1
- package/dist/chucao/p-60c2fd71.entry.js +0 -2
- package/dist/chucao/p-60c2fd71.entry.js.map +0 -1
- package/dist/chucao/p-6c617158.entry.js +0 -2
- package/dist/chucao/p-6c617158.entry.js.map +0 -1
- package/dist/chucao/p-DWC12BJ-.js +0 -3
- package/dist/chucao/p-DWC12BJ-.js.map +0 -1
- package/dist/chucao/p-aeea9cbe.entry.js +0 -2
- package/dist/chucao/p-aeea9cbe.entry.js.map +0 -1
- package/dist/chucao/p-bb2445d1.entry.js +0 -2
- package/dist/chucao/p-c4806e96.entry.js +0 -2
- package/dist/chucao/p-c4806e96.entry.js.map +0 -1
- package/dist/chucao/p-e3265e38.entry.js +0 -2
- package/dist/chucao/p-e3265e38.entry.js.map +0 -1
- package/dist/chucao/p-f78f0163.entry.js +0 -2
- package/dist/chucao/p-f78f0163.entry.js.map +0 -1
- package/dist/cjs/index-C9cpLteP.js.map +0 -1
- package/dist/components/p-BhAZrOxf.js +0 -2
- package/dist/components/p-BhAZrOxf.js.map +0 -1
- package/dist/esm/index-DWC12BJ-.js.map +0 -1
- /package/dist/chucao/{p-ff5f5c1f.entry.js.map → p-1108062e.entry.js.map} +0 -0
- /package/dist/chucao/{p-04dbcfa0.entry.js.map → p-337d7f68.entry.js.map} +0 -0
- /package/dist/chucao/{p-bb2445d1.entry.js.map → p-4846cac4.entry.js.map} +0 -0
- /package/dist/chucao/{p-6a4bc80c.entry.js.map → p-9f73855e.entry.js.map} +0 -0
- /package/dist/chucao/{p-c986036f.entry.js.map → p-b6cc08f0.entry.js.map} +0 -0
- /package/dist/components/{p-C1995t1C.js.map → p-CV0rD-fF.js.map} +0 -0
|
@@ -9,30 +9,48 @@ import { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
|
9
9
|
import { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
10
10
|
import { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
11
11
|
import { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
|
|
12
|
+
import { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
12
13
|
import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
13
14
|
import { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
14
15
|
import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
16
|
+
import { ChEmptyStateSize } from "./components/ch-empty-state/ch-empty-state";
|
|
17
|
+
import { ChGridGap } from "./components/ch-grid/ch-grid";
|
|
18
|
+
import { ChIconName } from "./utils/icons";
|
|
19
|
+
import { ChIconSize } from "./components/ch-icon/ch-icon";
|
|
20
|
+
import { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
|
|
15
21
|
import { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
16
22
|
import { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
23
|
+
import { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
|
|
17
24
|
import { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
18
25
|
import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
19
26
|
import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
27
|
+
import { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
20
28
|
import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
29
|
+
import { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
21
30
|
import { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
22
31
|
import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
23
32
|
export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
24
33
|
export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
25
34
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
26
35
|
export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
|
|
36
|
+
export { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
27
37
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
28
38
|
export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
29
39
|
export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
40
|
+
export { ChEmptyStateSize } from "./components/ch-empty-state/ch-empty-state";
|
|
41
|
+
export { ChGridGap } from "./components/ch-grid/ch-grid";
|
|
42
|
+
export { ChIconName } from "./utils/icons";
|
|
43
|
+
export { ChIconSize } from "./components/ch-icon/ch-icon";
|
|
44
|
+
export { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
|
|
30
45
|
export { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
31
46
|
export { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
47
|
+
export { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
|
|
32
48
|
export { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
33
49
|
export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
34
50
|
export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
51
|
+
export { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
35
52
|
export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
53
|
+
export { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
36
54
|
export { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
37
55
|
export { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
38
56
|
export namespace Components {
|
|
@@ -54,19 +72,40 @@ export namespace Components {
|
|
|
54
72
|
* interrupt. Both announce reliably when the alert is added to the page in
|
|
55
73
|
* response to something — an alert already present at load may not be read out,
|
|
56
74
|
* which is how live regions work rather than something this component controls.
|
|
75
|
+
* Every variant also carries an icon and a thicker leading edge, so the three
|
|
76
|
+
* states stay distinguishable without colour vision. The icon is decorative:
|
|
77
|
+
* the text next to it already says what happened, and announcing "check
|
|
78
|
+
* circle" before it would only add noise.
|
|
57
79
|
*/
|
|
58
80
|
interface ChAlert {
|
|
59
81
|
/**
|
|
60
82
|
* Accessible label for the dismiss button, set as `aria-label`. Setting it is what adds the button: the button's only content is a decorative glyph, so without a label it would have no accessible name at all.
|
|
61
83
|
*/
|
|
62
84
|
"dismissLabel"?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to show the variant's icon. On by default so the status is not colour-only; turn it off when the surrounding copy already carries the cue and a second marker would be redundant.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
"statusCue": boolean;
|
|
63
90
|
/**
|
|
64
91
|
* The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
|
|
65
92
|
* @default 'default'
|
|
66
93
|
*/
|
|
67
94
|
"variant": ChAlertVariant;
|
|
68
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Small status label.
|
|
98
|
+
* Variants are not colour-only: each one also changes the leading dot's shape
|
|
99
|
+
* and adds a matching border, so a badge still says which state it is in when
|
|
100
|
+
* printed in grayscale or seen with colour-vision deficiency. `default` uses a
|
|
101
|
+
* filled dot, `positive` a ring, and `warning` a filled square.
|
|
102
|
+
*/
|
|
69
103
|
interface ChBadge {
|
|
104
|
+
/**
|
|
105
|
+
* Whether to show the variant marker. On by default so the state does not depend on colour; turn it off for a badge that only repeats text already carrying the meaning.
|
|
106
|
+
* @default true
|
|
107
|
+
*/
|
|
108
|
+
"statusCue": boolean;
|
|
70
109
|
/**
|
|
71
110
|
* The visual style of the badge. Either `default`, `positive`, or `warning`.
|
|
72
111
|
* @default 'default'
|
|
@@ -84,7 +123,7 @@ export namespace Components {
|
|
|
84
123
|
*/
|
|
85
124
|
"href"?: string;
|
|
86
125
|
/**
|
|
87
|
-
* Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
|
|
126
|
+
* Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button). Omitting it on an icon-only button logs a warning in development builds.
|
|
88
127
|
*/
|
|
89
128
|
"label"?: string;
|
|
90
129
|
/**
|
|
@@ -152,6 +191,32 @@ export namespace Components {
|
|
|
152
191
|
*/
|
|
153
192
|
"value": string;
|
|
154
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
196
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
197
|
+
*/
|
|
198
|
+
interface ChCluster {
|
|
199
|
+
/**
|
|
200
|
+
* Cross-axis alignment of the children.
|
|
201
|
+
* @default 'center'
|
|
202
|
+
*/
|
|
203
|
+
"align": ChClusterAlign;
|
|
204
|
+
/**
|
|
205
|
+
* Space between children in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
206
|
+
* @default 'md'
|
|
207
|
+
*/
|
|
208
|
+
"gap": ChClusterGap;
|
|
209
|
+
/**
|
|
210
|
+
* Main-axis distribution of the children.
|
|
211
|
+
* @default 'start'
|
|
212
|
+
*/
|
|
213
|
+
"justify": ChClusterJustify;
|
|
214
|
+
/**
|
|
215
|
+
* Whether the children wrap onto a new line when they run out of room.
|
|
216
|
+
* @default true
|
|
217
|
+
*/
|
|
218
|
+
"wrap": boolean;
|
|
219
|
+
}
|
|
155
220
|
interface ChDivider {
|
|
156
221
|
/**
|
|
157
222
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -176,7 +241,7 @@ export namespace Components {
|
|
|
176
241
|
*/
|
|
177
242
|
"closeLabel"?: string;
|
|
178
243
|
/**
|
|
179
|
-
* Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
|
|
244
|
+
* Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading. Omitting it logs a warning in development builds.
|
|
180
245
|
*/
|
|
181
246
|
"label"?: string;
|
|
182
247
|
/**
|
|
@@ -211,6 +276,111 @@ export namespace Components {
|
|
|
211
276
|
*/
|
|
212
277
|
"size": ChEmojiSize;
|
|
213
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
281
|
+
* description and an action, laid out the same way everywhere.
|
|
282
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
283
|
+
* container but never claims a fixed height.
|
|
284
|
+
*/
|
|
285
|
+
interface ChEmptyState {
|
|
286
|
+
/**
|
|
287
|
+
* One or two sentences explaining what the user can do about it.
|
|
288
|
+
*/
|
|
289
|
+
"description"?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Visual density. `sm` is for a region inside a page (a card, a table cell), `md` for a whole view.
|
|
292
|
+
* @default 'md'
|
|
293
|
+
*/
|
|
294
|
+
"size": ChEmptyStateSize;
|
|
295
|
+
/**
|
|
296
|
+
* Short heading stating what is missing, used as the accessible name of the block.
|
|
297
|
+
*/
|
|
298
|
+
"title": string;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Responsive grid of equal cells.
|
|
302
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
303
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
304
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
305
|
+
* media queries of its own.
|
|
306
|
+
*/
|
|
307
|
+
interface ChGrid {
|
|
308
|
+
/**
|
|
309
|
+
* Number of equal columns (`1`…`12`), or `auto-fit` to fit as many as `min-item-width` allows. An unknown value falls back to `auto-fit`.
|
|
310
|
+
* @default 'auto-fit'
|
|
311
|
+
*/
|
|
312
|
+
"columns": string;
|
|
313
|
+
/**
|
|
314
|
+
* Space between cells in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
315
|
+
* @default 'md'
|
|
316
|
+
*/
|
|
317
|
+
"gap": ChGridGap;
|
|
318
|
+
/**
|
|
319
|
+
* Smallest width a cell may take in `auto-fit` mode, as a CSS length. It also caps the column count in fixed mode, so a cell never gets narrower than it.
|
|
320
|
+
* @default '16rem'
|
|
321
|
+
*/
|
|
322
|
+
"minItemWidth": string;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* A single Lucide glyph.
|
|
326
|
+
* Decorative by default: the icon is hidden from assistive technology unless
|
|
327
|
+
* you give it a `label`, because most icons sit next to text that already says
|
|
328
|
+
* what they mean and a second announcement is noise. Set `label` only when the
|
|
329
|
+
* icon carries meaning on its own; a control whose only content is an icon
|
|
330
|
+
* should use `ch-icon-button`, which requires the name.
|
|
331
|
+
*/
|
|
332
|
+
interface ChIcon {
|
|
333
|
+
/**
|
|
334
|
+
* Accessible name. When set, the icon becomes `role="img"` and is announced; when omitted it is `aria-hidden`.
|
|
335
|
+
*/
|
|
336
|
+
"label"?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Which glyph to draw. Unknown values render nothing rather than throwing, so a stale name in a data payload cannot break the page.
|
|
339
|
+
*/
|
|
340
|
+
"name": ChIconName;
|
|
341
|
+
/**
|
|
342
|
+
* `sm` is 16px, `md` is 20px and `lg` is 24px — the sizes the scale's line heights were built around.
|
|
343
|
+
* @default 'md'
|
|
344
|
+
*/
|
|
345
|
+
"size": ChIconSize;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* A button whose only content is an icon.
|
|
349
|
+
* The label is required rather than optional. An icon-only button without an
|
|
350
|
+
* accessible name is unusable by voice, screen reader or automation, and there
|
|
351
|
+
* is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
|
|
352
|
+
* the reason this component exists instead of letting consumers bolt an icon
|
|
353
|
+
* slot onto `ch-button` and forget the name.
|
|
354
|
+
*/
|
|
355
|
+
interface ChIconButton {
|
|
356
|
+
/**
|
|
357
|
+
* @default false
|
|
358
|
+
*/
|
|
359
|
+
"disabled": boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Accessible name, set as `aria-label`. Required: say what the button does ("Eliminar producto"), not what the glyph is ("papelera").
|
|
362
|
+
*/
|
|
363
|
+
"label": string;
|
|
364
|
+
/**
|
|
365
|
+
* Blocks pointer and keyboard activation and marks the button `aria-busy` while keeping it focusable, so focus does not fall to `<body>` when an action completes.
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
"loading": boolean;
|
|
369
|
+
/**
|
|
370
|
+
* The glyph to draw.
|
|
371
|
+
*/
|
|
372
|
+
"name": ChIconName;
|
|
373
|
+
/**
|
|
374
|
+
* Visual size. `md` matches the height of a default `ch-button`.
|
|
375
|
+
* @default 'md'
|
|
376
|
+
*/
|
|
377
|
+
"size": ChIconButtonSize;
|
|
378
|
+
/**
|
|
379
|
+
* Native button type, defaulting to `button` so it never submits a form by accident.
|
|
380
|
+
* @default 'button'
|
|
381
|
+
*/
|
|
382
|
+
"type": 'button' | 'submit' | 'reset';
|
|
383
|
+
}
|
|
214
384
|
interface ChInput {
|
|
215
385
|
/**
|
|
216
386
|
* Whether the input is disabled.
|
|
@@ -300,7 +470,7 @@ export namespace Components {
|
|
|
300
470
|
*/
|
|
301
471
|
"closeLabel"?: string;
|
|
302
472
|
/**
|
|
303
|
-
* Accessible name for the dialog, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
|
|
473
|
+
* Accessible name for the dialog, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading. Omitting it logs a warning in development builds.
|
|
304
474
|
*/
|
|
305
475
|
"label"?: string;
|
|
306
476
|
/**
|
|
@@ -314,6 +484,40 @@ export namespace Components {
|
|
|
314
484
|
*/
|
|
315
485
|
"size": ChModalSize;
|
|
316
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* The heading block at the top of a page: title, optional eyebrow and
|
|
489
|
+
* description, and a trailing actions area.
|
|
490
|
+
* The title is a `title` prop rather than a slot so the heading level always
|
|
491
|
+
* matches the page. A slotted heading lets a consumer nest a second `h1`, and
|
|
492
|
+
* "one top-level heading per page" then depends on every caller remembering it;
|
|
493
|
+
* here the level is explicit and defaults to `h1`. The actions wrap rather than
|
|
494
|
+
* push the page sideways at 390px, and the DOM order keeps the heading before
|
|
495
|
+
* the actions so reading and focus order still start with the title.
|
|
496
|
+
*/
|
|
497
|
+
interface ChPageHeader {
|
|
498
|
+
/**
|
|
499
|
+
* Puts the actions below the title instead of beside it. Use it when the actions are too wide to sit on the same row even after wrapping.
|
|
500
|
+
* @default false
|
|
501
|
+
*/
|
|
502
|
+
"actionsStacked": boolean;
|
|
503
|
+
/**
|
|
504
|
+
* Optional supporting line under the title.
|
|
505
|
+
*/
|
|
506
|
+
"description"?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Optional small label above the title, as slotted content. Use it for a section or entity kind ("Proyecto", "Factura #1042"), not for the title.
|
|
509
|
+
*/
|
|
510
|
+
"eyebrow"?: string;
|
|
511
|
+
/**
|
|
512
|
+
* Heading element to render. Use `h2` (or `h3`) when the page already has a higher-level heading above this block, so the document outline stays valid.
|
|
513
|
+
* @default 'h1'
|
|
514
|
+
*/
|
|
515
|
+
"headingLevel": ChPageHeaderHeadingLevel;
|
|
516
|
+
/**
|
|
517
|
+
* The page title. Rendered as a real heading, so it also works as the accessible name of the page region.
|
|
518
|
+
*/
|
|
519
|
+
"title": string;
|
|
520
|
+
}
|
|
317
521
|
interface ChRadio {
|
|
318
522
|
/**
|
|
319
523
|
* Whether all radios in the group are disabled.
|
|
@@ -449,6 +653,40 @@ export namespace Components {
|
|
|
449
653
|
*/
|
|
450
654
|
"value"?: string;
|
|
451
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
658
|
+
* take, so the page does not jump when the data arrives.
|
|
659
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
660
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
661
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
662
|
+
*/
|
|
663
|
+
interface ChSkeleton {
|
|
664
|
+
/**
|
|
665
|
+
* Whether the shimmer runs. It is also disabled automatically for people who asked for reduced motion.
|
|
666
|
+
* @default true
|
|
667
|
+
*/
|
|
668
|
+
"animated": boolean;
|
|
669
|
+
/**
|
|
670
|
+
* How many placeholders to render in a row, for multi-line text blocks. A value below 1 renders one.
|
|
671
|
+
* @default 1
|
|
672
|
+
*/
|
|
673
|
+
"count": number;
|
|
674
|
+
/**
|
|
675
|
+
* Height of a placeholder, as a CSS length. Ignored by `circle`, which is square.
|
|
676
|
+
* @default '1rem'
|
|
677
|
+
*/
|
|
678
|
+
"height": string;
|
|
679
|
+
/**
|
|
680
|
+
* Shape of the placeholder: `line` for text, `circle` for avatars and icons, `rect` for images and cards.
|
|
681
|
+
* @default 'line'
|
|
682
|
+
*/
|
|
683
|
+
"shape": ChSkeletonShape;
|
|
684
|
+
/**
|
|
685
|
+
* Width of a placeholder. For `line` and `rect` it is a CSS length or a percentage; `circle` is square, so this sets its diameter too.
|
|
686
|
+
* @default '100%'
|
|
687
|
+
*/
|
|
688
|
+
"width": string;
|
|
689
|
+
}
|
|
452
690
|
/**
|
|
453
691
|
* Loading indicator.
|
|
454
692
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -467,6 +705,28 @@ export namespace Components {
|
|
|
467
705
|
*/
|
|
468
706
|
"size": ChSpinnerSize;
|
|
469
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
710
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
711
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
712
|
+
*/
|
|
713
|
+
interface ChStack {
|
|
714
|
+
/**
|
|
715
|
+
* Cross-axis alignment of the children.
|
|
716
|
+
* @default 'stretch'
|
|
717
|
+
*/
|
|
718
|
+
"align": ChStackAlign;
|
|
719
|
+
/**
|
|
720
|
+
* Space between children, as a step of the spacing scale (`2xs` … `6xl`), or `none` for no gap. An unknown value falls back to `md`.
|
|
721
|
+
* @default 'md'
|
|
722
|
+
*/
|
|
723
|
+
"gap": ChStackGap;
|
|
724
|
+
/**
|
|
725
|
+
* Main-axis distribution of the children.
|
|
726
|
+
* @default 'start'
|
|
727
|
+
*/
|
|
728
|
+
"justify": ChStackJustify;
|
|
729
|
+
}
|
|
470
730
|
interface ChSwitch {
|
|
471
731
|
/**
|
|
472
732
|
* Whether the switch is on.
|
|
@@ -585,10 +845,16 @@ export namespace Components {
|
|
|
585
845
|
* `<input>`). A chucao component such as `ch-button` will not be described,
|
|
586
846
|
* because `aria-*` set on a custom element host does not reach the native
|
|
587
847
|
* element inside it — see the discussion in issue #47.
|
|
848
|
+
* Positioning is measured, not purely CSS: `placement` is the preferred side,
|
|
849
|
+
* and the bubble flips to the opposite side when the preferred one does not
|
|
850
|
+
* fit, then shifts along the other axis to stay inside the viewport. It
|
|
851
|
+
* re-measures on scroll, resize and visual-viewport changes, which is what
|
|
852
|
+
* keeps it correct inside a scrolling modal or drawer and when a mobile
|
|
853
|
+
* keyboard shrinks the visible area.
|
|
588
854
|
*/
|
|
589
855
|
interface ChTooltip {
|
|
590
856
|
/**
|
|
591
|
-
*
|
|
857
|
+
* The side the bubble is placed on. It is a preference: when that side has no room the bubble flips to the opposite one.
|
|
592
858
|
* @default 'top'
|
|
593
859
|
*/
|
|
594
860
|
"placement": ChTooltipPlacement;
|
|
@@ -614,6 +880,10 @@ export interface ChDrawerCustomEvent<T> extends CustomEvent<T> {
|
|
|
614
880
|
detail: T;
|
|
615
881
|
target: HTMLChDrawerElement;
|
|
616
882
|
}
|
|
883
|
+
export interface ChIconButtonCustomEvent<T> extends CustomEvent<T> {
|
|
884
|
+
detail: T;
|
|
885
|
+
target: HTMLChIconButtonElement;
|
|
886
|
+
}
|
|
617
887
|
export interface ChInputCustomEvent<T> extends CustomEvent<T> {
|
|
618
888
|
detail: T;
|
|
619
889
|
target: HTMLChInputElement;
|
|
@@ -678,6 +948,10 @@ declare global {
|
|
|
678
948
|
* interrupt. Both announce reliably when the alert is added to the page in
|
|
679
949
|
* response to something — an alert already present at load may not be read out,
|
|
680
950
|
* which is how live regions work rather than something this component controls.
|
|
951
|
+
* Every variant also carries an icon and a thicker leading edge, so the three
|
|
952
|
+
* states stay distinguishable without colour vision. The icon is decorative:
|
|
953
|
+
* the text next to it already says what happened, and announcing "check
|
|
954
|
+
* circle" before it would only add noise.
|
|
681
955
|
*/
|
|
682
956
|
interface HTMLChAlertElement extends Components.ChAlert, HTMLStencilElement {
|
|
683
957
|
addEventListener<K extends keyof HTMLChAlertElementEventMap>(type: K, listener: (this: HTMLChAlertElement, ev: ChAlertCustomEvent<HTMLChAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -693,6 +967,13 @@ declare global {
|
|
|
693
967
|
prototype: HTMLChAlertElement;
|
|
694
968
|
new (): HTMLChAlertElement;
|
|
695
969
|
};
|
|
970
|
+
/**
|
|
971
|
+
* Small status label.
|
|
972
|
+
* Variants are not colour-only: each one also changes the leading dot's shape
|
|
973
|
+
* and adds a matching border, so a badge still says which state it is in when
|
|
974
|
+
* printed in grayscale or seen with colour-vision deficiency. `default` uses a
|
|
975
|
+
* filled dot, `positive` a ring, and `warning` a filled square.
|
|
976
|
+
*/
|
|
696
977
|
interface HTMLChBadgeElement extends Components.ChBadge, HTMLStencilElement {
|
|
697
978
|
}
|
|
698
979
|
var HTMLChBadgeElement: {
|
|
@@ -739,6 +1020,16 @@ declare global {
|
|
|
739
1020
|
prototype: HTMLChCheckboxElement;
|
|
740
1021
|
new (): HTMLChCheckboxElement;
|
|
741
1022
|
};
|
|
1023
|
+
/**
|
|
1024
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
1025
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
1026
|
+
*/
|
|
1027
|
+
interface HTMLChClusterElement extends Components.ChCluster, HTMLStencilElement {
|
|
1028
|
+
}
|
|
1029
|
+
var HTMLChClusterElement: {
|
|
1030
|
+
prototype: HTMLChClusterElement;
|
|
1031
|
+
new (): HTMLChClusterElement;
|
|
1032
|
+
};
|
|
742
1033
|
interface HTMLChDividerElement extends Components.ChDivider, HTMLStencilElement {
|
|
743
1034
|
}
|
|
744
1035
|
var HTMLChDividerElement: {
|
|
@@ -786,6 +1077,70 @@ declare global {
|
|
|
786
1077
|
prototype: HTMLChEmojiElement;
|
|
787
1078
|
new (): HTMLChEmojiElement;
|
|
788
1079
|
};
|
|
1080
|
+
/**
|
|
1081
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
1082
|
+
* description and an action, laid out the same way everywhere.
|
|
1083
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
1084
|
+
* container but never claims a fixed height.
|
|
1085
|
+
*/
|
|
1086
|
+
interface HTMLChEmptyStateElement extends Components.ChEmptyState, HTMLStencilElement {
|
|
1087
|
+
}
|
|
1088
|
+
var HTMLChEmptyStateElement: {
|
|
1089
|
+
prototype: HTMLChEmptyStateElement;
|
|
1090
|
+
new (): HTMLChEmptyStateElement;
|
|
1091
|
+
};
|
|
1092
|
+
/**
|
|
1093
|
+
* Responsive grid of equal cells.
|
|
1094
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
1095
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
1096
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
1097
|
+
* media queries of its own.
|
|
1098
|
+
*/
|
|
1099
|
+
interface HTMLChGridElement extends Components.ChGrid, HTMLStencilElement {
|
|
1100
|
+
}
|
|
1101
|
+
var HTMLChGridElement: {
|
|
1102
|
+
prototype: HTMLChGridElement;
|
|
1103
|
+
new (): HTMLChGridElement;
|
|
1104
|
+
};
|
|
1105
|
+
/**
|
|
1106
|
+
* A single Lucide glyph.
|
|
1107
|
+
* Decorative by default: the icon is hidden from assistive technology unless
|
|
1108
|
+
* you give it a `label`, because most icons sit next to text that already says
|
|
1109
|
+
* what they mean and a second announcement is noise. Set `label` only when the
|
|
1110
|
+
* icon carries meaning on its own; a control whose only content is an icon
|
|
1111
|
+
* should use `ch-icon-button`, which requires the name.
|
|
1112
|
+
*/
|
|
1113
|
+
interface HTMLChIconElement extends Components.ChIcon, HTMLStencilElement {
|
|
1114
|
+
}
|
|
1115
|
+
var HTMLChIconElement: {
|
|
1116
|
+
prototype: HTMLChIconElement;
|
|
1117
|
+
new (): HTMLChIconElement;
|
|
1118
|
+
};
|
|
1119
|
+
interface HTMLChIconButtonElementEventMap {
|
|
1120
|
+
"chClick": MouseEvent;
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
* A button whose only content is an icon.
|
|
1124
|
+
* The label is required rather than optional. An icon-only button without an
|
|
1125
|
+
* accessible name is unusable by voice, screen reader or automation, and there
|
|
1126
|
+
* is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
|
|
1127
|
+
* the reason this component exists instead of letting consumers bolt an icon
|
|
1128
|
+
* slot onto `ch-button` and forget the name.
|
|
1129
|
+
*/
|
|
1130
|
+
interface HTMLChIconButtonElement extends Components.ChIconButton, HTMLStencilElement {
|
|
1131
|
+
addEventListener<K extends keyof HTMLChIconButtonElementEventMap>(type: K, listener: (this: HTMLChIconButtonElement, ev: ChIconButtonCustomEvent<HTMLChIconButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1132
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1133
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1134
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1135
|
+
removeEventListener<K extends keyof HTMLChIconButtonElementEventMap>(type: K, listener: (this: HTMLChIconButtonElement, ev: ChIconButtonCustomEvent<HTMLChIconButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1136
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1137
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1138
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1139
|
+
}
|
|
1140
|
+
var HTMLChIconButtonElement: {
|
|
1141
|
+
prototype: HTMLChIconButtonElement;
|
|
1142
|
+
new (): HTMLChIconButtonElement;
|
|
1143
|
+
};
|
|
789
1144
|
interface HTMLChInputElementEventMap {
|
|
790
1145
|
"chInput": string;
|
|
791
1146
|
"chChange": string;
|
|
@@ -855,6 +1210,22 @@ declare global {
|
|
|
855
1210
|
prototype: HTMLChModalElement;
|
|
856
1211
|
new (): HTMLChModalElement;
|
|
857
1212
|
};
|
|
1213
|
+
/**
|
|
1214
|
+
* The heading block at the top of a page: title, optional eyebrow and
|
|
1215
|
+
* description, and a trailing actions area.
|
|
1216
|
+
* The title is a `title` prop rather than a slot so the heading level always
|
|
1217
|
+
* matches the page. A slotted heading lets a consumer nest a second `h1`, and
|
|
1218
|
+
* "one top-level heading per page" then depends on every caller remembering it;
|
|
1219
|
+
* here the level is explicit and defaults to `h1`. The actions wrap rather than
|
|
1220
|
+
* push the page sideways at 390px, and the DOM order keeps the heading before
|
|
1221
|
+
* the actions so reading and focus order still start with the title.
|
|
1222
|
+
*/
|
|
1223
|
+
interface HTMLChPageHeaderElement extends Components.ChPageHeader, HTMLStencilElement {
|
|
1224
|
+
}
|
|
1225
|
+
var HTMLChPageHeaderElement: {
|
|
1226
|
+
prototype: HTMLChPageHeaderElement;
|
|
1227
|
+
new (): HTMLChPageHeaderElement;
|
|
1228
|
+
};
|
|
858
1229
|
interface HTMLChRadioElementEventMap {
|
|
859
1230
|
"chChange": string;
|
|
860
1231
|
}
|
|
@@ -919,6 +1290,19 @@ declare global {
|
|
|
919
1290
|
prototype: HTMLChSelectElement;
|
|
920
1291
|
new (): HTMLChSelectElement;
|
|
921
1292
|
};
|
|
1293
|
+
/**
|
|
1294
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
1295
|
+
* take, so the page does not jump when the data arrives.
|
|
1296
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
1297
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
1298
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
1299
|
+
*/
|
|
1300
|
+
interface HTMLChSkeletonElement extends Components.ChSkeleton, HTMLStencilElement {
|
|
1301
|
+
}
|
|
1302
|
+
var HTMLChSkeletonElement: {
|
|
1303
|
+
prototype: HTMLChSkeletonElement;
|
|
1304
|
+
new (): HTMLChSkeletonElement;
|
|
1305
|
+
};
|
|
922
1306
|
/**
|
|
923
1307
|
* Loading indicator.
|
|
924
1308
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -932,6 +1316,17 @@ declare global {
|
|
|
932
1316
|
prototype: HTMLChSpinnerElement;
|
|
933
1317
|
new (): HTMLChSpinnerElement;
|
|
934
1318
|
};
|
|
1319
|
+
/**
|
|
1320
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
1321
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
1322
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
1323
|
+
*/
|
|
1324
|
+
interface HTMLChStackElement extends Components.ChStack, HTMLStencilElement {
|
|
1325
|
+
}
|
|
1326
|
+
var HTMLChStackElement: {
|
|
1327
|
+
prototype: HTMLChStackElement;
|
|
1328
|
+
new (): HTMLChStackElement;
|
|
1329
|
+
};
|
|
935
1330
|
interface HTMLChSwitchElementEventMap {
|
|
936
1331
|
"chChange": boolean;
|
|
937
1332
|
}
|
|
@@ -997,6 +1392,12 @@ declare global {
|
|
|
997
1392
|
* `<input>`). A chucao component such as `ch-button` will not be described,
|
|
998
1393
|
* because `aria-*` set on a custom element host does not reach the native
|
|
999
1394
|
* element inside it — see the discussion in issue #47.
|
|
1395
|
+
* Positioning is measured, not purely CSS: `placement` is the preferred side,
|
|
1396
|
+
* and the bubble flips to the opposite side when the preferred one does not
|
|
1397
|
+
* fit, then shifts along the other axis to stay inside the viewport. It
|
|
1398
|
+
* re-measures on scroll, resize and visual-viewport changes, which is what
|
|
1399
|
+
* keeps it correct inside a scrolling modal or drawer and when a mobile
|
|
1400
|
+
* keyboard shrinks the visible area.
|
|
1000
1401
|
*/
|
|
1001
1402
|
interface HTMLChTooltipElement extends Components.ChTooltip, HTMLStencilElement {
|
|
1002
1403
|
}
|
|
@@ -1011,16 +1412,24 @@ declare global {
|
|
|
1011
1412
|
"ch-button": HTMLChButtonElement;
|
|
1012
1413
|
"ch-card": HTMLChCardElement;
|
|
1013
1414
|
"ch-checkbox": HTMLChCheckboxElement;
|
|
1415
|
+
"ch-cluster": HTMLChClusterElement;
|
|
1014
1416
|
"ch-divider": HTMLChDividerElement;
|
|
1015
1417
|
"ch-drawer": HTMLChDrawerElement;
|
|
1016
1418
|
"ch-emoji": HTMLChEmojiElement;
|
|
1419
|
+
"ch-empty-state": HTMLChEmptyStateElement;
|
|
1420
|
+
"ch-grid": HTMLChGridElement;
|
|
1421
|
+
"ch-icon": HTMLChIconElement;
|
|
1422
|
+
"ch-icon-button": HTMLChIconButtonElement;
|
|
1017
1423
|
"ch-input": HTMLChInputElement;
|
|
1018
1424
|
"ch-link": HTMLChLinkElement;
|
|
1019
1425
|
"ch-modal": HTMLChModalElement;
|
|
1426
|
+
"ch-page-header": HTMLChPageHeaderElement;
|
|
1020
1427
|
"ch-radio": HTMLChRadioElement;
|
|
1021
1428
|
"ch-segmented-control": HTMLChSegmentedControlElement;
|
|
1022
1429
|
"ch-select": HTMLChSelectElement;
|
|
1430
|
+
"ch-skeleton": HTMLChSkeletonElement;
|
|
1023
1431
|
"ch-spinner": HTMLChSpinnerElement;
|
|
1432
|
+
"ch-stack": HTMLChStackElement;
|
|
1024
1433
|
"ch-switch": HTMLChSwitchElement;
|
|
1025
1434
|
"ch-tabs": HTMLChTabsElement;
|
|
1026
1435
|
"ch-textarea": HTMLChTextareaElement;
|
|
@@ -1052,6 +1461,10 @@ declare namespace LocalJSX {
|
|
|
1052
1461
|
* interrupt. Both announce reliably when the alert is added to the page in
|
|
1053
1462
|
* response to something — an alert already present at load may not be read out,
|
|
1054
1463
|
* which is how live regions work rather than something this component controls.
|
|
1464
|
+
* Every variant also carries an icon and a thicker leading edge, so the three
|
|
1465
|
+
* states stay distinguishable without colour vision. The icon is decorative:
|
|
1466
|
+
* the text next to it already says what happened, and announcing "check
|
|
1467
|
+
* circle" before it would only add noise.
|
|
1055
1468
|
*/
|
|
1056
1469
|
interface ChAlert {
|
|
1057
1470
|
/**
|
|
@@ -1062,13 +1475,30 @@ declare namespace LocalJSX {
|
|
|
1062
1475
|
* Emitted when the dismiss button is clicked. The alert stays in the DOM — whether to remove it is the consumer's decision. If you do remove it, move focus somewhere sensible first: removing the focused button drops focus to `<body>`.
|
|
1063
1476
|
*/
|
|
1064
1477
|
"onChDismiss"?: (event: ChAlertCustomEvent<void>) => void;
|
|
1478
|
+
/**
|
|
1479
|
+
* Whether to show the variant's icon. On by default so the status is not colour-only; turn it off when the surrounding copy already carries the cue and a second marker would be redundant.
|
|
1480
|
+
* @default true
|
|
1481
|
+
*/
|
|
1482
|
+
"statusCue"?: boolean;
|
|
1065
1483
|
/**
|
|
1066
1484
|
* The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
|
|
1067
1485
|
* @default 'default'
|
|
1068
1486
|
*/
|
|
1069
1487
|
"variant"?: ChAlertVariant;
|
|
1070
1488
|
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Small status label.
|
|
1491
|
+
* Variants are not colour-only: each one also changes the leading dot's shape
|
|
1492
|
+
* and adds a matching border, so a badge still says which state it is in when
|
|
1493
|
+
* printed in grayscale or seen with colour-vision deficiency. `default` uses a
|
|
1494
|
+
* filled dot, `positive` a ring, and `warning` a filled square.
|
|
1495
|
+
*/
|
|
1071
1496
|
interface ChBadge {
|
|
1497
|
+
/**
|
|
1498
|
+
* Whether to show the variant marker. On by default so the state does not depend on colour; turn it off for a badge that only repeats text already carrying the meaning.
|
|
1499
|
+
* @default true
|
|
1500
|
+
*/
|
|
1501
|
+
"statusCue"?: boolean;
|
|
1072
1502
|
/**
|
|
1073
1503
|
* The visual style of the badge. Either `default`, `positive`, or `warning`.
|
|
1074
1504
|
* @default 'default'
|
|
@@ -1086,7 +1516,7 @@ declare namespace LocalJSX {
|
|
|
1086
1516
|
*/
|
|
1087
1517
|
"href"?: string;
|
|
1088
1518
|
/**
|
|
1089
|
-
* Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
|
|
1519
|
+
* Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button). Omitting it on an icon-only button logs a warning in development builds.
|
|
1090
1520
|
*/
|
|
1091
1521
|
"label"?: string;
|
|
1092
1522
|
/**
|
|
@@ -1166,6 +1596,32 @@ declare namespace LocalJSX {
|
|
|
1166
1596
|
*/
|
|
1167
1597
|
"value"?: string;
|
|
1168
1598
|
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
1601
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
1602
|
+
*/
|
|
1603
|
+
interface ChCluster {
|
|
1604
|
+
/**
|
|
1605
|
+
* Cross-axis alignment of the children.
|
|
1606
|
+
* @default 'center'
|
|
1607
|
+
*/
|
|
1608
|
+
"align"?: ChClusterAlign;
|
|
1609
|
+
/**
|
|
1610
|
+
* Space between children in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
1611
|
+
* @default 'md'
|
|
1612
|
+
*/
|
|
1613
|
+
"gap"?: ChClusterGap;
|
|
1614
|
+
/**
|
|
1615
|
+
* Main-axis distribution of the children.
|
|
1616
|
+
* @default 'start'
|
|
1617
|
+
*/
|
|
1618
|
+
"justify"?: ChClusterJustify;
|
|
1619
|
+
/**
|
|
1620
|
+
* Whether the children wrap onto a new line when they run out of room.
|
|
1621
|
+
* @default true
|
|
1622
|
+
*/
|
|
1623
|
+
"wrap"?: boolean;
|
|
1624
|
+
}
|
|
1169
1625
|
interface ChDivider {
|
|
1170
1626
|
/**
|
|
1171
1627
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -1190,7 +1646,7 @@ declare namespace LocalJSX {
|
|
|
1190
1646
|
*/
|
|
1191
1647
|
"closeLabel"?: string;
|
|
1192
1648
|
/**
|
|
1193
|
-
* Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
|
|
1649
|
+
* Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading. Omitting it logs a warning in development builds.
|
|
1194
1650
|
*/
|
|
1195
1651
|
"label"?: string;
|
|
1196
1652
|
/**
|
|
@@ -1233,6 +1689,115 @@ declare namespace LocalJSX {
|
|
|
1233
1689
|
*/
|
|
1234
1690
|
"size"?: ChEmojiSize;
|
|
1235
1691
|
}
|
|
1692
|
+
/**
|
|
1693
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
1694
|
+
* description and an action, laid out the same way everywhere.
|
|
1695
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
1696
|
+
* container but never claims a fixed height.
|
|
1697
|
+
*/
|
|
1698
|
+
interface ChEmptyState {
|
|
1699
|
+
/**
|
|
1700
|
+
* One or two sentences explaining what the user can do about it.
|
|
1701
|
+
*/
|
|
1702
|
+
"description"?: string;
|
|
1703
|
+
/**
|
|
1704
|
+
* Visual density. `sm` is for a region inside a page (a card, a table cell), `md` for a whole view.
|
|
1705
|
+
* @default 'md'
|
|
1706
|
+
*/
|
|
1707
|
+
"size"?: ChEmptyStateSize;
|
|
1708
|
+
/**
|
|
1709
|
+
* Short heading stating what is missing, used as the accessible name of the block.
|
|
1710
|
+
*/
|
|
1711
|
+
"title": string;
|
|
1712
|
+
}
|
|
1713
|
+
/**
|
|
1714
|
+
* Responsive grid of equal cells.
|
|
1715
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
1716
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
1717
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
1718
|
+
* media queries of its own.
|
|
1719
|
+
*/
|
|
1720
|
+
interface ChGrid {
|
|
1721
|
+
/**
|
|
1722
|
+
* Number of equal columns (`1`…`12`), or `auto-fit` to fit as many as `min-item-width` allows. An unknown value falls back to `auto-fit`.
|
|
1723
|
+
* @default 'auto-fit'
|
|
1724
|
+
*/
|
|
1725
|
+
"columns"?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* Space between cells in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
1728
|
+
* @default 'md'
|
|
1729
|
+
*/
|
|
1730
|
+
"gap"?: ChGridGap;
|
|
1731
|
+
/**
|
|
1732
|
+
* Smallest width a cell may take in `auto-fit` mode, as a CSS length. It also caps the column count in fixed mode, so a cell never gets narrower than it.
|
|
1733
|
+
* @default '16rem'
|
|
1734
|
+
*/
|
|
1735
|
+
"minItemWidth"?: string;
|
|
1736
|
+
}
|
|
1737
|
+
/**
|
|
1738
|
+
* A single Lucide glyph.
|
|
1739
|
+
* Decorative by default: the icon is hidden from assistive technology unless
|
|
1740
|
+
* you give it a `label`, because most icons sit next to text that already says
|
|
1741
|
+
* what they mean and a second announcement is noise. Set `label` only when the
|
|
1742
|
+
* icon carries meaning on its own; a control whose only content is an icon
|
|
1743
|
+
* should use `ch-icon-button`, which requires the name.
|
|
1744
|
+
*/
|
|
1745
|
+
interface ChIcon {
|
|
1746
|
+
/**
|
|
1747
|
+
* Accessible name. When set, the icon becomes `role="img"` and is announced; when omitted it is `aria-hidden`.
|
|
1748
|
+
*/
|
|
1749
|
+
"label"?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* Which glyph to draw. Unknown values render nothing rather than throwing, so a stale name in a data payload cannot break the page.
|
|
1752
|
+
*/
|
|
1753
|
+
"name": ChIconName;
|
|
1754
|
+
/**
|
|
1755
|
+
* `sm` is 16px, `md` is 20px and `lg` is 24px — the sizes the scale's line heights were built around.
|
|
1756
|
+
* @default 'md'
|
|
1757
|
+
*/
|
|
1758
|
+
"size"?: ChIconSize;
|
|
1759
|
+
}
|
|
1760
|
+
/**
|
|
1761
|
+
* A button whose only content is an icon.
|
|
1762
|
+
* The label is required rather than optional. An icon-only button without an
|
|
1763
|
+
* accessible name is unusable by voice, screen reader or automation, and there
|
|
1764
|
+
* is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
|
|
1765
|
+
* the reason this component exists instead of letting consumers bolt an icon
|
|
1766
|
+
* slot onto `ch-button` and forget the name.
|
|
1767
|
+
*/
|
|
1768
|
+
interface ChIconButton {
|
|
1769
|
+
/**
|
|
1770
|
+
* @default false
|
|
1771
|
+
*/
|
|
1772
|
+
"disabled"?: boolean;
|
|
1773
|
+
/**
|
|
1774
|
+
* Accessible name, set as `aria-label`. Required: say what the button does ("Eliminar producto"), not what the glyph is ("papelera").
|
|
1775
|
+
*/
|
|
1776
|
+
"label": string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Blocks pointer and keyboard activation and marks the button `aria-busy` while keeping it focusable, so focus does not fall to `<body>` when an action completes.
|
|
1779
|
+
* @default false
|
|
1780
|
+
*/
|
|
1781
|
+
"loading"?: boolean;
|
|
1782
|
+
/**
|
|
1783
|
+
* The glyph to draw.
|
|
1784
|
+
*/
|
|
1785
|
+
"name": ChIconName;
|
|
1786
|
+
/**
|
|
1787
|
+
* Emitted on click. A click while disabled or loading emits nothing.
|
|
1788
|
+
*/
|
|
1789
|
+
"onChClick"?: (event: ChIconButtonCustomEvent<MouseEvent>) => void;
|
|
1790
|
+
/**
|
|
1791
|
+
* Visual size. `md` matches the height of a default `ch-button`.
|
|
1792
|
+
* @default 'md'
|
|
1793
|
+
*/
|
|
1794
|
+
"size"?: ChIconButtonSize;
|
|
1795
|
+
/**
|
|
1796
|
+
* Native button type, defaulting to `button` so it never submits a form by accident.
|
|
1797
|
+
* @default 'button'
|
|
1798
|
+
*/
|
|
1799
|
+
"type"?: 'button' | 'submit' | 'reset';
|
|
1800
|
+
}
|
|
1236
1801
|
interface ChInput {
|
|
1237
1802
|
/**
|
|
1238
1803
|
* Whether the input is disabled.
|
|
@@ -1338,7 +1903,7 @@ declare namespace LocalJSX {
|
|
|
1338
1903
|
*/
|
|
1339
1904
|
"closeLabel"?: string;
|
|
1340
1905
|
/**
|
|
1341
|
-
* Accessible name for the dialog, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
|
|
1906
|
+
* Accessible name for the dialog, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading. Omitting it logs a warning in development builds.
|
|
1342
1907
|
*/
|
|
1343
1908
|
"label"?: string;
|
|
1344
1909
|
/**
|
|
@@ -1360,6 +1925,40 @@ declare namespace LocalJSX {
|
|
|
1360
1925
|
*/
|
|
1361
1926
|
"size"?: ChModalSize;
|
|
1362
1927
|
}
|
|
1928
|
+
/**
|
|
1929
|
+
* The heading block at the top of a page: title, optional eyebrow and
|
|
1930
|
+
* description, and a trailing actions area.
|
|
1931
|
+
* The title is a `title` prop rather than a slot so the heading level always
|
|
1932
|
+
* matches the page. A slotted heading lets a consumer nest a second `h1`, and
|
|
1933
|
+
* "one top-level heading per page" then depends on every caller remembering it;
|
|
1934
|
+
* here the level is explicit and defaults to `h1`. The actions wrap rather than
|
|
1935
|
+
* push the page sideways at 390px, and the DOM order keeps the heading before
|
|
1936
|
+
* the actions so reading and focus order still start with the title.
|
|
1937
|
+
*/
|
|
1938
|
+
interface ChPageHeader {
|
|
1939
|
+
/**
|
|
1940
|
+
* Puts the actions below the title instead of beside it. Use it when the actions are too wide to sit on the same row even after wrapping.
|
|
1941
|
+
* @default false
|
|
1942
|
+
*/
|
|
1943
|
+
"actionsStacked"?: boolean;
|
|
1944
|
+
/**
|
|
1945
|
+
* Optional supporting line under the title.
|
|
1946
|
+
*/
|
|
1947
|
+
"description"?: string;
|
|
1948
|
+
/**
|
|
1949
|
+
* Optional small label above the title, as slotted content. Use it for a section or entity kind ("Proyecto", "Factura #1042"), not for the title.
|
|
1950
|
+
*/
|
|
1951
|
+
"eyebrow"?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* Heading element to render. Use `h2` (or `h3`) when the page already has a higher-level heading above this block, so the document outline stays valid.
|
|
1954
|
+
* @default 'h1'
|
|
1955
|
+
*/
|
|
1956
|
+
"headingLevel"?: ChPageHeaderHeadingLevel;
|
|
1957
|
+
/**
|
|
1958
|
+
* The page title. Rendered as a real heading, so it also works as the accessible name of the page region.
|
|
1959
|
+
*/
|
|
1960
|
+
"title": string;
|
|
1961
|
+
}
|
|
1363
1962
|
interface ChRadio {
|
|
1364
1963
|
/**
|
|
1365
1964
|
* Whether all radios in the group are disabled.
|
|
@@ -1519,6 +2118,40 @@ declare namespace LocalJSX {
|
|
|
1519
2118
|
*/
|
|
1520
2119
|
"value"?: string;
|
|
1521
2120
|
}
|
|
2121
|
+
/**
|
|
2122
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
2123
|
+
* take, so the page does not jump when the data arrives.
|
|
2124
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
2125
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
2126
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
2127
|
+
*/
|
|
2128
|
+
interface ChSkeleton {
|
|
2129
|
+
/**
|
|
2130
|
+
* Whether the shimmer runs. It is also disabled automatically for people who asked for reduced motion.
|
|
2131
|
+
* @default true
|
|
2132
|
+
*/
|
|
2133
|
+
"animated"?: boolean;
|
|
2134
|
+
/**
|
|
2135
|
+
* How many placeholders to render in a row, for multi-line text blocks. A value below 1 renders one.
|
|
2136
|
+
* @default 1
|
|
2137
|
+
*/
|
|
2138
|
+
"count"?: number;
|
|
2139
|
+
/**
|
|
2140
|
+
* Height of a placeholder, as a CSS length. Ignored by `circle`, which is square.
|
|
2141
|
+
* @default '1rem'
|
|
2142
|
+
*/
|
|
2143
|
+
"height"?: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* Shape of the placeholder: `line` for text, `circle` for avatars and icons, `rect` for images and cards.
|
|
2146
|
+
* @default 'line'
|
|
2147
|
+
*/
|
|
2148
|
+
"shape"?: ChSkeletonShape;
|
|
2149
|
+
/**
|
|
2150
|
+
* Width of a placeholder. For `line` and `rect` it is a CSS length or a percentage; `circle` is square, so this sets its diameter too.
|
|
2151
|
+
* @default '100%'
|
|
2152
|
+
*/
|
|
2153
|
+
"width"?: string;
|
|
2154
|
+
}
|
|
1522
2155
|
/**
|
|
1523
2156
|
* Loading indicator.
|
|
1524
2157
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1537,6 +2170,28 @@ declare namespace LocalJSX {
|
|
|
1537
2170
|
*/
|
|
1538
2171
|
"size"?: ChSpinnerSize;
|
|
1539
2172
|
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
2175
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
2176
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
2177
|
+
*/
|
|
2178
|
+
interface ChStack {
|
|
2179
|
+
/**
|
|
2180
|
+
* Cross-axis alignment of the children.
|
|
2181
|
+
* @default 'stretch'
|
|
2182
|
+
*/
|
|
2183
|
+
"align"?: ChStackAlign;
|
|
2184
|
+
/**
|
|
2185
|
+
* Space between children, as a step of the spacing scale (`2xs` … `6xl`), or `none` for no gap. An unknown value falls back to `md`.
|
|
2186
|
+
* @default 'md'
|
|
2187
|
+
*/
|
|
2188
|
+
"gap"?: ChStackGap;
|
|
2189
|
+
/**
|
|
2190
|
+
* Main-axis distribution of the children.
|
|
2191
|
+
* @default 'start'
|
|
2192
|
+
*/
|
|
2193
|
+
"justify"?: ChStackJustify;
|
|
2194
|
+
}
|
|
1540
2195
|
interface ChSwitch {
|
|
1541
2196
|
/**
|
|
1542
2197
|
* Whether the switch is on.
|
|
@@ -1679,10 +2334,16 @@ declare namespace LocalJSX {
|
|
|
1679
2334
|
* `<input>`). A chucao component such as `ch-button` will not be described,
|
|
1680
2335
|
* because `aria-*` set on a custom element host does not reach the native
|
|
1681
2336
|
* element inside it — see the discussion in issue #47.
|
|
2337
|
+
* Positioning is measured, not purely CSS: `placement` is the preferred side,
|
|
2338
|
+
* and the bubble flips to the opposite side when the preferred one does not
|
|
2339
|
+
* fit, then shifts along the other axis to stay inside the viewport. It
|
|
2340
|
+
* re-measures on scroll, resize and visual-viewport changes, which is what
|
|
2341
|
+
* keeps it correct inside a scrolling modal or drawer and when a mobile
|
|
2342
|
+
* keyboard shrinks the visible area.
|
|
1682
2343
|
*/
|
|
1683
2344
|
interface ChTooltip {
|
|
1684
2345
|
/**
|
|
1685
|
-
*
|
|
2346
|
+
* The side the bubble is placed on. It is a preference: when that side has no room the bubble flips to the opposite one.
|
|
1686
2347
|
* @default 'top'
|
|
1687
2348
|
*/
|
|
1688
2349
|
"placement"?: ChTooltipPlacement;
|
|
@@ -1694,9 +2355,11 @@ declare namespace LocalJSX {
|
|
|
1694
2355
|
interface ChAlertAttributes {
|
|
1695
2356
|
"variant": ChAlertVariant;
|
|
1696
2357
|
"dismissLabel": string;
|
|
2358
|
+
"statusCue": boolean;
|
|
1697
2359
|
}
|
|
1698
2360
|
interface ChBadgeAttributes {
|
|
1699
2361
|
"variant": ChBadgeVariant;
|
|
2362
|
+
"statusCue": boolean;
|
|
1700
2363
|
}
|
|
1701
2364
|
interface ChButtonAttributes {
|
|
1702
2365
|
"variant": ChButtonVariant;
|
|
@@ -1718,6 +2381,12 @@ declare namespace LocalJSX {
|
|
|
1718
2381
|
"errorMessage": string;
|
|
1719
2382
|
"invalid": boolean;
|
|
1720
2383
|
}
|
|
2384
|
+
interface ChClusterAttributes {
|
|
2385
|
+
"gap": ChClusterGap;
|
|
2386
|
+
"align": ChClusterAlign;
|
|
2387
|
+
"justify": ChClusterJustify;
|
|
2388
|
+
"wrap": boolean;
|
|
2389
|
+
}
|
|
1721
2390
|
interface ChDividerAttributes {
|
|
1722
2391
|
"orientation": ChDividerOrientation;
|
|
1723
2392
|
}
|
|
@@ -1732,6 +2401,29 @@ declare namespace LocalJSX {
|
|
|
1732
2401
|
"alt": string;
|
|
1733
2402
|
"size": ChEmojiSize;
|
|
1734
2403
|
}
|
|
2404
|
+
interface ChEmptyStateAttributes {
|
|
2405
|
+
"title": string;
|
|
2406
|
+
"description": string;
|
|
2407
|
+
"size": ChEmptyStateSize;
|
|
2408
|
+
}
|
|
2409
|
+
interface ChGridAttributes {
|
|
2410
|
+
"columns": string;
|
|
2411
|
+
"gap": ChGridGap;
|
|
2412
|
+
"minItemWidth": string;
|
|
2413
|
+
}
|
|
2414
|
+
interface ChIconAttributes {
|
|
2415
|
+
"name": ChIconName;
|
|
2416
|
+
"size": ChIconSize;
|
|
2417
|
+
"label": string;
|
|
2418
|
+
}
|
|
2419
|
+
interface ChIconButtonAttributes {
|
|
2420
|
+
"name": ChIconName;
|
|
2421
|
+
"label": string;
|
|
2422
|
+
"size": ChIconButtonSize;
|
|
2423
|
+
"type": 'button' | 'submit' | 'reset';
|
|
2424
|
+
"disabled": boolean;
|
|
2425
|
+
"loading": boolean;
|
|
2426
|
+
}
|
|
1735
2427
|
interface ChInputAttributes {
|
|
1736
2428
|
"label": string;
|
|
1737
2429
|
"type": string;
|
|
@@ -1756,6 +2448,13 @@ declare namespace LocalJSX {
|
|
|
1756
2448
|
"closeLabel": string;
|
|
1757
2449
|
"size": ChModalSize;
|
|
1758
2450
|
}
|
|
2451
|
+
interface ChPageHeaderAttributes {
|
|
2452
|
+
"title": string;
|
|
2453
|
+
"headingLevel": ChPageHeaderHeadingLevel;
|
|
2454
|
+
"eyebrow": string;
|
|
2455
|
+
"description": string;
|
|
2456
|
+
"actionsStacked": boolean;
|
|
2457
|
+
}
|
|
1759
2458
|
interface ChRadioAttributes {
|
|
1760
2459
|
"label": string;
|
|
1761
2460
|
"value": string;
|
|
@@ -1785,10 +2484,22 @@ declare namespace LocalJSX {
|
|
|
1785
2484
|
"errorMessage": string;
|
|
1786
2485
|
"invalid": boolean;
|
|
1787
2486
|
}
|
|
2487
|
+
interface ChSkeletonAttributes {
|
|
2488
|
+
"width": string;
|
|
2489
|
+
"height": string;
|
|
2490
|
+
"shape": ChSkeletonShape;
|
|
2491
|
+
"count": number;
|
|
2492
|
+
"animated": boolean;
|
|
2493
|
+
}
|
|
1788
2494
|
interface ChSpinnerAttributes {
|
|
1789
2495
|
"size": ChSpinnerSize;
|
|
1790
2496
|
"label": string;
|
|
1791
2497
|
}
|
|
2498
|
+
interface ChStackAttributes {
|
|
2499
|
+
"gap": ChStackGap;
|
|
2500
|
+
"align": ChStackAlign;
|
|
2501
|
+
"justify": ChStackJustify;
|
|
2502
|
+
}
|
|
1792
2503
|
interface ChSwitchAttributes {
|
|
1793
2504
|
"label": string;
|
|
1794
2505
|
"name": string;
|
|
@@ -1827,16 +2538,24 @@ declare namespace LocalJSX {
|
|
|
1827
2538
|
"ch-button": Omit<ChButton, keyof ChButtonAttributes> & { [K in keyof ChButton & keyof ChButtonAttributes]?: ChButton[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `attr:${K}`]?: ChButtonAttributes[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `prop:${K}`]?: ChButton[K] };
|
|
1828
2539
|
"ch-card": ChCard;
|
|
1829
2540
|
"ch-checkbox": Omit<ChCheckbox, keyof ChCheckboxAttributes> & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes]?: ChCheckbox[K] } & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes as `attr:${K}`]?: ChCheckboxAttributes[K] } & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes as `prop:${K}`]?: ChCheckbox[K] };
|
|
2541
|
+
"ch-cluster": Omit<ChCluster, keyof ChClusterAttributes> & { [K in keyof ChCluster & keyof ChClusterAttributes]?: ChCluster[K] } & { [K in keyof ChCluster & keyof ChClusterAttributes as `attr:${K}`]?: ChClusterAttributes[K] } & { [K in keyof ChCluster & keyof ChClusterAttributes as `prop:${K}`]?: ChCluster[K] };
|
|
1830
2542
|
"ch-divider": Omit<ChDivider, keyof ChDividerAttributes> & { [K in keyof ChDivider & keyof ChDividerAttributes]?: ChDivider[K] } & { [K in keyof ChDivider & keyof ChDividerAttributes as `attr:${K}`]?: ChDividerAttributes[K] } & { [K in keyof ChDivider & keyof ChDividerAttributes as `prop:${K}`]?: ChDivider[K] };
|
|
1831
2543
|
"ch-drawer": Omit<ChDrawer, keyof ChDrawerAttributes> & { [K in keyof ChDrawer & keyof ChDrawerAttributes]?: ChDrawer[K] } & { [K in keyof ChDrawer & keyof ChDrawerAttributes as `attr:${K}`]?: ChDrawerAttributes[K] } & { [K in keyof ChDrawer & keyof ChDrawerAttributes as `prop:${K}`]?: ChDrawer[K] };
|
|
1832
2544
|
"ch-emoji": Omit<ChEmoji, keyof ChEmojiAttributes> & { [K in keyof ChEmoji & keyof ChEmojiAttributes]?: ChEmoji[K] } & { [K in keyof ChEmoji & keyof ChEmojiAttributes as `attr:${K}`]?: ChEmojiAttributes[K] } & { [K in keyof ChEmoji & keyof ChEmojiAttributes as `prop:${K}`]?: ChEmoji[K] } & OneOf<"name", ChEmoji["name"], ChEmojiAttributes["name"]>;
|
|
2545
|
+
"ch-empty-state": Omit<ChEmptyState, keyof ChEmptyStateAttributes> & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes]?: ChEmptyState[K] } & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes as `attr:${K}`]?: ChEmptyStateAttributes[K] } & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes as `prop:${K}`]?: ChEmptyState[K] } & OneOf<"title", ChEmptyState["title"], ChEmptyStateAttributes["title"]>;
|
|
2546
|
+
"ch-grid": Omit<ChGrid, keyof ChGridAttributes> & { [K in keyof ChGrid & keyof ChGridAttributes]?: ChGrid[K] } & { [K in keyof ChGrid & keyof ChGridAttributes as `attr:${K}`]?: ChGridAttributes[K] } & { [K in keyof ChGrid & keyof ChGridAttributes as `prop:${K}`]?: ChGrid[K] };
|
|
2547
|
+
"ch-icon": Omit<ChIcon, keyof ChIconAttributes> & { [K in keyof ChIcon & keyof ChIconAttributes]?: ChIcon[K] } & { [K in keyof ChIcon & keyof ChIconAttributes as `attr:${K}`]?: ChIconAttributes[K] } & { [K in keyof ChIcon & keyof ChIconAttributes as `prop:${K}`]?: ChIcon[K] } & OneOf<"name", ChIcon["name"], ChIconAttributes["name"]>;
|
|
2548
|
+
"ch-icon-button": Omit<ChIconButton, keyof ChIconButtonAttributes> & { [K in keyof ChIconButton & keyof ChIconButtonAttributes]?: ChIconButton[K] } & { [K in keyof ChIconButton & keyof ChIconButtonAttributes as `attr:${K}`]?: ChIconButtonAttributes[K] } & { [K in keyof ChIconButton & keyof ChIconButtonAttributes as `prop:${K}`]?: ChIconButton[K] } & OneOf<"name", ChIconButton["name"], ChIconButtonAttributes["name"]> & OneOf<"label", ChIconButton["label"], ChIconButtonAttributes["label"]>;
|
|
1833
2549
|
"ch-input": Omit<ChInput, keyof ChInputAttributes> & { [K in keyof ChInput & keyof ChInputAttributes]?: ChInput[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `attr:${K}`]?: ChInputAttributes[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `prop:${K}`]?: ChInput[K] };
|
|
1834
2550
|
"ch-link": Omit<ChLink, keyof ChLinkAttributes> & { [K in keyof ChLink & keyof ChLinkAttributes]?: ChLink[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `attr:${K}`]?: ChLinkAttributes[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `prop:${K}`]?: ChLink[K] };
|
|
1835
2551
|
"ch-modal": Omit<ChModal, keyof ChModalAttributes> & { [K in keyof ChModal & keyof ChModalAttributes]?: ChModal[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `attr:${K}`]?: ChModalAttributes[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `prop:${K}`]?: ChModal[K] };
|
|
2552
|
+
"ch-page-header": Omit<ChPageHeader, keyof ChPageHeaderAttributes> & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes]?: ChPageHeader[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `attr:${K}`]?: ChPageHeaderAttributes[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `prop:${K}`]?: ChPageHeader[K] } & OneOf<"title", ChPageHeader["title"], ChPageHeaderAttributes["title"]>;
|
|
1836
2553
|
"ch-radio": Omit<ChRadio, keyof ChRadioAttributes> & { [K in keyof ChRadio & keyof ChRadioAttributes]?: ChRadio[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `attr:${K}`]?: ChRadioAttributes[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `prop:${K}`]?: ChRadio[K] };
|
|
1837
2554
|
"ch-segmented-control": Omit<ChSegmentedControl, keyof ChSegmentedControlAttributes> & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes]?: ChSegmentedControl[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `attr:${K}`]?: ChSegmentedControlAttributes[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `prop:${K}`]?: ChSegmentedControl[K] };
|
|
1838
2555
|
"ch-select": Omit<ChSelect, keyof ChSelectAttributes> & { [K in keyof ChSelect & keyof ChSelectAttributes]?: ChSelect[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `attr:${K}`]?: ChSelectAttributes[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `prop:${K}`]?: ChSelect[K] };
|
|
2556
|
+
"ch-skeleton": Omit<ChSkeleton, keyof ChSkeletonAttributes> & { [K in keyof ChSkeleton & keyof ChSkeletonAttributes]?: ChSkeleton[K] } & { [K in keyof ChSkeleton & keyof ChSkeletonAttributes as `attr:${K}`]?: ChSkeletonAttributes[K] } & { [K in keyof ChSkeleton & keyof ChSkeletonAttributes as `prop:${K}`]?: ChSkeleton[K] };
|
|
1839
2557
|
"ch-spinner": Omit<ChSpinner, keyof ChSpinnerAttributes> & { [K in keyof ChSpinner & keyof ChSpinnerAttributes]?: ChSpinner[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `attr:${K}`]?: ChSpinnerAttributes[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `prop:${K}`]?: ChSpinner[K] };
|
|
2558
|
+
"ch-stack": Omit<ChStack, keyof ChStackAttributes> & { [K in keyof ChStack & keyof ChStackAttributes]?: ChStack[K] } & { [K in keyof ChStack & keyof ChStackAttributes as `attr:${K}`]?: ChStackAttributes[K] } & { [K in keyof ChStack & keyof ChStackAttributes as `prop:${K}`]?: ChStack[K] };
|
|
1840
2559
|
"ch-switch": Omit<ChSwitch, keyof ChSwitchAttributes> & { [K in keyof ChSwitch & keyof ChSwitchAttributes]?: ChSwitch[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `attr:${K}`]?: ChSwitchAttributes[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `prop:${K}`]?: ChSwitch[K] };
|
|
1841
2560
|
"ch-tabs": Omit<ChTabs, keyof ChTabsAttributes> & { [K in keyof ChTabs & keyof ChTabsAttributes]?: ChTabs[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `attr:${K}`]?: ChTabsAttributes[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `prop:${K}`]?: ChTabs[K] };
|
|
1842
2561
|
"ch-textarea": Omit<ChTextarea, keyof ChTextareaAttributes> & { [K in keyof ChTextarea & keyof ChTextareaAttributes]?: ChTextarea[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `attr:${K}`]?: ChTextareaAttributes[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `prop:${K}`]?: ChTextarea[K] };
|
|
@@ -1855,12 +2574,28 @@ declare module "@stencil/core" {
|
|
|
1855
2574
|
* interrupt. Both announce reliably when the alert is added to the page in
|
|
1856
2575
|
* response to something — an alert already present at load may not be read out,
|
|
1857
2576
|
* which is how live regions work rather than something this component controls.
|
|
2577
|
+
* Every variant also carries an icon and a thicker leading edge, so the three
|
|
2578
|
+
* states stay distinguishable without colour vision. The icon is decorative:
|
|
2579
|
+
* the text next to it already says what happened, and announcing "check
|
|
2580
|
+
* circle" before it would only add noise.
|
|
1858
2581
|
*/
|
|
1859
2582
|
"ch-alert": LocalJSX.IntrinsicElements["ch-alert"] & JSXBase.HTMLAttributes<HTMLChAlertElement>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Small status label.
|
|
2585
|
+
* Variants are not colour-only: each one also changes the leading dot's shape
|
|
2586
|
+
* and adds a matching border, so a badge still says which state it is in when
|
|
2587
|
+
* printed in grayscale or seen with colour-vision deficiency. `default` uses a
|
|
2588
|
+
* filled dot, `positive` a ring, and `warning` a filled square.
|
|
2589
|
+
*/
|
|
1860
2590
|
"ch-badge": LocalJSX.IntrinsicElements["ch-badge"] & JSXBase.HTMLAttributes<HTMLChBadgeElement>;
|
|
1861
2591
|
"ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
|
|
1862
2592
|
"ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
|
|
1863
2593
|
"ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
|
|
2594
|
+
/**
|
|
2595
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
2596
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
2597
|
+
*/
|
|
2598
|
+
"ch-cluster": LocalJSX.IntrinsicElements["ch-cluster"] & JSXBase.HTMLAttributes<HTMLChClusterElement>;
|
|
1864
2599
|
"ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
|
|
1865
2600
|
/**
|
|
1866
2601
|
* Sliding side panel for navigation, editing forms and quick detail views.
|
|
@@ -1881,6 +2616,39 @@ declare module "@stencil/core" {
|
|
|
1881
2616
|
* Size is controlled via the `size` prop.
|
|
1882
2617
|
*/
|
|
1883
2618
|
"ch-emoji": LocalJSX.IntrinsicElements["ch-emoji"] & JSXBase.HTMLAttributes<HTMLChEmojiElement>;
|
|
2619
|
+
/**
|
|
2620
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
2621
|
+
* description and an action, laid out the same way everywhere.
|
|
2622
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
2623
|
+
* container but never claims a fixed height.
|
|
2624
|
+
*/
|
|
2625
|
+
"ch-empty-state": LocalJSX.IntrinsicElements["ch-empty-state"] & JSXBase.HTMLAttributes<HTMLChEmptyStateElement>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Responsive grid of equal cells.
|
|
2628
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
2629
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
2630
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
2631
|
+
* media queries of its own.
|
|
2632
|
+
*/
|
|
2633
|
+
"ch-grid": LocalJSX.IntrinsicElements["ch-grid"] & JSXBase.HTMLAttributes<HTMLChGridElement>;
|
|
2634
|
+
/**
|
|
2635
|
+
* A single Lucide glyph.
|
|
2636
|
+
* Decorative by default: the icon is hidden from assistive technology unless
|
|
2637
|
+
* you give it a `label`, because most icons sit next to text that already says
|
|
2638
|
+
* what they mean and a second announcement is noise. Set `label` only when the
|
|
2639
|
+
* icon carries meaning on its own; a control whose only content is an icon
|
|
2640
|
+
* should use `ch-icon-button`, which requires the name.
|
|
2641
|
+
*/
|
|
2642
|
+
"ch-icon": LocalJSX.IntrinsicElements["ch-icon"] & JSXBase.HTMLAttributes<HTMLChIconElement>;
|
|
2643
|
+
/**
|
|
2644
|
+
* A button whose only content is an icon.
|
|
2645
|
+
* The label is required rather than optional. An icon-only button without an
|
|
2646
|
+
* accessible name is unusable by voice, screen reader or automation, and there
|
|
2647
|
+
* is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
|
|
2648
|
+
* the reason this component exists instead of letting consumers bolt an icon
|
|
2649
|
+
* slot onto `ch-button` and forget the name.
|
|
2650
|
+
*/
|
|
2651
|
+
"ch-icon-button": LocalJSX.IntrinsicElements["ch-icon-button"] & JSXBase.HTMLAttributes<HTMLChIconButtonElement>;
|
|
1884
2652
|
"ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
|
|
1885
2653
|
"ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
|
|
1886
2654
|
/**
|
|
@@ -1900,6 +2668,17 @@ declare module "@stencil/core" {
|
|
|
1900
2668
|
* than only for some.
|
|
1901
2669
|
*/
|
|
1902
2670
|
"ch-modal": LocalJSX.IntrinsicElements["ch-modal"] & JSXBase.HTMLAttributes<HTMLChModalElement>;
|
|
2671
|
+
/**
|
|
2672
|
+
* The heading block at the top of a page: title, optional eyebrow and
|
|
2673
|
+
* description, and a trailing actions area.
|
|
2674
|
+
* The title is a `title` prop rather than a slot so the heading level always
|
|
2675
|
+
* matches the page. A slotted heading lets a consumer nest a second `h1`, and
|
|
2676
|
+
* "one top-level heading per page" then depends on every caller remembering it;
|
|
2677
|
+
* here the level is explicit and defaults to `h1`. The actions wrap rather than
|
|
2678
|
+
* push the page sideways at 390px, and the DOM order keeps the heading before
|
|
2679
|
+
* the actions so reading and focus order still start with the title.
|
|
2680
|
+
*/
|
|
2681
|
+
"ch-page-header": LocalJSX.IntrinsicElements["ch-page-header"] & JSXBase.HTMLAttributes<HTMLChPageHeaderElement>;
|
|
1903
2682
|
"ch-radio": LocalJSX.IntrinsicElements["ch-radio"] & JSXBase.HTMLAttributes<HTMLChRadioElement>;
|
|
1904
2683
|
/**
|
|
1905
2684
|
* Compact control for switching between a few mutually exclusive options
|
|
@@ -1916,6 +2695,14 @@ declare module "@stencil/core" {
|
|
|
1916
2695
|
*/
|
|
1917
2696
|
"ch-segmented-control": LocalJSX.IntrinsicElements["ch-segmented-control"] & JSXBase.HTMLAttributes<HTMLChSegmentedControlElement>;
|
|
1918
2697
|
"ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
|
|
2698
|
+
/**
|
|
2699
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
2700
|
+
* take, so the page does not jump when the data arrives.
|
|
2701
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
2702
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
2703
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
2704
|
+
*/
|
|
2705
|
+
"ch-skeleton": LocalJSX.IntrinsicElements["ch-skeleton"] & JSXBase.HTMLAttributes<HTMLChSkeletonElement>;
|
|
1919
2706
|
/**
|
|
1920
2707
|
* Loading indicator.
|
|
1921
2708
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1924,6 +2711,12 @@ declare module "@stencil/core" {
|
|
|
1924
2711
|
* invisible there. Set `color` on or above the element to change it.
|
|
1925
2712
|
*/
|
|
1926
2713
|
"ch-spinner": LocalJSX.IntrinsicElements["ch-spinner"] & JSXBase.HTMLAttributes<HTMLChSpinnerElement>;
|
|
2714
|
+
/**
|
|
2715
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
2716
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
2717
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
2718
|
+
*/
|
|
2719
|
+
"ch-stack": LocalJSX.IntrinsicElements["ch-stack"] & JSXBase.HTMLAttributes<HTMLChStackElement>;
|
|
1927
2720
|
"ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
|
|
1928
2721
|
"ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
|
|
1929
2722
|
"ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
|
|
@@ -1940,6 +2733,12 @@ declare module "@stencil/core" {
|
|
|
1940
2733
|
* `<input>`). A chucao component such as `ch-button` will not be described,
|
|
1941
2734
|
* because `aria-*` set on a custom element host does not reach the native
|
|
1942
2735
|
* element inside it — see the discussion in issue #47.
|
|
2736
|
+
* Positioning is measured, not purely CSS: `placement` is the preferred side,
|
|
2737
|
+
* and the bubble flips to the opposite side when the preferred one does not
|
|
2738
|
+
* fit, then shifts along the other axis to stay inside the viewport. It
|
|
2739
|
+
* re-measures on scroll, resize and visual-viewport changes, which is what
|
|
2740
|
+
* keeps it correct inside a scrolling modal or drawer and when a mobile
|
|
2741
|
+
* keyboard shrinks the visible area.
|
|
1943
2742
|
*/
|
|
1944
2743
|
"ch-tooltip": LocalJSX.IntrinsicElements["ch-tooltip"] & JSXBase.HTMLAttributes<HTMLChTooltipElement>;
|
|
1945
2744
|
}
|