@devschile/chucao 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +17 -16
  2. package/dist/chucao/chucao.css +1 -1
  3. package/dist/chucao/chucao.esm.js +1 -1
  4. package/dist/chucao/index.esm.js +1 -1
  5. package/dist/chucao/index.esm.js.map +1 -1
  6. package/dist/chucao/{p-1ebd9dc4.entry.js → p-0bc141a2.entry.js} +2 -2
  7. package/dist/chucao/{p-449e1ba0.entry.js → p-0e044eff.entry.js} +2 -2
  8. package/dist/chucao/{p-a07e0e97.entry.js → p-1108062e.entry.js} +2 -2
  9. package/dist/chucao/{p-85db779c.entry.js → p-26e144ff.entry.js} +2 -2
  10. package/dist/chucao/p-2c681cc0.entry.js +2 -0
  11. package/dist/chucao/p-2c681cc0.entry.js.map +1 -0
  12. package/dist/chucao/p-2e785177.entry.js +2 -0
  13. package/dist/chucao/{p-0e3c83a6.entry.js.map → p-2e785177.entry.js.map} +1 -1
  14. package/dist/chucao/{p-6e95f31f.entry.js → p-337d7f68.entry.js} +2 -2
  15. package/dist/chucao/{p-7c85f5fe.entry.js → p-350f974d.entry.js} +2 -2
  16. package/dist/chucao/p-4846cac4.entry.js +2 -0
  17. package/dist/chucao/{p-d0533af6.entry.js → p-6345c9e1.entry.js} +2 -2
  18. package/dist/chucao/p-957acf39.entry.js +2 -0
  19. package/dist/chucao/p-957acf39.entry.js.map +1 -0
  20. package/dist/chucao/{p-34a9d1f4.entry.js → p-97655c41.entry.js} +2 -2
  21. package/dist/chucao/{p-b5552b50.entry.js → p-9f73855e.entry.js} +2 -2
  22. package/dist/chucao/p-CIV5Gg1o.js +3 -0
  23. package/dist/chucao/p-CIV5Gg1o.js.map +1 -0
  24. package/dist/chucao/p-CnivhwvG.js +2 -0
  25. package/dist/chucao/p-CnivhwvG.js.map +1 -0
  26. package/dist/chucao/{p-17451d92.entry.js → p-b53d954e.entry.js} +2 -2
  27. package/dist/chucao/{p-d776b092.entry.js → p-b6cc08f0.entry.js} +2 -2
  28. package/dist/chucao/p-be7b5c21.entry.js +2 -0
  29. package/dist/chucao/p-be7b5c21.entry.js.map +1 -0
  30. package/dist/chucao/p-c165f839.entry.js +2 -0
  31. package/dist/chucao/p-c165f839.entry.js.map +1 -0
  32. package/dist/chucao/{p-56d64d84.entry.js → p-c251b0d1.entry.js} +2 -2
  33. package/dist/chucao/p-f5b74bca.entry.js +2 -0
  34. package/dist/chucao/p-f5b74bca.entry.js.map +1 -0
  35. package/dist/chucao/{p-84d875e9.entry.js → p-f9fe752c.entry.js} +2 -2
  36. package/dist/chucao/{p-1778a313.entry.js → p-fdf065e6.entry.js} +2 -2
  37. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  38. package/dist/cjs/ch-alert_8.cjs.entry.js +34 -10
  39. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  41. package/dist/cjs/ch-cluster.cjs.entry.js +3 -3
  42. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-drawer.cjs.entry.js +2 -2
  44. package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
  45. package/dist/cjs/ch-empty-state.cjs.entry.js +2 -2
  46. package/dist/cjs/ch-grid.cjs.entry.js +2 -2
  47. package/dist/cjs/ch-icon-button.cjs.entry.js +51 -0
  48. package/dist/cjs/ch-icon-button.cjs.entry.js.map +1 -0
  49. package/dist/cjs/ch-icon.cjs.entry.js +38 -0
  50. package/dist/cjs/ch-icon.cjs.entry.js.map +1 -0
  51. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  52. package/dist/cjs/ch-modal.cjs.entry.js +2 -2
  53. package/dist/cjs/ch-page-header.cjs.entry.js +45 -0
  54. package/dist/cjs/ch-page-header.cjs.entry.js.map +1 -0
  55. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  56. package/dist/cjs/ch-segmented-control.cjs.entry.js +2 -2
  57. package/dist/cjs/ch-skeleton.cjs.entry.js +2 -2
  58. package/dist/cjs/ch-stack.cjs.entry.js +2 -2
  59. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  60. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  61. package/dist/cjs/ch-tooltip.cjs.entry.js +204 -5
  62. package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
  63. package/dist/cjs/chucao.cjs.js +2 -2
  64. package/dist/cjs/icons-CNyDgV-q.js +88 -0
  65. package/dist/cjs/icons-CNyDgV-q.js.map +1 -0
  66. package/dist/cjs/{index-ysucLiAq.js → index-ByZY6aTj.js} +81 -5
  67. package/dist/cjs/index-ByZY6aTj.js.map +1 -0
  68. package/dist/cjs/index.cjs.js +16 -0
  69. package/dist/cjs/index.cjs.js.map +1 -1
  70. package/dist/cjs/loader.cjs.js +2 -2
  71. package/dist/collection/collection-manifest.json +3 -0
  72. package/dist/collection/components/ch-alert/ch-alert.css +13 -0
  73. package/dist/collection/components/ch-alert/ch-alert.js +44 -1
  74. package/dist/collection/components/ch-alert/ch-alert.js.map +1 -1
  75. package/dist/collection/components/ch-badge/ch-badge.css +30 -1
  76. package/dist/collection/components/ch-badge/ch-badge.js +35 -1
  77. package/dist/collection/components/ch-badge/ch-badge.js.map +1 -1
  78. package/dist/collection/components/ch-card/ch-card.js +1 -1
  79. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  80. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  81. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  82. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  83. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  84. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  85. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  86. package/dist/collection/components/ch-icon/ch-icon.css +25 -0
  87. package/dist/collection/components/ch-icon/ch-icon.js +121 -0
  88. package/dist/collection/components/ch-icon/ch-icon.js.map +1 -0
  89. package/dist/collection/components/ch-icon-button/ch-icon-button.css +99 -0
  90. package/dist/collection/components/ch-icon-button/ch-icon-button.js +216 -0
  91. package/dist/collection/components/ch-icon-button/ch-icon-button.js.map +1 -0
  92. package/dist/collection/components/ch-input/ch-input.js +1 -1
  93. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  94. package/dist/collection/components/ch-page-header/ch-page-header.css +84 -0
  95. package/dist/collection/components/ch-page-header/ch-page-header.js +162 -0
  96. package/dist/collection/components/ch-page-header/ch-page-header.js.map +1 -0
  97. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  98. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  99. package/dist/collection/components/ch-select/ch-select.js +1 -1
  100. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  101. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  102. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  103. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  104. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  105. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  106. package/dist/collection/components/ch-tooltip/ch-tooltip.css +29 -1
  107. package/dist/collection/components/ch-tooltip/ch-tooltip.js +125 -6
  108. package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
  109. package/dist/collection/tokens/tokens.js +12 -0
  110. package/dist/collection/tokens/tokens.js.map +1 -1
  111. package/dist/collection/tokens/types.js.map +1 -1
  112. package/dist/collection/utils/icons.js +82 -0
  113. package/dist/collection/utils/icons.js.map +1 -0
  114. package/dist/collection/utils/overlay.js +101 -0
  115. package/dist/collection/utils/overlay.js.map +1 -0
  116. package/dist/components/ch-accordion.js +1 -1
  117. package/dist/components/ch-alert.js +1 -1
  118. package/dist/components/ch-alert.js.map +1 -1
  119. package/dist/components/ch-badge.js +1 -1
  120. package/dist/components/ch-badge.js.map +1 -1
  121. package/dist/components/ch-button.js +1 -1
  122. package/dist/components/ch-card.js +1 -1
  123. package/dist/components/ch-checkbox.js +1 -1
  124. package/dist/components/ch-cluster.js +1 -1
  125. package/dist/components/ch-divider.js +1 -1
  126. package/dist/components/ch-drawer.js +1 -1
  127. package/dist/components/ch-emoji.js +1 -1
  128. package/dist/components/ch-empty-state.js +1 -1
  129. package/dist/components/ch-grid.js +1 -1
  130. package/dist/components/ch-icon-button.d.ts +11 -0
  131. package/dist/components/ch-icon-button.js +2 -0
  132. package/dist/components/ch-icon-button.js.map +1 -0
  133. package/dist/components/ch-icon.d.ts +11 -0
  134. package/dist/components/ch-icon.js +2 -0
  135. package/dist/components/ch-icon.js.map +1 -0
  136. package/dist/components/ch-input.js +1 -1
  137. package/dist/components/ch-link.js +1 -1
  138. package/dist/components/ch-modal.js +1 -1
  139. package/dist/components/ch-page-header.d.ts +11 -0
  140. package/dist/components/ch-page-header.js +2 -0
  141. package/dist/components/ch-page-header.js.map +1 -0
  142. package/dist/components/ch-radio.js +1 -1
  143. package/dist/components/ch-segmented-control.js +1 -1
  144. package/dist/components/ch-select.js +1 -1
  145. package/dist/components/ch-skeleton.js +1 -1
  146. package/dist/components/ch-spinner.js +1 -1
  147. package/dist/components/ch-stack.js +1 -1
  148. package/dist/components/ch-switch.js +1 -1
  149. package/dist/components/ch-tabs.js +1 -1
  150. package/dist/components/ch-textarea.js +1 -1
  151. package/dist/components/ch-tooltip.js +1 -1
  152. package/dist/components/ch-tooltip.js.map +1 -1
  153. package/dist/components/index.js +1 -1
  154. package/dist/components/index.js.map +1 -1
  155. package/dist/components/{p-no2_9Jk-.js → p-CV0rD-fF.js} +2 -2
  156. package/dist/components/p-CnivhwvG.js +2 -0
  157. package/dist/components/p-CnivhwvG.js.map +1 -0
  158. package/dist/components/p-qP_9qshx.js +2 -0
  159. package/dist/components/p-qP_9qshx.js.map +1 -0
  160. package/dist/esm/ch-accordion.entry.js +1 -1
  161. package/dist/esm/ch-alert_8.entry.js +34 -10
  162. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  163. package/dist/esm/ch-checkbox.entry.js +2 -2
  164. package/dist/esm/ch-cluster.entry.js +3 -3
  165. package/dist/esm/ch-divider.entry.js +2 -2
  166. package/dist/esm/ch-drawer.entry.js +2 -2
  167. package/dist/esm/ch-emoji.entry.js +2 -2
  168. package/dist/esm/ch-empty-state.entry.js +2 -2
  169. package/dist/esm/ch-grid.entry.js +2 -2
  170. package/dist/esm/ch-icon-button.entry.js +49 -0
  171. package/dist/esm/ch-icon-button.entry.js.map +1 -0
  172. package/dist/esm/ch-icon.entry.js +36 -0
  173. package/dist/esm/ch-icon.entry.js.map +1 -0
  174. package/dist/esm/ch-link.entry.js +1 -1
  175. package/dist/esm/ch-modal.entry.js +2 -2
  176. package/dist/esm/ch-page-header.entry.js +43 -0
  177. package/dist/esm/ch-page-header.entry.js.map +1 -0
  178. package/dist/esm/ch-radio.entry.js +2 -2
  179. package/dist/esm/ch-segmented-control.entry.js +2 -2
  180. package/dist/esm/ch-skeleton.entry.js +2 -2
  181. package/dist/esm/ch-stack.entry.js +2 -2
  182. package/dist/esm/ch-tabs.entry.js +2 -2
  183. package/dist/esm/ch-textarea.entry.js +2 -2
  184. package/dist/esm/ch-tooltip.entry.js +204 -5
  185. package/dist/esm/ch-tooltip.entry.js.map +1 -1
  186. package/dist/esm/chucao.js +3 -3
  187. package/dist/esm/icons-CnivhwvG.js +86 -0
  188. package/dist/esm/icons-CnivhwvG.js.map +1 -0
  189. package/dist/esm/{index-DVKZbUp9.js → index-CIV5Gg1o.js} +81 -6
  190. package/dist/esm/index-CIV5Gg1o.js.map +1 -0
  191. package/dist/esm/index.js +13 -1
  192. package/dist/esm/index.js.map +1 -1
  193. package/dist/esm/loader.js +3 -3
  194. package/dist/types/components/ch-alert/ch-alert.d.ts +11 -0
  195. package/dist/types/components/ch-badge/ch-badge.d.ts +14 -0
  196. package/dist/types/components/ch-icon/ch-icon.d.ts +29 -0
  197. package/dist/types/components/ch-icon-button/ch-icon-button.d.ts +36 -0
  198. package/dist/types/components/ch-page-header/ch-page-header.d.ts +39 -0
  199. package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +32 -2
  200. package/dist/types/components.d.ts +406 -2
  201. package/dist/types/tokens/tokens.d.ts +12 -0
  202. package/dist/types/tokens/types.d.ts +2 -1
  203. package/dist/types/utils/icons.d.ts +15 -0
  204. package/dist/types/utils/overlay.d.ts +49 -0
  205. package/dist-react/components.d.ts +12 -1
  206. package/dist-react/components.js +27 -0
  207. package/dist-react/components.ts +37 -1
  208. package/dist-vue/index.d.ts +3 -0
  209. package/dist-vue/index.js +29 -1
  210. package/dist-vue/index.ts +35 -1
  211. package/hydrate/index.js +601 -34
  212. package/hydrate/index.mjs +601 -34
  213. package/package.json +91 -4
  214. package/dist/chucao/p-0e3c83a6.entry.js +0 -2
  215. package/dist/chucao/p-82216381.entry.js +0 -2
  216. package/dist/chucao/p-82216381.entry.js.map +0 -1
  217. package/dist/chucao/p-907195ff.entry.js +0 -2
  218. package/dist/chucao/p-DVKZbUp9.js +0 -3
  219. package/dist/chucao/p-DVKZbUp9.js.map +0 -1
  220. package/dist/chucao/p-b392021c.entry.js +0 -2
  221. package/dist/chucao/p-b392021c.entry.js.map +0 -1
  222. package/dist/cjs/index-ysucLiAq.js.map +0 -1
  223. package/dist/components/p-DQOKq7af.js +0 -2
  224. package/dist/components/p-DQOKq7af.js.map +0 -1
  225. package/dist/esm/index-DVKZbUp9.js.map +0 -1
  226. /package/dist/chucao/{p-1ebd9dc4.entry.js.map → p-0bc141a2.entry.js.map} +0 -0
  227. /package/dist/chucao/{p-449e1ba0.entry.js.map → p-0e044eff.entry.js.map} +0 -0
  228. /package/dist/chucao/{p-a07e0e97.entry.js.map → p-1108062e.entry.js.map} +0 -0
  229. /package/dist/chucao/{p-85db779c.entry.js.map → p-26e144ff.entry.js.map} +0 -0
  230. /package/dist/chucao/{p-6e95f31f.entry.js.map → p-337d7f68.entry.js.map} +0 -0
  231. /package/dist/chucao/{p-7c85f5fe.entry.js.map → p-350f974d.entry.js.map} +0 -0
  232. /package/dist/chucao/{p-907195ff.entry.js.map → p-4846cac4.entry.js.map} +0 -0
  233. /package/dist/chucao/{p-d0533af6.entry.js.map → p-6345c9e1.entry.js.map} +0 -0
  234. /package/dist/chucao/{p-34a9d1f4.entry.js.map → p-97655c41.entry.js.map} +0 -0
  235. /package/dist/chucao/{p-b5552b50.entry.js.map → p-9f73855e.entry.js.map} +0 -0
  236. /package/dist/chucao/{p-17451d92.entry.js.map → p-b53d954e.entry.js.map} +0 -0
  237. /package/dist/chucao/{p-d776b092.entry.js.map → p-b6cc08f0.entry.js.map} +0 -0
  238. /package/dist/chucao/{p-56d64d84.entry.js.map → p-c251b0d1.entry.js.map} +0 -0
  239. /package/dist/chucao/{p-84d875e9.entry.js.map → p-f9fe752c.entry.js.map} +0 -0
  240. /package/dist/chucao/{p-1778a313.entry.js.map → p-fdf065e6.entry.js.map} +0 -0
  241. /package/dist/components/{p-no2_9Jk-.js.map → p-CV0rD-fF.js.map} +0 -0
