@devschile/chucao 2.1.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 (135) hide show
  1. package/dist/chucao/chucao.esm.js +1 -1
  2. package/dist/chucao/{p-d5a9e340.entry.js → p-077dc2a6.entry.js} +2 -2
  3. package/dist/chucao/{p-4bc8e098.entry.js → p-079c2017.entry.js} +2 -2
  4. package/dist/chucao/p-37e7f9cc.entry.js +2 -0
  5. package/dist/chucao/p-37e7f9cc.entry.js.map +1 -0
  6. package/dist/chucao/{p-121fbfc8.entry.js → p-5ae89a19.entry.js} +2 -2
  7. package/dist/chucao/p-70285203.entry.js +2 -0
  8. package/dist/chucao/p-70285203.entry.js.map +1 -0
  9. package/dist/chucao/{p-5fe8bfff.entry.js → p-9c072600.entry.js} +2 -2
  10. package/dist/chucao/p-b678a7e2.entry.js +2 -0
  11. package/dist/chucao/p-b678a7e2.entry.js.map +1 -0
  12. package/dist/chucao/p-b8bd0310.entry.js +2 -0
  13. package/dist/chucao/p-b8bd0310.entry.js.map +1 -0
  14. package/dist/chucao/p-bb2445d1.entry.js +2 -0
  15. package/dist/chucao/{p-9bb81a65.entry.js → p-c986036f.entry.js} +2 -2
  16. package/dist/chucao/p-d8DfpzMR.js +2 -0
  17. package/dist/chucao/p-d8DfpzMR.js.map +1 -0
  18. package/dist/chucao/{p-1b1e56cd.entry.js → p-e3265e38.entry.js} +2 -2
  19. package/dist/cjs/ch-alert_8.cjs.entry.js +54 -11
  20. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  21. package/dist/cjs/ch-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/ch-divider.cjs.entry.js +1 -1
  23. package/dist/cjs/ch-drawer.cjs.entry.js +153 -0
  24. package/dist/cjs/ch-drawer.cjs.entry.js.map +1 -0
  25. package/dist/cjs/ch-emoji.cjs.entry.js +1 -1
  26. package/dist/cjs/ch-modal.cjs.entry.js +4 -23
  27. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -1
  28. package/dist/cjs/ch-radio.cjs.entry.js +1 -1
  29. package/dist/cjs/ch-segmented-control.cjs.entry.js +112 -0
  30. package/dist/cjs/ch-segmented-control.cjs.entry.js.map +1 -0
  31. package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
  32. package/dist/cjs/ch-textarea.cjs.entry.js +1 -1
  33. package/dist/cjs/ch-tooltip.cjs.entry.js +1 -1
  34. package/dist/cjs/chucao.cjs.js +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/cjs/scroll-lock-DIRqLP4K.js +49 -0
  37. package/dist/cjs/scroll-lock-DIRqLP4K.js.map +1 -0
  38. package/dist/collection/collection-manifest.json +2 -0
  39. package/dist/collection/components/ch-button/ch-button.css +56 -18
  40. package/dist/collection/components/ch-button/ch-button.js +135 -8
  41. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  42. package/dist/collection/components/ch-card/ch-card.js +1 -1
  43. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  44. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  45. package/dist/collection/components/ch-drawer/ch-drawer.css +152 -0
  46. package/dist/collection/components/ch-drawer/ch-drawer.js +285 -0
  47. package/dist/collection/components/ch-drawer/ch-drawer.js.map +1 -0
  48. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  49. package/dist/collection/components/ch-input/ch-input.js +1 -1
  50. package/dist/collection/components/ch-modal/ch-modal.js +4 -23
  51. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -1
  52. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  53. package/dist/collection/components/ch-segmented-control/ch-segmented-control.css +88 -0
  54. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +295 -0
  55. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js.map +1 -0
  56. package/dist/collection/components/ch-select/ch-select.js +1 -1
  57. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  58. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  59. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  60. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  61. package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
  62. package/dist/collection/utils/scroll-lock.js +42 -0
  63. package/dist/collection/utils/scroll-lock.js.map +1 -0
  64. package/dist/components/ch-button.js +1 -1
  65. package/dist/components/ch-button.js.map +1 -1
  66. package/dist/components/ch-card.js +1 -1
  67. package/dist/components/ch-checkbox.js +1 -1
  68. package/dist/components/ch-divider.js +1 -1
  69. package/dist/components/ch-drawer.d.ts +11 -0
  70. package/dist/components/ch-drawer.js +2 -0
  71. package/dist/components/ch-drawer.js.map +1 -0
  72. package/dist/components/ch-emoji.js +1 -1
  73. package/dist/components/ch-input.js +1 -1
  74. package/dist/components/ch-modal.js +1 -1
  75. package/dist/components/ch-modal.js.map +1 -1
  76. package/dist/components/ch-radio.js +1 -1
  77. package/dist/components/ch-segmented-control.d.ts +11 -0
  78. package/dist/components/ch-segmented-control.js +2 -0
  79. package/dist/components/ch-segmented-control.js.map +1 -0
  80. package/dist/components/ch-select.js +1 -1
  81. package/dist/components/ch-spinner.js +1 -1
  82. package/dist/components/ch-spinner.js.map +1 -1
  83. package/dist/components/ch-switch.js +1 -1
  84. package/dist/components/ch-tabs.js +1 -1
  85. package/dist/components/ch-textarea.js +1 -1
  86. package/dist/components/ch-tooltip.js +1 -1
  87. package/dist/components/p-C4eGmLcE.js +2 -0
  88. package/dist/components/p-C4eGmLcE.js.map +1 -0
  89. package/dist/components/p-d8DfpzMR.js +2 -0
  90. package/dist/components/p-d8DfpzMR.js.map +1 -0
  91. package/dist/esm/ch-alert_8.entry.js +54 -11
  92. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  93. package/dist/esm/ch-checkbox.entry.js +1 -1
  94. package/dist/esm/ch-divider.entry.js +1 -1
  95. package/dist/esm/ch-drawer.entry.js +151 -0
  96. package/dist/esm/ch-drawer.entry.js.map +1 -0
  97. package/dist/esm/ch-emoji.entry.js +1 -1
  98. package/dist/esm/ch-modal.entry.js +4 -23
  99. package/dist/esm/ch-modal.entry.js.map +1 -1
  100. package/dist/esm/ch-radio.entry.js +1 -1
  101. package/dist/esm/ch-segmented-control.entry.js +110 -0
  102. package/dist/esm/ch-segmented-control.entry.js.map +1 -0
  103. package/dist/esm/ch-tabs.entry.js +1 -1
  104. package/dist/esm/ch-textarea.entry.js +1 -1
  105. package/dist/esm/ch-tooltip.entry.js +1 -1
  106. package/dist/esm/chucao.js +1 -1
  107. package/dist/esm/loader.js +1 -1
  108. package/dist/esm/scroll-lock-d8DfpzMR.js +46 -0
  109. package/dist/esm/scroll-lock-d8DfpzMR.js.map +1 -0
  110. package/dist/types/components/ch-button/ch-button.d.ts +29 -5
  111. package/dist/types/components/ch-drawer/ch-drawer.d.ts +68 -0
  112. package/dist/types/components/ch-segmented-control/ch-segmented-control.d.ts +72 -0
  113. package/dist/types/components.d.ts +333 -6
  114. package/dist/types/utils/scroll-lock.d.ts +17 -0
  115. package/dist-react/components.d.ts +12 -1
  116. package/dist-react/components.js +21 -0
  117. package/dist-react/components.ts +31 -1
  118. package/dist-vue/index.d.ts +2 -0
  119. package/dist-vue/index.js +29 -0
  120. package/dist-vue/index.ts +33 -0
  121. package/hydrate/index.js +418 -41
  122. package/hydrate/index.mjs +418 -41
  123. package/package.json +4 -3
  124. package/dist/chucao/p-11083711.entry.js +0 -2
  125. package/dist/chucao/p-11083711.entry.js.map +0 -1
  126. package/dist/chucao/p-2ab4a6a8.entry.js +0 -2
  127. package/dist/chucao/p-a955eebf.entry.js +0 -2
  128. package/dist/chucao/p-a955eebf.entry.js.map +0 -1
  129. /package/dist/chucao/{p-d5a9e340.entry.js.map → p-077dc2a6.entry.js.map} +0 -0
  130. /package/dist/chucao/{p-4bc8e098.entry.js.map → p-079c2017.entry.js.map} +0 -0
  131. /package/dist/chucao/{p-121fbfc8.entry.js.map → p-5ae89a19.entry.js.map} +0 -0
  132. /package/dist/chucao/{p-5fe8bfff.entry.js.map → p-9c072600.entry.js.map} +0 -0
  133. /package/dist/chucao/{p-2ab4a6a8.entry.js.map → p-bb2445d1.entry.js.map} +0 -0
  134. /package/dist/chucao/{p-9bb81a65.entry.js.map → p-c986036f.entry.js.map} +0 -0
  135. /package/dist/chucao/{p-1b1e56cd.entry.js.map → p-e3265e38.entry.js.map} +0 -0
