@devschile/chucao 2.2.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-077dc2a6.entry.js → p-b392021c.entry.js} +2 -2
- package/dist/chucao/{p-5ae89a19.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 +12 -4
- 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 +7 -2
- 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.css +12 -1
- package/dist/collection/components/ch-modal/ch-modal.js +42 -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-card.js.map +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-C4eGmLcE.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 +12 -4
- 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 +10 -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 +414 -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 +34 -0
- package/dist-vue/index.ts +44 -0
- package/hydrate/index.js +544 -121
- package/hydrate/index.mjs +544 -121
- package/package.json +22 -2
- package/dist/chucao/p-079c2017.entry.js +0 -2
- package/dist/chucao/p-079c2017.entry.js.map +0 -1
- package/dist/chucao/p-37e7f9cc.entry.js +0 -2
- package/dist/chucao/p-37e7f9cc.entry.js.map +0 -1
- package/dist/chucao/p-70285203.entry.js +0 -2
- package/dist/chucao/p-70285203.entry.js.map +0 -1
- package/dist/chucao/p-9c072600.entry.js +0 -2
- package/dist/chucao/p-9c072600.entry.js.map +0 -1
- package/dist/chucao/p-DWC12BJ-.js.map +0 -1
- package/dist/chucao/p-b678a7e2.entry.js +0 -2
- package/dist/chucao/p-b678a7e2.entry.js.map +0 -1
- package/dist/chucao/p-b8bd0310.entry.js +0 -2
- package/dist/chucao/p-b8bd0310.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-077dc2a6.entry.js.map → p-b392021c.entry.js.map} +0 -0
- /package/dist/chucao/{p-5ae89a19.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-C4eGmLcE.js.map → p-no2_9Jk-.js.map} +0 -0
|
@@ -9,28 +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";
|
|
19
|
+
import { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
16
20
|
import { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
17
21
|
import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
18
22
|
import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
23
|
+
import { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
19
24
|
import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
25
|
+
import { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
20
26
|
import { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
21
27
|
import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
22
28
|
export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
23
29
|
export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
24
30
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
25
31
|
export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
|
|
32
|
+
export { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
26
33
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
27
34
|
export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
28
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";
|
|
29
38
|
export { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
39
|
+
export { ChModalSize } from "./components/ch-modal/ch-modal";
|
|
30
40
|
export { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
31
41
|
export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
|
|
32
42
|
export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
43
|
+
export { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
33
44
|
export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
45
|
+
export { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
34
46
|
export { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
35
47
|
export { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
36
48
|
export namespace Components {
|
|
@@ -82,7 +94,7 @@ export namespace Components {
|
|
|
82
94
|
*/
|
|
83
95
|
"href"?: string;
|
|
84
96
|
/**
|
|
85
|
-
* 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.
|
|
86
98
|
*/
|
|
87
99
|
"label"?: string;
|
|
88
100
|
/**
|
|
@@ -150,6 +162,32 @@ export namespace Components {
|
|
|
150
162
|
*/
|
|
151
163
|
"value": string;
|
|
152
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
|
+
}
|
|
153
191
|
interface ChDivider {
|
|
154
192
|
/**
|
|
155
193
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -174,7 +212,7 @@ export namespace Components {
|
|
|
174
212
|
*/
|
|
175
213
|
"closeLabel"?: string;
|
|
176
214
|
/**
|
|
177
|
-
* 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.
|
|
178
216
|
*/
|
|
179
217
|
"label"?: string;
|
|
180
218
|
/**
|
|
@@ -209,6 +247,51 @@ export namespace Components {
|
|
|
209
247
|
*/
|
|
210
248
|
"size": ChEmojiSize;
|
|
211
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
|
+
}
|
|
212
295
|
interface ChInput {
|
|
213
296
|
/**
|
|
214
297
|
* Whether the input is disabled.
|
|
@@ -298,7 +381,7 @@ export namespace Components {
|
|
|
298
381
|
*/
|
|
299
382
|
"closeLabel"?: string;
|
|
300
383
|
/**
|
|
301
|
-
* 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.
|
|
302
385
|
*/
|
|
303
386
|
"label"?: string;
|
|
304
387
|
/**
|
|
@@ -306,6 +389,11 @@ export namespace Components {
|
|
|
306
389
|
* @default false
|
|
307
390
|
*/
|
|
308
391
|
"open": boolean;
|
|
392
|
+
/**
|
|
393
|
+
* The maximum width of the dialog. One of `sm` (24rem), `md` (32rem), or `lg` (48rem). The `--ch-modal-width` custom property overrides it for a width none of the three cover. Either way the dialog never exceeds the viewport.
|
|
394
|
+
* @default 'md'
|
|
395
|
+
*/
|
|
396
|
+
"size": ChModalSize;
|
|
309
397
|
}
|
|
310
398
|
interface ChRadio {
|
|
311
399
|
/**
|
|
@@ -442,6 +530,40 @@ export namespace Components {
|
|
|
442
530
|
*/
|
|
443
531
|
"value"?: string;
|
|
444
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
|
+
}
|
|
445
567
|
/**
|
|
446
568
|
* Loading indicator.
|
|
447
569
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -460,6 +582,28 @@ export namespace Components {
|
|
|
460
582
|
*/
|
|
461
583
|
"size": ChSpinnerSize;
|
|
462
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
|
+
}
|
|
463
607
|
interface ChSwitch {
|
|
464
608
|
/**
|
|
465
609
|
* Whether the switch is on.
|
|
@@ -732,6 +876,16 @@ declare global {
|
|
|
732
876
|
prototype: HTMLChCheckboxElement;
|
|
733
877
|
new (): HTMLChCheckboxElement;
|
|
734
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
|
+
};
|
|
735
889
|
interface HTMLChDividerElement extends Components.ChDivider, HTMLStencilElement {
|
|
736
890
|
}
|
|
737
891
|
var HTMLChDividerElement: {
|
|
@@ -779,6 +933,31 @@ declare global {
|
|
|
779
933
|
prototype: HTMLChEmojiElement;
|
|
780
934
|
new (): HTMLChEmojiElement;
|
|
781
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
|
+
};
|
|
782
961
|
interface HTMLChInputElementEventMap {
|
|
783
962
|
"chInput": string;
|
|
784
963
|
"chChange": string;
|
|
@@ -912,6 +1091,19 @@ declare global {
|
|
|
912
1091
|
prototype: HTMLChSelectElement;
|
|
913
1092
|
new (): HTMLChSelectElement;
|
|
914
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
|
+
};
|
|
915
1107
|
/**
|
|
916
1108
|
* Loading indicator.
|
|
917
1109
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -925,6 +1117,17 @@ declare global {
|
|
|
925
1117
|
prototype: HTMLChSpinnerElement;
|
|
926
1118
|
new (): HTMLChSpinnerElement;
|
|
927
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
|
+
};
|
|
928
1131
|
interface HTMLChSwitchElementEventMap {
|
|
929
1132
|
"chChange": boolean;
|
|
930
1133
|
}
|
|
@@ -1004,16 +1207,21 @@ declare global {
|
|
|
1004
1207
|
"ch-button": HTMLChButtonElement;
|
|
1005
1208
|
"ch-card": HTMLChCardElement;
|
|
1006
1209
|
"ch-checkbox": HTMLChCheckboxElement;
|
|
1210
|
+
"ch-cluster": HTMLChClusterElement;
|
|
1007
1211
|
"ch-divider": HTMLChDividerElement;
|
|
1008
1212
|
"ch-drawer": HTMLChDrawerElement;
|
|
1009
1213
|
"ch-emoji": HTMLChEmojiElement;
|
|
1214
|
+
"ch-empty-state": HTMLChEmptyStateElement;
|
|
1215
|
+
"ch-grid": HTMLChGridElement;
|
|
1010
1216
|
"ch-input": HTMLChInputElement;
|
|
1011
1217
|
"ch-link": HTMLChLinkElement;
|
|
1012
1218
|
"ch-modal": HTMLChModalElement;
|
|
1013
1219
|
"ch-radio": HTMLChRadioElement;
|
|
1014
1220
|
"ch-segmented-control": HTMLChSegmentedControlElement;
|
|
1015
1221
|
"ch-select": HTMLChSelectElement;
|
|
1222
|
+
"ch-skeleton": HTMLChSkeletonElement;
|
|
1016
1223
|
"ch-spinner": HTMLChSpinnerElement;
|
|
1224
|
+
"ch-stack": HTMLChStackElement;
|
|
1017
1225
|
"ch-switch": HTMLChSwitchElement;
|
|
1018
1226
|
"ch-tabs": HTMLChTabsElement;
|
|
1019
1227
|
"ch-textarea": HTMLChTextareaElement;
|
|
@@ -1079,7 +1287,7 @@ declare namespace LocalJSX {
|
|
|
1079
1287
|
*/
|
|
1080
1288
|
"href"?: string;
|
|
1081
1289
|
/**
|
|
1082
|
-
* 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.
|
|
1083
1291
|
*/
|
|
1084
1292
|
"label"?: string;
|
|
1085
1293
|
/**
|
|
@@ -1159,6 +1367,32 @@ declare namespace LocalJSX {
|
|
|
1159
1367
|
*/
|
|
1160
1368
|
"value"?: string;
|
|
1161
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
|
+
}
|
|
1162
1396
|
interface ChDivider {
|
|
1163
1397
|
/**
|
|
1164
1398
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -1183,7 +1417,7 @@ declare namespace LocalJSX {
|
|
|
1183
1417
|
*/
|
|
1184
1418
|
"closeLabel"?: string;
|
|
1185
1419
|
/**
|
|
1186
|
-
* 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.
|
|
1187
1421
|
*/
|
|
1188
1422
|
"label"?: string;
|
|
1189
1423
|
/**
|
|
@@ -1226,6 +1460,51 @@ declare namespace LocalJSX {
|
|
|
1226
1460
|
*/
|
|
1227
1461
|
"size"?: ChEmojiSize;
|
|
1228
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
|
+
}
|
|
1229
1508
|
interface ChInput {
|
|
1230
1509
|
/**
|
|
1231
1510
|
* Whether the input is disabled.
|
|
@@ -1331,7 +1610,7 @@ declare namespace LocalJSX {
|
|
|
1331
1610
|
*/
|
|
1332
1611
|
"closeLabel"?: string;
|
|
1333
1612
|
/**
|
|
1334
|
-
* 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.
|
|
1335
1614
|
*/
|
|
1336
1615
|
"label"?: string;
|
|
1337
1616
|
/**
|
|
@@ -1347,6 +1626,11 @@ declare namespace LocalJSX {
|
|
|
1347
1626
|
* @default false
|
|
1348
1627
|
*/
|
|
1349
1628
|
"open"?: boolean;
|
|
1629
|
+
/**
|
|
1630
|
+
* The maximum width of the dialog. One of `sm` (24rem), `md` (32rem), or `lg` (48rem). The `--ch-modal-width` custom property overrides it for a width none of the three cover. Either way the dialog never exceeds the viewport.
|
|
1631
|
+
* @default 'md'
|
|
1632
|
+
*/
|
|
1633
|
+
"size"?: ChModalSize;
|
|
1350
1634
|
}
|
|
1351
1635
|
interface ChRadio {
|
|
1352
1636
|
/**
|
|
@@ -1507,6 +1791,40 @@ declare namespace LocalJSX {
|
|
|
1507
1791
|
*/
|
|
1508
1792
|
"value"?: string;
|
|
1509
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
|
+
}
|
|
1510
1828
|
/**
|
|
1511
1829
|
* Loading indicator.
|
|
1512
1830
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1525,6 +1843,28 @@ declare namespace LocalJSX {
|
|
|
1525
1843
|
*/
|
|
1526
1844
|
"size"?: ChSpinnerSize;
|
|
1527
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
|
+
}
|
|
1528
1868
|
interface ChSwitch {
|
|
1529
1869
|
/**
|
|
1530
1870
|
* Whether the switch is on.
|
|
@@ -1706,6 +2046,12 @@ declare namespace LocalJSX {
|
|
|
1706
2046
|
"errorMessage": string;
|
|
1707
2047
|
"invalid": boolean;
|
|
1708
2048
|
}
|
|
2049
|
+
interface ChClusterAttributes {
|
|
2050
|
+
"gap": ChClusterGap;
|
|
2051
|
+
"align": ChClusterAlign;
|
|
2052
|
+
"justify": ChClusterJustify;
|
|
2053
|
+
"wrap": boolean;
|
|
2054
|
+
}
|
|
1709
2055
|
interface ChDividerAttributes {
|
|
1710
2056
|
"orientation": ChDividerOrientation;
|
|
1711
2057
|
}
|
|
@@ -1720,6 +2066,16 @@ declare namespace LocalJSX {
|
|
|
1720
2066
|
"alt": string;
|
|
1721
2067
|
"size": ChEmojiSize;
|
|
1722
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
|
+
}
|
|
1723
2079
|
interface ChInputAttributes {
|
|
1724
2080
|
"label": string;
|
|
1725
2081
|
"type": string;
|
|
@@ -1742,6 +2098,7 @@ declare namespace LocalJSX {
|
|
|
1742
2098
|
"open": boolean;
|
|
1743
2099
|
"label": string;
|
|
1744
2100
|
"closeLabel": string;
|
|
2101
|
+
"size": ChModalSize;
|
|
1745
2102
|
}
|
|
1746
2103
|
interface ChRadioAttributes {
|
|
1747
2104
|
"label": string;
|
|
@@ -1772,10 +2129,22 @@ declare namespace LocalJSX {
|
|
|
1772
2129
|
"errorMessage": string;
|
|
1773
2130
|
"invalid": boolean;
|
|
1774
2131
|
}
|
|
2132
|
+
interface ChSkeletonAttributes {
|
|
2133
|
+
"width": string;
|
|
2134
|
+
"height": string;
|
|
2135
|
+
"shape": ChSkeletonShape;
|
|
2136
|
+
"count": number;
|
|
2137
|
+
"animated": boolean;
|
|
2138
|
+
}
|
|
1775
2139
|
interface ChSpinnerAttributes {
|
|
1776
2140
|
"size": ChSpinnerSize;
|
|
1777
2141
|
"label": string;
|
|
1778
2142
|
}
|
|
2143
|
+
interface ChStackAttributes {
|
|
2144
|
+
"gap": ChStackGap;
|
|
2145
|
+
"align": ChStackAlign;
|
|
2146
|
+
"justify": ChStackJustify;
|
|
2147
|
+
}
|
|
1779
2148
|
interface ChSwitchAttributes {
|
|
1780
2149
|
"label": string;
|
|
1781
2150
|
"name": string;
|
|
@@ -1814,16 +2183,21 @@ declare namespace LocalJSX {
|
|
|
1814
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] };
|
|
1815
2184
|
"ch-card": ChCard;
|
|
1816
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] };
|
|
1817
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] };
|
|
1818
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] };
|
|
1819
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] };
|
|
1820
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] };
|
|
1821
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] };
|
|
1822
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] };
|
|
1823
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] };
|
|
1824
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] };
|
|
1825
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] };
|
|
1826
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] };
|
|
1827
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] };
|
|
1828
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] };
|
|
1829
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] };
|
|
@@ -1848,6 +2222,11 @@ declare module "@stencil/core" {
|
|
|
1848
2222
|
"ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
|
|
1849
2223
|
"ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
|
|
1850
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>;
|
|
1851
2230
|
"ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
|
|
1852
2231
|
/**
|
|
1853
2232
|
* Sliding side panel for navigation, editing forms and quick detail views.
|
|
@@ -1868,6 +2247,21 @@ declare module "@stencil/core" {
|
|
|
1868
2247
|
* Size is controlled via the `size` prop.
|
|
1869
2248
|
*/
|
|
1870
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>;
|
|
1871
2265
|
"ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
|
|
1872
2266
|
"ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
|
|
1873
2267
|
/**
|
|
@@ -1903,6 +2297,14 @@ declare module "@stencil/core" {
|
|
|
1903
2297
|
*/
|
|
1904
2298
|
"ch-segmented-control": LocalJSX.IntrinsicElements["ch-segmented-control"] & JSXBase.HTMLAttributes<HTMLChSegmentedControlElement>;
|
|
1905
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>;
|
|
1906
2308
|
/**
|
|
1907
2309
|
* Loading indicator.
|
|
1908
2310
|
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
@@ -1911,6 +2313,12 @@ declare module "@stencil/core" {
|
|
|
1911
2313
|
* invisible there. Set `color` on or above the element to change it.
|
|
1912
2314
|
*/
|
|
1913
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>;
|
|
1914
2322
|
"ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
|
|
1915
2323
|
"ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
|
|
1916
2324
|
"ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
|