@devschile/chucao 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +3 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/{p-438e1401.entry.js → p-12e02f8e.entry.js} +2 -2
  4. package/dist/chucao/{p-7413b8c3.entry.js → p-21fa1897.entry.js} +2 -2
  5. package/dist/chucao/p-5c5048cf.entry.js +2 -0
  6. package/dist/chucao/p-5c5048cf.entry.js.map +1 -0
  7. package/dist/chucao/p-5df14f4b.entry.js +2 -0
  8. package/dist/chucao/p-5df14f4b.entry.js.map +1 -0
  9. package/dist/chucao/p-5e0ba154.entry.js +2 -0
  10. package/dist/chucao/p-5e0ba154.entry.js.map +1 -0
  11. package/dist/chucao/p-C_GZnvOi.js +3 -0
  12. package/dist/chucao/p-C_GZnvOi.js.map +1 -0
  13. package/dist/chucao/{p-1f47dd08.entry.js → p-bd015077.entry.js} +2 -2
  14. package/dist/chucao/p-ca96fa8a.entry.js +2 -0
  15. package/dist/chucao/p-ca96fa8a.entry.js.map +1 -0
  16. package/dist/chucao/{p-90db80a2.entry.js → p-ccae6c46.entry.js} +2 -2
  17. package/dist/chucao/{p-faa21ce0.entry.js → p-ecf098bb.entry.js} +2 -2
  18. package/dist/cjs/ch-accordion.cjs.entry.js +48 -0
  19. package/dist/cjs/ch-accordion.cjs.entry.js.map +1 -0
  20. package/dist/cjs/ch-badge_5.cjs.entry.js +6 -6
  21. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  22. package/dist/cjs/ch-divider.cjs.entry.js +24 -0
  23. package/dist/cjs/ch-divider.cjs.entry.js.map +1 -0
  24. package/dist/cjs/ch-link.cjs.entry.js +49 -0
  25. package/dist/cjs/ch-link.cjs.entry.js.map +1 -0
  26. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  27. package/dist/cjs/ch-switch.cjs.entry.js +2 -2
  28. package/dist/cjs/ch-tabs.cjs.entry.js +100 -0
  29. package/dist/cjs/ch-tabs.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  31. package/dist/cjs/chucao.cjs.js +2 -2
  32. package/dist/cjs/{index-DX3RZKi8.js → index-Ha3VDOML.js} +32 -3
  33. package/dist/cjs/index-Ha3VDOML.js.map +1 -0
  34. package/dist/cjs/loader.cjs.js +2 -2
  35. package/dist/collection/collection-manifest.json +4 -0
  36. package/dist/collection/components/ch-accordion/ch-accordion.css +72 -0
  37. package/dist/collection/components/ch-accordion/ch-accordion.js +111 -0
  38. package/dist/collection/components/ch-accordion/ch-accordion.js.map +1 -0
  39. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  40. package/dist/collection/components/ch-button/ch-button.js +1 -1
  41. package/dist/collection/components/ch-card/ch-card.js +1 -1
  42. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  43. package/dist/collection/components/ch-divider/ch-divider.css +25 -0
  44. package/dist/collection/components/ch-divider/ch-divider.js +53 -0
  45. package/dist/collection/components/ch-divider/ch-divider.js.map +1 -0
  46. package/dist/collection/components/ch-input/ch-input.js +1 -1
  47. package/dist/collection/components/ch-link/ch-link.css +40 -0
  48. package/dist/collection/components/ch-link/ch-link.js +158 -0
  49. package/dist/collection/components/ch-link/ch-link.js.map +1 -0
  50. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  51. package/dist/collection/components/ch-select/ch-select.js +1 -1
  52. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  53. package/dist/collection/components/ch-tabs/ch-tabs.css +69 -0
  54. package/dist/collection/components/ch-tabs/ch-tabs.js +182 -0
  55. package/dist/collection/components/ch-tabs/ch-tabs.js.map +1 -0
  56. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  57. package/dist/components/ch-accordion.d.ts +11 -0
  58. package/dist/components/ch-accordion.js +2 -0
  59. package/dist/components/ch-accordion.js.map +1 -0
  60. package/dist/components/ch-badge.js +1 -1
  61. package/dist/components/ch-button.js +1 -1
  62. package/dist/components/ch-card.js +1 -1
  63. package/dist/components/ch-checkbox.js +1 -1
  64. package/dist/components/ch-divider.d.ts +11 -0
  65. package/dist/components/ch-divider.js +2 -0
  66. package/dist/components/ch-divider.js.map +1 -0
  67. package/dist/components/ch-input.js +1 -1
  68. package/dist/components/ch-link.d.ts +11 -0
  69. package/dist/components/ch-link.js +2 -0
  70. package/dist/components/ch-link.js.map +1 -0
  71. package/dist/components/ch-radio.js +1 -1
  72. package/dist/components/ch-select.js +1 -1
  73. package/dist/components/ch-switch.js +1 -1
  74. package/dist/components/ch-tabs.d.ts +11 -0
  75. package/dist/components/ch-tabs.js +2 -0
  76. package/dist/components/ch-tabs.js.map +1 -0
  77. package/dist/components/ch-textarea.js +1 -1
  78. package/dist/components/index.js +1 -1
  79. package/dist/components/p-C3Jfy_hI.js +2 -0
  80. package/dist/components/p-C3Jfy_hI.js.map +1 -0
  81. package/dist/esm/ch-accordion.entry.js +46 -0
  82. package/dist/esm/ch-accordion.entry.js.map +1 -0
  83. package/dist/esm/ch-badge_5.entry.js +6 -6
  84. package/dist/esm/ch-checkbox.entry.js +2 -2
  85. package/dist/esm/ch-divider.entry.js +22 -0
  86. package/dist/esm/ch-divider.entry.js.map +1 -0
  87. package/dist/esm/ch-link.entry.js +47 -0
  88. package/dist/esm/ch-link.entry.js.map +1 -0
  89. package/dist/esm/ch-radio.entry.js +2 -2
  90. package/dist/esm/ch-switch.entry.js +2 -2
  91. package/dist/esm/ch-tabs.entry.js +98 -0
  92. package/dist/esm/ch-tabs.entry.js.map +1 -0
  93. package/dist/esm/ch-textarea.entry.js +2 -2
  94. package/dist/esm/chucao.js +3 -3
  95. package/dist/esm/{index-Bk9pvIKL.js → index-C_GZnvOi.js} +32 -3
  96. package/dist/esm/index-C_GZnvOi.js.map +1 -0
  97. package/dist/esm/loader.js +3 -3
  98. package/dist/types/components/ch-accordion/ch-accordion.d.ts +25 -0
  99. package/dist/types/components/ch-divider/ch-divider.d.ts +8 -0
  100. package/dist/types/components/ch-link/ch-link.d.ts +28 -0
  101. package/dist/types/components/ch-tabs/ch-tabs.d.ts +34 -0
  102. package/dist/types/components.d.ts +223 -0
  103. package/dist-react/components.d.ts +19 -1
  104. package/dist-react/components.js +36 -0
  105. package/dist-react/components.ts +49 -1
  106. package/dist-vue/index.d.ts +4 -0
  107. package/dist-vue/index.js +31 -0
  108. package/dist-vue/index.ts +39 -0
  109. package/package.json +1 -1
  110. package/dist/chucao/p-Bk9pvIKL.js +0 -3
  111. package/dist/chucao/p-Bk9pvIKL.js.map +0 -1
  112. package/dist/cjs/index-DX3RZKi8.js.map +0 -1
  113. package/dist/components/p-CcEsJ4Ml.js +0 -2
  114. package/dist/components/p-CcEsJ4Ml.js.map +0 -1
  115. package/dist/esm/index-Bk9pvIKL.js.map +0 -1
  116. /package/dist/chucao/{p-438e1401.entry.js.map → p-12e02f8e.entry.js.map} +0 -0
  117. /package/dist/chucao/{p-7413b8c3.entry.js.map → p-21fa1897.entry.js.map} +0 -0
  118. /package/dist/chucao/{p-1f47dd08.entry.js.map → p-bd015077.entry.js.map} +0 -0
  119. /package/dist/chucao/{p-90db80a2.entry.js.map → p-ccae6c46.entry.js.map} +0 -0
  120. /package/dist/chucao/{p-faa21ce0.entry.js.map → p-ecf098bb.entry.js.map} +0 -0
