@devschile/chucao 2.3.0 → 2.4.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/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/p-0e3c83a6.entry.js +2 -0
- package/dist/chucao/p-0e3c83a6.entry.js.map +1 -0
- package/dist/chucao/p-17451d92.entry.js +2 -0
- package/dist/chucao/p-17451d92.entry.js.map +1 -0
- package/dist/chucao/p-1778a313.entry.js +2 -0
- package/dist/chucao/p-1778a313.entry.js.map +1 -0
- package/dist/chucao/p-1ebd9dc4.entry.js +2 -0
- package/dist/chucao/p-1ebd9dc4.entry.js.map +1 -0
- package/dist/chucao/p-34a9d1f4.entry.js +2 -0
- package/dist/chucao/p-34a9d1f4.entry.js.map +1 -0
- package/dist/chucao/p-449e1ba0.entry.js +2 -0
- package/dist/chucao/p-449e1ba0.entry.js.map +1 -0
- package/dist/chucao/p-56d64d84.entry.js +2 -0
- package/dist/chucao/p-56d64d84.entry.js.map +1 -0
- package/dist/chucao/{p-04dbcfa0.entry.js → p-6e95f31f.entry.js} +2 -2
- package/dist/chucao/p-7c85f5fe.entry.js +2 -0
- package/dist/chucao/p-7c85f5fe.entry.js.map +1 -0
- package/dist/chucao/p-82216381.entry.js +2 -0
- package/dist/chucao/p-82216381.entry.js.map +1 -0
- package/dist/chucao/p-84d875e9.entry.js +2 -0
- package/dist/chucao/p-84d875e9.entry.js.map +1 -0
- package/dist/chucao/p-85db779c.entry.js +2 -0
- package/dist/chucao/p-85db779c.entry.js.map +1 -0
- package/dist/chucao/{p-bb2445d1.entry.js → p-907195ff.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-DWC12BJ-.js → p-DVKZbUp9.js} +2 -2
- package/dist/chucao/p-DVKZbUp9.js.map +1 -0
- package/dist/chucao/{p-ff5f5c1f.entry.js → p-a07e0e97.entry.js} +2 -2
- package/dist/chucao/{p-f78f0163.entry.js → p-b392021c.entry.js} +2 -2
- package/dist/chucao/{p-6a4bc80c.entry.js → p-b5552b50.entry.js} +2 -2
- package/dist/chucao/p-d0533af6.entry.js +2 -0
- package/dist/chucao/p-d0533af6.entry.js.map +1 -0
- package/dist/chucao/p-d776b092.entry.js +2 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +41 -34
- 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-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-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 +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-C9cpLteP.js → index-ysucLiAq.js} +40 -13
- package/dist/cjs/index-ysucLiAq.js.map +1 -0
- 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 +6 -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-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-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.js +1 -1
- package/dist/collection/utils/accessibility.js +24 -0
- package/dist/collection/utils/accessibility.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-badge.js +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-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-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/index.js +1 -1
- package/dist/components/p-BXzZsX2r.js +2 -0
- package/dist/components/p-BXzZsX2r.js.map +1 -0
- package/dist/components/{p-BhAZrOxf.js → p-DQOKq7af.js} +2 -2
- package/dist/components/p-DQOKq7af.js.map +1 -0
- package/dist/components/{p-C1995t1C.js → p-no2_9Jk-.js} +2 -2
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +41 -34
- 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-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-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 +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-DWC12BJ-.js → index-DVKZbUp9.js} +40 -13
- package/dist/esm/index-DVKZbUp9.js.map +1 -0
- 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-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-modal/ch-modal.d.ts +2 -1
- 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.d.ts +401 -6
- package/dist/types/stencil-public-runtime.d.ts +61 -55
- package/dist/types/utils/accessibility.d.ts +2 -0
- package/dist/types/utils/validation-message.d.ts +20 -0
- package/dist-react/components.d.ts +15 -0
- package/dist-react/components.js +45 -0
- package/dist-react/components.ts +60 -0
- package/dist-vue/index.d.ts +5 -0
- package/dist-vue/index.js +33 -0
- package/dist-vue/index.ts +43 -0
- package/hydrate/index.js +534 -119
- package/hydrate/index.mjs +534 -119
- package/package.json +22 -2
- 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.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-c4806e96.entry.js +0 -2
- package/dist/chucao/p-c4806e96.entry.js.map +0 -1
- package/dist/chucao/p-c986036f.entry.js +0 -2
- package/dist/chucao/p-e3265e38.entry.js +0 -2
- package/dist/chucao/p-e3265e38.entry.js.map +0 -1
- package/dist/cjs/index-C9cpLteP.js.map +0 -1
- package/dist/components/p-BhAZrOxf.js.map +0 -1
- package/dist/esm/index-DWC12BJ-.js.map +0 -1
- /package/dist/chucao/{p-04dbcfa0.entry.js.map → p-6e95f31f.entry.js.map} +0 -0
- /package/dist/chucao/{p-bb2445d1.entry.js.map → p-907195ff.entry.js.map} +0 -0
- /package/dist/chucao/{p-ff5f5c1f.entry.js.map → p-a07e0e97.entry.js.map} +0 -0
- /package/dist/chucao/{p-f78f0163.entry.js.map → p-b392021c.entry.js.map} +0 -0
- /package/dist/chucao/{p-6a4bc80c.entry.js.map → p-b5552b50.entry.js.map} +0 -0
- /package/dist/chucao/{p-c986036f.entry.js.map → p-d776b092.entry.js.map} +0 -0
- /package/dist/components/{p-C1995t1C.js.map → p-no2_9Jk-.js.map} +0 -0
|
@@ -9,30 +9,40 @@ 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";
|
|
15
18
|
import { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
16
19
|
import { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
17
20
|
import { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
18
21
|
import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
19
22
|
import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
23
|
+
import { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
20
24
|
import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
25
|
+
import { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
21
26
|
import { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
22
27
|
import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
23
28
|
export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
24
29
|
export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
25
30
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
26
31
|
export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
|
|
32
|
+
export { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
27
33
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
28
34
|
export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
29
35
|
export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
36
|
+
export { ChEmptyStateSize } from "./components/ch-empty-state/ch-empty-state";
|
|
37
|
+
export { ChGridGap } from "./components/ch-grid/ch-grid";
|
|
30
38
|
export { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
31
39
|
export { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
32
40
|
export { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
33
41
|
export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
34
42
|
export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
43
|
+
export { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
35
44
|
export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
45
|
+
export { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
36
46
|
export { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
37
47
|
export { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
38
48
|
export namespace Components {
|
|
@@ -84,7 +94,7 @@ export namespace Components {
|
|
|
84
94
|
*/
|
|
85
95
|
"href"?: string;
|
|
86
96
|
/**
|
|
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).
|
|
97
|
+
* 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
98
|
*/
|
|
89
99
|
"label"?: string;
|
|
90
100
|
/**
|
|
@@ -152,6 +162,32 @@ export namespace Components {
|
|
|
152
162
|
*/
|
|
153
163
|
"value": string;
|
|
154
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
167
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
168
|
+
*/
|
|
169
|
+
interface ChCluster {
|
|
170
|
+
/**
|
|
171
|
+
* Cross-axis alignment of the children.
|
|
172
|
+
* @default 'center'
|
|
173
|
+
*/
|
|
174
|
+
"align": ChClusterAlign;
|
|
175
|
+
/**
|
|
176
|
+
* Space between children in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
177
|
+
* @default 'md'
|
|
178
|
+
*/
|
|
179
|
+
"gap": ChClusterGap;
|
|
180
|
+
/**
|
|
181
|
+
* Main-axis distribution of the children.
|
|
182
|
+
* @default 'start'
|
|
183
|
+
*/
|
|
184
|
+
"justify": ChClusterJustify;
|
|
185
|
+
/**
|
|
186
|
+
* Whether the children wrap onto a new line when they run out of room.
|
|
187
|
+
* @default true
|
|
188
|
+
*/
|
|
189
|
+
"wrap": boolean;
|
|
190
|
+
}
|
|
155
191
|
interface ChDivider {
|
|
156
192
|
/**
|
|
157
193
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -176,7 +212,7 @@ export namespace Components {
|
|
|
176
212
|
*/
|
|
177
213
|
"closeLabel"?: string;
|
|
178
214
|
/**
|
|
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.
|
|
215
|
+
* 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
216
|
*/
|
|
181
217
|
"label"?: string;
|
|
182
218
|
/**
|
|
@@ -211,6 +247,51 @@ export namespace Components {
|
|
|
211
247
|
*/
|
|
212
248
|
"size": ChEmojiSize;
|
|
213
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
252
|
+
* description and an action, laid out the same way everywhere.
|
|
253
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
254
|
+
* container but never claims a fixed height.
|
|
255
|
+
*/
|
|
256
|
+
interface ChEmptyState {
|
|
257
|
+
/**
|
|
258
|
+
* One or two sentences explaining what the user can do about it.
|
|
259
|
+
*/
|
|
260
|
+
"description"?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Visual density. `sm` is for a region inside a page (a card, a table cell), `md` for a whole view.
|
|
263
|
+
* @default 'md'
|
|
264
|
+
*/
|
|
265
|
+
"size": ChEmptyStateSize;
|
|
266
|
+
/**
|
|
267
|
+
* Short heading stating what is missing, used as the accessible name of the block.
|
|
268
|
+
*/
|
|
269
|
+
"title": string;
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Responsive grid of equal cells.
|
|
273
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
274
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
275
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
276
|
+
* media queries of its own.
|
|
277
|
+
*/
|
|
278
|
+
interface ChGrid {
|
|
279
|
+
/**
|
|
280
|
+
* 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`.
|
|
281
|
+
* @default 'auto-fit'
|
|
282
|
+
*/
|
|
283
|
+
"columns": string;
|
|
284
|
+
/**
|
|
285
|
+
* Space between cells in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
286
|
+
* @default 'md'
|
|
287
|
+
*/
|
|
288
|
+
"gap": ChGridGap;
|
|
289
|
+
/**
|
|
290
|
+
* 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.
|
|
291
|
+
* @default '16rem'
|
|
292
|
+
*/
|
|
293
|
+
"minItemWidth": string;
|
|
294
|
+
}
|
|
214
295
|
interface ChInput {
|
|
215
296
|
/**
|
|
216
297
|
* Whether the input is disabled.
|
|
@@ -300,7 +381,7 @@ export namespace Components {
|
|
|
300
381
|
*/
|
|
301
382
|
"closeLabel"?: string;
|
|
302
383
|
/**
|
|
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.
|
|
384
|
+
* 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
385
|
*/
|
|
305
386
|
"label"?: string;
|
|
306
387
|
/**
|
|
@@ -449,6 +530,40 @@ export namespace Components {
|
|
|
449
530
|
*/
|
|
450
531
|
"value"?: string;
|
|
451
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
535
|
+
* take, so the page does not jump when the data arrives.
|
|
536
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
537
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
538
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
539
|
+
*/
|
|
540
|
+
interface ChSkeleton {
|
|
541
|
+
/**
|
|
542
|
+
* Whether the shimmer runs. It is also disabled automatically for people who asked for reduced motion.
|
|
543
|
+
* @default true
|
|
544
|
+
*/
|
|
545
|
+
"animated": boolean;
|
|
546
|
+
/**
|
|
547
|
+
* How many placeholders to render in a row, for multi-line text blocks. A value below 1 renders one.
|
|
548
|
+
* @default 1
|
|
549
|
+
*/
|
|
550
|
+
"count": number;
|
|
551
|
+
/**
|
|
552
|
+
* Height of a placeholder, as a CSS length. Ignored by `circle`, which is square.
|
|
553
|
+
* @default '1rem'
|
|
554
|
+
*/
|
|
555
|
+
"height": string;
|
|
556
|
+
/**
|
|
557
|
+
* Shape of the placeholder: `line` for text, `circle` for avatars and icons, `rect` for images and cards.
|
|
558
|
+
* @default 'line'
|
|
559
|
+
*/
|
|
560
|
+
"shape": ChSkeletonShape;
|
|
561
|
+
/**
|
|
562
|
+
* 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.
|
|
563
|
+
* @default '100%'
|
|
564
|
+
*/
|
|
565
|
+
"width": string;
|
|
566
|
+
}
|
|
452
567
|
/**
|
|
453
568
|
* Loading indicator.
|
|
454
569
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -467,6 +582,28 @@ export namespace Components {
|
|
|
467
582
|
*/
|
|
468
583
|
"size": ChSpinnerSize;
|
|
469
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
587
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
588
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
589
|
+
*/
|
|
590
|
+
interface ChStack {
|
|
591
|
+
/**
|
|
592
|
+
* Cross-axis alignment of the children.
|
|
593
|
+
* @default 'stretch'
|
|
594
|
+
*/
|
|
595
|
+
"align": ChStackAlign;
|
|
596
|
+
/**
|
|
597
|
+
* Space between children, as a step of the spacing scale (`2xs` … `6xl`), or `none` for no gap. An unknown value falls back to `md`.
|
|
598
|
+
* @default 'md'
|
|
599
|
+
*/
|
|
600
|
+
"gap": ChStackGap;
|
|
601
|
+
/**
|
|
602
|
+
* Main-axis distribution of the children.
|
|
603
|
+
* @default 'start'
|
|
604
|
+
*/
|
|
605
|
+
"justify": ChStackJustify;
|
|
606
|
+
}
|
|
470
607
|
interface ChSwitch {
|
|
471
608
|
/**
|
|
472
609
|
* Whether the switch is on.
|
|
@@ -739,6 +876,16 @@ declare global {
|
|
|
739
876
|
prototype: HTMLChCheckboxElement;
|
|
740
877
|
new (): HTMLChCheckboxElement;
|
|
741
878
|
};
|
|
879
|
+
/**
|
|
880
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
881
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
882
|
+
*/
|
|
883
|
+
interface HTMLChClusterElement extends Components.ChCluster, HTMLStencilElement {
|
|
884
|
+
}
|
|
885
|
+
var HTMLChClusterElement: {
|
|
886
|
+
prototype: HTMLChClusterElement;
|
|
887
|
+
new (): HTMLChClusterElement;
|
|
888
|
+
};
|
|
742
889
|
interface HTMLChDividerElement extends Components.ChDivider, HTMLStencilElement {
|
|
743
890
|
}
|
|
744
891
|
var HTMLChDividerElement: {
|
|
@@ -786,6 +933,31 @@ declare global {
|
|
|
786
933
|
prototype: HTMLChEmojiElement;
|
|
787
934
|
new (): HTMLChEmojiElement;
|
|
788
935
|
};
|
|
936
|
+
/**
|
|
937
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
938
|
+
* description and an action, laid out the same way everywhere.
|
|
939
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
940
|
+
* container but never claims a fixed height.
|
|
941
|
+
*/
|
|
942
|
+
interface HTMLChEmptyStateElement extends Components.ChEmptyState, HTMLStencilElement {
|
|
943
|
+
}
|
|
944
|
+
var HTMLChEmptyStateElement: {
|
|
945
|
+
prototype: HTMLChEmptyStateElement;
|
|
946
|
+
new (): HTMLChEmptyStateElement;
|
|
947
|
+
};
|
|
948
|
+
/**
|
|
949
|
+
* Responsive grid of equal cells.
|
|
950
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
951
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
952
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
953
|
+
* media queries of its own.
|
|
954
|
+
*/
|
|
955
|
+
interface HTMLChGridElement extends Components.ChGrid, HTMLStencilElement {
|
|
956
|
+
}
|
|
957
|
+
var HTMLChGridElement: {
|
|
958
|
+
prototype: HTMLChGridElement;
|
|
959
|
+
new (): HTMLChGridElement;
|
|
960
|
+
};
|
|
789
961
|
interface HTMLChInputElementEventMap {
|
|
790
962
|
"chInput": string;
|
|
791
963
|
"chChange": string;
|
|
@@ -919,6 +1091,19 @@ declare global {
|
|
|
919
1091
|
prototype: HTMLChSelectElement;
|
|
920
1092
|
new (): HTMLChSelectElement;
|
|
921
1093
|
};
|
|
1094
|
+
/**
|
|
1095
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
1096
|
+
* take, so the page does not jump when the data arrives.
|
|
1097
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
1098
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
1099
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
1100
|
+
*/
|
|
1101
|
+
interface HTMLChSkeletonElement extends Components.ChSkeleton, HTMLStencilElement {
|
|
1102
|
+
}
|
|
1103
|
+
var HTMLChSkeletonElement: {
|
|
1104
|
+
prototype: HTMLChSkeletonElement;
|
|
1105
|
+
new (): HTMLChSkeletonElement;
|
|
1106
|
+
};
|
|
922
1107
|
/**
|
|
923
1108
|
* Loading indicator.
|
|
924
1109
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -932,6 +1117,17 @@ declare global {
|
|
|
932
1117
|
prototype: HTMLChSpinnerElement;
|
|
933
1118
|
new (): HTMLChSpinnerElement;
|
|
934
1119
|
};
|
|
1120
|
+
/**
|
|
1121
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
1122
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
1123
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
1124
|
+
*/
|
|
1125
|
+
interface HTMLChStackElement extends Components.ChStack, HTMLStencilElement {
|
|
1126
|
+
}
|
|
1127
|
+
var HTMLChStackElement: {
|
|
1128
|
+
prototype: HTMLChStackElement;
|
|
1129
|
+
new (): HTMLChStackElement;
|
|
1130
|
+
};
|
|
935
1131
|
interface HTMLChSwitchElementEventMap {
|
|
936
1132
|
"chChange": boolean;
|
|
937
1133
|
}
|
|
@@ -1011,16 +1207,21 @@ declare global {
|
|
|
1011
1207
|
"ch-button": HTMLChButtonElement;
|
|
1012
1208
|
"ch-card": HTMLChCardElement;
|
|
1013
1209
|
"ch-checkbox": HTMLChCheckboxElement;
|
|
1210
|
+
"ch-cluster": HTMLChClusterElement;
|
|
1014
1211
|
"ch-divider": HTMLChDividerElement;
|
|
1015
1212
|
"ch-drawer": HTMLChDrawerElement;
|
|
1016
1213
|
"ch-emoji": HTMLChEmojiElement;
|
|
1214
|
+
"ch-empty-state": HTMLChEmptyStateElement;
|
|
1215
|
+
"ch-grid": HTMLChGridElement;
|
|
1017
1216
|
"ch-input": HTMLChInputElement;
|
|
1018
1217
|
"ch-link": HTMLChLinkElement;
|
|
1019
1218
|
"ch-modal": HTMLChModalElement;
|
|
1020
1219
|
"ch-radio": HTMLChRadioElement;
|
|
1021
1220
|
"ch-segmented-control": HTMLChSegmentedControlElement;
|
|
1022
1221
|
"ch-select": HTMLChSelectElement;
|
|
1222
|
+
"ch-skeleton": HTMLChSkeletonElement;
|
|
1023
1223
|
"ch-spinner": HTMLChSpinnerElement;
|
|
1224
|
+
"ch-stack": HTMLChStackElement;
|
|
1024
1225
|
"ch-switch": HTMLChSwitchElement;
|
|
1025
1226
|
"ch-tabs": HTMLChTabsElement;
|
|
1026
1227
|
"ch-textarea": HTMLChTextareaElement;
|
|
@@ -1086,7 +1287,7 @@ declare namespace LocalJSX {
|
|
|
1086
1287
|
*/
|
|
1087
1288
|
"href"?: string;
|
|
1088
1289
|
/**
|
|
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).
|
|
1290
|
+
* 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
1291
|
*/
|
|
1091
1292
|
"label"?: string;
|
|
1092
1293
|
/**
|
|
@@ -1166,6 +1367,32 @@ declare namespace LocalJSX {
|
|
|
1166
1367
|
*/
|
|
1167
1368
|
"value"?: string;
|
|
1168
1369
|
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
1372
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
1373
|
+
*/
|
|
1374
|
+
interface ChCluster {
|
|
1375
|
+
/**
|
|
1376
|
+
* Cross-axis alignment of the children.
|
|
1377
|
+
* @default 'center'
|
|
1378
|
+
*/
|
|
1379
|
+
"align"?: ChClusterAlign;
|
|
1380
|
+
/**
|
|
1381
|
+
* Space between children in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
1382
|
+
* @default 'md'
|
|
1383
|
+
*/
|
|
1384
|
+
"gap"?: ChClusterGap;
|
|
1385
|
+
/**
|
|
1386
|
+
* Main-axis distribution of the children.
|
|
1387
|
+
* @default 'start'
|
|
1388
|
+
*/
|
|
1389
|
+
"justify"?: ChClusterJustify;
|
|
1390
|
+
/**
|
|
1391
|
+
* Whether the children wrap onto a new line when they run out of room.
|
|
1392
|
+
* @default true
|
|
1393
|
+
*/
|
|
1394
|
+
"wrap"?: boolean;
|
|
1395
|
+
}
|
|
1169
1396
|
interface ChDivider {
|
|
1170
1397
|
/**
|
|
1171
1398
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -1190,7 +1417,7 @@ declare namespace LocalJSX {
|
|
|
1190
1417
|
*/
|
|
1191
1418
|
"closeLabel"?: string;
|
|
1192
1419
|
/**
|
|
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.
|
|
1420
|
+
* 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
1421
|
*/
|
|
1195
1422
|
"label"?: string;
|
|
1196
1423
|
/**
|
|
@@ -1233,6 +1460,51 @@ declare namespace LocalJSX {
|
|
|
1233
1460
|
*/
|
|
1234
1461
|
"size"?: ChEmojiSize;
|
|
1235
1462
|
}
|
|
1463
|
+
/**
|
|
1464
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
1465
|
+
* description and an action, laid out the same way everywhere.
|
|
1466
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
1467
|
+
* container but never claims a fixed height.
|
|
1468
|
+
*/
|
|
1469
|
+
interface ChEmptyState {
|
|
1470
|
+
/**
|
|
1471
|
+
* One or two sentences explaining what the user can do about it.
|
|
1472
|
+
*/
|
|
1473
|
+
"description"?: string;
|
|
1474
|
+
/**
|
|
1475
|
+
* Visual density. `sm` is for a region inside a page (a card, a table cell), `md` for a whole view.
|
|
1476
|
+
* @default 'md'
|
|
1477
|
+
*/
|
|
1478
|
+
"size"?: ChEmptyStateSize;
|
|
1479
|
+
/**
|
|
1480
|
+
* Short heading stating what is missing, used as the accessible name of the block.
|
|
1481
|
+
*/
|
|
1482
|
+
"title": string;
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Responsive grid of equal cells.
|
|
1486
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
1487
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
1488
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
1489
|
+
* media queries of its own.
|
|
1490
|
+
*/
|
|
1491
|
+
interface ChGrid {
|
|
1492
|
+
/**
|
|
1493
|
+
* 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`.
|
|
1494
|
+
* @default 'auto-fit'
|
|
1495
|
+
*/
|
|
1496
|
+
"columns"?: string;
|
|
1497
|
+
/**
|
|
1498
|
+
* Space between cells in both axes, as a step of the spacing scale (`2xs` … `6xl`), or `none`. An unknown value falls back to `md`.
|
|
1499
|
+
* @default 'md'
|
|
1500
|
+
*/
|
|
1501
|
+
"gap"?: ChGridGap;
|
|
1502
|
+
/**
|
|
1503
|
+
* 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.
|
|
1504
|
+
* @default '16rem'
|
|
1505
|
+
*/
|
|
1506
|
+
"minItemWidth"?: string;
|
|
1507
|
+
}
|
|
1236
1508
|
interface ChInput {
|
|
1237
1509
|
/**
|
|
1238
1510
|
* Whether the input is disabled.
|
|
@@ -1338,7 +1610,7 @@ declare namespace LocalJSX {
|
|
|
1338
1610
|
*/
|
|
1339
1611
|
"closeLabel"?: string;
|
|
1340
1612
|
/**
|
|
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.
|
|
1613
|
+
* 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
1614
|
*/
|
|
1343
1615
|
"label"?: string;
|
|
1344
1616
|
/**
|
|
@@ -1519,6 +1791,40 @@ declare namespace LocalJSX {
|
|
|
1519
1791
|
*/
|
|
1520
1792
|
"value"?: string;
|
|
1521
1793
|
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
1796
|
+
* take, so the page does not jump when the data arrives.
|
|
1797
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
1798
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
1799
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
1800
|
+
*/
|
|
1801
|
+
interface ChSkeleton {
|
|
1802
|
+
/**
|
|
1803
|
+
* Whether the shimmer runs. It is also disabled automatically for people who asked for reduced motion.
|
|
1804
|
+
* @default true
|
|
1805
|
+
*/
|
|
1806
|
+
"animated"?: boolean;
|
|
1807
|
+
/**
|
|
1808
|
+
* How many placeholders to render in a row, for multi-line text blocks. A value below 1 renders one.
|
|
1809
|
+
* @default 1
|
|
1810
|
+
*/
|
|
1811
|
+
"count"?: number;
|
|
1812
|
+
/**
|
|
1813
|
+
* Height of a placeholder, as a CSS length. Ignored by `circle`, which is square.
|
|
1814
|
+
* @default '1rem'
|
|
1815
|
+
*/
|
|
1816
|
+
"height"?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* Shape of the placeholder: `line` for text, `circle` for avatars and icons, `rect` for images and cards.
|
|
1819
|
+
* @default 'line'
|
|
1820
|
+
*/
|
|
1821
|
+
"shape"?: ChSkeletonShape;
|
|
1822
|
+
/**
|
|
1823
|
+
* 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.
|
|
1824
|
+
* @default '100%'
|
|
1825
|
+
*/
|
|
1826
|
+
"width"?: string;
|
|
1827
|
+
}
|
|
1522
1828
|
/**
|
|
1523
1829
|
* Loading indicator.
|
|
1524
1830
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1537,6 +1843,28 @@ declare namespace LocalJSX {
|
|
|
1537
1843
|
*/
|
|
1538
1844
|
"size"?: ChSpinnerSize;
|
|
1539
1845
|
}
|
|
1846
|
+
/**
|
|
1847
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
1848
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
1849
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
1850
|
+
*/
|
|
1851
|
+
interface ChStack {
|
|
1852
|
+
/**
|
|
1853
|
+
* Cross-axis alignment of the children.
|
|
1854
|
+
* @default 'stretch'
|
|
1855
|
+
*/
|
|
1856
|
+
"align"?: ChStackAlign;
|
|
1857
|
+
/**
|
|
1858
|
+
* Space between children, as a step of the spacing scale (`2xs` … `6xl`), or `none` for no gap. An unknown value falls back to `md`.
|
|
1859
|
+
* @default 'md'
|
|
1860
|
+
*/
|
|
1861
|
+
"gap"?: ChStackGap;
|
|
1862
|
+
/**
|
|
1863
|
+
* Main-axis distribution of the children.
|
|
1864
|
+
* @default 'start'
|
|
1865
|
+
*/
|
|
1866
|
+
"justify"?: ChStackJustify;
|
|
1867
|
+
}
|
|
1540
1868
|
interface ChSwitch {
|
|
1541
1869
|
/**
|
|
1542
1870
|
* Whether the switch is on.
|
|
@@ -1718,6 +2046,12 @@ declare namespace LocalJSX {
|
|
|
1718
2046
|
"errorMessage": string;
|
|
1719
2047
|
"invalid": boolean;
|
|
1720
2048
|
}
|
|
2049
|
+
interface ChClusterAttributes {
|
|
2050
|
+
"gap": ChClusterGap;
|
|
2051
|
+
"align": ChClusterAlign;
|
|
2052
|
+
"justify": ChClusterJustify;
|
|
2053
|
+
"wrap": boolean;
|
|
2054
|
+
}
|
|
1721
2055
|
interface ChDividerAttributes {
|
|
1722
2056
|
"orientation": ChDividerOrientation;
|
|
1723
2057
|
}
|
|
@@ -1732,6 +2066,16 @@ declare namespace LocalJSX {
|
|
|
1732
2066
|
"alt": string;
|
|
1733
2067
|
"size": ChEmojiSize;
|
|
1734
2068
|
}
|
|
2069
|
+
interface ChEmptyStateAttributes {
|
|
2070
|
+
"title": string;
|
|
2071
|
+
"description": string;
|
|
2072
|
+
"size": ChEmptyStateSize;
|
|
2073
|
+
}
|
|
2074
|
+
interface ChGridAttributes {
|
|
2075
|
+
"columns": string;
|
|
2076
|
+
"gap": ChGridGap;
|
|
2077
|
+
"minItemWidth": string;
|
|
2078
|
+
}
|
|
1735
2079
|
interface ChInputAttributes {
|
|
1736
2080
|
"label": string;
|
|
1737
2081
|
"type": string;
|
|
@@ -1785,10 +2129,22 @@ declare namespace LocalJSX {
|
|
|
1785
2129
|
"errorMessage": string;
|
|
1786
2130
|
"invalid": boolean;
|
|
1787
2131
|
}
|
|
2132
|
+
interface ChSkeletonAttributes {
|
|
2133
|
+
"width": string;
|
|
2134
|
+
"height": string;
|
|
2135
|
+
"shape": ChSkeletonShape;
|
|
2136
|
+
"count": number;
|
|
2137
|
+
"animated": boolean;
|
|
2138
|
+
}
|
|
1788
2139
|
interface ChSpinnerAttributes {
|
|
1789
2140
|
"size": ChSpinnerSize;
|
|
1790
2141
|
"label": string;
|
|
1791
2142
|
}
|
|
2143
|
+
interface ChStackAttributes {
|
|
2144
|
+
"gap": ChStackGap;
|
|
2145
|
+
"align": ChStackAlign;
|
|
2146
|
+
"justify": ChStackJustify;
|
|
2147
|
+
}
|
|
1792
2148
|
interface ChSwitchAttributes {
|
|
1793
2149
|
"label": string;
|
|
1794
2150
|
"name": string;
|
|
@@ -1827,16 +2183,21 @@ declare namespace LocalJSX {
|
|
|
1827
2183
|
"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
2184
|
"ch-card": ChCard;
|
|
1829
2185
|
"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] };
|
|
2186
|
+
"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
2187
|
"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
2188
|
"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
2189
|
"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"]>;
|
|
2190
|
+
"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"]>;
|
|
2191
|
+
"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] };
|
|
1833
2192
|
"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
2193
|
"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
2194
|
"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] };
|
|
1836
2195
|
"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
2196
|
"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
2197
|
"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] };
|
|
2198
|
+
"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
2199
|
"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] };
|
|
2200
|
+
"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
2201
|
"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
2202
|
"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
2203
|
"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] };
|
|
@@ -1861,6 +2222,11 @@ declare module "@stencil/core" {
|
|
|
1861
2222
|
"ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
|
|
1862
2223
|
"ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
|
|
1863
2224
|
"ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
|
|
2225
|
+
/**
|
|
2226
|
+
* Horizontal flow that wraps when it runs out of room, with a token-driven
|
|
2227
|
+
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
2228
|
+
*/
|
|
2229
|
+
"ch-cluster": LocalJSX.IntrinsicElements["ch-cluster"] & JSXBase.HTMLAttributes<HTMLChClusterElement>;
|
|
1864
2230
|
"ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
|
|
1865
2231
|
/**
|
|
1866
2232
|
* Sliding side panel for navigation, editing forms and quick detail views.
|
|
@@ -1881,6 +2247,21 @@ declare module "@stencil/core" {
|
|
|
1881
2247
|
* Size is controlled via the `size` prop.
|
|
1882
2248
|
*/
|
|
1883
2249
|
"ch-emoji": LocalJSX.IntrinsicElements["ch-emoji"] & JSXBase.HTMLAttributes<HTMLChEmojiElement>;
|
|
2250
|
+
/**
|
|
2251
|
+
* The standard "there is nothing here" block: an optional visual, a title, a
|
|
2252
|
+
* description and an action, laid out the same way everywhere.
|
|
2253
|
+
* It works both inside a table cell and as a whole-page view: it fills its
|
|
2254
|
+
* container but never claims a fixed height.
|
|
2255
|
+
*/
|
|
2256
|
+
"ch-empty-state": LocalJSX.IntrinsicElements["ch-empty-state"] & JSXBase.HTMLAttributes<HTMLChEmptyStateElement>;
|
|
2257
|
+
/**
|
|
2258
|
+
* Responsive grid of equal cells.
|
|
2259
|
+
* `columns` takes a fixed count (`1`…`12`) or `auto-fit`, which fits as many
|
|
2260
|
+
* columns as `min-item-width` allows into the available width. That second mode
|
|
2261
|
+
* is the one a card list almost always wants: it needs no breakpoints and no
|
|
2262
|
+
* media queries of its own.
|
|
2263
|
+
*/
|
|
2264
|
+
"ch-grid": LocalJSX.IntrinsicElements["ch-grid"] & JSXBase.HTMLAttributes<HTMLChGridElement>;
|
|
1884
2265
|
"ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
|
|
1885
2266
|
"ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
|
|
1886
2267
|
/**
|
|
@@ -1916,6 +2297,14 @@ declare module "@stencil/core" {
|
|
|
1916
2297
|
*/
|
|
1917
2298
|
"ch-segmented-control": LocalJSX.IntrinsicElements["ch-segmented-control"] & JSXBase.HTMLAttributes<HTMLChSegmentedControlElement>;
|
|
1918
2299
|
"ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
|
|
2300
|
+
/**
|
|
2301
|
+
* Decorative loading placeholder that reserves the space real content will
|
|
2302
|
+
* take, so the page does not jump when the data arrives.
|
|
2303
|
+
* It stays out of the accessibility tree on purpose: a screen reader should
|
|
2304
|
+
* hear nothing about a placeholder. Mark the region that is actually loading
|
|
2305
|
+
* with `aria-busy="true"` yourself, and announce the result when it lands.
|
|
2306
|
+
*/
|
|
2307
|
+
"ch-skeleton": LocalJSX.IntrinsicElements["ch-skeleton"] & JSXBase.HTMLAttributes<HTMLChSkeletonElement>;
|
|
1919
2308
|
/**
|
|
1920
2309
|
* Loading indicator.
|
|
1921
2310
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1924,6 +2313,12 @@ declare module "@stencil/core" {
|
|
|
1924
2313
|
* invisible there. Set `color` on or above the element to change it.
|
|
1925
2314
|
*/
|
|
1926
2315
|
"ch-spinner": LocalJSX.IntrinsicElements["ch-spinner"] & JSXBase.HTMLAttributes<HTMLChSpinnerElement>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Vertical flow: children stack top to bottom with a token-driven gap.
|
|
2318
|
+
* It is a real host with `display: flex`, not `display: contents`, so a
|
|
2319
|
+
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
2320
|
+
*/
|
|
2321
|
+
"ch-stack": LocalJSX.IntrinsicElements["ch-stack"] & JSXBase.HTMLAttributes<HTMLChStackElement>;
|
|
1927
2322
|
"ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
|
|
1928
2323
|
"ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
|
|
1929
2324
|
"ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
|