@@ -15,8 +15,12 @@ import { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
15
15
  import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
16
16
  import { ChEmptyStateSize } from "./components/ch-empty-state/ch-empty-state";
17
17
  import { ChGridGap } from "./components/ch-grid/ch-grid";
18
+ import { ChIconName } from "./utils/icons";
19
+ import { ChIconSize } from "./components/ch-icon/ch-icon";
20
+ import { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
18
21
  import { ChLinkVariant } from "./components/ch-link/ch-link";
19
22
  import { ChModalSize } from "./components/ch-modal/ch-modal";
23
+ import { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
20
24
  import { ChRadioOption } from "./components/ch-radio/ch-radio";
21
25
  import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
22
26
  import { ChSelectOption } from "./components/ch-select/ch-select";
@@ -35,8 +39,12 @@ export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
35
39
  export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
36
40
  export { ChEmptyStateSize } from "./components/ch-empty-state/ch-empty-state";
37
41
  export { ChGridGap } from "./components/ch-grid/ch-grid";
42
+ export { ChIconName } from "./utils/icons";
43
+ export { ChIconSize } from "./components/ch-icon/ch-icon";
44
+ export { ChIconButtonSize } from "./components/ch-icon-button/ch-icon-button";
38
45
  export { ChLinkVariant } from "./components/ch-link/ch-link";
39
46
  export { ChModalSize } from "./components/ch-modal/ch-modal";
47
+ export { ChPageHeaderHeadingLevel } from "./components/ch-page-header/ch-page-header";
40
48
  export { ChRadioOption } from "./components/ch-radio/ch-radio";
41
49
  export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
42
50
  export { ChSelectOption } from "./components/ch-select/ch-select";
@@ -64,19 +72,40 @@ export namespace Components {
64
72
  * interrupt. Both announce reliably when the alert is added to the page in
65
73
  * response to something — an alert already present at load may not be read out,
66
74
  * which is how live regions work rather than something this component controls.
75
+ * Every variant also carries an icon and a thicker leading edge, so the three
76
+ * states stay distinguishable without colour vision. The icon is decorative:
77
+ * the text next to it already says what happened, and announcing "check
78
+ * circle" before it would only add noise.
67
79
  */
68
80
  interface ChAlert {
69
81
  /**
70
82
  * Accessible label for the dismiss button, set as `aria-label`. Setting it is what adds the button: the button's only content is a decorative glyph, so without a label it would have no accessible name at all.
71
83
  */
72
84
  "dismissLabel"?: string;
85
+ /**
86
+ * Whether to show the variant's icon. On by default so the status is not colour-only; turn it off when the surrounding copy already carries the cue and a second marker would be redundant.
87
+ * @default true
88
+ */
89
+ "statusCue": boolean;
73
90
  /**
74
91
  * The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
75
92
  * @default 'default'
76
93
  */
77
94
  "variant": ChAlertVariant;
78
95
  }
96
+ /**
97
+ * Small status label.
98
+ * Variants are not colour-only: each one also changes the leading dot's shape
99
+ * and adds a matching border, so a badge still says which state it is in when
100
+ * printed in grayscale or seen with colour-vision deficiency. `default` uses a
101
+ * filled dot, `positive` a ring, and `warning` a filled square.
102
+ */
79
103
  interface ChBadge {
104
+ /**
105
+ * Whether to show the variant marker. On by default so the state does not depend on colour; turn it off for a badge that only repeats text already carrying the meaning.
106
+ * @default true
107
+ */
108
+ "statusCue": boolean;
80
109
  /**
81
110
  * The visual style of the badge. Either `default`, `positive`, or `warning`.
82
111
  * @default 'default'
@@ -292,6 +321,66 @@ export namespace Components {
292
321
  */
293
322
  "minItemWidth": string;
294
323
  }
324
+ /**
325
+ * A single Lucide glyph.
326
+ * Decorative by default: the icon is hidden from assistive technology unless
327
+ * you give it a `label`, because most icons sit next to text that already says
328
+ * what they mean and a second announcement is noise. Set `label` only when the
329
+ * icon carries meaning on its own; a control whose only content is an icon
330
+ * should use `ch-icon-button`, which requires the name.
331
+ */
332
+ interface ChIcon {
333
+ /**
334
+ * Accessible name. When set, the icon becomes `role="img"` and is announced; when omitted it is `aria-hidden`.
335
+ */
336
+ "label"?: string;
337
+ /**
338
+ * Which glyph to draw. Unknown values render nothing rather than throwing, so a stale name in a data payload cannot break the page.
339
+ */
340
+ "name": ChIconName;
341
+ /**
342
+ * `sm` is 16px, `md` is 20px and `lg` is 24px — the sizes the scale's line heights were built around.
343
+ * @default 'md'
344
+ */
345
+ "size": ChIconSize;
346
+ }
347
+ /**
348
+ * A button whose only content is an icon.
349
+ * The label is required rather than optional. An icon-only button without an
350
+ * accessible name is unusable by voice, screen reader or automation, and there
351
+ * is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
352
+ * the reason this component exists instead of letting consumers bolt an icon
353
+ * slot onto `ch-button` and forget the name.
354
+ */
355
+ interface ChIconButton {
356
+ /**
357
+ * @default false
358
+ */
359
+ "disabled": boolean;
360
+ /**
361
+ * Accessible name, set as `aria-label`. Required: say what the button does ("Eliminar producto"), not what the glyph is ("papelera").
362
+ */
363
+ "label": string;
364
+ /**
365
+ * Blocks pointer and keyboard activation and marks the button `aria-busy` while keeping it focusable, so focus does not fall to `<body>` when an action completes.
366
+ * @default false
367
+ */
368
+ "loading": boolean;
369
+ /**
370
+ * The glyph to draw.
371
+ */
372
+ "name": ChIconName;
373
+ /**
374
+ * Visual size. `md` matches the height of a default `ch-button`.
375
+ * @default 'md'
376
+ */
377
+ "size": ChIconButtonSize;
378
+ /**
379
+ * Native button type, defaulting to `button` so it never submits a form by accident.
380
+ * @default 'button'
381
+ */
382
+ "type": 'button' | 'submit' | 'reset';
383
+ }
295
384
  interface ChInput {
296
385
  /**
297
386
  * Whether the input is disabled.
@@ -395,6 +484,40 @@ export namespace Components {
395
484
  */
396
485
  "size": ChModalSize;
397
486
  }
487
+ /**
488
+ * The heading block at the top of a page: title, optional eyebrow and
489
+ * description, and a trailing actions area.
490
+ * The title is a `title` prop rather than a slot so the heading level always
491
+ * matches the page. A slotted heading lets a consumer nest a second `h1`, and
492
+ * "one top-level heading per page" then depends on every caller remembering it;
493
+ * here the level is explicit and defaults to `h1`. The actions wrap rather than
494
+ * push the page sideways at 390px, and the DOM order keeps the heading before
495
+ * the actions so reading and focus order still start with the title.
496
+ */
497
+ interface ChPageHeader {
498
+ /**
499
+ * Puts the actions below the title instead of beside it. Use it when the actions are too wide to sit on the same row even after wrapping.
500
+ * @default false
501
+ */
502
+ "actionsStacked": boolean;
503
+ /**
504
+ * Optional supporting line under the title.
505
+ */
506
+ "description"?: string;
507
+ /**
508
+ * Optional small label above the title, as slotted content. Use it for a section or entity kind ("Proyecto", "Factura #1042"), not for the title.
509
+ */
510
+ "eyebrow"?: string;
511
+ /**
512
+ * Heading element to render. Use `h2` (or `h3`) when the page already has a higher-level heading above this block, so the document outline stays valid.
513
+ * @default 'h1'
514
+ */
515
+ "headingLevel": ChPageHeaderHeadingLevel;
516
+ /**
517
+ * The page title. Rendered as a real heading, so it also works as the accessible name of the page region.
518
+ */
519
+ "title": string;
520
+ }
398
521
  interface ChRadio {
399
522
  /**
400
523
  * Whether all radios in the group are disabled.
@@ -722,10 +845,16 @@ export namespace Components {
722
845
  * `<input>`). A chucao component such as `ch-button` will not be described,
723
846
  * because `aria-*` set on a custom element host does not reach the native
724
847
  * element inside it — see the discussion in issue #47.
848
+ * Positioning is measured, not purely CSS: `placement` is the preferred side,
849
+ * and the bubble flips to the opposite side when the preferred one does not
850
+ * fit, then shifts along the other axis to stay inside the viewport. It
851
+ * re-measures on scroll, resize and visual-viewport changes, which is what
852
+ * keeps it correct inside a scrolling modal or drawer and when a mobile
853
+ * keyboard shrinks the visible area.
725
854
  */
726
855
  interface ChTooltip {
727
856
  /**
728
- * Which side of the trigger the bubble is placed on.
857
+ * The side the bubble is placed on. It is a preference: when that side has no room the bubble flips to the opposite one.
729
858
  * @default 'top'
730
859
  */
731
860
  "placement": ChTooltipPlacement;
@@ -751,6 +880,10 @@ export interface ChDrawerCustomEvent<T> extends CustomEvent<T> {
751
880
  detail: T;
752
881
  target: HTMLChDrawerElement;
753
882
  }
883
+ export interface ChIconButtonCustomEvent<T> extends CustomEvent<T> {
884
+ detail: T;
885
+ target: HTMLChIconButtonElement;
886
+ }
754
887
  export interface ChInputCustomEvent<T> extends CustomEvent<T> {
755
888
  detail: T;
756
889
  target: HTMLChInputElement;
@@ -815,6 +948,10 @@ declare global {
815
948
  * interrupt. Both announce reliably when the alert is added to the page in
816
949
  * response to something — an alert already present at load may not be read out,
817
950
  * which is how live regions work rather than something this component controls.
951
+ * Every variant also carries an icon and a thicker leading edge, so the three
952
+ * states stay distinguishable without colour vision. The icon is decorative:
953
+ * the text next to it already says what happened, and announcing "check
954
+ * circle" before it would only add noise.
818
955
  */
819
956
  interface HTMLChAlertElement extends Components.ChAlert, HTMLStencilElement {
820
957
  addEventListener<K extends keyof HTMLChAlertElementEventMap>(type: K, listener: (this: HTMLChAlertElement, ev: ChAlertCustomEvent<HTMLChAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -830,6 +967,13 @@ declare global {
830
967
  prototype: HTMLChAlertElement;
831
968
  new (): HTMLChAlertElement;
832
969
  };
970
+ /**
971
+ * Small status label.
972
+ * Variants are not colour-only: each one also changes the leading dot's shape
973
+ * and adds a matching border, so a badge still says which state it is in when
974
+ * printed in grayscale or seen with colour-vision deficiency. `default` uses a
975
+ * filled dot, `positive` a ring, and `warning` a filled square.
976
+ */
833
977
  interface HTMLChBadgeElement extends Components.ChBadge, HTMLStencilElement {
834
978
  }
835
979
  var HTMLChBadgeElement: {
@@ -958,6 +1102,45 @@ declare global {
958
1102
  prototype: HTMLChGridElement;
959
1103
  new (): HTMLChGridElement;
960
1104
  };
1105
+ /**
1106
+ * A single Lucide glyph.
1107
+ * Decorative by default: the icon is hidden from assistive technology unless
1108
+ * you give it a `label`, because most icons sit next to text that already says
1109
+ * what they mean and a second announcement is noise. Set `label` only when the
1110
+ * icon carries meaning on its own; a control whose only content is an icon
1111
+ * should use `ch-icon-button`, which requires the name.
1112
+ */
1113
+ interface HTMLChIconElement extends Components.ChIcon, HTMLStencilElement {
1114
+ }
1115
+ var HTMLChIconElement: {
1116
+ prototype: HTMLChIconElement;
1117
+ new (): HTMLChIconElement;
1118
+ };
1119
+ interface HTMLChIconButtonElementEventMap {
1120
+ "chClick": MouseEvent;
1121
+ }
1122
+ /**
1123
+ * A button whose only content is an icon.
1124
+ * The label is required rather than optional. An icon-only button without an
1125
+ * accessible name is unusable by voice, screen reader or automation, and there
1126
+ * is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
1127
+ * the reason this component exists instead of letting consumers bolt an icon
1128
+ * slot onto `ch-button` and forget the name.
1129
+ */
1130
+ interface HTMLChIconButtonElement extends Components.ChIconButton, HTMLStencilElement {
1131
+ addEventListener<K extends keyof HTMLChIconButtonElementEventMap>(type: K, listener: (this: HTMLChIconButtonElement, ev: ChIconButtonCustomEvent<HTMLChIconButtonElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1132
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1133
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1134
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1135
+ removeEventListener<K extends keyof HTMLChIconButtonElementEventMap>(type: K, listener: (this: HTMLChIconButtonElement, ev: ChIconButtonCustomEvent<HTMLChIconButtonElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1136
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1137
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1138
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1139
+ }
1140
+ var HTMLChIconButtonElement: {
1141
+ prototype: HTMLChIconButtonElement;
1142
+ new (): HTMLChIconButtonElement;
1143
+ };
961
1144
  interface HTMLChInputElementEventMap {
962
1145
  "chInput": string;
963
1146
  "chChange": string;
@@ -1027,6 +1210,22 @@ declare global {
1027
1210
  prototype: HTMLChModalElement;
1028
1211
  new (): HTMLChModalElement;
1029
1212
  };
1213
+ /**
1214
+ * The heading block at the top of a page: title, optional eyebrow and
1215
+ * description, and a trailing actions area.
1216
+ * The title is a `title` prop rather than a slot so the heading level always
1217
+ * matches the page. A slotted heading lets a consumer nest a second `h1`, and
1218
+ * "one top-level heading per page" then depends on every caller remembering it;
1219
+ * here the level is explicit and defaults to `h1`. The actions wrap rather than
1220
+ * push the page sideways at 390px, and the DOM order keeps the heading before
1221
+ * the actions so reading and focus order still start with the title.
1222
+ */
1223
+ interface HTMLChPageHeaderElement extends Components.ChPageHeader, HTMLStencilElement {
1224
+ }
1225
+ var HTMLChPageHeaderElement: {
1226
+ prototype: HTMLChPageHeaderElement;
1227
+ new (): HTMLChPageHeaderElement;
1228
+ };
1030
1229
  interface HTMLChRadioElementEventMap {
1031
1230
  "chChange": string;
1032
1231
  }
@@ -1193,6 +1392,12 @@ declare global {
1193
1392
  * `<input>`). A chucao component such as `ch-button` will not be described,
1194
1393
  * because `aria-*` set on a custom element host does not reach the native
1195
1394
  * element inside it — see the discussion in issue #47.
1395
+ * Positioning is measured, not purely CSS: `placement` is the preferred side,
1396
+ * and the bubble flips to the opposite side when the preferred one does not
1397
+ * fit, then shifts along the other axis to stay inside the viewport. It
1398
+ * re-measures on scroll, resize and visual-viewport changes, which is what
1399
+ * keeps it correct inside a scrolling modal or drawer and when a mobile
1400
+ * keyboard shrinks the visible area.
1196
1401
  */
1197
1402
  interface HTMLChTooltipElement extends Components.ChTooltip, HTMLStencilElement {
1198
1403
  }
@@ -1213,9 +1418,12 @@ declare global {
1213
1418
  "ch-emoji": HTMLChEmojiElement;
1214
1419
  "ch-empty-state": HTMLChEmptyStateElement;
1215
1420
  "ch-grid": HTMLChGridElement;
1421
+ "ch-icon": HTMLChIconElement;
1422
+ "ch-icon-button": HTMLChIconButtonElement;
1216
1423
  "ch-input": HTMLChInputElement;
1217
1424
  "ch-link": HTMLChLinkElement;
1218
1425
  "ch-modal": HTMLChModalElement;
1426
+ "ch-page-header": HTMLChPageHeaderElement;
1219
1427
  "ch-radio": HTMLChRadioElement;
1220
1428
  "ch-segmented-control": HTMLChSegmentedControlElement;
1221
1429
  "ch-select": HTMLChSelectElement;
@@ -1253,6 +1461,10 @@ declare namespace LocalJSX {
1253
1461
  * interrupt. Both announce reliably when the alert is added to the page in
1254
1462
  * response to something — an alert already present at load may not be read out,
1255
1463
  * which is how live regions work rather than something this component controls.
1464
+ * Every variant also carries an icon and a thicker leading edge, so the three
1465
+ * states stay distinguishable without colour vision. The icon is decorative:
1466
+ * the text next to it already says what happened, and announcing "check
1467
+ * circle" before it would only add noise.
1256
1468
  */
1257
1469
  interface ChAlert {
1258
1470
  /**
@@ -1263,13 +1475,30 @@ declare namespace LocalJSX {
1263
1475
  * Emitted when the dismiss button is clicked. The alert stays in the DOM — whether to remove it is the consumer's decision. If you do remove it, move focus somewhere sensible first: removing the focused button drops focus to `<body>`.
1264
1476
  */
1265
1477
  "onChDismiss"?: (event: ChAlertCustomEvent<void>) => void;
1478
+ /**
1479
+ * Whether to show the variant's icon. On by default so the status is not colour-only; turn it off when the surrounding copy already carries the cue and a second marker would be redundant.
1480
+ * @default true
1481
+ */
1482
+ "statusCue"?: boolean;
1266
1483
  /**
1267
1484
  * The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
1268
1485
  * @default 'default'
1269
1486
  */
1270
1487
  "variant"?: ChAlertVariant;
1271
1488
  }
1489
+ /**
1490
+ * Small status label.
1491
+ * Variants are not colour-only: each one also changes the leading dot's shape
1492
+ * and adds a matching border, so a badge still says which state it is in when
1493
+ * printed in grayscale or seen with colour-vision deficiency. `default` uses a
1494
+ * filled dot, `positive` a ring, and `warning` a filled square.
1495
+ */
1272
1496
  interface ChBadge {
1497
+ /**
1498
+ * Whether to show the variant marker. On by default so the state does not depend on colour; turn it off for a badge that only repeats text already carrying the meaning.
1499
+ * @default true
1500
+ */
1501
+ "statusCue"?: boolean;
1273
1502
  /**
1274
1503
  * The visual style of the badge. Either `default`, `positive`, or `warning`.
1275
1504
  * @default 'default'
@@ -1505,6 +1734,70 @@ declare namespace LocalJSX {
1505
1734
  */
1506
1735
  "minItemWidth"?: string;
1507
1736
  }
1737
+ /**
1738
+ * A single Lucide glyph.
1739
+ * Decorative by default: the icon is hidden from assistive technology unless
1740
+ * you give it a `label`, because most icons sit next to text that already says
1741
+ * what they mean and a second announcement is noise. Set `label` only when the
1742
+ * icon carries meaning on its own; a control whose only content is an icon
1743
+ * should use `ch-icon-button`, which requires the name.
1744
+ */
1745
+ interface ChIcon {
1746
+ /**
1747
+ * Accessible name. When set, the icon becomes `role="img"` and is announced; when omitted it is `aria-hidden`.
1748
+ */
1749
+ "label"?: string;
1750
+ /**
1751
+ * Which glyph to draw. Unknown values render nothing rather than throwing, so a stale name in a data payload cannot break the page.
1752
+ */
1753
+ "name": ChIconName;
1754
+ /**
1755
+ * `sm` is 16px, `md` is 20px and `lg` is 24px — the sizes the scale's line heights were built around.
1756
+ * @default 'md'
1757
+ */
1758
+ "size"?: ChIconSize;
1759
+ }
1760
+ /**
1761
+ * A button whose only content is an icon.
1762
+ * The label is required rather than optional. An icon-only button without an
1763
+ * accessible name is unusable by voice, screen reader or automation, and there
1764
+ * is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
1765
+ * the reason this component exists instead of letting consumers bolt an icon
1766
+ * slot onto `ch-button` and forget the name.
1767
+ */
1768
+ interface ChIconButton {
1769
+ /**
1770
+ * @default false
1771
+ */
1772
+ "disabled"?: boolean;
1773
+ /**
1774
+ * Accessible name, set as `aria-label`. Required: say what the button does ("Eliminar producto"), not what the glyph is ("papelera").
1775
+ */
1776
+ "label": string;
1777
+ /**
1778
+ * Blocks pointer and keyboard activation and marks the button `aria-busy` while keeping it focusable, so focus does not fall to `<body>` when an action completes.
1779
+ * @default false
1780
+ */
1781
+ "loading"?: boolean;
1782
+ /**
1783
+ * The glyph to draw.
1784
+ */
1785
+ "name": ChIconName;
1786
+ /**
1787
+ * Emitted on click. A click while disabled or loading emits nothing.
1788
+ */
1789
+ "onChClick"?: (event: ChIconButtonCustomEvent<MouseEvent>) => void;
1790
+ /**
1791
+ * Visual size. `md` matches the height of a default `ch-button`.
1792
+ * @default 'md'
1793
+ */
1794
+ "size"?: ChIconButtonSize;
1795
+ /**
1796
+ * Native button type, defaulting to `button` so it never submits a form by accident.
1797
+ * @default 'button'
1798
+ */
1799
+ "type"?: 'button' | 'submit' | 'reset';
1800
+ }
1508
1801
  interface ChInput {
1509
1802
  /**
1510
1803
  * Whether the input is disabled.
@@ -1632,6 +1925,40 @@ declare namespace LocalJSX {
1632
1925
  */
1633
1926
  "size"?: ChModalSize;
1634
1927
  }
1928
+ /**
1929
+ * The heading block at the top of a page: title, optional eyebrow and
1930
+ * description, and a trailing actions area.
1931
+ * The title is a `title` prop rather than a slot so the heading level always
1932
+ * matches the page. A slotted heading lets a consumer nest a second `h1`, and
1933
+ * "one top-level heading per page" then depends on every caller remembering it;
1934
+ * here the level is explicit and defaults to `h1`. The actions wrap rather than
1935
+ * push the page sideways at 390px, and the DOM order keeps the heading before
1936
+ * the actions so reading and focus order still start with the title.
1937
+ */
1938
+ interface ChPageHeader {
1939
+ /**
1940
+ * Puts the actions below the title instead of beside it. Use it when the actions are too wide to sit on the same row even after wrapping.
1941
+ * @default false
1942
+ */
1943
+ "actionsStacked"?: boolean;
1944
+ /**
1945
+ * Optional supporting line under the title.
1946
+ */
1947
+ "description"?: string;
1948
+ /**
1949
+ * Optional small label above the title, as slotted content. Use it for a section or entity kind ("Proyecto", "Factura #1042"), not for the title.
1950
+ */
1951
+ "eyebrow"?: string;
1952
+ /**
1953
+ * Heading element to render. Use `h2` (or `h3`) when the page already has a higher-level heading above this block, so the document outline stays valid.
1954
+ * @default 'h1'
1955
+ */
1956
+ "headingLevel"?: ChPageHeaderHeadingLevel;
1957
+ /**
1958
+ * The page title. Rendered as a real heading, so it also works as the accessible name of the page region.
1959
+ */
1960
+ "title": string;
1961
+ }
1635
1962
  interface ChRadio {
1636
1963
  /**
1637
1964
  * Whether all radios in the group are disabled.
@@ -2007,10 +2334,16 @@ declare namespace LocalJSX {
2007
2334
  * `<input>`). A chucao component such as `ch-button` will not be described,
2008
2335
  * because `aria-*` set on a custom element host does not reach the native
2009
2336
  * element inside it — see the discussion in issue #47.
2337
+ * Positioning is measured, not purely CSS: `placement` is the preferred side,
2338
+ * and the bubble flips to the opposite side when the preferred one does not
2339
+ * fit, then shifts along the other axis to stay inside the viewport. It
2340
+ * re-measures on scroll, resize and visual-viewport changes, which is what
2341
+ * keeps it correct inside a scrolling modal or drawer and when a mobile
2342
+ * keyboard shrinks the visible area.
2010
2343
  */
2011
2344
  interface ChTooltip {
2012
2345
  /**
2013
- * Which side of the trigger the bubble is placed on.
2346
+ * The side the bubble is placed on. It is a preference: when that side has no room the bubble flips to the opposite one.
2014
2347
  * @default 'top'
2015
2348
  */
2016
2349
  "placement"?: ChTooltipPlacement;
@@ -2022,9 +2355,11 @@ declare namespace LocalJSX {
2022
2355
  interface ChAlertAttributes {
2023
2356
  "variant": ChAlertVariant;
2024
2357
  "dismissLabel": string;
2358
+ "statusCue": boolean;
2025
2359
  }
2026
2360
  interface ChBadgeAttributes {
2027
2361
  "variant": ChBadgeVariant;
2362
+ "statusCue": boolean;
2028
2363
  }
2029
2364
  interface ChButtonAttributes {
2030
2365
  "variant": ChButtonVariant;
@@ -2076,6 +2411,19 @@ declare namespace LocalJSX {
2076
2411
  "gap": ChGridGap;
2077
2412
  "minItemWidth": string;
2078
2413
  }
2414
+ interface ChIconAttributes {
2415
+ "name": ChIconName;
2416
+ "size": ChIconSize;
2417
+ "label": string;
2418
+ }
2419
+ interface ChIconButtonAttributes {
2420
+ "name": ChIconName;
2421
+ "label": string;
2422
+ "size": ChIconButtonSize;
2423
+ "type": 'button' | 'submit' | 'reset';
2424
+ "disabled": boolean;
2425
+ "loading": boolean;
2426
+ }
2079
2427
  interface ChInputAttributes {
2080
2428
  "label": string;
2081
2429
  "type": string;
@@ -2100,6 +2448,13 @@ declare namespace LocalJSX {
2100
2448
  "closeLabel": string;
2101
2449
  "size": ChModalSize;
2102
2450
  }
2451
+ interface ChPageHeaderAttributes {
2452
+ "title": string;
2453
+ "headingLevel": ChPageHeaderHeadingLevel;
2454
+ "eyebrow": string;
2455
+ "description": string;
2456
+ "actionsStacked": boolean;
2457
+ }
2103
2458
  interface ChRadioAttributes {
2104
2459
  "label": string;
2105
2460
  "value": string;
@@ -2189,9 +2544,12 @@ declare namespace LocalJSX {
2189
2544
  "ch-emoji": Omit<ChEmoji, keyof ChEmojiAttributes> & { [K in keyof ChEmoji & keyof ChEmojiAttributes]?: ChEmoji[K] } & { [K in keyof ChEmoji & keyof ChEmojiAttributes as `attr:${K}`]?: ChEmojiAttributes[K] } & { [K in keyof ChEmoji & keyof ChEmojiAttributes as `prop:${K}`]?: ChEmoji[K] } & OneOf<"name", ChEmoji["name"], ChEmojiAttributes["name"]>;
2190
2545
  "ch-empty-state": Omit<ChEmptyState, keyof ChEmptyStateAttributes> & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes]?: ChEmptyState[K] } & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes as `attr:${K}`]?: ChEmptyStateAttributes[K] } & { [K in keyof ChEmptyState & keyof ChEmptyStateAttributes as `prop:${K}`]?: ChEmptyState[K] } & OneOf<"title", ChEmptyState["title"], ChEmptyStateAttributes["title"]>;
2191
2546
  "ch-grid": Omit<ChGrid, keyof ChGridAttributes> & { [K in keyof ChGrid & keyof ChGridAttributes]?: ChGrid[K] } & { [K in keyof ChGrid & keyof ChGridAttributes as `attr:${K}`]?: ChGridAttributes[K] } & { [K in keyof ChGrid & keyof ChGridAttributes as `prop:${K}`]?: ChGrid[K] };
2547
+ "ch-icon": Omit<ChIcon, keyof ChIconAttributes> & { [K in keyof ChIcon & keyof ChIconAttributes]?: ChIcon[K] } & { [K in keyof ChIcon & keyof ChIconAttributes as `attr:${K}`]?: ChIconAttributes[K] } & { [K in keyof ChIcon & keyof ChIconAttributes as `prop:${K}`]?: ChIcon[K] } & OneOf<"name", ChIcon["name"], ChIconAttributes["name"]>;
2548
+ "ch-icon-button": Omit<ChIconButton, keyof ChIconButtonAttributes> & { [K in keyof ChIconButton & keyof ChIconButtonAttributes]?: ChIconButton[K] } & { [K in keyof ChIconButton & keyof ChIconButtonAttributes as `attr:${K}`]?: ChIconButtonAttributes[K] } & { [K in keyof ChIconButton & keyof ChIconButtonAttributes as `prop:${K}`]?: ChIconButton[K] } & OneOf<"name", ChIconButton["name"], ChIconButtonAttributes["name"]> & OneOf<"label", ChIconButton["label"], ChIconButtonAttributes["label"]>;
2192
2549
  "ch-input": Omit<ChInput, keyof ChInputAttributes> & { [K in keyof ChInput & keyof ChInputAttributes]?: ChInput[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `attr:${K}`]?: ChInputAttributes[K] } & { [K in keyof ChInput & keyof ChInputAttributes as `prop:${K}`]?: ChInput[K] };
2193
2550
  "ch-link": Omit<ChLink, keyof ChLinkAttributes> & { [K in keyof ChLink & keyof ChLinkAttributes]?: ChLink[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `attr:${K}`]?: ChLinkAttributes[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `prop:${K}`]?: ChLink[K] };
2194
2551
  "ch-modal": Omit<ChModal, keyof ChModalAttributes> & { [K in keyof ChModal & keyof ChModalAttributes]?: ChModal[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `attr:${K}`]?: ChModalAttributes[K] } & { [K in keyof ChModal & keyof ChModalAttributes as `prop:${K}`]?: ChModal[K] };
2552
+ "ch-page-header": Omit<ChPageHeader, keyof ChPageHeaderAttributes> & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes]?: ChPageHeader[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `attr:${K}`]?: ChPageHeaderAttributes[K] } & { [K in keyof ChPageHeader & keyof ChPageHeaderAttributes as `prop:${K}`]?: ChPageHeader[K] } & OneOf<"title", ChPageHeader["title"], ChPageHeaderAttributes["title"]>;
2195
2553
  "ch-radio": Omit<ChRadio, keyof ChRadioAttributes> & { [K in keyof ChRadio & keyof ChRadioAttributes]?: ChRadio[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `attr:${K}`]?: ChRadioAttributes[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `prop:${K}`]?: ChRadio[K] };
2196
2554
  "ch-segmented-control": Omit<ChSegmentedControl, keyof ChSegmentedControlAttributes> & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes]?: ChSegmentedControl[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `attr:${K}`]?: ChSegmentedControlAttributes[K] } & { [K in keyof ChSegmentedControl & keyof ChSegmentedControlAttributes as `prop:${K}`]?: ChSegmentedControl[K] };
2197
2555
  "ch-select": Omit<ChSelect, keyof ChSelectAttributes> & { [K in keyof ChSelect & keyof ChSelectAttributes]?: ChSelect[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `attr:${K}`]?: ChSelectAttributes[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `prop:${K}`]?: ChSelect[K] };
@@ -2216,8 +2574,19 @@ declare module "@stencil/core" {
2216
2574
  * interrupt. Both announce reliably when the alert is added to the page in
2217
2575
  * response to something — an alert already present at load may not be read out,
2218
2576
  * which is how live regions work rather than something this component controls.
2577
+ * Every variant also carries an icon and a thicker leading edge, so the three
2578
+ * states stay distinguishable without colour vision. The icon is decorative:
2579
+ * the text next to it already says what happened, and announcing "check
2580
+ * circle" before it would only add noise.
2219
2581
  */
2220
2582
  "ch-alert": LocalJSX.IntrinsicElements["ch-alert"] & JSXBase.HTMLAttributes<HTMLChAlertElement>;
2583
+ /**
2584
+ * Small status label.
2585
+ * Variants are not colour-only: each one also changes the leading dot's shape
2586
+ * and adds a matching border, so a badge still says which state it is in when
2587
+ * printed in grayscale or seen with colour-vision deficiency. `default` uses a
2588
+ * filled dot, `positive` a ring, and `warning` a filled square.
2589
+ */
2221
2590
  "ch-badge": LocalJSX.IntrinsicElements["ch-badge"] & JSXBase.HTMLAttributes<HTMLChBadgeElement>;
2222
2591
  "ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
2223
2592
  "ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
@@ -2262,6 +2631,24 @@ declare module "@stencil/core" {
2262
2631
  * media queries of its own.
2263
2632
  */
2264
2633
  "ch-grid": LocalJSX.IntrinsicElements["ch-grid"] & JSXBase.HTMLAttributes<HTMLChGridElement>;
2634
+ /**
2635
+ * A single Lucide glyph.
2636
+ * Decorative by default: the icon is hidden from assistive technology unless
2637
+ * you give it a `label`, because most icons sit next to text that already says
2638
+ * what they mean and a second announcement is noise. Set `label` only when the
2639
+ * icon carries meaning on its own; a control whose only content is an icon
2640
+ * should use `ch-icon-button`, which requires the name.
2641
+ */
2642
+ "ch-icon": LocalJSX.IntrinsicElements["ch-icon"] & JSXBase.HTMLAttributes<HTMLChIconElement>;
2643
+ /**
2644
+ * A button whose only content is an icon.
2645
+ * The label is required rather than optional. An icon-only button without an
2646
+ * accessible name is unusable by voice, screen reader or automation, and there
2647
+ * is no adjacent text to fall back on — the same reasoning as `ch-modal`, and
2648
+ * the reason this component exists instead of letting consumers bolt an icon
2649
+ * slot onto `ch-button` and forget the name.
2650
+ */
2651
+ "ch-icon-button": LocalJSX.IntrinsicElements["ch-icon-button"] & JSXBase.HTMLAttributes<HTMLChIconButtonElement>;
2265
2652
  "ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
2266
2653
  "ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
2267
2654
  /**
@@ -2281,6 +2668,17 @@ declare module "@stencil/core" {
2281
2668
  * than only for some.
2282
2669
  */
2283
2670
  "ch-modal": LocalJSX.IntrinsicElements["ch-modal"] & JSXBase.HTMLAttributes<HTMLChModalElement>;
2671
+ /**
2672
+ * The heading block at the top of a page: title, optional eyebrow and
2673
+ * description, and a trailing actions area.
2674
+ * The title is a `title` prop rather than a slot so the heading level always
2675
+ * matches the page. A slotted heading lets a consumer nest a second `h1`, and
2676
+ * "one top-level heading per page" then depends on every caller remembering it;
2677
+ * here the level is explicit and defaults to `h1`. The actions wrap rather than
2678
+ * push the page sideways at 390px, and the DOM order keeps the heading before
2679
+ * the actions so reading and focus order still start with the title.
2680
+ */
2681
+ "ch-page-header": LocalJSX.IntrinsicElements["ch-page-header"] & JSXBase.HTMLAttributes<HTMLChPageHeaderElement>;
2284
2682
  "ch-radio": LocalJSX.IntrinsicElements["ch-radio"] & JSXBase.HTMLAttributes<HTMLChRadioElement>;
2285
2683
  /**
2286
2684
  * Compact control for switching between a few mutually exclusive options
@@ -2335,6 +2733,12 @@ declare module "@stencil/core" {
2335
2733
  * `<input>`). A chucao component such as `ch-button` will not be described,
2336
2734
  * because `aria-*` set on a custom element host does not reach the native
2337
2735
  * element inside it — see the discussion in issue #47.
2736
+ * Positioning is measured, not purely CSS: `placement` is the preferred side,
2737
+ * and the bubble flips to the opposite side when the preferred one does not
2738
+ * fit, then shifts along the other axis to stay inside the viewport. It
2739
+ * re-measures on scroll, resize and visual-viewport changes, which is what
2740
+ * keeps it correct inside a scrolling modal or drawer and when a mobile
2741
+ * keyboard shrinks the visible area.
2338
2742
  */
2339
2743
  "ch-tooltip": LocalJSX.IntrinsicElements["ch-tooltip"] & JSXBase.HTMLAttributes<HTMLChTooltipElement>;
2340
2744
  }
@@ -62,6 +62,10 @@ export declare const zIndexBase = 0;
62
62
  export declare const zIndexDropdown = 100;
63
63
  export declare const zIndexModal = 1000;
64
64
  export declare const layoutMaxWidth = "68rem";
65
+ export declare const iconSizeSm = "16px";
66
+ export declare const iconSizeMd = "20px";
67
+ export declare const iconSizeLg = "24px";
68
+ export declare const iconStroke = "2px";
65
69
  export declare const tokens: {
66
70
  readonly color: {
67
71
  readonly background: {
@@ -175,5 +179,13 @@ export declare const tokens: {
175
179
  readonly layout: {
176
180
  readonly maxWidth: "68rem";
177
181
  };
182
+ readonly icon: {
183
+ readonly size: {
184
+ readonly sm: "16px";
185
+ readonly md: "20px";
186
+ readonly lg: "24px";
187
+ };
188
+ readonly stroke: "2px";
189
+ };
178
190
  };
179
191
  export type TokenCategory = keyof typeof tokens;
@@ -11,4 +11,5 @@ export type FocusToken = 'focus.outline-width' | 'focus.outline-offset';
11
11
  export type OpacityToken = 'opacity.disabled';
12
12
  export type ZIndexToken = 'z-index.base' | 'z-index.dropdown' | 'z-index.modal';
13
13
  export type LayoutToken = 'layout.max-width';
14
- export type TokenName = ColorToken | TypographyToken | SpacingToken | RadiusToken | BorderToken | ShadowToken | EffectToken | DurationToken | EasingToken | FocusToken | OpacityToken | ZIndexToken | LayoutToken;
14
+ export type IconToken = 'icon.size.sm' | 'icon.size.md' | 'icon.size.lg' | 'icon.stroke';
15
+ export type TokenName = ColorToken | TypographyToken | SpacingToken | RadiusToken | BorderToken | ShadowToken | EffectToken | DurationToken | EasingToken | FocusToken | OpacityToken | ZIndexToken | LayoutToken | IconToken;