@devschile/chucao 2.0.0 → 2.2.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 (173) hide show
  1. package/README.md +2 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/chucao.esm.js.map +1 -1
  4. package/dist/chucao/{p-a0ec231a.entry.js → p-04dbcfa0.entry.js} +2 -2
  5. package/dist/chucao/{p-96c852f5.entry.js → p-077dc2a6.entry.js} +2 -2
  6. package/dist/chucao/{p-19dde4f9.entry.js → p-079c2017.entry.js} +2 -2
  7. package/dist/chucao/p-37e7f9cc.entry.js +2 -0
  8. package/dist/chucao/p-37e7f9cc.entry.js.map +1 -0
  9. package/dist/chucao/{p-f04d2f75.entry.js → p-5ae89a19.entry.js} +2 -2
  10. package/dist/chucao/p-70285203.entry.js +2 -0
  11. package/dist/chucao/p-70285203.entry.js.map +1 -0
  12. package/dist/chucao/{p-2e20c7a1.entry.js → p-9c072600.entry.js} +2 -2
  13. package/dist/chucao/{p-BaKXvAYc.js → p-DWC12BJ-.js} +2 -2
  14. package/dist/chucao/p-DWC12BJ-.js.map +1 -0
  15. package/dist/chucao/p-b678a7e2.entry.js +2 -0
  16. package/dist/chucao/p-b678a7e2.entry.js.map +1 -0
  17. package/dist/chucao/p-b8bd0310.entry.js +2 -0
  18. package/dist/chucao/p-b8bd0310.entry.js.map +1 -0
  19. package/dist/chucao/p-bb2445d1.entry.js +2 -0
  20. package/dist/chucao/p-c986036f.entry.js +2 -0
  21. package/dist/chucao/p-c986036f.entry.js.map +1 -0
  22. package/dist/chucao/p-d8DfpzMR.js +2 -0
  23. package/dist/chucao/p-d8DfpzMR.js.map +1 -0
  24. package/dist/chucao/{p-10658dc9.entry.js → p-e3265e38.entry.js} +2 -2
  25. package/dist/chucao/{p-f62e1da2.entry.js → p-ff5f5c1f.entry.js} +2 -2
  26. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  27. package/dist/cjs/ch-alert_8.cjs.entry.js +55 -12
  28. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  29. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  30. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  31. package/dist/cjs/ch-drawer.cjs.entry.js +153 -0
  32. package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -0
  33. package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
  34. package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  36. package/dist/cjs/ch-modal.cjs.entry.js +5 -24
  37. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
  38. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  39. package/dist/cjs/ch-segmented-control.cjs.entry.js +112 -0
  40. package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -0
  41. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
  44. package/dist/cjs/chucao.cjs.js +3 -3
  45. package/dist/cjs/chucao.cjs.js.map +1 -1
  46. package/dist/cjs/{index-C9Abf0td.js → index-C9cpLteP.js} +15 -8
  47. package/dist/cjs/index-C9cpLteP.js.map +1 -0
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/cjs/scroll-lock-DIRqLP4K.js +49 -0
  50. package/dist/cjs/scroll-lock-DIRqLP4K.js.map +1 -0
  51. package/dist/collection/collection-manifest.json +4 -1
  52. package/dist/collection/components/ch-button/ch-button.css +56 -18
  53. package/dist/collection/components/ch-button/ch-button.js +135 -8
  54. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  55. package/dist/collection/components/ch-card/ch-card.js +1 -1
  56. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  57. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  58. package/dist/collection/components/ch-drawer/ch-drawer.css +152 -0
  59. package/dist/collection/components/ch-drawer/ch-drawer.js +285 -0
  60. package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -0
  61. package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
  62. package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
  63. package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
  64. package/dist/collection/components/ch-input/ch-input.js +1 -1
  65. package/dist/collection/components/ch-modal/ch-modal.js +4 -23
  66. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
  67. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  68. package/dist/collection/components/ch-segmented-control/ch-segmented-control.css +88 -0
  69. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +295 -0
  70. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -0
  71. package/dist/collection/components/ch-select/ch-select.js +1 -1
  72. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  73. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  74. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  75. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  76. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  77. package/dist/collection/utils/scroll-lock.js +42 -0
  78. package/dist/collection/utils/scroll-lock.js.map +1 -0
  79. package/dist/components/ch-accordion.js +1 -1
  80. package/dist/components/ch-alert.js +1 -1
  81. package/dist/components/ch-badge.js +1 -1
  82. package/dist/components/ch-button.js +1 -1
  83. package/dist/components/ch-button.js.map +1 -1
  84. package/dist/components/ch-card.js +1 -1
  85. package/dist/components/ch-checkbox.js +1 -1
  86. package/dist/components/ch-divider.js +1 -1
  87. package/dist/components/ch-drawer.d.ts +11 -0
  88. package/dist/components/ch-drawer.js +2 -0
  89. package/dist/components/ch-drawer.js.map +1 -0
  90. package/dist/components/ch-emoji.d.ts +11 -0
  91. package/dist/components/ch-emoji.js +2 -0
  92. package/dist/components/ch-emoji.js.map +1 -0
  93. package/dist/components/ch-input.js +1 -1
  94. package/dist/components/ch-link.js +1 -1
  95. package/dist/components/ch-modal.js +1 -1
  96. package/dist/components/ch-modal.js.map +1 -1
  97. package/dist/components/ch-radio.js +1 -1
  98. package/dist/components/ch-segmented-control.d.ts +11 -0
  99. package/dist/components/ch-segmented-control.js +2 -0
  100. package/dist/components/ch-segmented-control.js.map +1 -0
  101. package/dist/components/ch-select.js +1 -1
  102. package/dist/components/ch-spinner.js +1 -1
  103. package/dist/components/ch-spinner.js.map +1 -1
  104. package/dist/components/ch-switch.js +1 -1
  105. package/dist/components/ch-tabs.js +1 -1
  106. package/dist/components/ch-textarea.js +1 -1
  107. package/dist/components/ch-tooltip.js +1 -1
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/{p-DL-bL54o.js → p-BhAZrOxf.js} +2 -2
  110. package/dist/components/p-BhAZrOxf.js.map +1 -0
  111. package/dist/components/p-C4eGmLcE.js +2 -0
  112. package/dist/components/p-C4eGmLcE.js.map +1 -0
  113. package/dist/components/p-d8DfpzMR.js +2 -0
  114. package/dist/components/p-d8DfpzMR.js.map +1 -0
  115. package/dist/esm/ch-accordion.entry.js +1 -1
  116. package/dist/esm/ch-alert_8.entry.js +55 -12
  117. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  118. package/dist/esm/ch-checkbox.entry.js +2 -2
  119. package/dist/esm/ch-divider.entry.js +2 -2
  120. package/dist/esm/ch-drawer.entry.js +151 -0
  121. package/dist/esm/ch-drawer.entry.js.map +1 -0
  122. package/dist/esm/ch-emoji.entry.js +102 -0
  123. package/dist/esm/ch-emoji.entry.js.map +1 -0
  124. package/dist/esm/ch-link.entry.js +1 -1
  125. package/dist/esm/ch-modal.entry.js +5 -24
  126. package/dist/esm/ch-modal.entry.js.map +1 -1
  127. package/dist/esm/ch-radio.entry.js +2 -2
  128. package/dist/esm/ch-segmented-control.entry.js +110 -0
  129. package/dist/esm/ch-segmented-control.entry.js.map +1 -0
  130. package/dist/esm/ch-tabs.entry.js +2 -2
  131. package/dist/esm/ch-textarea.entry.js +2 -2
  132. package/dist/esm/ch-tooltip.entry.js +2 -2
  133. package/dist/esm/chucao.js +4 -4
  134. package/dist/esm/chucao.js.map +1 -1
  135. package/dist/esm/{index-BaKXvAYc.js → index-DWC12BJ-.js} +15 -8
  136. package/dist/esm/index-DWC12BJ-.js.map +1 -0
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/scroll-lock-d8DfpzMR.js +46 -0
  139. package/dist/esm/scroll-lock-d8DfpzMR.js.map +1 -0
  140. package/dist/types/components/ch-button/ch-button.d.ts +29 -5
  141. package/dist/types/components/ch-drawer/ch-drawer.d.ts +68 -0
  142. package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
  143. package/dist/types/components/ch-segmented-control/ch-segmented-control.d.ts +72 -0
  144. package/dist/types/components.d.ts +405 -6
  145. package/dist/types/stencil-public-runtime.d.ts +1 -0
  146. package/dist/types/utils/scroll-lock.d.ts +17 -0
  147. package/dist-react/components.d.ts +15 -1
  148. package/dist-react/components.js +30 -0
  149. package/dist-react/components.ts +43 -1
  150. package/dist-vue/index.d.ts +3 -0
  151. package/dist-vue/index.js +35 -0
  152. package/dist-vue/index.ts +41 -0
  153. package/hydrate/index.js +541 -46
  154. package/hydrate/index.mjs +541 -46
  155. package/loader/index.d.ts +1 -1
  156. package/package.json +5 -3
  157. package/dist/chucao/p-66dce533.entry.js +0 -2
  158. package/dist/chucao/p-66dce533.entry.js.map +0 -1
  159. package/dist/chucao/p-75184fe1.entry.js +0 -2
  160. package/dist/chucao/p-75184fe1.entry.js.map +0 -1
  161. package/dist/chucao/p-BaKXvAYc.js.map +0 -1
  162. package/dist/chucao/p-e48912c7.entry.js +0 -2
  163. package/dist/cjs/index-C9Abf0td.js.map +0 -1
  164. package/dist/components/p-DL-bL54o.js.map +0 -1
  165. package/dist/esm/index-BaKXvAYc.js.map +0 -1
  166. /package/dist/chucao/{p-a0ec231a.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
  167. /package/dist/chucao/{p-96c852f5.entry.js.map → p-077dc2a6.entry.js.map} +0 -0
  168. /package/dist/chucao/{p-19dde4f9.entry.js.map → p-079c2017.entry.js.map} +0 -0
  169. /package/dist/chucao/{p-f04d2f75.entry.js.map → p-5ae89a19.entry.js.map} +0 -0
  170. /package/dist/chucao/{p-2e20c7a1.entry.js.map → p-9c072600.entry.js.map} +0 -0
  171. /package/dist/chucao/{p-e48912c7.entry.js.map → p-bb2445d1.entry.js.map} +0 -0
  172. /package/dist/chucao/{p-10658dc9.entry.js.map → p-e3265e38.entry.js.map} +0 -0
  173. /package/dist/chucao/{p-f62e1da2.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
@@ -8,10 +8,13 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
9
9
  import { ChAlertVariant } from "./components/ch-alert/ch-alert";
10
10
  import { ChBadgeVariant } from "./components/ch-badge/ch-badge";
11
- import { ChButtonVariant } from "./components/ch-button/ch-button";
11
+ import { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
12
12
  import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
13
+ import { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
14
+ import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
13
15
  import { ChLinkVariant } from "./components/ch-link/ch-link";
14
16
  import { ChRadioOption } from "./components/ch-radio/ch-radio";
17
+ import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
15
18
  import { ChSelectOption } from "./components/ch-select/ch-select";
16
19
  import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
17
20
  import { ChTab } from "./components/ch-tabs/ch-tabs";
@@ -19,10 +22,13 @@ import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
19
22
  export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
20
23
  export { ChAlertVariant } from "./components/ch-alert/ch-alert";
21
24
  export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
22
- export { ChButtonVariant } from "./components/ch-button/ch-button";
25
+ export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
23
26
  export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
27
+ export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
28
+ export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
24
29
  export { ChLinkVariant } from "./components/ch-link/ch-link";
25
30
  export { ChRadioOption } from "./components/ch-radio/ch-radio";
31
+ export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
26
32
  export { ChSelectOption } from "./components/ch-select/ch-select";
27
33
  export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
28
34
  export { ChTab } from "./components/ch-tabs/ch-tabs";
@@ -72,11 +78,29 @@ export namespace Components {
72
78
  */
73
79
  "disabled": boolean;
74
80
  /**
75
- * Accessible label set as `aria-label` on the native `<button>`. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
81
+ * When set, the button renders as an `<a>` pointing to this URL while keeping the button styling.
82
+ */
83
+ "href"?: string;
84
+ /**
85
+ * Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
76
86
  */
77
87
  "label"?: string;
78
88
  /**
79
- * The visual style of the button. Either `primary` or `secondary`.
89
+ * Whether the button is loading. Shows a spinner, disables interaction, and announces the busy state with `aria-busy`.
90
+ * @default false
91
+ */
92
+ "loading": boolean;
93
+ /**
94
+ * The size of the button. One of `sm`, `md`, or `lg`.
95
+ * @default 'md'
96
+ */
97
+ "size": ChButtonSize;
98
+ /**
99
+ * The browsing context the link opens in (e.g. `_blank`). Only used when `href` is set. For `_blank`, a `noopener noreferrer` `rel` is added automatically.
100
+ */
101
+ "target"?: string;
102
+ /**
103
+ * The visual style of the button. One of `primary`, `secondary`, `ghost`, or `danger`.
80
104
  * @default 'primary'
81
105
  */
82
106
  "variant": ChButtonVariant;
@@ -133,6 +157,58 @@ export namespace Components {
133
157
  */
134
158
  "orientation": ChDividerOrientation;
135
159
  }
160
+ /**
161
+ * Sliding side panel for navigation, editing forms and quick detail views.
162
+ * Built on the native `<dialog>` element and opened with `showModal()`, exactly
163
+ * like `ch-modal`, so the browser owns focus management, the inert background,
164
+ * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with
165
+ * `aria-modal="true"`. The only differences are placement — anchored to one
166
+ * edge instead of centred — and the longer content it is meant for, which is
167
+ * why it exposes `header` and `footer` slots around a scrollable body.
168
+ * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a
169
+ * drawer and a modal opened together cannot unlock the page early.
170
+ */
171
+ interface ChDrawer {
172
+ /**
173
+ * Accessible label for the close button, set as `aria-label`. Setting it is what adds the button: its only content is a decorative glyph, so without a label it would have no accessible name.
174
+ */
175
+ "closeLabel"?: string;
176
+ /**
177
+ * Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
178
+ */
179
+ "label"?: string;
180
+ /**
181
+ * Whether the drawer is open. Kept in sync when the user closes it with `Escape`, the close button or a click outside.
182
+ * @default false
183
+ */
184
+ "open": boolean;
185
+ /**
186
+ * The edge the panel slides in from. `start`/`end` follow the writing direction, so `start` is the left edge in LTR and the right edge in RTL.
187
+ * @default 'end'
188
+ */
189
+ "side": ChDrawerSide;
190
+ }
191
+ /**
192
+ * Inline emoji from the devsChile CDN.
193
+ * Given a name (or alias from the emoji map), the component resolves the
194
+ * asset URL and tries each possible file extension until one loads.
195
+ * Size is controlled via the `size` prop.
196
+ */
197
+ interface ChEmoji {
198
+ /**
199
+ * Accessible alt text for the image. Defaults to the `name` prop.
200
+ */
201
+ "alt"?: string;
202
+ /**
203
+ * The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
204
+ */
205
+ "name": string;
206
+ /**
207
+ * Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
208
+ * @default 'md'
209
+ */
210
+ "size": ChEmojiSize;
211
+ }
136
212
  interface ChInput {
137
213
  /**
138
214
  * Whether the input is disabled.
@@ -273,6 +349,53 @@ export namespace Components {
273
349
  */
274
350
  "value"?: string;
275
351
  }
352
+ /**
353
+ * Compact control for switching between a few mutually exclusive options
354
+ * (all/in/out, movement type, and similar filters).
355
+ * Built on native radio inputs sharing a name inside a `role="radiogroup"`,
356
+ * so arrow-key navigation, a single tab stop, `:focus-visible` and native form
357
+ * participation come from the platform instead of hand-rolled key handling.
358
+ * It is form-associated like the other controls: inside a `<form>` the selected
359
+ * value is submitted under `name`, and `required` with an empty value is
360
+ * invalid.
361
+ * It differs from `ch-radio` in presentation only — segments in a joined track
362
+ * instead of a vertical list of radio marks — so it is meant for compact
363
+ * filters, not for long option lists.
364
+ */
365
+ interface ChSegmentedControl {
366
+ /**
367
+ * Whether all segments are disabled.
368
+ * @default false
369
+ */
370
+ "disabled": boolean;
371
+ /**
372
+ * Visible label describing the group, associated with it via `aria-labelledby`.
373
+ */
374
+ "label"?: string;
375
+ /**
376
+ * The name shared by all radio inputs in the group, also used to submit the value. Defaults to an auto-generated group name so options are mutually exclusive out of the box.
377
+ */
378
+ "name"?: string;
379
+ /**
380
+ * The list of options rendered as segments.
381
+ * @default []
382
+ */
383
+ "options": ChSegmentedControlOption[];
384
+ /**
385
+ * Whether a value is required.
386
+ * @default false
387
+ */
388
+ "required": boolean;
389
+ /**
390
+ * The size of the segments. Either `sm` or `md`.
391
+ * @default 'md'
392
+ */
393
+ "size": ChSegmentedControlSize;
394
+ /**
395
+ * The value of the selected option.
396
+ */
397
+ "value"?: string;
398
+ }
276
399
  interface ChSelect {
277
400
  /**
278
401
  * Whether the select is disabled.
@@ -480,6 +603,10 @@ export interface ChCheckboxCustomEvent<T> extends CustomEvent<T> {
480
603
  detail: T;
481
604
  target: HTMLChCheckboxElement;
482
605
  }
606
+ export interface ChDrawerCustomEvent<T> extends CustomEvent<T> {
607
+ detail: T;
608
+ target: HTMLChDrawerElement;
609
+ }
483
610
  export interface ChInputCustomEvent<T> extends CustomEvent<T> {
484
611
  detail: T;
485
612
  target: HTMLChInputElement;
@@ -496,6 +623,10 @@ export interface ChRadioCustomEvent<T> extends CustomEvent<T> {
496
623
  detail: T;
497
624
  target: HTMLChRadioElement;
498
625
  }
626
+ export interface ChSegmentedControlCustomEvent<T> extends CustomEvent<T> {
627
+ detail: T;
628
+ target: HTMLChSegmentedControlElement;
629
+ }
499
630
  export interface ChSelectCustomEvent<T> extends CustomEvent<T> {
500
631
  detail: T;
501
632
  target: HTMLChSelectElement;
@@ -607,6 +738,47 @@ declare global {
607
738
  prototype: HTMLChDividerElement;
608
739
  new (): HTMLChDividerElement;
609
740
  };
741
+ interface HTMLChDrawerElementEventMap {
742
+ "chOpen": void;
743
+ "chClose": void;
744
+ }
745
+ /**
746
+ * Sliding side panel for navigation, editing forms and quick detail views.
747
+ * Built on the native `<dialog>` element and opened with `showModal()`, exactly
748
+ * like `ch-modal`, so the browser owns focus management, the inert background,
749
+ * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with
750
+ * `aria-modal="true"`. The only differences are placement — anchored to one
751
+ * edge instead of centred — and the longer content it is meant for, which is
752
+ * why it exposes `header` and `footer` slots around a scrollable body.
753
+ * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a
754
+ * drawer and a modal opened together cannot unlock the page early.
755
+ */
756
+ interface HTMLChDrawerElement extends Components.ChDrawer, HTMLStencilElement {
757
+ addEventListener<K extends keyof HTMLChDrawerElementEventMap>(type: K, listener: (this: HTMLChDrawerElement, ev: ChDrawerCustomEvent<HTMLChDrawerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
758
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
759
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
760
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
761
+ removeEventListener<K extends keyof HTMLChDrawerElementEventMap>(type: K, listener: (this: HTMLChDrawerElement, ev: ChDrawerCustomEvent<HTMLChDrawerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
762
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
763
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
764
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
765
+ }
766
+ var HTMLChDrawerElement: {
767
+ prototype: HTMLChDrawerElement;
768
+ new (): HTMLChDrawerElement;
769
+ };
770
+ /**
771
+ * Inline emoji from the devsChile CDN.
772
+ * Given a name (or alias from the emoji map), the component resolves the
773
+ * asset URL and tries each possible file extension until one loads.
774
+ * Size is controlled via the `size` prop.
775
+ */
776
+ interface HTMLChEmojiElement extends Components.ChEmoji, HTMLStencilElement {
777
+ }
778
+ var HTMLChEmojiElement: {
779
+ prototype: HTMLChEmojiElement;
780
+ new (): HTMLChEmojiElement;
781
+ };
610
782
  interface HTMLChInputElementEventMap {
611
783
  "chInput": string;
612
784
  "chChange": string;
@@ -693,6 +865,36 @@ declare global {
693
865
  prototype: HTMLChRadioElement;
694
866
  new (): HTMLChRadioElement;
695
867
  };
868
+ interface HTMLChSegmentedControlElementEventMap {
869
+ "chChange": string;
870
+ }
871
+ /**
872
+ * Compact control for switching between a few mutually exclusive options
873
+ * (all/in/out, movement type, and similar filters).
874
+ * Built on native radio inputs sharing a name inside a `role="radiogroup"`,
875
+ * so arrow-key navigation, a single tab stop, `:focus-visible` and native form
876
+ * participation come from the platform instead of hand-rolled key handling.
877
+ * It is form-associated like the other controls: inside a `<form>` the selected
878
+ * value is submitted under `name`, and `required` with an empty value is
879
+ * invalid.
880
+ * It differs from `ch-radio` in presentation only — segments in a joined track
881
+ * instead of a vertical list of radio marks — so it is meant for compact
882
+ * filters, not for long option lists.
883
+ */
884
+ interface HTMLChSegmentedControlElement extends Components.ChSegmentedControl, HTMLStencilElement {
885
+ addEventListener<K extends keyof HTMLChSegmentedControlElementEventMap>(type: K, listener: (this: HTMLChSegmentedControlElement, ev: ChSegmentedControlCustomEvent<HTMLChSegmentedControlElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
886
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
887
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
888
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
889
+ removeEventListener<K extends keyof HTMLChSegmentedControlElementEventMap>(type: K, listener: (this: HTMLChSegmentedControlElement, ev: ChSegmentedControlCustomEvent<HTMLChSegmentedControlElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
890
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
891
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
892
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
893
+ }
894
+ var HTMLChSegmentedControlElement: {
895
+ prototype: HTMLChSegmentedControlElement;
896
+ new (): HTMLChSegmentedControlElement;
897
+ };
696
898
  interface HTMLChSelectElementEventMap {
697
899
  "chChange": string;
698
900
  }
@@ -803,10 +1005,13 @@ declare global {
803
1005
  "ch-card": HTMLChCardElement;
804
1006
  "ch-checkbox": HTMLChCheckboxElement;
805
1007
  "ch-divider": HTMLChDividerElement;
1008
+ "ch-drawer": HTMLChDrawerElement;
1009
+ "ch-emoji": HTMLChEmojiElement;
806
1010
  "ch-input": HTMLChInputElement;
807
1011
  "ch-link": HTMLChLinkElement;
808
1012
  "ch-modal": HTMLChModalElement;
809
1013
  "ch-radio": HTMLChRadioElement;
1014
+ "ch-segmented-control": HTMLChSegmentedControlElement;
810
1015
  "ch-select": HTMLChSelectElement;
811
1016
  "ch-spinner": HTMLChSpinnerElement;
812
1017
  "ch-switch": HTMLChSwitchElement;
@@ -816,6 +1021,8 @@ declare global {
816
1021
  }
817
1022
  }
818
1023
  declare namespace LocalJSX {
1024
+ type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K]?: never };
1025
+
819
1026
  interface ChAccordion {
820
1027
  /**
821
1028
  * The list of items, each with a `title`, a `value`, and an optional `disabled` flag.
@@ -868,15 +1075,33 @@ declare namespace LocalJSX {
868
1075
  */
869
1076
  "disabled"?: boolean;
870
1077
  /**
871
- * Accessible label set as `aria-label` on the native `<button>`. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
1078
+ * When set, the button renders as an `<a>` pointing to this URL while keeping the button styling.
1079
+ */
1080
+ "href"?: string;
1081
+ /**
1082
+ * Accessible label set as `aria-label` on the native element. Use it when the button's content doesn't convey its purpose on its own (e.g. an icon-only button).
872
1083
  */
873
1084
  "label"?: string;
1085
+ /**
1086
+ * Whether the button is loading. Shows a spinner, disables interaction, and announces the busy state with `aria-busy`.
1087
+ * @default false
1088
+ */
1089
+ "loading"?: boolean;
874
1090
  /**
875
1091
  * Emitted when the button is clicked.
876
1092
  */
877
1093
  "onChClick"?: (event: ChButtonCustomEvent<MouseEvent>) => void;
878
1094
  /**
879
- * The visual style of the button. Either `primary` or `secondary`.
1095
+ * The size of the button. One of `sm`, `md`, or `lg`.
1096
+ * @default 'md'
1097
+ */
1098
+ "size"?: ChButtonSize;
1099
+ /**
1100
+ * The browsing context the link opens in (e.g. `_blank`). Only used when `href` is set. For `_blank`, a `noopener noreferrer` `rel` is added automatically.
1101
+ */
1102
+ "target"?: string;
1103
+ /**
1104
+ * The visual style of the button. One of `primary`, `secondary`, `ghost`, or `danger`.
880
1105
  * @default 'primary'
881
1106
  */
882
1107
  "variant"?: ChButtonVariant;
@@ -941,6 +1166,66 @@ declare namespace LocalJSX {
941
1166
  */
942
1167
  "orientation"?: ChDividerOrientation;
943
1168
  }
1169
+ /**
1170
+ * Sliding side panel for navigation, editing forms and quick detail views.
1171
+ * Built on the native `<dialog>` element and opened with `showModal()`, exactly
1172
+ * like `ch-modal`, so the browser owns focus management, the inert background,
1173
+ * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with
1174
+ * `aria-modal="true"`. The only differences are placement — anchored to one
1175
+ * edge instead of centred — and the longer content it is meant for, which is
1176
+ * why it exposes `header` and `footer` slots around a scrollable body.
1177
+ * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a
1178
+ * drawer and a modal opened together cannot unlock the page early.
1179
+ */
1180
+ interface ChDrawer {
1181
+ /**
1182
+ * Accessible label for the close button, set as `aria-label`. Setting it is what adds the button: its only content is a decorative glyph, so without a label it would have no accessible name.
1183
+ */
1184
+ "closeLabel"?: string;
1185
+ /**
1186
+ * Accessible name for the drawer, set as `aria-label`. A slotted heading cannot be referenced with `aria-labelledby` across the shadow boundary, so the name comes through this prop — and a modal dialog needs one, so pass the same text as the heading.
1187
+ */
1188
+ "label"?: string;
1189
+ /**
1190
+ * Emitted after the drawer closes, however it was closed.
1191
+ */
1192
+ "onChClose"?: (event: ChDrawerCustomEvent<void>) => void;
1193
+ /**
1194
+ * Emitted after the drawer opens.
1195
+ */
1196
+ "onChOpen"?: (event: ChDrawerCustomEvent<void>) => void;
1197
+ /**
1198
+ * Whether the drawer is open. Kept in sync when the user closes it with `Escape`, the close button or a click outside.
1199
+ * @default false
1200
+ */
1201
+ "open"?: boolean;
1202
+ /**
1203
+ * The edge the panel slides in from. `start`/`end` follow the writing direction, so `start` is the left edge in LTR and the right edge in RTL.
1204
+ * @default 'end'
1205
+ */
1206
+ "side"?: ChDrawerSide;
1207
+ }
1208
+ /**
1209
+ * Inline emoji from the devsChile CDN.
1210
+ * Given a name (or alias from the emoji map), the component resolves the
1211
+ * asset URL and tries each possible file extension until one loads.
1212
+ * Size is controlled via the `size` prop.
1213
+ */
1214
+ interface ChEmoji {
1215
+ /**
1216
+ * Accessible alt text for the image. Defaults to the `name` prop.
1217
+ */
1218
+ "alt"?: string;
1219
+ /**
1220
+ * The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
1221
+ */
1222
+ "name": string;
1223
+ /**
1224
+ * Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
1225
+ * @default 'md'
1226
+ */
1227
+ "size"?: ChEmojiSize;
1228
+ }
944
1229
  interface ChInput {
945
1230
  /**
946
1231
  * Whether the input is disabled.
@@ -1113,6 +1398,61 @@ declare namespace LocalJSX {
1113
1398
  */
1114
1399
  "value"?: string;
1115
1400
  }
1401
+ /**
1402
+ * Compact control for switching between a few mutually exclusive options
1403
+ * (all/in/out, movement type, and similar filters).
1404
+ * Built on native radio inputs sharing a name inside a `role="radiogroup"`,
1405
+ * so arrow-key navigation, a single tab stop, `:focus-visible` and native form
1406
+ * participation come from the platform instead of hand-rolled key handling.
1407
+ * It is form-associated like the other controls: inside a `<form>` the selected
1408
+ * value is submitted under `name`, and `required` with an empty value is
1409
+ * invalid.
1410
+ * It differs from `ch-radio` in presentation only — segments in a joined track
1411
+ * instead of a vertical list of radio marks — so it is meant for compact
1412
+ * filters, not for long option lists.
1413
+ */
1414
+ interface ChSegmentedControl {
1415
+ /**
1416
+ * Whether all segments are disabled.
1417
+ * @default false
1418
+ */
1419
+ "disabled"?: boolean;
1420
+ /**
1421
+ * The `id` of a `<form>` element to associate this element with.
1422
+ */
1423
+ "form"?: string;
1424
+ /**
1425
+ * Visible label describing the group, associated with it via `aria-labelledby`.
1426
+ */
1427
+ "label"?: string;
1428
+ /**
1429
+ * The name shared by all radio inputs in the group, also used to submit the value. Defaults to an auto-generated group name so options are mutually exclusive out of the box.
1430
+ */
1431
+ "name"?: string;
1432
+ /**
1433
+ * Emitted when a new option is selected, with the selected value.
1434
+ */
1435
+ "onChChange"?: (event: ChSegmentedControlCustomEvent<string>) => void;
1436
+ /**
1437
+ * The list of options rendered as segments.
1438
+ * @default []
1439
+ */
1440
+ "options"?: ChSegmentedControlOption[];
1441
+ /**
1442
+ * Whether a value is required.
1443
+ * @default false
1444
+ */
1445
+ "required"?: boolean;
1446
+ /**
1447
+ * The size of the segments. Either `sm` or `md`.
1448
+ * @default 'md'
1449
+ */
1450
+ "size"?: ChSegmentedControlSize;
1451
+ /**
1452
+ * The value of the selected option.
1453
+ */
1454
+ "value"?: string;
1455
+ }
1116
1456
  interface ChSelect {
1117
1457
  /**
1118
1458
  * Whether the select is disabled.
@@ -1348,7 +1688,11 @@ declare namespace LocalJSX {
1348
1688
  }
1349
1689
  interface ChButtonAttributes {
1350
1690
  "variant": ChButtonVariant;
1691
+ "size": ChButtonSize;
1351
1692
  "disabled": boolean;
1693
+ "loading": boolean;
1694
+ "href": string;
1695
+ "target": string;
1352
1696
  "label": string;
1353
1697
  }
1354
1698
  interface ChCheckboxAttributes {
@@ -1365,6 +1709,17 @@ declare namespace LocalJSX {
1365
1709
  interface ChDividerAttributes {
1366
1710
  "orientation": ChDividerOrientation;
1367
1711
  }
1712
+ interface ChDrawerAttributes {
1713
+ "open": boolean;
1714
+ "side": ChDrawerSide;
1715
+ "label": string;
1716
+ "closeLabel": string;
1717
+ }
1718
+ interface ChEmojiAttributes {
1719
+ "name": string;
1720
+ "alt": string;
1721
+ "size": ChEmojiSize;
1722
+ }
1368
1723
  interface ChInputAttributes {
1369
1724
  "label": string;
1370
1725
  "type": string;
@@ -1398,6 +1753,14 @@ declare namespace LocalJSX {
1398
1753
  "errorMessage": string;
1399
1754
  "invalid": boolean;
1400
1755
  }
1756
+ interface ChSegmentedControlAttributes {
1757
+ "label": string;
1758
+ "value": string;
1759
+ "size": ChSegmentedControlSize;
1760
+ "name": string;
1761
+ "disabled": boolean;
1762
+ "required": boolean;
1763
+ }
1401
1764
  interface ChSelectAttributes {
1402
1765
  "label": string;
1403
1766
  "value": string;
@@ -1452,10 +1815,13 @@ declare namespace LocalJSX {
1452
1815
  "ch-card": ChCard;
1453
1816
  "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] };
1454
1817
  "ch-divider": Omit<ChDivider, keyof ChDividerAttributes> & { [K in keyof ChDivider & keyof ChDividerAttributes]?: ChDivider[K] } & { [K in keyof ChDivider & keyof ChDividerAttributes as `attr:${K}`]?: ChDividerAttributes[K] } & { [K in keyof ChDivider & keyof ChDividerAttributes as `prop:${K}`]?: ChDivider[K] };
1818
+ "ch-drawer": Omit<ChDrawer, keyof ChDrawerAttributes> & { [K in keyof ChDrawer & keyof ChDrawerAttributes]?: ChDrawer[K] } & { [K in keyof ChDrawer & keyof ChDrawerAttributes as `attr:${K}`]?: ChDrawerAttributes[K] } & { [K in keyof ChDrawer & keyof ChDrawerAttributes as `prop:${K}`]?: ChDrawer[K] };
1819
+ "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"]>;
1455
1820
  "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] };
1456
1821
  "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] };
1457
1822
  "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] };
1458
1823
  "ch-radio": Omit<ChRadio, keyof ChRadioAttributes> & { [K in keyof ChRadio & keyof ChRadioAttributes]?: ChRadio[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `attr:${K}`]?: ChRadioAttributes[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `prop:${K}`]?: ChRadio[K] };
1824
+ "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] };
1459
1825
  "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] };
1460
1826
  "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] };
1461
1827
  "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] };
@@ -1483,6 +1849,25 @@ declare module "@stencil/core" {
1483
1849
  "ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
1484
1850
  "ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
1485
1851
  "ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
1852
+ /**
1853
+ * Sliding side panel for navigation, editing forms and quick detail views.
1854
+ * Built on the native `<dialog>` element and opened with `showModal()`, exactly
1855
+ * like `ch-modal`, so the browser owns focus management, the inert background,
1856
+ * `Escape`, the top layer, `::backdrop`, and the implicit `dialog` role with
1857
+ * `aria-modal="true"`. The only differences are placement — anchored to one
1858
+ * edge instead of centred — and the longer content it is meant for, which is
1859
+ * why it exposes `header` and `footer` slots around a scrollable body.
1860
+ * Scroll locking is shared with `ch-modal` through `utils/scroll-lock`, so a
1861
+ * drawer and a modal opened together cannot unlock the page early.
1862
+ */
1863
+ "ch-drawer": LocalJSX.IntrinsicElements["ch-drawer"] & JSXBase.HTMLAttributes<HTMLChDrawerElement>;
1864
+ /**
1865
+ * Inline emoji from the devsChile CDN.
1866
+ * Given a name (or alias from the emoji map), the component resolves the
1867
+ * asset URL and tries each possible file extension until one loads.
1868
+ * Size is controlled via the `size` prop.
1869
+ */
1870
+ "ch-emoji": LocalJSX.IntrinsicElements["ch-emoji"] & JSXBase.HTMLAttributes<HTMLChEmojiElement>;
1486
1871
  "ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
1487
1872
  "ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
1488
1873
  /**
@@ -1503,6 +1888,20 @@ declare module "@stencil/core" {
1503
1888
  */
1504
1889
  "ch-modal": LocalJSX.IntrinsicElements["ch-modal"] & JSXBase.HTMLAttributes<HTMLChModalElement>;
1505
1890
  "ch-radio": LocalJSX.IntrinsicElements["ch-radio"] & JSXBase.HTMLAttributes<HTMLChRadioElement>;
1891
+ /**
1892
+ * Compact control for switching between a few mutually exclusive options
1893
+ * (all/in/out, movement type, and similar filters).
1894
+ * Built on native radio inputs sharing a name inside a `role="radiogroup"`,
1895
+ * so arrow-key navigation, a single tab stop, `:focus-visible` and native form
1896
+ * participation come from the platform instead of hand-rolled key handling.
1897
+ * It is form-associated like the other controls: inside a `<form>` the selected
1898
+ * value is submitted under `name`, and `required` with an empty value is
1899
+ * invalid.
1900
+ * It differs from `ch-radio` in presentation only — segments in a joined track
1901
+ * instead of a vertical list of radio marks — so it is meant for compact
1902
+ * filters, not for long option lists.
1903
+ */
1904
+ "ch-segmented-control": LocalJSX.IntrinsicElements["ch-segmented-control"] & JSXBase.HTMLAttributes<HTMLChSegmentedControlElement>;
1506
1905
  "ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
1507
1906
  /**
1508
1907
  * Loading indicator.
@@ -1416,6 +1416,7 @@ export declare namespace JSXBase {
1416
1416
  translate?: 'yes' | 'no' | (string & {});
1417
1417
  popover?: string | null;
1418
1418
  focusgroup?: string;
1419
+ focusgroupstart?: boolean;
1419
1420
  inputMode?: string;
1420
1421
  inputmode?: string;
1421
1422
  enterKeyHint?: string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Prevents the page behind an overlay from scrolling, compensating for the
3
+ * scrollbar it removes so the layout does not shift.
4
+ *
5
+ * Reference-counted on a module-level counter, so concurrent overlays (a modal
6
+ * over a drawer, several stacked dialogs) cannot unlock the page early:
7
+ * whichever overlay closes first only decrements the count, and the last one
8
+ * restores the original styles.
9
+ *
10
+ * Callers must pair every `lockScroll()` with exactly one `unlockScroll()`.
11
+ */
12
+ export declare function lockScroll(): void;
13
+ /**
14
+ * Releases one scroll lock. Only the last lock restores the page; earlier calls
15
+ * are a no-op so the overlay still open keeps the page frozen.
16
+ */
17
+ export declare function unlockScroll(): void;
@@ -3,7 +3,7 @@
3
3
  * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
4
  */
5
5
  import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
6
- import { type ChAccordionCustomEvent, type ChAlertCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChModalCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
6
+ import { type ChAccordionCustomEvent, type ChAlertCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChDrawerCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChModalCustomEvent, type ChRadioCustomEvent, type ChSegmentedControlCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
7
7
  import type { Components } from "@devschile/chucao/dist/components";
8
8
  import { ChAccordion as ChAccordionElement } from "@devschile/chucao/dist/components/ch-accordion.js";
9
9
  import { ChAlert as ChAlertElement } from "@devschile/chucao/dist/components/ch-alert.js";
@@ -12,10 +12,13 @@ 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 { ChDivider as ChDividerElement } from "@devschile/chucao/dist/components/ch-divider.js";
15
+ import { ChDrawer as ChDrawerElement } from "@devschile/chucao/dist/components/ch-drawer.js";
16
+ import { ChEmoji as ChEmojiElement } from "@devschile/chucao/dist/components/ch-emoji.js";
15
17
  import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
16
18
  import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
17
19
  import { ChModal as ChModalElement } from "@devschile/chucao/dist/components/ch-modal.js";
18
20
  import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
21
+ import { ChSegmentedControl as ChSegmentedControlElement } from "@devschile/chucao/dist/components/ch-segmented-control.js";
19
22
  import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
20
23
  import { ChSpinner as ChSpinnerElement } from "@devschile/chucao/dist/components/ch-spinner.js";
21
24
  import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
@@ -44,6 +47,13 @@ export type ChCheckboxEvents = {
44
47
  export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
45
48
  export type ChDividerEvents = NonNullable<unknown>;
46
49
  export declare const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents, Components.ChDivider>;
50
+ export type ChDrawerEvents = {
51
+ onChOpen: EventName<ChDrawerCustomEvent<void>>;
52
+ onChClose: EventName<ChDrawerCustomEvent<void>>;
53
+ };
54
+ export declare const ChDrawer: StencilReactComponent<ChDrawerElement, ChDrawerEvents, Components.ChDrawer>;
55
+ export type ChEmojiEvents = NonNullable<unknown>;
56
+ export declare const ChEmoji: StencilReactComponent<ChEmojiElement, ChEmojiEvents, Components.ChEmoji, 'name'>;
47
57
  export type ChInputEvents = {
48
58
  onChInput: EventName<ChInputCustomEvent<string>>;
49
59
  onChChange: EventName<ChInputCustomEvent<string>>;
@@ -62,6 +72,10 @@ export type ChRadioEvents = {
62
72
  onChChange: EventName<ChRadioCustomEvent<string>>;
63
73
  };
64
74
  export declare const ChRadio: StencilReactComponent<ChRadioElement, ChRadioEvents, Components.ChRadio>;
75
+ export type ChSegmentedControlEvents = {
76
+ onChChange: EventName<ChSegmentedControlCustomEvent<string>>;
77
+ };
78
+ export declare const ChSegmentedControl: StencilReactComponent<ChSegmentedControlElement, ChSegmentedControlEvents, Components.ChSegmentedControl>;
65
79
  export type ChSelectEvents = {
66
80
  onChChange: EventName<ChSelectCustomEvent<string>>;
67
81
  };