@devschile/chucao 1.8.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/{p-e8fe65bb.entry.js → p-04dbcfa0.entry.js} +2 -2
- package/dist/chucao/p-11083711.entry.js +2 -0
- package/dist/chucao/p-11083711.entry.js.map +1 -0
- package/dist/chucao/{p-cfb6db53.entry.js → p-121fbfc8.entry.js} +2 -2
- package/dist/chucao/p-1b1e56cd.entry.js +2 -0
- package/dist/chucao/p-1b1e56cd.entry.js.map +1 -0
- package/dist/chucao/{p-df73f786.entry.js → p-2ab4a6a8.entry.js} +2 -2
- package/dist/chucao/p-4bc8e098.entry.js +2 -0
- package/dist/chucao/p-4bc8e098.entry.js.map +1 -0
- package/dist/chucao/p-5fe8bfff.entry.js +2 -0
- package/dist/chucao/p-5fe8bfff.entry.js.map +1 -0
- package/dist/chucao/p-9bb81a65.entry.js +2 -0
- package/dist/chucao/p-9bb81a65.entry.js.map +1 -0
- package/dist/chucao/p-DWC12BJ-.js +3 -0
- package/dist/chucao/p-DWC12BJ-.js.map +1 -0
- package/dist/chucao/{p-2d7e81b2.entry.js → p-a955eebf.entry.js} +2 -2
- package/dist/chucao/{p-cbb2b478.entry.js → p-d5a9e340.entry.js} +2 -2
- package/dist/chucao/{p-1cc7042e.entry.js → p-ff5f5c1f.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +186 -9
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +62 -3
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-emoji.cjs.entry.js +104 -0
- package/dist/cjs/ch-emoji.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +2 -2
- package/dist/cjs/ch-radio.cjs.entry.js +62 -3
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +62 -3
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-DMeDkSQU.js → index-C9cpLteP.js} +71 -12
- package/dist/cjs/index-C9cpLteP.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.css +10 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +64 -4
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
- package/dist/collection/components/ch-emoji/ch-emoji.css +33 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js +151 -0
- package/dist/collection/components/ch-emoji/ch-emoji.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +11 -0
- package/dist/collection/components/ch-input/ch-input.js +64 -4
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-modal/ch-modal.js +1 -1
- package/dist/collection/components/ch-radio/ch-radio.css +10 -0
- package/dist/collection/components/ch-radio/ch-radio.js +64 -4
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
- package/dist/collection/components/ch-select/ch-select.css +11 -0
- package/dist/collection/components/ch-select/ch-select.js +64 -4
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +10 -0
- package/dist/collection/components/ch-switch/ch-switch.js +64 -4
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.css +11 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +64 -4
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +1 -1
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-checkbox.js.map +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-emoji.d.ts +11 -0
- package/dist/components/ch-emoji.js +2 -0
- package/dist/components/ch-emoji.js.map +1 -0
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-radio.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-textarea.js.map +1 -1
- package/dist/components/ch-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BhAZrOxf.js +2 -0
- package/dist/components/p-BhAZrOxf.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +186 -9
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +62 -3
- package/dist/esm/ch-checkbox.entry.js.map +1 -1
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-emoji.entry.js +102 -0
- package/dist/esm/ch-emoji.entry.js.map +1 -0
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +2 -2
- package/dist/esm/ch-radio.entry.js +62 -3
- package/dist/esm/ch-radio.entry.js.map +1 -1
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +62 -3
- package/dist/esm/ch-textarea.entry.js.map +1 -1
- package/dist/esm/ch-tooltip.entry.js +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-Bvah_WQV.js → index-DWC12BJ-.js} +71 -12
- package/dist/esm/index-DWC12BJ-.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +9 -0
- package/dist/types/components/ch-emoji/ch-emoji.d.ts +32 -0
- package/dist/types/components/ch-input/ch-input.d.ts +9 -0
- package/dist/types/components/ch-radio/ch-radio.d.ts +9 -0
- package/dist/types/components/ch-select/ch-select.d.ts +9 -0
- package/dist/types/components/ch-switch/ch-switch.d.ts +9 -0
- package/dist/types/components/ch-textarea/ch-textarea.d.ts +9 -0
- package/dist/types/components.d.ts +96 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/dist-react/components.d.ts +3 -0
- package/dist-react/components.js +9 -0
- package/dist-react/components.ts +12 -0
- package/dist-vue/index.d.ts +1 -0
- package/dist-vue/index.js +6 -0
- package/dist-vue/index.ts +8 -0
- package/hydrate/index.js +555 -63
- package/hydrate/index.mjs +555 -63
- package/loader/index.d.ts +1 -1
- package/package.json +5 -1
- package/dist/chucao/p-13ab5f9a.entry.js +0 -2
- package/dist/chucao/p-13ab5f9a.entry.js.map +0 -1
- package/dist/chucao/p-23c5220b.entry.js +0 -2
- package/dist/chucao/p-23c5220b.entry.js.map +0 -1
- package/dist/chucao/p-421cda05.entry.js +0 -2
- package/dist/chucao/p-421cda05.entry.js.map +0 -1
- package/dist/chucao/p-Bvah_WQV.js +0 -3
- package/dist/chucao/p-Bvah_WQV.js.map +0 -1
- package/dist/chucao/p-c16b18b7.entry.js +0 -2
- package/dist/chucao/p-c16b18b7.entry.js.map +0 -1
- package/dist/cjs/index-DMeDkSQU.js.map +0 -1
- package/dist/components/p-hyy-cLgi.js +0 -2
- package/dist/components/p-hyy-cLgi.js.map +0 -1
- package/dist/esm/index-Bvah_WQV.js.map +0 -1
- /package/dist/chucao/{p-e8fe65bb.entry.js.map → p-04dbcfa0.entry.js.map} +0 -0
- /package/dist/chucao/{p-cfb6db53.entry.js.map → p-121fbfc8.entry.js.map} +0 -0
- /package/dist/chucao/{p-df73f786.entry.js.map → p-2ab4a6a8.entry.js.map} +0 -0
- /package/dist/chucao/{p-2d7e81b2.entry.js.map → p-a955eebf.entry.js.map} +0 -0
- /package/dist/chucao/{p-cbb2b478.entry.js.map → p-d5a9e340.entry.js.map} +0 -0
- /package/dist/chucao/{p-1cc7042e.entry.js.map → p-ff5f5c1f.entry.js.map} +0 -0
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-DWC12BJ-.js';
|
|
2
|
+
export { s as setNonce } from './index-DWC12BJ-.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-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[
|
|
7
|
+
return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -3,6 +3,10 @@ export declare class ChCheckbox {
|
|
|
3
3
|
private readonly checkboxId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialChecked;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered next to the checkbox, associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the checkbox's purpose.
|
|
@@ -46,6 +50,11 @@ export declare class ChCheckbox {
|
|
|
46
50
|
*/
|
|
47
51
|
chChange: EventEmitter<boolean>;
|
|
48
52
|
private handleChange;
|
|
53
|
+
protected syncForm(): void;
|
|
54
|
+
componentDidLoad(): void;
|
|
55
|
+
private markTouched;
|
|
56
|
+
formResetCallback(): void;
|
|
57
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
49
58
|
private get describedBy();
|
|
50
59
|
render(): any;
|
|
51
60
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type ChEmojiSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
/**
|
|
3
|
+
* Inline emoji from the devsChile CDN.
|
|
4
|
+
*
|
|
5
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
6
|
+
* asset URL and tries each possible file extension until one loads.
|
|
7
|
+
* Size is controlled via the `size` prop.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ChEmoji {
|
|
10
|
+
private extIndex;
|
|
11
|
+
private loaded;
|
|
12
|
+
/**
|
|
13
|
+
* The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Accessible alt text for the image. Defaults to the `name` prop.
|
|
18
|
+
*/
|
|
19
|
+
alt?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
|
|
22
|
+
*/
|
|
23
|
+
size: ChEmojiSize;
|
|
24
|
+
componentWillLoad(): void;
|
|
25
|
+
handleNameChange(): void;
|
|
26
|
+
private resolveAsset;
|
|
27
|
+
private get assetName();
|
|
28
|
+
private get currentSrc();
|
|
29
|
+
private handleError;
|
|
30
|
+
private handleLoad;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -3,6 +3,10 @@ export declare class ChInput {
|
|
|
3
3
|
private readonly inputId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialValue;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered above the input and associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the input's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChInput {
|
|
|
55
59
|
chChange: EventEmitter<string>;
|
|
56
60
|
private handleInput;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -9,6 +9,10 @@ export declare class ChRadio {
|
|
|
9
9
|
private readonly labelId;
|
|
10
10
|
private readonly hintId;
|
|
11
11
|
private readonly errorId;
|
|
12
|
+
private initialValue;
|
|
13
|
+
internals: ElementInternals;
|
|
14
|
+
formDisabled: boolean;
|
|
15
|
+
private host;
|
|
12
16
|
/**
|
|
13
17
|
* Visible label describing the radio group, associated with it via
|
|
14
18
|
* `aria-labelledby`.
|
|
@@ -53,6 +57,11 @@ export declare class ChRadio {
|
|
|
53
57
|
*/
|
|
54
58
|
chChange: EventEmitter<string>;
|
|
55
59
|
private handleChange;
|
|
60
|
+
protected syncForm(): void;
|
|
61
|
+
componentDidLoad(): void;
|
|
62
|
+
private markTouched;
|
|
63
|
+
formResetCallback(): void;
|
|
64
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
56
65
|
private get describedBy();
|
|
57
66
|
render(): any;
|
|
58
67
|
}
|
|
@@ -8,6 +8,10 @@ export declare class ChSelect {
|
|
|
8
8
|
private readonly selectId;
|
|
9
9
|
private readonly hintId;
|
|
10
10
|
private readonly errorId;
|
|
11
|
+
private initialValue;
|
|
12
|
+
internals: ElementInternals;
|
|
13
|
+
formDisabled: boolean;
|
|
14
|
+
private host;
|
|
11
15
|
/**
|
|
12
16
|
* Visible label rendered above the select and associated with it via
|
|
13
17
|
* `for`/`id`, so assistive technology announces the select's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChSelect {
|
|
|
55
59
|
*/
|
|
56
60
|
chChange: EventEmitter<string>;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -3,6 +3,10 @@ export declare class ChSwitch {
|
|
|
3
3
|
private readonly switchId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialChecked;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered next to the switch, associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the switch's purpose.
|
|
@@ -46,6 +50,11 @@ export declare class ChSwitch {
|
|
|
46
50
|
*/
|
|
47
51
|
chChange: EventEmitter<boolean>;
|
|
48
52
|
private handleChange;
|
|
53
|
+
protected syncForm(): void;
|
|
54
|
+
componentDidLoad(): void;
|
|
55
|
+
private markTouched;
|
|
56
|
+
formResetCallback(): void;
|
|
57
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
49
58
|
private get describedBy();
|
|
50
59
|
render(): any;
|
|
51
60
|
}
|
|
@@ -3,6 +3,10 @@ export declare class ChTextarea {
|
|
|
3
3
|
private readonly textareaId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialValue;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered above the textarea and associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the textarea's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChTextarea {
|
|
|
55
59
|
chChange: EventEmitter<string>;
|
|
56
60
|
private handleInput;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -10,6 +10,7 @@ import { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
|
10
10
|
import { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
11
11
|
import { ChButtonVariant } from "./components/ch-button/ch-button";
|
|
12
12
|
import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
13
|
+
import { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
13
14
|
import { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
14
15
|
import { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
15
16
|
import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
@@ -21,6 +22,7 @@ export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
|
21
22
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
22
23
|
export { ChButtonVariant } from "./components/ch-button/ch-button";
|
|
23
24
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
25
|
+
export { ChEmojiSize } from "./components/ch-emoji/ch-emoji";
|
|
24
26
|
export { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
25
27
|
export { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
26
28
|
export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
@@ -133,6 +135,27 @@ export namespace Components {
|
|
|
133
135
|
*/
|
|
134
136
|
"orientation": ChDividerOrientation;
|
|
135
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Inline emoji from the devsChile CDN.
|
|
140
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
141
|
+
* asset URL and tries each possible file extension until one loads.
|
|
142
|
+
* Size is controlled via the `size` prop.
|
|
143
|
+
*/
|
|
144
|
+
interface ChEmoji {
|
|
145
|
+
/**
|
|
146
|
+
* Accessible alt text for the image. Defaults to the `name` prop.
|
|
147
|
+
*/
|
|
148
|
+
"alt"?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
|
|
151
|
+
*/
|
|
152
|
+
"name": string;
|
|
153
|
+
/**
|
|
154
|
+
* Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
|
|
155
|
+
* @default 'md'
|
|
156
|
+
*/
|
|
157
|
+
"size": ChEmojiSize;
|
|
158
|
+
}
|
|
136
159
|
interface ChInput {
|
|
137
160
|
/**
|
|
138
161
|
* Whether the input is disabled.
|
|
@@ -607,6 +630,18 @@ declare global {
|
|
|
607
630
|
prototype: HTMLChDividerElement;
|
|
608
631
|
new (): HTMLChDividerElement;
|
|
609
632
|
};
|
|
633
|
+
/**
|
|
634
|
+
* Inline emoji from the devsChile CDN.
|
|
635
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
636
|
+
* asset URL and tries each possible file extension until one loads.
|
|
637
|
+
* Size is controlled via the `size` prop.
|
|
638
|
+
*/
|
|
639
|
+
interface HTMLChEmojiElement extends Components.ChEmoji, HTMLStencilElement {
|
|
640
|
+
}
|
|
641
|
+
var HTMLChEmojiElement: {
|
|
642
|
+
prototype: HTMLChEmojiElement;
|
|
643
|
+
new (): HTMLChEmojiElement;
|
|
644
|
+
};
|
|
610
645
|
interface HTMLChInputElementEventMap {
|
|
611
646
|
"chInput": string;
|
|
612
647
|
"chChange": string;
|
|
@@ -803,6 +838,7 @@ declare global {
|
|
|
803
838
|
"ch-card": HTMLChCardElement;
|
|
804
839
|
"ch-checkbox": HTMLChCheckboxElement;
|
|
805
840
|
"ch-divider": HTMLChDividerElement;
|
|
841
|
+
"ch-emoji": HTMLChEmojiElement;
|
|
806
842
|
"ch-input": HTMLChInputElement;
|
|
807
843
|
"ch-link": HTMLChLinkElement;
|
|
808
844
|
"ch-modal": HTMLChModalElement;
|
|
@@ -816,6 +852,8 @@ declare global {
|
|
|
816
852
|
}
|
|
817
853
|
}
|
|
818
854
|
declare namespace LocalJSX {
|
|
855
|
+
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 };
|
|
856
|
+
|
|
819
857
|
interface ChAccordion {
|
|
820
858
|
/**
|
|
821
859
|
* The list of items, each with a `title`, a `value`, and an optional `disabled` flag.
|
|
@@ -898,6 +936,10 @@ declare namespace LocalJSX {
|
|
|
898
936
|
* Error message rendered below the checkbox when it is invalid.
|
|
899
937
|
*/
|
|
900
938
|
"errorMessage"?: string;
|
|
939
|
+
/**
|
|
940
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
941
|
+
*/
|
|
942
|
+
"form"?: string;
|
|
901
943
|
/**
|
|
902
944
|
* Helper text rendered below the checkbox, associated via `aria-describedby`. Replaced by `errorMessage` when the checkbox is invalid.
|
|
903
945
|
*/
|
|
@@ -937,6 +979,27 @@ declare namespace LocalJSX {
|
|
|
937
979
|
*/
|
|
938
980
|
"orientation"?: ChDividerOrientation;
|
|
939
981
|
}
|
|
982
|
+
/**
|
|
983
|
+
* Inline emoji from the devsChile CDN.
|
|
984
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
985
|
+
* asset URL and tries each possible file extension until one loads.
|
|
986
|
+
* Size is controlled via the `size` prop.
|
|
987
|
+
*/
|
|
988
|
+
interface ChEmoji {
|
|
989
|
+
/**
|
|
990
|
+
* Accessible alt text for the image. Defaults to the `name` prop.
|
|
991
|
+
*/
|
|
992
|
+
"alt"?: string;
|
|
993
|
+
/**
|
|
994
|
+
* The emoji name or alias, e.g. `"huemul-love"` or `"heart"`.
|
|
995
|
+
*/
|
|
996
|
+
"name": string;
|
|
997
|
+
/**
|
|
998
|
+
* Size of the emoji. Either `sm`, `md`, `lg`, or `xl`.
|
|
999
|
+
* @default 'md'
|
|
1000
|
+
*/
|
|
1001
|
+
"size"?: ChEmojiSize;
|
|
1002
|
+
}
|
|
940
1003
|
interface ChInput {
|
|
941
1004
|
/**
|
|
942
1005
|
* Whether the input is disabled.
|
|
@@ -947,6 +1010,10 @@ declare namespace LocalJSX {
|
|
|
947
1010
|
* Error message rendered below the input when it is invalid.
|
|
948
1011
|
*/
|
|
949
1012
|
"errorMessage"?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1015
|
+
*/
|
|
1016
|
+
"form"?: string;
|
|
950
1017
|
/**
|
|
951
1018
|
* Helper text rendered below the input, associated via `aria-describedby`. Replaced by `errorMessage` when the input is invalid.
|
|
952
1019
|
*/
|
|
@@ -1065,6 +1132,10 @@ declare namespace LocalJSX {
|
|
|
1065
1132
|
* Error message rendered below the radio group when it is invalid.
|
|
1066
1133
|
*/
|
|
1067
1134
|
"errorMessage"?: string;
|
|
1135
|
+
/**
|
|
1136
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1137
|
+
*/
|
|
1138
|
+
"form"?: string;
|
|
1068
1139
|
/**
|
|
1069
1140
|
* Helper text rendered below the radio group, associated via `aria-describedby`. Replaced by `errorMessage` when the group is invalid.
|
|
1070
1141
|
*/
|
|
@@ -1111,6 +1182,10 @@ declare namespace LocalJSX {
|
|
|
1111
1182
|
* Error message rendered below the select when it is invalid.
|
|
1112
1183
|
*/
|
|
1113
1184
|
"errorMessage"?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1187
|
+
*/
|
|
1188
|
+
"form"?: string;
|
|
1114
1189
|
/**
|
|
1115
1190
|
* Helper text rendered below the select, associated via `aria-describedby`. Replaced by `errorMessage` when the select is invalid.
|
|
1116
1191
|
*/
|
|
@@ -1184,6 +1259,10 @@ declare namespace LocalJSX {
|
|
|
1184
1259
|
* Error message rendered below the switch when it is invalid.
|
|
1185
1260
|
*/
|
|
1186
1261
|
"errorMessage"?: string;
|
|
1262
|
+
/**
|
|
1263
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1264
|
+
*/
|
|
1265
|
+
"form"?: string;
|
|
1187
1266
|
/**
|
|
1188
1267
|
* Helper text rendered below the switch, associated via `aria-describedby`. Replaced by `errorMessage` when the switch is invalid.
|
|
1189
1268
|
*/
|
|
@@ -1245,6 +1324,10 @@ declare namespace LocalJSX {
|
|
|
1245
1324
|
* Error message rendered below the textarea when it is invalid.
|
|
1246
1325
|
*/
|
|
1247
1326
|
"errorMessage"?: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1329
|
+
*/
|
|
1330
|
+
"form"?: string;
|
|
1248
1331
|
/**
|
|
1249
1332
|
* Helper text rendered below the textarea, associated via `aria-describedby`. Replaced by `errorMessage` when the textarea is invalid.
|
|
1250
1333
|
*/
|
|
@@ -1341,6 +1424,11 @@ declare namespace LocalJSX {
|
|
|
1341
1424
|
interface ChDividerAttributes {
|
|
1342
1425
|
"orientation": ChDividerOrientation;
|
|
1343
1426
|
}
|
|
1427
|
+
interface ChEmojiAttributes {
|
|
1428
|
+
"name": string;
|
|
1429
|
+
"alt": string;
|
|
1430
|
+
"size": ChEmojiSize;
|
|
1431
|
+
}
|
|
1344
1432
|
interface ChInputAttributes {
|
|
1345
1433
|
"label": string;
|
|
1346
1434
|
"type": string;
|
|
@@ -1428,6 +1516,7 @@ declare namespace LocalJSX {
|
|
|
1428
1516
|
"ch-card": ChCard;
|
|
1429
1517
|
"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] };
|
|
1430
1518
|
"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] };
|
|
1519
|
+
"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"]>;
|
|
1431
1520
|
"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] };
|
|
1432
1521
|
"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] };
|
|
1433
1522
|
"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] };
|
|
@@ -1459,6 +1548,13 @@ declare module "@stencil/core" {
|
|
|
1459
1548
|
"ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
|
|
1460
1549
|
"ch-checkbox": LocalJSX.IntrinsicElements["ch-checkbox"] & JSXBase.HTMLAttributes<HTMLChCheckboxElement>;
|
|
1461
1550
|
"ch-divider": LocalJSX.IntrinsicElements["ch-divider"] & JSXBase.HTMLAttributes<HTMLChDividerElement>;
|
|
1551
|
+
/**
|
|
1552
|
+
* Inline emoji from the devsChile CDN.
|
|
1553
|
+
* Given a name (or alias from the emoji map), the component resolves the
|
|
1554
|
+
* asset URL and tries each possible file extension until one loads.
|
|
1555
|
+
* Size is controlled via the `size` prop.
|
|
1556
|
+
*/
|
|
1557
|
+
"ch-emoji": LocalJSX.IntrinsicElements["ch-emoji"] & JSXBase.HTMLAttributes<HTMLChEmojiElement>;
|
|
1462
1558
|
"ch-input": LocalJSX.IntrinsicElements["ch-input"] & JSXBase.HTMLAttributes<HTMLChInputElement>;
|
|
1463
1559
|
"ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
|
|
1464
1560
|
/**
|
|
@@ -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;
|
|
@@ -12,6 +12,7 @@ import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/c
|
|
|
12
12
|
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
13
13
|
import { ChCheckbox as ChCheckboxElement } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
14
14
|
import { ChDivider as ChDividerElement } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
15
|
+
import { ChEmoji as ChEmojiElement } from "@devschile/chucao/dist/components/ch-emoji.js";
|
|
15
16
|
import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-input.js";
|
|
16
17
|
import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
|
|
17
18
|
import { ChModal as ChModalElement } from "@devschile/chucao/dist/components/ch-modal.js";
|
|
@@ -44,6 +45,8 @@ export type ChCheckboxEvents = {
|
|
|
44
45
|
export declare const ChCheckbox: StencilReactComponent<ChCheckboxElement, ChCheckboxEvents, Components.ChCheckbox>;
|
|
45
46
|
export type ChDividerEvents = NonNullable<unknown>;
|
|
46
47
|
export declare const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents, Components.ChDivider>;
|
|
48
|
+
export type ChEmojiEvents = NonNullable<unknown>;
|
|
49
|
+
export declare const ChEmoji: StencilReactComponent<ChEmojiElement, ChEmojiEvents, Components.ChEmoji, 'name'>;
|
|
47
50
|
export type ChInputEvents = {
|
|
48
51
|
onChInput: EventName<ChInputCustomEvent<string>>;
|
|
49
52
|
onChChange: EventName<ChInputCustomEvent<string>>;
|
package/dist-react/components.js
CHANGED
|
@@ -8,6 +8,7 @@ import { ChButton as ChButtonElement, defineCustomElement as defineChButton } fr
|
|
|
8
8
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
9
9
|
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
10
10
|
import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
11
|
+
import { ChEmoji as ChEmojiElement, defineCustomElement as defineChEmoji } from "@devschile/chucao/dist/components/ch-emoji.js";
|
|
11
12
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
12
13
|
import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
|
|
13
14
|
import { ChModal as ChModalElement, defineCustomElement as defineChModal } from "@devschile/chucao/dist/components/ch-modal.js";
|
|
@@ -74,6 +75,14 @@ export const ChDivider = /*@__PURE__*/ createComponent({
|
|
|
74
75
|
events: {},
|
|
75
76
|
defineCustomElement: defineChDivider
|
|
76
77
|
});
|
|
78
|
+
export const ChEmoji = /*@__PURE__*/ createComponent({
|
|
79
|
+
tagName: 'ch-emoji',
|
|
80
|
+
elementClass: ChEmojiElement,
|
|
81
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
82
|
+
react: React,
|
|
83
|
+
events: {},
|
|
84
|
+
defineCustomElement: defineChEmoji
|
|
85
|
+
});
|
|
77
86
|
export const ChInput = /*@__PURE__*/ createComponent({
|
|
78
87
|
tagName: 'ch-input',
|
|
79
88
|
elementClass: ChInputElement,
|
package/dist-react/components.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { ChButton as ChButtonElement, defineCustomElement as defineChButton } fr
|
|
|
20
20
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
21
21
|
import { ChCheckbox as ChCheckboxElement, defineCustomElement as defineChCheckbox } from "@devschile/chucao/dist/components/ch-checkbox.js";
|
|
22
22
|
import { ChDivider as ChDividerElement, defineCustomElement as defineChDivider } from "@devschile/chucao/dist/components/ch-divider.js";
|
|
23
|
+
import { ChEmoji as ChEmojiElement, defineCustomElement as defineChEmoji } from "@devschile/chucao/dist/components/ch-emoji.js";
|
|
23
24
|
import { ChInput as ChInputElement, defineCustomElement as defineChInput } from "@devschile/chucao/dist/components/ch-input.js";
|
|
24
25
|
import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
|
|
25
26
|
import { ChModal as ChModalElement, defineCustomElement as defineChModal } from "@devschile/chucao/dist/components/ch-modal.js";
|
|
@@ -108,6 +109,17 @@ export const ChDivider: StencilReactComponent<ChDividerElement, ChDividerEvents,
|
|
|
108
109
|
defineCustomElement: defineChDivider
|
|
109
110
|
});
|
|
110
111
|
|
|
112
|
+
export type ChEmojiEvents = NonNullable<unknown>;
|
|
113
|
+
|
|
114
|
+
export const ChEmoji: StencilReactComponent<ChEmojiElement, ChEmojiEvents, Components.ChEmoji, 'name'> = /*@__PURE__*/ createComponent<ChEmojiElement, ChEmojiEvents, Components.ChEmoji, 'name'>({
|
|
115
|
+
tagName: 'ch-emoji',
|
|
116
|
+
elementClass: ChEmojiElement,
|
|
117
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
118
|
+
react: React,
|
|
119
|
+
events: {} as ChEmojiEvents,
|
|
120
|
+
defineCustomElement: defineChEmoji
|
|
121
|
+
});
|
|
122
|
+
|
|
111
123
|
export type ChInputEvents = {
|
|
112
124
|
onChInput: EventName<ChInputCustomEvent<string>>,
|
|
113
125
|
onChChange: EventName<ChInputCustomEvent<string>>
|
package/dist-vue/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const ChButton: StencilVueComponent<JSX.ChButton>;
|
|
|
7
7
|
export declare const ChCard: StencilVueComponent<JSX.ChCard>;
|
|
8
8
|
export declare const ChCheckbox: StencilVueComponent<JSX.ChCheckbox>;
|
|
9
9
|
export declare const ChDivider: StencilVueComponent<JSX.ChDivider>;
|
|
10
|
+
export declare const ChEmoji: StencilVueComponent<JSX.ChEmoji>;
|
|
10
11
|
export declare const ChInput: StencilVueComponent<JSX.ChInput>;
|
|
11
12
|
export declare const ChLink: StencilVueComponent<JSX.ChLink>;
|
|
12
13
|
export declare const ChModal: StencilVueComponent<JSX.ChModal>;
|
package/dist-vue/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/co
|
|
|
9
9
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
10
10
|
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
11
11
|
import { defineCustomElement as defineChDivider } from '@devschile/chucao/dist/components/ch-divider.js';
|
|
12
|
+
import { defineCustomElement as defineChEmoji } from '@devschile/chucao/dist/components/ch-emoji.js';
|
|
12
13
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
13
14
|
import { defineCustomElement as defineChLink } from '@devschile/chucao/dist/components/ch-link.js';
|
|
14
15
|
import { defineCustomElement as defineChModal } from '@devschile/chucao/dist/components/ch-modal.js';
|
|
@@ -62,6 +63,11 @@ export const ChCheckbox = /*@__PURE__*/ defineContainer('ch-checkbox', defineChC
|
|
|
62
63
|
export const ChDivider = /*@__PURE__*/ defineContainer('ch-divider', defineChDivider, [
|
|
63
64
|
'orientation'
|
|
64
65
|
]);
|
|
66
|
+
export const ChEmoji = /*@__PURE__*/ defineContainer('ch-emoji', defineChEmoji, [
|
|
67
|
+
'name',
|
|
68
|
+
'alt',
|
|
69
|
+
'size'
|
|
70
|
+
]);
|
|
65
71
|
export const ChInput = /*@__PURE__*/ defineContainer('ch-input', defineChInput, [
|
|
66
72
|
'label',
|
|
67
73
|
'type',
|
package/dist-vue/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { defineCustomElement as defineChButton } from '@devschile/chucao/dist/co
|
|
|
12
12
|
import { defineCustomElement as defineChCard } from '@devschile/chucao/dist/components/ch-card.js';
|
|
13
13
|
import { defineCustomElement as defineChCheckbox } from '@devschile/chucao/dist/components/ch-checkbox.js';
|
|
14
14
|
import { defineCustomElement as defineChDivider } from '@devschile/chucao/dist/components/ch-divider.js';
|
|
15
|
+
import { defineCustomElement as defineChEmoji } from '@devschile/chucao/dist/components/ch-emoji.js';
|
|
15
16
|
import { defineCustomElement as defineChInput } from '@devschile/chucao/dist/components/ch-input.js';
|
|
16
17
|
import { defineCustomElement as defineChLink } from '@devschile/chucao/dist/components/ch-link.js';
|
|
17
18
|
import { defineCustomElement as defineChModal } from '@devschile/chucao/dist/components/ch-modal.js';
|
|
@@ -82,6 +83,13 @@ export const ChDivider: StencilVueComponent<JSX.ChDivider> = /*@__PURE__*/ defin
|
|
|
82
83
|
]);
|
|
83
84
|
|
|
84
85
|
|
|
86
|
+
export const ChEmoji: StencilVueComponent<JSX.ChEmoji> = /*@__PURE__*/ defineContainer<JSX.ChEmoji>('ch-emoji', defineChEmoji, [
|
|
87
|
+
'name',
|
|
88
|
+
'alt',
|
|
89
|
+
'size'
|
|
90
|
+
]);
|
|
91
|
+
|
|
92
|
+
|
|
85
93
|
export const ChInput: StencilVueComponent<JSX.ChInput> = /*@__PURE__*/ defineContainer<JSX.ChInput>('ch-input', defineChInput, [
|
|
86
94
|
'label',
|
|
87
95
|
'type',
|