@@ -8,11 +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";
13
14
  import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
14
15
  import { ChLinkVariant } from "./components/ch-link/ch-link";
15
16
  import { ChRadioOption } from "./components/ch-radio/ch-radio";
17
+ import { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
16
18
  import { ChSelectOption } from "./components/ch-select/ch-select";
17
19
  import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
18
20
  import { ChTab } from "./components/ch-tabs/ch-tabs";
@@ -20,11 +22,13 @@ import { ChTooltipPlacement } from "./components/ch-tooltip/ch-tooltip";
20
22
  export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
21
23
  export { ChAlertVariant } from "./components/ch-alert/ch-alert";
22
24
  export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
23
- export { ChButtonVariant } from "./components/ch-button/ch-button";
25
+ export { ChButtonSize, ChButtonVariant } from "./components/ch-button/ch-button";
24
26
  export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
27
+ export { ChDrawerSide } from "./components/ch-drawer/ch-drawer";
25
28
  export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
26
29
  export { ChLinkVariant } from "./components/ch-link/ch-link";
27
30
  export { ChRadioOption } from "./components/ch-radio/ch-radio";
31
+ export { ChSegmentedControlOption, ChSegmentedControlSize } from "./components/ch-segmented-control/ch-segmented-control";
28
32
  export { ChSelectOption } from "./components/ch-select/ch-select";
29
33
  export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
30
34
  export { ChTab } from "./components/ch-tabs/ch-tabs";
@@ -74,11 +78,29 @@ export namespace Components {
74
78
  */
75
79
  "disabled": boolean;
76
80
  /**
77
- * 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).
78
86
  */
79
87
  "label"?: string;
80
88
  /**
81
- * 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`.
82
104
  * @default 'primary'
83
105
  */
84
106
  "variant": ChButtonVariant;
@@ -135,6 +157,37 @@ export namespace Components {
135
157
  */
136
158
  "orientation": ChDividerOrientation;
137
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
+ }
138
191
  /**
139
192
  * Inline emoji from the devsChile CDN.
140
193
  * Given a name (or alias from the emoji map), the component resolves the
@@ -296,6 +349,53 @@ export namespace Components {
296
349
  */
297
350
  "value"?: string;
298
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
+ }
299
399
  interface ChSelect {
300
400
  /**
301
401
  * Whether the select is disabled.
@@ -503,6 +603,10 @@ export interface ChCheckboxCustomEvent<T> extends CustomEvent<T> {
503
603
  detail: T;
504
604
  target: HTMLChCheckboxElement;
505
605
  }
606
+ export interface ChDrawerCustomEvent<T> extends CustomEvent<T> {
607
+ detail: T;
608
+ target: HTMLChDrawerElement;
609
+ }
506
610
  export interface ChInputCustomEvent<T> extends CustomEvent<T> {
507
611
  detail: T;
508
612
  target: HTMLChInputElement;
@@ -519,6 +623,10 @@ export interface ChRadioCustomEvent<T> extends CustomEvent<T> {
519
623
  detail: T;
520
624
  target: HTMLChRadioElement;
521
625
  }
626
+ export interface ChSegmentedControlCustomEvent<T> extends CustomEvent<T> {
627
+ detail: T;
628
+ target: HTMLChSegmentedControlElement;
629
+ }
522
630
  export interface ChSelectCustomEvent<T> extends CustomEvent<T> {
523
631
  detail: T;
524
632
  target: HTMLChSelectElement;
@@ -630,6 +738,35 @@ declare global {
630
738
  prototype: HTMLChDividerElement;
631
739
  new (): HTMLChDividerElement;
632
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
+ };
633
770
  /**
634
771
  * Inline emoji from the devsChile CDN.
635
772
  * Given a name (or alias from the emoji map), the component resolves the
@@ -728,6 +865,36 @@ declare global {
728
865
  prototype: HTMLChRadioElement;
729
866
  new (): HTMLChRadioElement;
730
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
+ };
731
898
  interface HTMLChSelectElementEventMap {
732
899
  "chChange": string;
733
900
  }
@@ -838,11 +1005,13 @@ declare global {
838
1005
  "ch-card": HTMLChCardElement;
839
1006
  "ch-checkbox": HTMLChCheckboxElement;
840
1007
  "ch-divider": HTMLChDividerElement;
1008
+ "ch-drawer": HTMLChDrawerElement;
841
1009
  "ch-emoji": HTMLChEmojiElement;
842
1010
  "ch-input": HTMLChInputElement;
843
1011
  "ch-link": HTMLChLinkElement;
844
1012
  "ch-modal": HTMLChModalElement;
845
1013
  "ch-radio": HTMLChRadioElement;
1014
+ "ch-segmented-control": HTMLChSegmentedControlElement;
846
1015
  "ch-select": HTMLChSelectElement;
847
1016
  "ch-spinner": HTMLChSpinnerElement;
848
1017
  "ch-switch": HTMLChSwitchElement;
@@ -906,15 +1075,33 @@ declare namespace LocalJSX {
906
1075
  */
907
1076
  "disabled"?: boolean;
908
1077
  /**
909
- * 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).
910
1083
  */
911
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;
912
1090
  /**
913
1091
  * Emitted when the button is clicked.
914
1092
  */
915
1093
  "onChClick"?: (event: ChButtonCustomEvent<MouseEvent>) => void;
916
1094
  /**
917
- * 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`.
918
1105
  * @default 'primary'
919
1106
  */
920
1107
  "variant"?: ChButtonVariant;
@@ -979,6 +1166,45 @@ declare namespace LocalJSX {
979
1166
  */
980
1167
  "orientation"?: ChDividerOrientation;
981
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
+ }
982
1208
  /**
983
1209
  * Inline emoji from the devsChile CDN.
984
1210
  * Given a name (or alias from the emoji map), the component resolves the
@@ -1172,6 +1398,61 @@ declare namespace LocalJSX {
1172
1398
  */
1173
1399
  "value"?: string;
1174
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
+ }
1175
1456
  interface ChSelect {
1176
1457
  /**
1177
1458
  * Whether the select is disabled.
@@ -1407,7 +1688,11 @@ declare namespace LocalJSX {
1407
1688
  }
1408
1689
  interface ChButtonAttributes {
1409
1690
  "variant": ChButtonVariant;
1691
+ "size": ChButtonSize;
1410
1692
  "disabled": boolean;
1693
+ "loading": boolean;
1694
+ "href": string;
1695
+ "target": string;
1411
1696
  "label": string;
1412
1697
  }
1413
1698
  interface ChCheckboxAttributes {
@@ -1424,6 +1709,12 @@ declare namespace LocalJSX {
1424
1709
  interface ChDividerAttributes {
1425
1710
  "orientation": ChDividerOrientation;
1426
1711
  }
1712
+ interface ChDrawerAttributes {
1713
+ "open": boolean;
1714
+ "side": ChDrawerSide;
1715
+ "label": string;
1716
+ "closeLabel": string;
1717
+ }
1427
1718
  interface ChEmojiAttributes {
1428
1719
  "name": string;
1429
1720
  "alt": string;
@@ -1462,6 +1753,14 @@ declare namespace LocalJSX {
1462
1753
  "errorMessage": string;
1463
1754
  "invalid": boolean;
1464
1755
  }
1756
+ interface ChSegmentedControlAttributes {
1757
+ "label": string;
1758
+ "value": string;
1759
+ "size": ChSegmentedControlSize;
1760
+ "name": string;
1761
+ "disabled": boolean;
1762
+ "required": boolean;
1763
+ }
1465
1764
  interface ChSelectAttributes {
1466
1765
  "label": string;
1467
1766
  "value": string;
@@ -1516,11 +1815,13 @@ declare namespace LocalJSX {
1516
1815
  "ch-card": ChCard;
1517
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] };
1518
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] };
1519
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"]>;
1520
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] };
1521
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] };
1522
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] };
1523
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] };
1524
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] };
1525
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] };
1526
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] };
@@ -1548,6 +1849,18 @@ declare module "@stencil/core" {
1548
1849
  "ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
1549
1850
  "ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
1550
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>;
1551
1864
  /**
1552
1865
  * Inline emoji from the devsChile CDN.
1553
1866
  * Given a name (or alias from the emoji map), the component resolves the
@@ -1575,6 +1888,20 @@ declare module "@stencil/core" {
1575
1888
  */
1576
1889
  "ch-modal": LocalJSX.IntrinsicElements["ch-modal"] & JSXBase.HTMLAttributes<HTMLChModalElement>;
1577
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>;
1578
1905
  "ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
1579
1906
  /**
1580
1907
  * Loading indicator.
@@ -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,11 +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";
15
16
  import { ChEmoji as ChEmojiElement } from "@devschile/chucao/dist/components/ch-emoji.js";
16
17
  import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
17
18
  import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
18
19
  import { ChModal as ChModalElement } from "@devschile/chucao/dist/components/ch-modal.js";
19
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";
20
22
  import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
21
23
  import { ChSpinner as ChSpinnerElement } from "@devschile/chucao/dist/components/ch-spinner.js";
22
24
  import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
@@ -45,6 +47,11 @@ export type ChCheckboxEvents = {
45
47
  export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
46
48
  export type ChDividerEvents = NonNullable<unknown>;
47
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>;
48
55
  export type ChEmojiEvents = NonNullable<unknown>;
49
56
  export declare const ChEmoji: StencilReactComponent<ChEmojiElement, ChEmojiEvents, Components.ChEmoji, 'name'>;
50
57
  export type ChInputEvents = {
@@ -65,6 +72,10 @@ export type ChRadioEvents = {
65
72
  onChChange: EventName<ChRadioCustomEvent<string>>;
66
73
  };
67
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>;
68
79
  export type ChSelectEvents = {
69
80
  onChChange: EventName<ChSelectCustomEvent<string>>;
70
81
  };
@@ -8,11 +8,13 @@ import { ChButton as ChButtonElement, defineCustomElement as defineChButton } fr
8
8
  import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
9
9
  import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
10
10
  import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
11
+ import { ChDrawer as ChDrawerElement, defineCustomElement as defineChDrawer } from "@devschile/chucao/dist/components/ch-drawer.js";
11
12
  import { ChEmoji as ChEmojiElement, defineCustomElement as defineChEmoji } from "@devschile/chucao/dist/components/ch-emoji.js";
12
13
  import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
13
14
  import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
14
15
  import { ChModal as ChModalElement, defineCustomElement as defineChModal } from "@devschile/chucao/dist/components/ch-modal.js";
15
16
  import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
17
+ import { ChSegmentedControl as ChSegmentedControlElement, defineCustomElement as defineChSegmentedControl } from "@devschile/chucao/dist/components/ch-segmented-control.js";
16
18
  import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
17
19
  import { ChSpinner as ChSpinnerElement, defineCustomElement as defineChSpinner } from "@devschile/chucao/dist/components/ch-spinner.js";
18
20
  import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
@@ -75,6 +77,17 @@ export const ChDivider = /*@__PURE__*/ createComponent({
75
77
  events: {},
76
78
  defineCustomElement: defineChDivider
77
79
  });
80
+ export const ChDrawer = /*@__PURE__*/ createComponent({
81
+ tagName: 'ch-drawer',
82
+ elementClass: ChDrawerElement,
83
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
84
+ react: React,
85
+ events: {
86
+ onChOpen: 'chOpen',
87
+ onChClose: 'chClose'
88
+ },
89
+ defineCustomElement: defineChDrawer
90
+ });
78
91
  export const ChEmoji = /*@__PURE__*/ createComponent({
79
92
  tagName: 'ch-emoji',
80
93
  elementClass: ChEmojiElement,
@@ -121,6 +134,14 @@ export const ChRadio = /*@__PURE__*/ createComponent({
121
134
  events: { onChChange: 'chChange' },
122
135
  defineCustomElement: defineChRadio
123
136
  });
137
+ export const ChSegmentedControl = /*@__PURE__*/ createComponent({
138
+ tagName: 'ch-segmented-control',
139
+ elementClass: ChSegmentedControlElement,
140
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
141
+ react: React,
142
+ events: { onChChange: 'chChange' },
143
+ defineCustomElement: defineChSegmentedControl
144
+ });
124
145
  export const ChSelect = /*@__PURE__*/ createComponent({
125
146
  tagName: 'ch-select',
126
147
  elementClass: ChSelectElement,