@devschile/chucao 2.5.0 → 2.6.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/{p-f5b74bca.entry.js → p-0409c063.entry.js} +2 -2
- package/dist/chucao/{p-0bc141a2.entry.js → p-090d26f1.entry.js} +2 -2
- package/dist/chucao/{p-f9fe752c.entry.js → p-207648f9.entry.js} +2 -2
- package/dist/chucao/{p-9f73855e.entry.js → p-20ea1b18.entry.js} +2 -2
- package/dist/chucao/{p-be7b5c21.entry.js → p-21ca2235.entry.js} +2 -2
- package/dist/chucao/{p-fdf065e6.entry.js → p-2c1bc8bd.entry.js} +2 -2
- package/dist/chucao/{p-2c681cc0.entry.js → p-370d9629.entry.js} +2 -2
- package/dist/chucao/{p-2c681cc0.entry.js.map → p-370d9629.entry.js.map} +1 -1
- package/dist/chucao/{p-6345c9e1.entry.js → p-50cbea7f.entry.js} +2 -2
- package/dist/chucao/p-66ae9e2c.entry.js +2 -0
- package/dist/chucao/p-66ae9e2c.entry.js.map +1 -0
- package/dist/chucao/p-79f20bfd.entry.js +2 -0
- package/dist/chucao/p-79f20bfd.entry.js.map +1 -0
- package/dist/chucao/{p-c251b0d1.entry.js → p-7d4336bd.entry.js} +2 -2
- package/dist/chucao/{p-957acf39.entry.js → p-81b6622f.entry.js} +2 -2
- package/dist/chucao/{p-b53d954e.entry.js → p-925af6b8.entry.js} +2 -2
- package/dist/chucao/p-95061461.entry.js +2 -0
- package/dist/chucao/{p-97655c41.entry.js → p-9794a3fa.entry.js} +2 -2
- package/dist/chucao/{p-26e144ff.entry.js → p-b56f4a29.entry.js} +2 -2
- package/dist/chucao/{p-c165f839.entry.js → p-b9b47942.entry.js} +2 -2
- package/dist/chucao/{p-0e044eff.entry.js → p-c1b35f1b.entry.js} +2 -2
- package/dist/chucao/p-e2f725bd.entry.js +2 -0
- package/dist/chucao/{p-2e785177.entry.js.map → p-e2f725bd.entry.js.map} +1 -1
- package/dist/chucao/{p-350f974d.entry.js → p-e6f959f4.entry.js} +2 -2
- package/dist/chucao/p-f0aea6ed.entry.js +2 -0
- package/dist/chucao/{p-1108062e.entry.js → p-f7305552.entry.js} +2 -2
- package/dist/chucao/p-ffaf1a31.entry.js +2 -0
- package/dist/chucao/p-ffaf1a31.entry.js.map +1 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +7 -7
- package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ch-cluster.cjs.entry.js +2 -2
- package/dist/cjs/ch-description-list.cjs.entry.js +29 -0
- package/dist/cjs/ch-description-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
- package/dist/cjs/ch-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/ch-grid.cjs.entry.js +1 -1
- package/dist/cjs/ch-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/ch-icon.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +1 -1
- package/dist/cjs/ch-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ch-radio.cjs.entry.js +1 -1
- package/dist/cjs/ch-segmented-control.cjs.entry.js +1 -1
- package/dist/cjs/ch-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ch-stack.cjs.entry.js +1 -1
- package/dist/cjs/ch-stat.cjs.entry.js +46 -0
- package/dist/cjs/ch-stat.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
- package/dist/cjs/ch-timeline.cjs.entry.js +20 -0
- package/dist/cjs/ch-timeline.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-tooltip.cjs.entry.js +6 -4
- package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/chucao.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +9 -6
- package/dist/collection/components/ch-accordion/ch-accordion.js +1 -1
- package/dist/collection/components/ch-alert/ch-alert.js +1 -1
- package/dist/collection/components/ch-badge/ch-badge.js +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
- package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
- package/dist/collection/components/ch-description-list/ch-description-list.css +60 -0
- package/dist/collection/components/ch-description-list/ch-description-list.js +78 -0
- package/dist/collection/components/ch-description-list/ch-description-list.js.map +1 -0
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
- package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
- package/dist/collection/components/ch-grid/ch-grid.js +1 -1
- package/dist/collection/components/ch-icon/ch-icon.js +1 -1
- package/dist/collection/components/ch-icon-button/ch-icon-button.js +1 -1
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-page-header/ch-page-header.js +1 -1
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-stack/ch-stack.js +1 -1
- package/dist/collection/components/ch-stat/ch-stat.css +68 -0
- package/dist/collection/components/ch-stat/ch-stat.js +151 -0
- package/dist/collection/components/ch-stat/ch-stat.js.map +1 -0
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/collection/components/ch-timeline/ch-timeline.css +54 -0
- package/dist/collection/components/ch-timeline/ch-timeline.js +43 -0
- package/dist/collection/components/ch-timeline/ch-timeline.js.map +1 -0
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +6 -4
- package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
- 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-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-cluster.js +1 -1
- package/dist/components/ch-description-list.d.ts +11 -0
- package/dist/components/ch-description-list.js +2 -0
- package/dist/components/ch-description-list.js.map +1 -0
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-drawer.js +1 -1
- package/dist/components/ch-emoji.js +1 -1
- package/dist/components/ch-empty-state.js +1 -1
- package/dist/components/ch-grid.js +1 -1
- package/dist/components/ch-icon-button.js +1 -1
- package/dist/components/ch-icon.js +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-page-header.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-segmented-control.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-skeleton.js +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-stack.js +1 -1
- package/dist/components/ch-stat.d.ts +11 -0
- package/dist/components/ch-stat.js +2 -0
- package/dist/components/ch-stat.js.map +1 -0
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-timeline.d.ts +11 -0
- package/dist/components/ch-timeline.js +2 -0
- package/dist/components/ch-timeline.js.map +1 -0
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/ch-tooltip.js.map +1 -1
- package/dist/components/{p-CV0rD-fF.js → p-Cw0b4OGc.js} +2 -2
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +7 -7
- package/dist/esm/ch-checkbox.entry.js +1 -1
- package/dist/esm/ch-cluster.entry.js +2 -2
- package/dist/esm/ch-description-list.entry.js +27 -0
- package/dist/esm/ch-description-list.entry.js.map +1 -0
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-drawer.entry.js +1 -1
- package/dist/esm/ch-emoji.entry.js +1 -1
- package/dist/esm/ch-empty-state.entry.js +1 -1
- package/dist/esm/ch-grid.entry.js +1 -1
- package/dist/esm/ch-icon-button.entry.js +1 -1
- package/dist/esm/ch-icon.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +1 -1
- package/dist/esm/ch-page-header.entry.js +1 -1
- package/dist/esm/ch-radio.entry.js +1 -1
- package/dist/esm/ch-segmented-control.entry.js +1 -1
- package/dist/esm/ch-skeleton.entry.js +1 -1
- package/dist/esm/ch-stack.entry.js +1 -1
- package/dist/esm/ch-stat.entry.js +44 -0
- package/dist/esm/ch-stat.entry.js.map +1 -0
- package/dist/esm/ch-tabs.entry.js +1 -1
- package/dist/esm/ch-textarea.entry.js +1 -1
- package/dist/esm/ch-timeline.entry.js +18 -0
- package/dist/esm/ch-timeline.entry.js.map +1 -0
- package/dist/esm/ch-tooltip.entry.js +6 -4
- package/dist/esm/ch-tooltip.entry.js.map +1 -1
- package/dist/esm/chucao.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ch-description-list/ch-description-list.d.ts +30 -0
- package/dist/types/components/ch-stat/ch-stat.d.ts +42 -0
- package/dist/types/components/ch-timeline/ch-timeline.d.ts +27 -0
- package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +4 -2
- package/dist/types/components.d.ts +312 -0
- package/dist-react/components.d.ts +9 -0
- package/dist-react/components.js +27 -0
- package/dist-react/components.ts +36 -0
- package/dist-vue/index.d.ts +3 -0
- package/dist-vue/index.js +13 -0
- package/dist-vue/index.ts +19 -0
- package/hydrate/index.js +200 -30
- package/hydrate/index.mjs +200 -30
- package/package.json +14 -2
- package/dist/chucao/p-2e785177.entry.js +0 -2
- package/dist/chucao/p-4846cac4.entry.js +0 -2
- package/dist/chucao/p-b6cc08f0.entry.js +0 -2
- /package/dist/chucao/{p-f5b74bca.entry.js.map → p-0409c063.entry.js.map} +0 -0
- /package/dist/chucao/{p-0bc141a2.entry.js.map → p-090d26f1.entry.js.map} +0 -0
- /package/dist/chucao/{p-f9fe752c.entry.js.map → p-207648f9.entry.js.map} +0 -0
- /package/dist/chucao/{p-9f73855e.entry.js.map → p-20ea1b18.entry.js.map} +0 -0
- /package/dist/chucao/{p-be7b5c21.entry.js.map → p-21ca2235.entry.js.map} +0 -0
- /package/dist/chucao/{p-fdf065e6.entry.js.map → p-2c1bc8bd.entry.js.map} +0 -0
- /package/dist/chucao/{p-6345c9e1.entry.js.map → p-50cbea7f.entry.js.map} +0 -0
- /package/dist/chucao/{p-c251b0d1.entry.js.map → p-7d4336bd.entry.js.map} +0 -0
- /package/dist/chucao/{p-957acf39.entry.js.map → p-81b6622f.entry.js.map} +0 -0
- /package/dist/chucao/{p-b53d954e.entry.js.map → p-925af6b8.entry.js.map} +0 -0
- /package/dist/chucao/{p-b6cc08f0.entry.js.map → p-95061461.entry.js.map} +0 -0
- /package/dist/chucao/{p-97655c41.entry.js.map → p-9794a3fa.entry.js.map} +0 -0
- /package/dist/chucao/{p-26e144ff.entry.js.map → p-b56f4a29.entry.js.map} +0 -0
- /package/dist/chucao/{p-c165f839.entry.js.map → p-b9b47942.entry.js.map} +0 -0
- /package/dist/chucao/{p-0e044eff.entry.js.map → p-c1b35f1b.entry.js.map} +0 -0
- /package/dist/chucao/{p-350f974d.entry.js.map → p-e6f959f4.entry.js.map} +0 -0
- /package/dist/chucao/{p-4846cac4.entry.js.map → p-f0aea6ed.entry.js.map} +0 -0
- /package/dist/chucao/{p-1108062e.entry.js.map → p-f7305552.entry.js.map} +0 -0
- /package/dist/components/{p-CV0rD-fF.js.map → p-Cw0b4OGc.js.map} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chronological history: a native ordered list with a marker dot per item
|
|
3
|
+
* and a connector line between items — the last item never gets a trailing
|
|
4
|
+
* connector.
|
|
5
|
+
*
|
|
6
|
+
* The component renders the `<ol>` and owns the rail; the consumer writes
|
|
7
|
+
* plain `<li>` items with whatever content each entry needs — a preformatted
|
|
8
|
+
* date, a title, a description, and a non-colour state cue from `ch-icon`:
|
|
9
|
+
*
|
|
10
|
+
* ```html
|
|
11
|
+
* <ch-timeline>
|
|
12
|
+
* <li>
|
|
13
|
+
* <ch-icon name="check"></ch-icon>
|
|
14
|
+
* <time datetime="2026-11-02">2 nov 2026</time> — Creado el pedido
|
|
15
|
+
* </li>
|
|
16
|
+
* <li><ch-icon name="spinner"></ch-icon> Esperando despacho</li>
|
|
17
|
+
* </ch-timeline>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The list semantics survive untouched because the `li` elements stay native
|
|
21
|
+
* in the light DOM — measured on #83: a wrapped item still counts as a
|
|
22
|
+
* `listitem`, so nothing is gained by a `ch-timeline-item` element, and
|
|
23
|
+
* native markup is the safe bet across browsers.
|
|
24
|
+
*/
|
|
25
|
+
export declare class ChTimeline {
|
|
26
|
+
render(): any;
|
|
27
|
+
}
|
|
@@ -52,8 +52,10 @@ export declare class ChTooltip {
|
|
|
52
52
|
* Listens on the document because a tooltip opened by hovering leaves focus
|
|
53
53
|
* wherever it was, so a host-scoped handler would never see the key.
|
|
54
54
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
55
|
+
* `preventDefault()` dismisses only the innermost surface: the platform's
|
|
56
|
+
* close request for an open native `<dialog>` is the default action of this
|
|
57
|
+
* same keydown, so cancelling it keeps an enclosing `ch-modal` open. Proven
|
|
58
|
+
* against a real `ch-modal` in `tests/browser/ch-tooltip.browser.spec.ts`.
|
|
57
59
|
*/
|
|
58
60
|
handleKeyDown(event: KeyboardEvent): void;
|
|
59
61
|
/** Cheap guard so scroll frames do not measure while nothing is shown. */
|
|
@@ -10,6 +10,7 @@ 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
12
|
import { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
13
|
+
import { ChDescriptionListColumns } from "./components/ch-description-list/ch-description-list";
|
|
13
14
|
import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
14
15
|
import { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
15
16
|
import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
@@ -27,6 +28,7 @@ import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
|
27
28
|
import { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
28
29
|
import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
29
30
|
import { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
31
|
+
import { ChStatTone } from "./components/ch-stat/ch-stat";
|
|
30
32
|
import { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
31
33
|
import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
32
34
|
export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
@@ -34,6 +36,7 @@ export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
|
34
36
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
35
37
|
export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
|
|
36
38
|
export { ChClusterAlign, ChClusterGap, ChClusterJustify } from "./components/ch-cluster/ch-cluster";
|
|
39
|
+
export { ChDescriptionListColumns } from "./components/ch-description-list/ch-description-list";
|
|
37
40
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
38
41
|
export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
|
|
39
42
|
export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
@@ -51,6 +54,7 @@ export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
|
51
54
|
export { ChSkeletonShape } from "./components/ch-skeleton/ch-skeleton";
|
|
52
55
|
export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
53
56
|
export { ChStackAlign, ChStackGap, ChStackJustify } from "./components/ch-stack/ch-stack";
|
|
57
|
+
export { ChStatTone } from "./components/ch-stat/ch-stat";
|
|
54
58
|
export { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
55
59
|
export { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
|
|
56
60
|
export namespace Components {
|
|
@@ -217,6 +221,30 @@ export namespace Components {
|
|
|
217
221
|
*/
|
|
218
222
|
"wrap": boolean;
|
|
219
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Label/value pairs for detail views, on a native `<dl>`.
|
|
226
|
+
* The component renders the `<dl>` and the layout; the consumer writes the
|
|
227
|
+
* terms and descriptions. Group each pair in a `<div>` (valid HTML 5.2
|
|
228
|
+
* grouping) — the group is the grid item, which is what keeps a pair from
|
|
229
|
+
* splitting across columns:
|
|
230
|
+
* ```html
|
|
231
|
+
* <ch-description-list columns="2">
|
|
232
|
+
* <div><dt>Cliente</dt><dd>Aurora SpA</dd></div>
|
|
233
|
+
* <div><dt>Pedido</dt><dd>#1523</dd></div>
|
|
234
|
+
* </ch-description-list>
|
|
235
|
+
* ```
|
|
236
|
+
* The markup stays native in the light DOM, so the `term` role reaches the
|
|
237
|
+
* accessibility tree untouched — the shape decision on #81 measured that a
|
|
238
|
+
* custom wrapper adds nothing in Chromium while risking other browsers. No
|
|
239
|
+
* `ch-description-item` element exists for the same reason.
|
|
240
|
+
*/
|
|
241
|
+
interface ChDescriptionList {
|
|
242
|
+
/**
|
|
243
|
+
* How many pairs share a row on a wide viewport. One column is the stacked layout. An unknown value falls back to one column.
|
|
244
|
+
* @default '1'
|
|
245
|
+
*/
|
|
246
|
+
"columns": ChDescriptionListColumns;
|
|
247
|
+
}
|
|
220
248
|
interface ChDivider {
|
|
221
249
|
/**
|
|
222
250
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -727,6 +755,41 @@ export namespace Components {
|
|
|
727
755
|
*/
|
|
728
756
|
"justify": ChStackJustify;
|
|
729
757
|
}
|
|
758
|
+
/**
|
|
759
|
+
* One dashboard metric: a label, a value and an optional hint.
|
|
760
|
+
* The value is a string the consumer has already formatted — the component
|
|
761
|
+
* never parses numbers, so locale, currency and precision stay where the
|
|
762
|
+
* data comes from. On a fetch error, pass the em dash and the unavailable
|
|
763
|
+
* tone rather than a zero that would read as a real measurement:
|
|
764
|
+
* ```html
|
|
765
|
+
* <ch-stat label="Ventas del mes" value="$1.250.000" tone="positive"></ch-stat>
|
|
766
|
+
* <ch-stat label="Ticket promedio" value="—" tone="unavailable"></ch-stat>
|
|
767
|
+
* ```
|
|
768
|
+
* A tone is never carried by colour alone: positive and negative values get
|
|
769
|
+
* a visible sign cue, so the three states stay distinguishable in greyscale
|
|
770
|
+
* and for colour-blind users. The `value` slot replaces the rendered value
|
|
771
|
+
* for composed content (a link, a spinner), and the `footer` slot sits under
|
|
772
|
+
* the hint for a comparison line or a sparkline.
|
|
773
|
+
*/
|
|
774
|
+
interface ChStat {
|
|
775
|
+
/**
|
|
776
|
+
* Secondary line under the value — a comparison or a unit note.
|
|
777
|
+
*/
|
|
778
|
+
"hint"?: string;
|
|
779
|
+
/**
|
|
780
|
+
* Short label naming the metric, rendered in small caps above the value.
|
|
781
|
+
*/
|
|
782
|
+
"label": string;
|
|
783
|
+
/**
|
|
784
|
+
* Visual tone of the value. `positive` and `negative` add a sign cue so the tone survives greyscale; `unavailable` dims the value for the "could not be measured" case. An unknown value falls back to `default`.
|
|
785
|
+
* @default 'default'
|
|
786
|
+
*/
|
|
787
|
+
"tone": ChStatTone;
|
|
788
|
+
/**
|
|
789
|
+
* The metric value, already formatted by the consumer. Shown verbatim.
|
|
790
|
+
*/
|
|
791
|
+
"value": string;
|
|
792
|
+
}
|
|
730
793
|
interface ChSwitch {
|
|
731
794
|
/**
|
|
732
795
|
* Whether the switch is on.
|
|
@@ -832,6 +895,29 @@ export namespace Components {
|
|
|
832
895
|
*/
|
|
833
896
|
"value": string;
|
|
834
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* Chronological history: a native ordered list with a marker dot per item
|
|
900
|
+
* and a connector line between items — the last item never gets a trailing
|
|
901
|
+
* connector.
|
|
902
|
+
* The component renders the `<ol>` and owns the rail; the consumer writes
|
|
903
|
+
* plain `<li>` items with whatever content each entry needs — a preformatted
|
|
904
|
+
* date, a title, a description, and a non-colour state cue from `ch-icon`:
|
|
905
|
+
* ```html
|
|
906
|
+
* <ch-timeline>
|
|
907
|
+
* <li>
|
|
908
|
+
* <ch-icon name="check"></ch-icon>
|
|
909
|
+
* <time datetime="2026-11-02">2 nov 2026</time> — Creado el pedido
|
|
910
|
+
* </li>
|
|
911
|
+
* <li><ch-icon name="spinner"></ch-icon> Esperando despacho</li>
|
|
912
|
+
* </ch-timeline>
|
|
913
|
+
* ```
|
|
914
|
+
* The list semantics survive untouched because the `li` elements stay native
|
|
915
|
+
* in the light DOM — measured on #83: a wrapped item still counts as a
|
|
916
|
+
* `listitem`, so nothing is gained by a `ch-timeline-item` element, and
|
|
917
|
+
* native markup is the safe bet across browsers.
|
|
918
|
+
*/
|
|
919
|
+
interface ChTimeline {
|
|
920
|
+
}
|
|
835
921
|
/**
|
|
836
922
|
* Short help text shown on hover and on focus.
|
|
837
923
|
* Both the trigger and the text come from the consumer's light DOM through
|
|
@@ -1030,6 +1116,29 @@ declare global {
|
|
|
1030
1116
|
prototype: HTMLChClusterElement;
|
|
1031
1117
|
new (): HTMLChClusterElement;
|
|
1032
1118
|
};
|
|
1119
|
+
/**
|
|
1120
|
+
* Label/value pairs for detail views, on a native `<dl>`.
|
|
1121
|
+
* The component renders the `<dl>` and the layout; the consumer writes the
|
|
1122
|
+
* terms and descriptions. Group each pair in a `<div>` (valid HTML 5.2
|
|
1123
|
+
* grouping) — the group is the grid item, which is what keeps a pair from
|
|
1124
|
+
* splitting across columns:
|
|
1125
|
+
* ```html
|
|
1126
|
+
* <ch-description-list columns="2">
|
|
1127
|
+
* <div><dt>Cliente</dt><dd>Aurora SpA</dd></div>
|
|
1128
|
+
* <div><dt>Pedido</dt><dd>#1523</dd></div>
|
|
1129
|
+
* </ch-description-list>
|
|
1130
|
+
* ```
|
|
1131
|
+
* The markup stays native in the light DOM, so the `term` role reaches the
|
|
1132
|
+
* accessibility tree untouched — the shape decision on #81 measured that a
|
|
1133
|
+
* custom wrapper adds nothing in Chromium while risking other browsers. No
|
|
1134
|
+
* `ch-description-item` element exists for the same reason.
|
|
1135
|
+
*/
|
|
1136
|
+
interface HTMLChDescriptionListElement extends Components.ChDescriptionList, HTMLStencilElement {
|
|
1137
|
+
}
|
|
1138
|
+
var HTMLChDescriptionListElement: {
|
|
1139
|
+
prototype: HTMLChDescriptionListElement;
|
|
1140
|
+
new (): HTMLChDescriptionListElement;
|
|
1141
|
+
};
|
|
1033
1142
|
interface HTMLChDividerElement extends Components.ChDivider, HTMLStencilElement {
|
|
1034
1143
|
}
|
|
1035
1144
|
var HTMLChDividerElement: {
|
|
@@ -1327,6 +1436,28 @@ declare global {
|
|
|
1327
1436
|
prototype: HTMLChStackElement;
|
|
1328
1437
|
new (): HTMLChStackElement;
|
|
1329
1438
|
};
|
|
1439
|
+
/**
|
|
1440
|
+
* One dashboard metric: a label, a value and an optional hint.
|
|
1441
|
+
* The value is a string the consumer has already formatted — the component
|
|
1442
|
+
* never parses numbers, so locale, currency and precision stay where the
|
|
1443
|
+
* data comes from. On a fetch error, pass the em dash and the unavailable
|
|
1444
|
+
* tone rather than a zero that would read as a real measurement:
|
|
1445
|
+
* ```html
|
|
1446
|
+
* <ch-stat label="Ventas del mes" value="$1.250.000" tone="positive"></ch-stat>
|
|
1447
|
+
* <ch-stat label="Ticket promedio" value="—" tone="unavailable"></ch-stat>
|
|
1448
|
+
* ```
|
|
1449
|
+
* A tone is never carried by colour alone: positive and negative values get
|
|
1450
|
+
* a visible sign cue, so the three states stay distinguishable in greyscale
|
|
1451
|
+
* and for colour-blind users. The `value` slot replaces the rendered value
|
|
1452
|
+
* for composed content (a link, a spinner), and the `footer` slot sits under
|
|
1453
|
+
* the hint for a comparison line or a sparkline.
|
|
1454
|
+
*/
|
|
1455
|
+
interface HTMLChStatElement extends Components.ChStat, HTMLStencilElement {
|
|
1456
|
+
}
|
|
1457
|
+
var HTMLChStatElement: {
|
|
1458
|
+
prototype: HTMLChStatElement;
|
|
1459
|
+
new (): HTMLChStatElement;
|
|
1460
|
+
};
|
|
1330
1461
|
interface HTMLChSwitchElementEventMap {
|
|
1331
1462
|
"chChange": boolean;
|
|
1332
1463
|
}
|
|
@@ -1379,6 +1510,33 @@ declare global {
|
|
|
1379
1510
|
prototype: HTMLChTextareaElement;
|
|
1380
1511
|
new (): HTMLChTextareaElement;
|
|
1381
1512
|
};
|
|
1513
|
+
/**
|
|
1514
|
+
* Chronological history: a native ordered list with a marker dot per item
|
|
1515
|
+
* and a connector line between items — the last item never gets a trailing
|
|
1516
|
+
* connector.
|
|
1517
|
+
* The component renders the `<ol>` and owns the rail; the consumer writes
|
|
1518
|
+
* plain `<li>` items with whatever content each entry needs — a preformatted
|
|
1519
|
+
* date, a title, a description, and a non-colour state cue from `ch-icon`:
|
|
1520
|
+
* ```html
|
|
1521
|
+
* <ch-timeline>
|
|
1522
|
+
* <li>
|
|
1523
|
+
* <ch-icon name="check"></ch-icon>
|
|
1524
|
+
* <time datetime="2026-11-02">2 nov 2026</time> — Creado el pedido
|
|
1525
|
+
* </li>
|
|
1526
|
+
* <li><ch-icon name="spinner"></ch-icon> Esperando despacho</li>
|
|
1527
|
+
* </ch-timeline>
|
|
1528
|
+
* ```
|
|
1529
|
+
* The list semantics survive untouched because the `li` elements stay native
|
|
1530
|
+
* in the light DOM — measured on #83: a wrapped item still counts as a
|
|
1531
|
+
* `listitem`, so nothing is gained by a `ch-timeline-item` element, and
|
|
1532
|
+
* native markup is the safe bet across browsers.
|
|
1533
|
+
*/
|
|
1534
|
+
interface HTMLChTimelineElement extends Components.ChTimeline, HTMLStencilElement {
|
|
1535
|
+
}
|
|
1536
|
+
var HTMLChTimelineElement: {
|
|
1537
|
+
prototype: HTMLChTimelineElement;
|
|
1538
|
+
new (): HTMLChTimelineElement;
|
|
1539
|
+
};
|
|
1382
1540
|
/**
|
|
1383
1541
|
* Short help text shown on hover and on focus.
|
|
1384
1542
|
* Both the trigger and the text come from the consumer's light DOM through
|
|
@@ -1413,6 +1571,7 @@ declare global {
|
|
|
1413
1571
|
"ch-card": HTMLChCardElement;
|
|
1414
1572
|
"ch-checkbox": HTMLChCheckboxElement;
|
|
1415
1573
|
"ch-cluster": HTMLChClusterElement;
|
|
1574
|
+
"ch-description-list": HTMLChDescriptionListElement;
|
|
1416
1575
|
"ch-divider": HTMLChDividerElement;
|
|
1417
1576
|
"ch-drawer": HTMLChDrawerElement;
|
|
1418
1577
|
"ch-emoji": HTMLChEmojiElement;
|
|
@@ -1430,9 +1589,11 @@ declare global {
|
|
|
1430
1589
|
"ch-skeleton": HTMLChSkeletonElement;
|
|
1431
1590
|
"ch-spinner": HTMLChSpinnerElement;
|
|
1432
1591
|
"ch-stack": HTMLChStackElement;
|
|
1592
|
+
"ch-stat": HTMLChStatElement;
|
|
1433
1593
|
"ch-switch": HTMLChSwitchElement;
|
|
1434
1594
|
"ch-tabs": HTMLChTabsElement;
|
|
1435
1595
|
"ch-textarea": HTMLChTextareaElement;
|
|
1596
|
+
"ch-timeline": HTMLChTimelineElement;
|
|
1436
1597
|
"ch-tooltip": HTMLChTooltipElement;
|
|
1437
1598
|
}
|
|
1438
1599
|
}
|
|
@@ -1622,6 +1783,30 @@ declare namespace LocalJSX {
|
|
|
1622
1783
|
*/
|
|
1623
1784
|
"wrap"?: boolean;
|
|
1624
1785
|
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Label/value pairs for detail views, on a native `<dl>`.
|
|
1788
|
+
* The component renders the `<dl>` and the layout; the consumer writes the
|
|
1789
|
+
* terms and descriptions. Group each pair in a `<div>` (valid HTML 5.2
|
|
1790
|
+
* grouping) — the group is the grid item, which is what keeps a pair from
|
|
1791
|
+
* splitting across columns:
|
|
1792
|
+
* ```html
|
|
1793
|
+
* <ch-description-list columns="2">
|
|
1794
|
+
* <div><dt>Cliente</dt><dd>Aurora SpA</dd></div>
|
|
1795
|
+
* <div><dt>Pedido</dt><dd>#1523</dd></div>
|
|
1796
|
+
* </ch-description-list>
|
|
1797
|
+
* ```
|
|
1798
|
+
* The markup stays native in the light DOM, so the `term` role reaches the
|
|
1799
|
+
* accessibility tree untouched — the shape decision on #81 measured that a
|
|
1800
|
+
* custom wrapper adds nothing in Chromium while risking other browsers. No
|
|
1801
|
+
* `ch-description-item` element exists for the same reason.
|
|
1802
|
+
*/
|
|
1803
|
+
interface ChDescriptionList {
|
|
1804
|
+
/**
|
|
1805
|
+
* How many pairs share a row on a wide viewport. One column is the stacked layout. An unknown value falls back to one column.
|
|
1806
|
+
* @default '1'
|
|
1807
|
+
*/
|
|
1808
|
+
"columns"?: ChDescriptionListColumns;
|
|
1809
|
+
}
|
|
1625
1810
|
interface ChDivider {
|
|
1626
1811
|
/**
|
|
1627
1812
|
* The orientation of the divider. Either `horizontal` (default) or `vertical`.
|
|
@@ -2192,6 +2377,41 @@ declare namespace LocalJSX {
|
|
|
2192
2377
|
*/
|
|
2193
2378
|
"justify"?: ChStackJustify;
|
|
2194
2379
|
}
|
|
2380
|
+
/**
|
|
2381
|
+
* One dashboard metric: a label, a value and an optional hint.
|
|
2382
|
+
* The value is a string the consumer has already formatted — the component
|
|
2383
|
+
* never parses numbers, so locale, currency and precision stay where the
|
|
2384
|
+
* data comes from. On a fetch error, pass the em dash and the unavailable
|
|
2385
|
+
* tone rather than a zero that would read as a real measurement:
|
|
2386
|
+
* ```html
|
|
2387
|
+
* <ch-stat label="Ventas del mes" value="$1.250.000" tone="positive"></ch-stat>
|
|
2388
|
+
* <ch-stat label="Ticket promedio" value="—" tone="unavailable"></ch-stat>
|
|
2389
|
+
* ```
|
|
2390
|
+
* A tone is never carried by colour alone: positive and negative values get
|
|
2391
|
+
* a visible sign cue, so the three states stay distinguishable in greyscale
|
|
2392
|
+
* and for colour-blind users. The `value` slot replaces the rendered value
|
|
2393
|
+
* for composed content (a link, a spinner), and the `footer` slot sits under
|
|
2394
|
+
* the hint for a comparison line or a sparkline.
|
|
2395
|
+
*/
|
|
2396
|
+
interface ChStat {
|
|
2397
|
+
/**
|
|
2398
|
+
* Secondary line under the value — a comparison or a unit note.
|
|
2399
|
+
*/
|
|
2400
|
+
"hint"?: string;
|
|
2401
|
+
/**
|
|
2402
|
+
* Short label naming the metric, rendered in small caps above the value.
|
|
2403
|
+
*/
|
|
2404
|
+
"label": string;
|
|
2405
|
+
/**
|
|
2406
|
+
* Visual tone of the value. `positive` and `negative` add a sign cue so the tone survives greyscale; `unavailable` dims the value for the "could not be measured" case. An unknown value falls back to `default`.
|
|
2407
|
+
* @default 'default'
|
|
2408
|
+
*/
|
|
2409
|
+
"tone"?: ChStatTone;
|
|
2410
|
+
/**
|
|
2411
|
+
* The metric value, already formatted by the consumer. Shown verbatim.
|
|
2412
|
+
*/
|
|
2413
|
+
"value": string;
|
|
2414
|
+
}
|
|
2195
2415
|
interface ChSwitch {
|
|
2196
2416
|
/**
|
|
2197
2417
|
* Whether the switch is on.
|
|
@@ -2321,6 +2541,29 @@ declare namespace LocalJSX {
|
|
|
2321
2541
|
*/
|
|
2322
2542
|
"value"?: string;
|
|
2323
2543
|
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Chronological history: a native ordered list with a marker dot per item
|
|
2546
|
+
* and a connector line between items — the last item never gets a trailing
|
|
2547
|
+
* connector.
|
|
2548
|
+
* The component renders the `<ol>` and owns the rail; the consumer writes
|
|
2549
|
+
* plain `<li>` items with whatever content each entry needs — a preformatted
|
|
2550
|
+
* date, a title, a description, and a non-colour state cue from `ch-icon`:
|
|
2551
|
+
* ```html
|
|
2552
|
+
* <ch-timeline>
|
|
2553
|
+
* <li>
|
|
2554
|
+
* <ch-icon name="check"></ch-icon>
|
|
2555
|
+
* <time datetime="2026-11-02">2 nov 2026</time> — Creado el pedido
|
|
2556
|
+
* </li>
|
|
2557
|
+
* <li><ch-icon name="spinner"></ch-icon> Esperando despacho</li>
|
|
2558
|
+
* </ch-timeline>
|
|
2559
|
+
* ```
|
|
2560
|
+
* The list semantics survive untouched because the `li` elements stay native
|
|
2561
|
+
* in the light DOM — measured on #83: a wrapped item still counts as a
|
|
2562
|
+
* `listitem`, so nothing is gained by a `ch-timeline-item` element, and
|
|
2563
|
+
* native markup is the safe bet across browsers.
|
|
2564
|
+
*/
|
|
2565
|
+
interface ChTimeline {
|
|
2566
|
+
}
|
|
2324
2567
|
/**
|
|
2325
2568
|
* Short help text shown on hover and on focus.
|
|
2326
2569
|
* Both the trigger and the text come from the consumer's light DOM through
|
|
@@ -2387,6 +2630,9 @@ declare namespace LocalJSX {
|
|
|
2387
2630
|
"justify": ChClusterJustify;
|
|
2388
2631
|
"wrap": boolean;
|
|
2389
2632
|
}
|
|
2633
|
+
interface ChDescriptionListAttributes {
|
|
2634
|
+
"columns": ChDescriptionListColumns;
|
|
2635
|
+
}
|
|
2390
2636
|
interface ChDividerAttributes {
|
|
2391
2637
|
"orientation": ChDividerOrientation;
|
|
2392
2638
|
}
|
|
@@ -2500,6 +2746,12 @@ declare namespace LocalJSX {
|
|
|
2500
2746
|
"align": ChStackAlign;
|
|
2501
2747
|
"justify": ChStackJustify;
|
|
2502
2748
|
}
|
|
2749
|
+
interface ChStatAttributes {
|
|
2750
|
+
"label": string;
|
|
2751
|
+
"value": string;
|
|
2752
|
+
"hint": string;
|
|
2753
|
+
"tone": ChStatTone;
|
|
2754
|
+
}
|
|
2503
2755
|
interface ChSwitchAttributes {
|
|
2504
2756
|
"label": string;
|
|
2505
2757
|
"name": string;
|
|
@@ -2539,6 +2791,7 @@ declare namespace LocalJSX {
|
|
|
2539
2791
|
"ch-card": ChCard;
|
|
2540
2792
|
"ch-checkbox": Omit<ChCheckbox, keyof ChCheckboxAttributes> & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes]?: ChCheckbox[K] } & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes as `attr:${K}`]?: ChCheckboxAttributes[K] } & { [K in keyof ChCheckbox & keyof ChCheckboxAttributes as `prop:${K}`]?: ChCheckbox[K] };
|
|
2541
2793
|
"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] };
|
|
2794
|
+
"ch-description-list": Omit<ChDescriptionList, keyof ChDescriptionListAttributes> & { [K in keyof ChDescriptionList & keyof ChDescriptionListAttributes]?: ChDescriptionList[K] } & { [K in keyof ChDescriptionList & keyof ChDescriptionListAttributes as `attr:${K}`]?: ChDescriptionListAttributes[K] } & { [K in keyof ChDescriptionList & keyof ChDescriptionListAttributes as `prop:${K}`]?: ChDescriptionList[K] };
|
|
2542
2795
|
"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] };
|
|
2543
2796
|
"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] };
|
|
2544
2797
|
"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"]>;
|
|
@@ -2556,9 +2809,11 @@ declare namespace LocalJSX {
|
|
|
2556
2809
|
"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] };
|
|
2557
2810
|
"ch-spinner": Omit<ChSpinner, keyof ChSpinnerAttributes> & { [K in keyof ChSpinner & keyof ChSpinnerAttributes]?: ChSpinner[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `attr:${K}`]?: ChSpinnerAttributes[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `prop:${K}`]?: ChSpinner[K] };
|
|
2558
2811
|
"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] };
|
|
2812
|
+
"ch-stat": Omit<ChStat, keyof ChStatAttributes> & { [K in keyof ChStat & keyof ChStatAttributes]?: ChStat[K] } & { [K in keyof ChStat & keyof ChStatAttributes as `attr:${K}`]?: ChStatAttributes[K] } & { [K in keyof ChStat & keyof ChStatAttributes as `prop:${K}`]?: ChStat[K] } & OneOf<"label", ChStat["label"], ChStatAttributes["label"]> & OneOf<"value", ChStat["value"], ChStatAttributes["value"]>;
|
|
2559
2813
|
"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] };
|
|
2560
2814
|
"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] };
|
|
2561
2815
|
"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] };
|
|
2816
|
+
"ch-timeline": ChTimeline;
|
|
2562
2817
|
"ch-tooltip": Omit<ChTooltip, keyof ChTooltipAttributes> & { [K in keyof ChTooltip & keyof ChTooltipAttributes]?: ChTooltip[K] } & { [K in keyof ChTooltip & keyof ChTooltipAttributes as `attr:${K}`]?: ChTooltipAttributes[K] } & { [K in keyof ChTooltip & keyof ChTooltipAttributes as `prop:${K}`]?: ChTooltip[K] };
|
|
2563
2818
|
}
|
|
2564
2819
|
}
|
|
@@ -2596,6 +2851,24 @@ declare module "@stencil/core" {
|
|
|
2596
2851
|
* gap in both axes — the layout a toolbar, a tag list or a button row needs.
|
|
2597
2852
|
*/
|
|
2598
2853
|
"ch-cluster": LocalJSX.IntrinsicElements["ch-cluster"] & JSXBase.HTMLAttributes<HTMLChClusterElement>;
|
|
2854
|
+
/**
|
|
2855
|
+
* Label/value pairs for detail views, on a native `<dl>`.
|
|
2856
|
+
* The component renders the `<dl>` and the layout; the consumer writes the
|
|
2857
|
+
* terms and descriptions. Group each pair in a `<div>` (valid HTML 5.2
|
|
2858
|
+
* grouping) — the group is the grid item, which is what keeps a pair from
|
|
2859
|
+
* splitting across columns:
|
|
2860
|
+
* ```html
|
|
2861
|
+
* <ch-description-list columns="2">
|
|
2862
|
+
* <div><dt>Cliente</dt><dd>Aurora SpA</dd></div>
|
|
2863
|
+
* <div><dt>Pedido</dt><dd>#1523</dd></div>
|
|
2864
|
+
* </ch-description-list>
|
|
2865
|
+
* ```
|
|
2866
|
+
* The markup stays native in the light DOM, so the `term` role reaches the
|
|
2867
|
+
* accessibility tree untouched — the shape decision on #81 measured that a
|
|
2868
|
+
* custom wrapper adds nothing in Chromium while risking other browsers. No
|
|
2869
|
+
* `ch-description-item` element exists for the same reason.
|
|
2870
|
+
*/
|
|
2871
|
+
"ch-description-list": LocalJSX.IntrinsicElements["ch-description-list"] & JSXBase.HTMLAttributes<HTMLChDescriptionListElement>;
|
|
2599
2872
|
"ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
|
|
2600
2873
|
/**
|
|
2601
2874
|
* Sliding side panel for navigation, editing forms and quick detail views.
|
|
@@ -2717,9 +2990,48 @@ declare module "@stencil/core" {
|
|
|
2717
2990
|
* consumer's own classes and attributes on `<ch-stack>` keep working.
|
|
2718
2991
|
*/
|
|
2719
2992
|
"ch-stack": LocalJSX.IntrinsicElements["ch-stack"] & JSXBase.HTMLAttributes<HTMLChStackElement>;
|
|
2993
|
+
/**
|
|
2994
|
+
* One dashboard metric: a label, a value and an optional hint.
|
|
2995
|
+
* The value is a string the consumer has already formatted — the component
|
|
2996
|
+
* never parses numbers, so locale, currency and precision stay where the
|
|
2997
|
+
* data comes from. On a fetch error, pass the em dash and the unavailable
|
|
2998
|
+
* tone rather than a zero that would read as a real measurement:
|
|
2999
|
+
* ```html
|
|
3000
|
+
* <ch-stat label="Ventas del mes" value="$1.250.000" tone="positive"></ch-stat>
|
|
3001
|
+
* <ch-stat label="Ticket promedio" value="—" tone="unavailable"></ch-stat>
|
|
3002
|
+
* ```
|
|
3003
|
+
* A tone is never carried by colour alone: positive and negative values get
|
|
3004
|
+
* a visible sign cue, so the three states stay distinguishable in greyscale
|
|
3005
|
+
* and for colour-blind users. The `value` slot replaces the rendered value
|
|
3006
|
+
* for composed content (a link, a spinner), and the `footer` slot sits under
|
|
3007
|
+
* the hint for a comparison line or a sparkline.
|
|
3008
|
+
*/
|
|
3009
|
+
"ch-stat": LocalJSX.IntrinsicElements["ch-stat"] & JSXBase.HTMLAttributes<HTMLChStatElement>;
|
|
2720
3010
|
"ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
|
|
2721
3011
|
"ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
|
|
2722
3012
|
"ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
|
|
3013
|
+
/**
|
|
3014
|
+
* Chronological history: a native ordered list with a marker dot per item
|
|
3015
|
+
* and a connector line between items — the last item never gets a trailing
|
|
3016
|
+
* connector.
|
|
3017
|
+
* The component renders the `<ol>` and owns the rail; the consumer writes
|
|
3018
|
+
* plain `<li>` items with whatever content each entry needs — a preformatted
|
|
3019
|
+
* date, a title, a description, and a non-colour state cue from `ch-icon`:
|
|
3020
|
+
* ```html
|
|
3021
|
+
* <ch-timeline>
|
|
3022
|
+
* <li>
|
|
3023
|
+
* <ch-icon name="check"></ch-icon>
|
|
3024
|
+
* <time datetime="2026-11-02">2 nov 2026</time> — Creado el pedido
|
|
3025
|
+
* </li>
|
|
3026
|
+
* <li><ch-icon name="spinner"></ch-icon> Esperando despacho</li>
|
|
3027
|
+
* </ch-timeline>
|
|
3028
|
+
* ```
|
|
3029
|
+
* The list semantics survive untouched because the `li` elements stay native
|
|
3030
|
+
* in the light DOM — measured on #83: a wrapped item still counts as a
|
|
3031
|
+
* `listitem`, so nothing is gained by a `ch-timeline-item` element, and
|
|
3032
|
+
* native markup is the safe bet across browsers.
|
|
3033
|
+
*/
|
|
3034
|
+
"ch-timeline": LocalJSX.IntrinsicElements["ch-timeline"] & JSXBase.HTMLAttributes<HTMLChTimelineElement>;
|
|
2723
3035
|
/**
|
|
2724
3036
|
* Short help text shown on hover and on focus.
|
|
2725
3037
|
* Both the trigger and the text come from the consumer's light DOM through
|
|
@@ -12,6 +12,7 @@ import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/c
|
|
|
12
12
|
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
13
13
|
import { ChCheckbox as ChCheckboxElement } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
14
14
|
import { ChCluster as ChClusterElement } from "@devschile/chucao/dist/components/ch-cluster.js";
|
|
15
|
+
import { ChDescriptionList as ChDescriptionListElement } from "@devschile/chucao/dist/components/ch-description-list.js";
|
|
15
16
|
import { ChDivider as ChDividerElement } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
16
17
|
import { ChDrawer as ChDrawerElement } from "@devschile/chucao/dist/components/ch-drawer.js";
|
|
17
18
|
import { ChEmoji as ChEmojiElement } from "@devschile/chucao/dist/components/ch-emoji.js";
|
|
@@ -29,9 +30,11 @@ import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/c
|
|
|
29
30
|
import { ChSkeleton as ChSkeletonElement } from "@devschile/chucao/dist/components/ch-skeleton.js";
|
|
30
31
|
import { ChSpinner as ChSpinnerElement } from "@devschile/chucao/dist/components/ch-spinner.js";
|
|
31
32
|
import { ChStack as ChStackElement } from "@devschile/chucao/dist/components/ch-stack.js";
|
|
33
|
+
import { ChStat as ChStatElement } from "@devschile/chucao/dist/components/ch-stat.js";
|
|
32
34
|
import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
33
35
|
import { ChTabs as ChTabsElement } from "@devschile/chucao/dist/components/ch-tabs.js";
|
|
34
36
|
import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
37
|
+
import { ChTimeline as ChTimelineElement } from "@devschile/chucao/dist/components/ch-timeline.js";
|
|
35
38
|
import { ChTooltip as ChTooltipElement } from "@devschile/chucao/dist/components/ch-tooltip.js";
|
|
36
39
|
export type ChAccordionEvents = {
|
|
37
40
|
onChChange: EventName<ChAccordionCustomEvent<string | undefined>>;
|
|
@@ -55,6 +58,8 @@ export type ChCheckboxEvents = {
|
|
|
55
58
|
export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
|
|
56
59
|
export type ChClusterEvents = NonNullable<unknown>;
|
|
57
60
|
export declare const ChCluster: StencilReactComponent<ChClusterElement, ChClusterEvents, Components.ChCluster>;
|
|
61
|
+
export type ChDescriptionListEvents = NonNullable<unknown>;
|
|
62
|
+
export declare const ChDescriptionList: StencilReactComponent<ChDescriptionListElement, ChDescriptionListEvents, Components.ChDescriptionList>;
|
|
58
63
|
export type ChDividerEvents = NonNullable<unknown>;
|
|
59
64
|
export declare const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents, Components.ChDivider>;
|
|
60
65
|
export type ChDrawerEvents = {
|
|
@@ -108,6 +113,8 @@ export type ChSpinnerEvents = NonNullable<unknown>;
|
|
|
108
113
|
export declare const ChSpinner: StencilReactComponent<ChSpinnerElement, ChSpinnerEvents, Components.ChSpinner>;
|
|
109
114
|
export type ChStackEvents = NonNullable<unknown>;
|
|
110
115
|
export declare const ChStack: StencilReactComponent<ChStackElement, ChStackEvents, Components.ChStack>;
|
|
116
|
+
export type ChStatEvents = NonNullable<unknown>;
|
|
117
|
+
export declare const ChStat: StencilReactComponent<ChStatElement, ChStatEvents, Components.ChStat, 'label' | 'value'>;
|
|
111
118
|
export type ChSwitchEvents = {
|
|
112
119
|
onChChange: EventName<ChSwitchCustomEvent<boolean>>;
|
|
113
120
|
};
|
|
@@ -121,5 +128,7 @@ export type ChTextareaEvents = {
|
|
|
121
128
|
onChChange: EventName<ChTextareaCustomEvent<string>>;
|
|
122
129
|
};
|
|
123
130
|
export declare const ChTextarea: StencilReactComponent<ChTextareaElement, ChTextareaEvents, Components.ChTextarea>;
|
|
131
|
+
export type ChTimelineEvents = NonNullable<unknown>;
|
|
132
|
+
export declare const ChTimeline: StencilReactComponent<ChTimelineElement, ChTimelineEvents, Components.ChTimeline>;
|
|
124
133
|
export type ChTooltipEvents = NonNullable<unknown>;
|
|
125
134
|
export declare const ChTooltip: StencilReactComponent<ChTooltipElement, ChTooltipEvents, Components.ChTooltip>;
|
package/dist-react/components.js
CHANGED
|
@@ -8,6 +8,7 @@ import { ChButton as ChButtonElement, defineCustomElement as defineChButton } fr
|
|
|
8
8
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
9
9
|
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
10
10
|
import { ChCluster as ChClusterElement, defineCustomElement as defineChCluster } from "@devschile/chucao/dist/components/ch-cluster.js";
|
|
11
|
+
import { ChDescriptionList as ChDescriptionListElement, defineCustomElement as defineChDescriptionList } from "@devschile/chucao/dist/components/ch-description-list.js";
|
|
11
12
|
import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
12
13
|
import { ChDrawer as ChDrawerElement, defineCustomElement as defineChDrawer } from "@devschile/chucao/dist/components/ch-drawer.js";
|
|
13
14
|
import { ChEmoji as ChEmojiElement, defineCustomElement as defineChEmoji } from "@devschile/chucao/dist/components/ch-emoji.js";
|
|
@@ -25,9 +26,11 @@ import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } fr
|
|
|
25
26
|
import { ChSkeleton as ChSkeletonElement, defineCustomElement as defineChSkeleton } from "@devschile/chucao/dist/components/ch-skeleton.js";
|
|
26
27
|
import { ChSpinner as ChSpinnerElement, defineCustomElement as defineChSpinner } from "@devschile/chucao/dist/components/ch-spinner.js";
|
|
27
28
|
import { ChStack as ChStackElement, defineCustomElement as defineChStack } from "@devschile/chucao/dist/components/ch-stack.js";
|
|
29
|
+
import { ChStat as ChStatElement, defineCustomElement as defineChStat } from "@devschile/chucao/dist/components/ch-stat.js";
|
|
28
30
|
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
29
31
|
import { ChTabs as ChTabsElement, defineCustomElement as defineChTabs } from "@devschile/chucao/dist/components/ch-tabs.js";
|
|
30
32
|
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
33
|
+
import { ChTimeline as ChTimelineElement, defineCustomElement as defineChTimeline } from "@devschile/chucao/dist/components/ch-timeline.js";
|
|
31
34
|
import { ChTooltip as ChTooltipElement, defineCustomElement as defineChTooltip } from "@devschile/chucao/dist/components/ch-tooltip.js";
|
|
32
35
|
export const ChAccordion = /*@__PURE__*/ createComponent({
|
|
33
36
|
tagName: 'ch-accordion',
|
|
@@ -85,6 +88,14 @@ export const ChCluster = /*@__PURE__*/ createComponent({
|
|
|
85
88
|
events: {},
|
|
86
89
|
defineCustomElement: defineChCluster
|
|
87
90
|
});
|
|
91
|
+
export const ChDescriptionList = /*@__PURE__*/ createComponent({
|
|
92
|
+
tagName: 'ch-description-list',
|
|
93
|
+
elementClass: ChDescriptionListElement,
|
|
94
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
95
|
+
react: React,
|
|
96
|
+
events: {},
|
|
97
|
+
defineCustomElement: defineChDescriptionList
|
|
98
|
+
});
|
|
88
99
|
export const ChDivider = /*@__PURE__*/ createComponent({
|
|
89
100
|
tagName: 'ch-divider',
|
|
90
101
|
elementClass: ChDividerElement,
|
|
@@ -230,6 +241,14 @@ export const ChStack = /*@__PURE__*/ createComponent({
|
|
|
230
241
|
events: {},
|
|
231
242
|
defineCustomElement: defineChStack
|
|
232
243
|
});
|
|
244
|
+
export const ChStat = /*@__PURE__*/ createComponent({
|
|
245
|
+
tagName: 'ch-stat',
|
|
246
|
+
elementClass: ChStatElement,
|
|
247
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
248
|
+
react: React,
|
|
249
|
+
events: {},
|
|
250
|
+
defineCustomElement: defineChStat
|
|
251
|
+
});
|
|
233
252
|
export const ChSwitch = /*@__PURE__*/ createComponent({
|
|
234
253
|
tagName: 'ch-switch',
|
|
235
254
|
elementClass: ChSwitchElement,
|
|
@@ -257,6 +276,14 @@ export const ChTextarea = /*@__PURE__*/ createComponent({
|
|
|
257
276
|
},
|
|
258
277
|
defineCustomElement: defineChTextarea
|
|
259
278
|
});
|
|
279
|
+
export const ChTimeline = /*@__PURE__*/ createComponent({
|
|
280
|
+
tagName: 'ch-timeline',
|
|
281
|
+
elementClass: ChTimelineElement,
|
|
282
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
283
|
+
react: React,
|
|
284
|
+
events: {},
|
|
285
|
+
defineCustomElement: defineChTimeline
|
|
286
|
+
});
|
|
260
287
|
export const ChTooltip = /*@__PURE__*/ createComponent({
|
|
261
288
|
tagName: 'ch-tooltip',
|
|
262
289
|
elementClass: ChTooltipElement,
|