@@ -1,10 +1,10 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-Bk9pvIKL.js';
2
- export { s as setNonce } from './index-Bk9pvIKL.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-C_GZnvOi.js';
2
+ export { s as setNonce } from './index-C_GZnvOi.js';
3
3
 
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["ch-badge_5",[[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-checkbox",[[513,"ch-checkbox",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-radio",[[513,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-switch",[[513,"ch-switch",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-textarea",[[513,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]]], options);
7
+ return bootstrapLazy([["ch-badge_5",[[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[513,"ch-checkbox",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-radio",[[513,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-switch",[[513,"ch-switch",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[513,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };
@@ -0,0 +1,25 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export interface ChAccordionItem {
3
+ title: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ }
7
+ export declare class ChAccordion {
8
+ private readonly baseId;
9
+ /**
10
+ * The list of items, each with a `title`, a `value`, and an optional `disabled` flag.
11
+ */
12
+ items: ChAccordionItem[];
13
+ /**
14
+ * The value of the currently open item. When unset, no item is open.
15
+ */
16
+ value?: string;
17
+ /**
18
+ * Emitted when the open item changes, with the new value (`undefined` when all items are closed).
19
+ */
20
+ chChange: EventEmitter<string | undefined>;
21
+ private headerId;
22
+ private panelId;
23
+ private toggle;
24
+ render(): any;
25
+ }
@@ -0,0 +1,8 @@
1
+ export type ChDividerOrientation = 'horizontal' | 'vertical';
2
+ export declare class ChDivider {
3
+ /**
4
+ * The orientation of the divider. Either `horizontal` (default) or `vertical`.
5
+ */
6
+ orientation: ChDividerOrientation;
7
+ render(): any;
8
+ }
@@ -0,0 +1,28 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export type ChLinkVariant = 'default' | 'muted';
3
+ export declare class ChLink {
4
+ /**
5
+ * The URL the link points to.
6
+ */
7
+ href?: string;
8
+ /**
9
+ * The browsing context the link opens in (e.g. `_blank`). For `_blank`, a
10
+ * `noopener noreferrer` `rel` is added automatically.
11
+ */
12
+ target?: string;
13
+ /**
14
+ * The visual style of the link. Either `default` or `muted`.
15
+ */
16
+ variant: ChLinkVariant;
17
+ /**
18
+ * Whether the link is disabled. Renders a non-interactive element with
19
+ * `aria-disabled="true"` instead of an anchor.
20
+ */
21
+ disabled: boolean;
22
+ /**
23
+ * Emitted when the link is clicked.
24
+ */
25
+ chClick: EventEmitter<MouseEvent>;
26
+ private handleClick;
27
+ render(): any;
28
+ }
@@ -0,0 +1,34 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export interface ChTab {
3
+ label: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ }
7
+ export declare class ChTabs {
8
+ private readonly baseId;
9
+ private tablistEl?;
10
+ /**
11
+ * The list of tabs, each with a `label`, a `value`, and an optional `disabled` flag.
12
+ */
13
+ tabs: ChTab[];
14
+ /**
15
+ * The value of the active tab. Defaults to the first enabled tab.
16
+ */
17
+ value?: string;
18
+ /**
19
+ * Accessible label for the tablist, set as `aria-label`.
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Emitted when the active tab changes, with the new value.
24
+ */
25
+ chChange: EventEmitter<string>;
26
+ private tabId;
27
+ private panelId;
28
+ private get activeValue();
29
+ private select;
30
+ private focusTab;
31
+ private handleKeyDown;
32
+ private targetFor;
33
+ render(): any;
34
+ }
@@ -5,15 +5,34 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
8
9
  import { ChBadgeVariant } from "./components/ch-badge/ch-badge";
9
10
  import { ChButtonVariant } from "./components/ch-button/ch-button";
11
+ import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
12
+ import { ChLinkVariant } from "./components/ch-link/ch-link";
10
13
  import { ChRadioOption } from "./components/ch-radio/ch-radio";
11
14
  import { ChSelectOption } from "./components/ch-select/ch-select";
15
+ import { ChTab } from "./components/ch-tabs/ch-tabs";
16
+ export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
12
17
  export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
13
18
  export { ChButtonVariant } from "./components/ch-button/ch-button";
19
+ export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
20
+ export { ChLinkVariant } from "./components/ch-link/ch-link";
14
21
  export { ChRadioOption } from "./components/ch-radio/ch-radio";
15
22
  export { ChSelectOption } from "./components/ch-select/ch-select";
23
+ export { ChTab } from "./components/ch-tabs/ch-tabs";
16
24
  export namespace Components {
25
+ interface ChAccordion {
26
+ /**
27
+ * The list of items, each with a `title`, a `value`, and an optional `disabled` flag.
28
+ * @default []
29
+ */
30
+ "items": ChAccordionItem[];
31
+ /**
32
+ * The value of the currently open item. When unset, no item is open.
33
+ */
34
+ "value"?: string;
35
+ }
17
36
  interface ChBadge {
18
37
  /**
19
38
  * The visual style of the badge. Either `default`, `positive`, or `warning`.
@@ -82,6 +101,13 @@ export namespace Components {
82
101
  */
83
102
  "value": string;
84
103
  }
104
+ interface ChDivider {
105
+ /**
106
+ * The orientation of the divider. Either `horizontal` (default) or `vertical`.
107
+ * @default 'horizontal'
108
+ */
109
+ "orientation": ChDividerOrientation;
110
+ }
85
111
  interface ChInput {
86
112
  /**
87
113
  * Whether the input is disabled.
@@ -129,6 +155,26 @@ export namespace Components {
129
155
  */
130
156
  "value": string;
131
157
  }
158
+ interface ChLink {
159
+ /**
160
+ * Whether the link is disabled. Renders a non-interactive element with `aria-disabled="true"` instead of an anchor.
161
+ * @default false
162
+ */
163
+ "disabled": boolean;
164
+ /**
165
+ * The URL the link points to.
166
+ */
167
+ "href"?: string;
168
+ /**
169
+ * The browsing context the link opens in (e.g. `_blank`). For `_blank`, a `noopener noreferrer` `rel` is added automatically.
170
+ */
171
+ "target"?: string;
172
+ /**
173
+ * The visual style of the link. Either `default` or `muted`.
174
+ * @default 'default'
175
+ */
176
+ "variant": ChLinkVariant;
177
+ }
132
178
  interface ChRadio {
133
179
  /**
134
180
  * Whether all radios in the group are disabled.
@@ -260,6 +306,21 @@ export namespace Components {
260
306
  */
261
307
  "value": string;
262
308
  }
309
+ interface ChTabs {
310
+ /**
311
+ * Accessible label for the tablist, set as `aria-label`.
312
+ */
313
+ "label"?: string;
314
+ /**
315
+ * The list of tabs, each with a `label`, a `value`, and an optional `disabled` flag.
316
+ * @default []
317
+ */
318
+ "tabs": ChTab[];
319
+ /**
320
+ * The value of the active tab. Defaults to the first enabled tab.
321
+ */
322
+ "value"?: string;
323
+ }
263
324
  interface ChTextarea {
264
325
  /**
265
326
  * Whether the textarea is disabled.
@@ -308,6 +369,10 @@ export namespace Components {
308
369
  "value": string;
309
370
  }
310
371
  }
372
+ export interface ChAccordionCustomEvent<T> extends CustomEvent<T> {
373
+ detail: T;
374
+ target: HTMLChAccordionElement;
375
+ }
311
376
  export interface ChButtonCustomEvent<T> extends CustomEvent<T> {
312
377
  detail: T;
313
378
  target: HTMLChButtonElement;
@@ -320,6 +385,10 @@ export interface ChInputCustomEvent<T> extends CustomEvent<T> {
320
385
  detail: T;
321
386
  target: HTMLChInputElement;
322
387
  }
388
+ export interface ChLinkCustomEvent<T> extends CustomEvent<T> {
389
+ detail: T;
390
+ target: HTMLChLinkElement;
391
+ }
323
392
  export interface ChRadioCustomEvent<T> extends CustomEvent<T> {
324
393
  detail: T;
325
394
  target: HTMLChRadioElement;
@@ -332,11 +401,32 @@ export interface ChSwitchCustomEvent<T> extends CustomEvent<T> {
332
401
  detail: T;
333
402
  target: HTMLChSwitchElement;
334
403
  }
404
+ export interface ChTabsCustomEvent<T> extends CustomEvent<T> {
405
+ detail: T;
406
+ target: HTMLChTabsElement;
407
+ }
335
408
  export interface ChTextareaCustomEvent<T> extends CustomEvent<T> {
336
409
  detail: T;
337
410
  target: HTMLChTextareaElement;
338
411
  }
339
412
  declare global {
413
+ interface HTMLChAccordionElementEventMap {
414
+ "chChange": string | undefined;
415
+ }
416
+ interface HTMLChAccordionElement extends Components.ChAccordion, HTMLStencilElement {
417
+ addEventListener<K extends keyof HTMLChAccordionElementEventMap>(type: K, listener: (this: HTMLChAccordionElement, ev: ChAccordionCustomEvent<HTMLChAccordionElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
418
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
419
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
420
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
421
+ removeEventListener<K extends keyof HTMLChAccordionElementEventMap>(type: K, listener: (this: HTMLChAccordionElement, ev: ChAccordionCustomEvent<HTMLChAccordionElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
422
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
423
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
424
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
425
+ }
426
+ var HTMLChAccordionElement: {
427
+ prototype: HTMLChAccordionElement;
428
+ new (): HTMLChAccordionElement;
429
+ };
340
430
  interface HTMLChBadgeElement extends Components.ChBadge, HTMLStencilElement {
341
431
  }
342
432
  var HTMLChBadgeElement: {
@@ -383,6 +473,12 @@ declare global {
383
473
  prototype: HTMLChCheckboxElement;
384
474
  new (): HTMLChCheckboxElement;
385
475
  };
476
+ interface HTMLChDividerElement extends Components.ChDivider, HTMLStencilElement {
477
+ }
478
+ var HTMLChDividerElement: {
479
+ prototype: HTMLChDividerElement;
480
+ new (): HTMLChDividerElement;
481
+ };
386
482
  interface HTMLChInputElementEventMap {
387
483
  "chInput": string;
388
484
  "chChange": string;
@@ -401,6 +497,23 @@ declare global {
401
497
  prototype: HTMLChInputElement;
402
498
  new (): HTMLChInputElement;
403
499
  };
500
+ interface HTMLChLinkElementEventMap {
501
+ "chClick": MouseEvent;
502
+ }
503
+ interface HTMLChLinkElement extends Components.ChLink, HTMLStencilElement {
504
+ addEventListener<K extends keyof HTMLChLinkElementEventMap>(type: K, listener: (this: HTMLChLinkElement, ev: ChLinkCustomEvent<HTMLChLinkElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
505
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
506
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
507
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
508
+ removeEventListener<K extends keyof HTMLChLinkElementEventMap>(type: K, listener: (this: HTMLChLinkElement, ev: ChLinkCustomEvent<HTMLChLinkElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
509
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
510
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
511
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
512
+ }
513
+ var HTMLChLinkElement: {
514
+ prototype: HTMLChLinkElement;
515
+ new (): HTMLChLinkElement;
516
+ };
404
517
  interface HTMLChRadioElementEventMap {
405
518
  "chChange": string;
406
519
  }
@@ -452,6 +565,23 @@ declare global {
452
565
  prototype: HTMLChSwitchElement;
453
566
  new (): HTMLChSwitchElement;
454
567
  };
568
+ interface HTMLChTabsElementEventMap {
569
+ "chChange": string;
570
+ }
571
+ interface HTMLChTabsElement extends Components.ChTabs, HTMLStencilElement {
572
+ addEventListener<K extends keyof HTMLChTabsElementEventMap>(type: K, listener: (this: HTMLChTabsElement, ev: ChTabsCustomEvent<HTMLChTabsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
573
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
574
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
575
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
576
+ removeEventListener<K extends keyof HTMLChTabsElementEventMap>(type: K, listener: (this: HTMLChTabsElement, ev: ChTabsCustomEvent<HTMLChTabsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
577
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
578
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
579
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
580
+ }
581
+ var HTMLChTabsElement: {
582
+ prototype: HTMLChTabsElement;
583
+ new (): HTMLChTabsElement;
584
+ };
455
585
  interface HTMLChTextareaElementEventMap {
456
586
  "chInput": string;
457
587
  "chChange": string;
@@ -471,18 +601,37 @@ declare global {
471
601
  new (): HTMLChTextareaElement;
472
602
  };
473
603
  interface HTMLElementTagNameMap {
604
+ "ch-accordion": HTMLChAccordionElement;
474
605
  "ch-badge": HTMLChBadgeElement;
475
606
  "ch-button": HTMLChButtonElement;
476
607
  "ch-card": HTMLChCardElement;
477
608
  "ch-checkbox": HTMLChCheckboxElement;
609
+ "ch-divider": HTMLChDividerElement;
478
610
  "ch-input": HTMLChInputElement;
611
+ "ch-link": HTMLChLinkElement;
479
612
  "ch-radio": HTMLChRadioElement;
480
613
  "ch-select": HTMLChSelectElement;
481
614
  "ch-switch": HTMLChSwitchElement;
615
+ "ch-tabs": HTMLChTabsElement;
482
616
  "ch-textarea": HTMLChTextareaElement;
483
617
  }
484
618
  }
485
619
  declare namespace LocalJSX {
620
+ interface ChAccordion {
621
+ /**
622
+ * The list of items, each with a `title`, a `value`, and an optional `disabled` flag.
623
+ * @default []
624
+ */
625
+ "items"?: ChAccordionItem[];
626
+ /**
627
+ * Emitted when the open item changes, with the new value (`undefined` when all items are closed).
628
+ */
629
+ "onChChange"?: (event: ChAccordionCustomEvent<string | undefined>) => void;
630
+ /**
631
+ * The value of the currently open item. When unset, no item is open.
632
+ */
633
+ "value"?: string;
634
+ }
486
635
  interface ChBadge {
487
636
  /**
488
637
  * The visual style of the badge. Either `default`, `positive`, or `warning`.
@@ -559,6 +708,13 @@ declare namespace LocalJSX {
559
708
  */
560
709
  "value"?: string;
561
710
  }
711
+ interface ChDivider {
712
+ /**
713
+ * The orientation of the divider. Either `horizontal` (default) or `vertical`.
714
+ * @default 'horizontal'
715
+ */
716
+ "orientation"?: ChDividerOrientation;
717
+ }
562
718
  interface ChInput {
563
719
  /**
564
720
  * Whether the input is disabled.
@@ -614,6 +770,30 @@ declare namespace LocalJSX {
614
770
  */
615
771
  "value"?: string;
616
772
  }
773
+ interface ChLink {
774
+ /**
775
+ * Whether the link is disabled. Renders a non-interactive element with `aria-disabled="true"` instead of an anchor.
776
+ * @default false
777
+ */
778
+ "disabled"?: boolean;
779
+ /**
780
+ * The URL the link points to.
781
+ */
782
+ "href"?: string;
783
+ /**
784
+ * Emitted when the link is clicked.
785
+ */
786
+ "onChClick"?: (event: ChLinkCustomEvent<MouseEvent>) => void;
787
+ /**
788
+ * The browsing context the link opens in (e.g. `_blank`). For `_blank`, a `noopener noreferrer` `rel` is added automatically.
789
+ */
790
+ "target"?: string;
791
+ /**
792
+ * The visual style of the link. Either `default` or `muted`.
793
+ * @default 'default'
794
+ */
795
+ "variant"?: ChLinkVariant;
796
+ }
617
797
  interface ChRadio {
618
798
  /**
619
799
  * Whether all radios in the group are disabled.
@@ -757,6 +937,25 @@ declare namespace LocalJSX {
757
937
  */
758
938
  "value"?: string;
759
939
  }
940
+ interface ChTabs {
941
+ /**
942
+ * Accessible label for the tablist, set as `aria-label`.
943
+ */
944
+ "label"?: string;
945
+ /**
946
+ * Emitted when the active tab changes, with the new value.
947
+ */
948
+ "onChChange"?: (event: ChTabsCustomEvent<string>) => void;
949
+ /**
950
+ * The list of tabs, each with a `label`, a `value`, and an optional `disabled` flag.
951
+ * @default []
952
+ */
953
+ "tabs"?: ChTab[];
954
+ /**
955
+ * The value of the active tab. Defaults to the first enabled tab.
956
+ */
957
+ "value"?: string;
958
+ }
760
959
  interface ChTextarea {
761
960
  /**
762
961
  * Whether the textarea is disabled.
@@ -813,6 +1012,9 @@ declare namespace LocalJSX {
813
1012
  "value"?: string;
814
1013
  }
815
1014
 
1015
+ interface ChAccordionAttributes {
1016
+ "value": string;
1017
+ }
816
1018
  interface ChBadgeAttributes {
817
1019
  "variant": ChBadgeVariant;
818
1020
  }
@@ -832,6 +1034,9 @@ declare namespace LocalJSX {
832
1034
  "errorMessage": string;
833
1035
  "invalid": boolean;
834
1036
  }
1037
+ interface ChDividerAttributes {
1038
+ "orientation": ChDividerOrientation;
1039
+ }
835
1040
  interface ChInputAttributes {
836
1041
  "label": string;
837
1042
  "type": string;
@@ -844,6 +1049,12 @@ declare namespace LocalJSX {
844
1049
  "errorMessage": string;
845
1050
  "invalid": boolean;
846
1051
  }
1052
+ interface ChLinkAttributes {
1053
+ "href": string;
1054
+ "target": string;
1055
+ "variant": ChLinkVariant;
1056
+ "disabled": boolean;
1057
+ }
847
1058
  interface ChRadioAttributes {
848
1059
  "label": string;
849
1060
  "value": string;
@@ -876,6 +1087,10 @@ declare namespace LocalJSX {
876
1087
  "errorMessage": string;
877
1088
  "invalid": boolean;
878
1089
  }
1090
+ interface ChTabsAttributes {
1091
+ "value": string;
1092
+ "label": string;
1093
+ }
879
1094
  interface ChTextareaAttributes {
880
1095
  "label": string;
881
1096
  "value": string;
@@ -890,14 +1105,18 @@ declare namespace LocalJSX {
890
1105
  }
891
1106
 
892
1107
  interface IntrinsicElements {
1108
+ "ch-accordion": Omit<ChAccordion, keyof ChAccordionAttributes> & { [K in keyof ChAccordion & keyof ChAccordionAttributes]?: ChAccordion[K] } & { [K in keyof ChAccordion & keyof ChAccordionAttributes as `attr:${K}`]?: ChAccordionAttributes[K] } & { [K in keyof ChAccordion & keyof ChAccordionAttributes as `prop:${K}`]?: ChAccordion[K] };
893
1109
  "ch-badge": Omit<ChBadge, keyof ChBadgeAttributes> & { [K in keyof ChBadge & keyof ChBadgeAttributes]?: ChBadge[K] } & { [K in keyof ChBadge & keyof ChBadgeAttributes as `attr:${K}`]?: ChBadgeAttributes[K] } & { [K in keyof ChBadge & keyof ChBadgeAttributes as `prop:${K}`]?: ChBadge[K] };
894
1110
  "ch-button": Omit<ChButton, keyof ChButtonAttributes> & { [K in keyof ChButton & keyof ChButtonAttributes]?: ChButton[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `attr:${K}`]?: ChButtonAttributes[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `prop:${K}`]?: ChButton[K] };
895
1111
  "ch-card": ChCard;
896
1112
  "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] };
1113
+ "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] };
897
1114
  "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] };
1115
+ "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] };
898
1116
  "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] };
899
1117
  "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] };
900
1118
  "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] };
1119
+ "ch-tabs": Omit<ChTabs, keyof ChTabsAttributes> & { [K in keyof ChTabs & keyof ChTabsAttributes]?: ChTabs[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `attr:${K}`]?: ChTabsAttributes[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `prop:${K}`]?: ChTabs[K] };
901
1120
  "ch-textarea": Omit<ChTextarea, keyof ChTextareaAttributes> & { [K in keyof ChTextarea & keyof ChTextareaAttributes]?: ChTextarea[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `attr:${K}`]?: ChTextareaAttributes[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `prop:${K}`]?: ChTextarea[K] };
902
1121
  }
903
1122
  }
@@ -905,14 +1124,18 @@ export { LocalJSX as JSX };
905
1124
  declare module "@stencil/core" {
906
1125
  export namespace JSX {
907
1126
  interface IntrinsicElements {
1127
+ "ch-accordion": LocalJSX.IntrinsicElements["ch-accordion"] & JSXBase.HTMLAttributes<HTMLChAccordionElement>;
908
1128
  "ch-badge": LocalJSX.IntrinsicElements["ch-badge"] & JSXBase.HTMLAttributes<HTMLChBadgeElement>;
909
1129
  "ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
910
1130
  "ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
911
1131
  "ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
1132
+ "ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
912
1133
  "ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
1134
+ "ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
913
1135
  "ch-radio": LocalJSX.IntrinsicElements["ch-radio"] & JSXBase.HTMLAttributes<HTMLChRadioElement>;
914
1136
  "ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
915
1137
  "ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
1138
+ "ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
916
1139
  "ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
917
1140
  }
918
1141
  }
@@ -3,17 +3,25 @@
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 ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
6
+ import { type ChAccordionCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
7
7
  import type { Components } from "@devschile/chucao/dist/components";
8
+ import { ChAccordion as ChAccordionElement } from "@devschile/chucao/dist/components/ch-accordion.js";
8
9
  import { ChBadge as ChBadgeElement } from "@devschile/chucao/dist/components/ch-badge.js";
9
10
  import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/ch-button.js";
10
11
  import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
11
12
  import { ChCheckbox as ChCheckboxElement } from "@devschile/chucao/dist/components/ch-checkbox.js";
13
+ import { ChDivider as ChDividerElement } from "@devschile/chucao/dist/components/ch-divider.js";
12
14
  import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
15
+ import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
13
16
  import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
14
17
  import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
15
18
  import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
19
+ import { ChTabs as ChTabsElement } from "@devschile/chucao/dist/components/ch-tabs.js";
16
20
  import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
21
+ export type ChAccordionEvents = {
22
+ onChChange: EventName<ChAccordionCustomEvent<string | undefined>>;
23
+ };
24
+ export declare const ChAccordion: StencilReactComponent<ChAccordionElement, ChAccordionEvents, Components.ChAccordion>;
17
25
  export type ChBadgeEvents = NonNullable<unknown>;
18
26
  export declare const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>;
19
27
  export type ChButtonEvents = {
@@ -26,11 +34,17 @@ export type ChCheckboxEvents = {
26
34
  onChChange: EventName<ChCheckboxCustomEvent<boolean>>;
27
35
  };
28
36
  export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
37
+ export type ChDividerEvents = NonNullable<unknown>;
38
+ export declare const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents, Components.ChDivider>;
29
39
  export type ChInputEvents = {
30
40
  onChInput: EventName<ChInputCustomEvent<string>>;
31
41
  onChChange: EventName<ChInputCustomEvent<string>>;
32
42
  };
33
43
  export declare const ChInput: StencilReactComponent<ChInputElement, ChInputEvents, Components.ChInput>;
44
+ export type ChLinkEvents = {
45
+ onChClick: EventName<ChLinkCustomEvent<MouseEvent>>;
46
+ };
47
+ export declare const ChLink: StencilReactComponent<ChLinkElement, ChLinkEvents, Components.ChLink>;
34
48
  export type ChRadioEvents = {
35
49
  onChChange: EventName<ChRadioCustomEvent<string>>;
36
50
  };
@@ -43,6 +57,10 @@ export type ChSwitchEvents = {
43
57
  onChChange: EventName<ChSwitchCustomEvent<boolean>>;
44
58
  };
45
59
  export declare const ChSwitch: StencilReactComponent<ChSwitchElement, ChSwitchEvents, Components.ChSwitch>;
60
+ export type ChTabsEvents = {
61
+ onChChange: EventName<ChTabsCustomEvent<string>>;
62
+ };
63
+ export declare const ChTabs: StencilReactComponent<ChTabsElement, ChTabsEvents, Components.ChTabs>;
46
64
  export type ChTextareaEvents = {
47
65
  onChInput: EventName<ChTextareaCustomEvent<string>>;
48
66
  onChChange: EventName<ChTextareaCustomEvent<string>>;
@@ -1,15 +1,27 @@
1
1
  'use client';
2
2
  import { createComponent } from '@stencil/react-output-target/runtime';
3
3
  import React from 'react';
4
+ import { ChAccordion as ChAccordionElement, defineCustomElement as defineChAccordion } from "@devschile/chucao/dist/components/ch-accordion.js";
4
5
  import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
5
6
  import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
6
7
  import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
7
8
  import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
9
+ import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
8
10
  import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
11
+ import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
9
12
  import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
10
13
  import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
11
14
  import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
15
+ import { ChTabs as ChTabsElement, defineCustomElement as defineChTabs } from "@devschile/chucao/dist/components/ch-tabs.js";
12
16
  import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
17
+ export const ChAccordion = /*@__PURE__*/ createComponent({
18
+ tagName: 'ch-accordion',
19
+ elementClass: ChAccordionElement,
20
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
21
+ react: React,
22
+ events: { onChChange: 'chChange' },
23
+ defineCustomElement: defineChAccordion
24
+ });
13
25
  export const ChBadge = /*@__PURE__*/ createComponent({
14
26
  tagName: 'ch-badge',
15
27
  elementClass: ChBadgeElement,
@@ -42,6 +54,14 @@ export const ChCheckbox = /*@__PURE__*/ createComponent({
42
54
  events: { onChChange: 'chChange' },
43
55
  defineCustomElement: defineChCheckbox
44
56
  });
57
+ export const ChDivider = /*@__PURE__*/ createComponent({
58
+ tagName: 'ch-divider',
59
+ elementClass: ChDividerElement,
60
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
61
+ react: React,
62
+ events: {},
63
+ defineCustomElement: defineChDivider
64
+ });
45
65
  export const ChInput = /*@__PURE__*/ createComponent({
46
66
  tagName: 'ch-input',
47
67
  elementClass: ChInputElement,
@@ -53,6 +73,14 @@ export const ChInput = /*@__PURE__*/ createComponent({
53
73
  },
54
74
  defineCustomElement: defineChInput
55
75
  });
76
+ export const ChLink = /*@__PURE__*/ createComponent({
77
+ tagName: 'ch-link',
78
+ elementClass: ChLinkElement,
79
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
80
+ react: React,
81
+ events: { onChClick: 'chClick' },
82
+ defineCustomElement: defineChLink
83
+ });
56
84
  export const ChRadio = /*@__PURE__*/ createComponent({
57
85
  tagName: 'ch-radio',
58
86
  elementClass: ChRadioElement,
@@ -77,6 +105,14 @@ export const ChSwitch = /*@__PURE__*/ createComponent({
77
105
  events: { onChChange: 'chChange' },
78
106
  defineCustomElement: defineChSwitch
79
107
  });
108
+ export const ChTabs = /*@__PURE__*/ createComponent({
109
+ tagName: 'ch-tabs',
110
+ elementClass: ChTabsElement,
111
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
112
+ react: React,
113
+ events: { onChChange: 'chChange' },
114
+ defineCustomElement: defineChTabs
115
+ });
80
116
  export const ChTextarea = /*@__PURE__*/ createComponent({
81
117
  tagName: 'ch-textarea',
82
118
  elementClass: ChTextareaElement,