@devschile/chucao 1.0.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/LICENSE +21 -0
- package/README.md +358 -0
- package/dist/chucao/chucao.css +2 -0
- package/dist/chucao/chucao.esm.js +2 -0
- package/dist/chucao/chucao.esm.js.map +1 -0
- package/dist/chucao/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/chucao/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/chucao/index.esm.js +2 -0
- package/dist/chucao/index.esm.js.map +1 -0
- package/dist/chucao/p-2eeff869.entry.js +2 -0
- package/dist/chucao/p-2eeff869.entry.js.map +1 -0
- package/dist/chucao/p-QBEhw78y.js +3 -0
- package/dist/chucao/p-QBEhw78y.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +187 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +27 -0
- package/dist/cjs/chucao.cjs.js.map +1 -0
- package/dist/cjs/index-Do8JpTKQ.js +1485 -0
- package/dist/cjs/index-Do8JpTKQ.js.map +1 -0
- package/dist/cjs/index.cjs.js +98 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/ch-badge/ch-badge.css +27 -0
- package/dist/collection/components/ch-badge/ch-badge.js +53 -0
- package/dist/collection/components/ch-badge/ch-badge.js.map +1 -0
- package/dist/collection/components/ch-button/ch-button.css +58 -0
- package/dist/collection/components/ch-button/ch-button.js +132 -0
- package/dist/collection/components/ch-button/ch-button.js.map +1 -0
- package/dist/collection/components/ch-card/ch-card.css +44 -0
- package/dist/collection/components/ch-card/ch-card.js +19 -0
- package/dist/collection/components/ch-card/ch-card.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +43 -0
- package/dist/collection/components/ch-input/ch-input.js +240 -0
- package/dist/collection/components/ch-input/ch-input.js.map +1 -0
- package/dist/collection/components/ch-select/ch-select.css +45 -0
- package/dist/collection/components/ch-select/ch-select.js +220 -0
- package/dist/collection/components/ch-select/ch-select.js.map +1 -0
- package/dist/collection/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/collection/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tokens/tokens.js +70 -0
- package/dist/collection/tokens/tokens.js.map +1 -0
- package/dist/collection/tokens/types.js +2 -0
- package/dist/collection/tokens/types.js.map +1 -0
- package/dist/components/ch-badge.d.ts +11 -0
- package/dist/components/ch-badge.js +2 -0
- package/dist/components/ch-badge.js.map +1 -0
- package/dist/components/ch-button.d.ts +11 -0
- package/dist/components/ch-button.js +2 -0
- package/dist/components/ch-button.js.map +1 -0
- package/dist/components/ch-card.d.ts +11 -0
- package/dist/components/ch-card.js +2 -0
- package/dist/components/ch-card.js.map +1 -0
- package/dist/components/ch-input.d.ts +11 -0
- package/dist/components/ch-input.js +2 -0
- package/dist/components/ch-input.js.map +1 -0
- package/dist/components/ch-select.d.ts +11 -0
- package/dist/components/ch-select.js +2 -0
- package/dist/components/ch-select.js.map +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-BImgfbXx.js +2 -0
- package/dist/components/p-BImgfbXx.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +181 -0
- package/dist/esm/ch-badge_5.entry.js.map +1 -0
- package/dist/esm/chucao.js +23 -0
- package/dist/esm/chucao.js.map +1 -0
- package/dist/esm/index-QBEhw78y.js +1476 -0
- package/dist/esm/index-QBEhw78y.js.map +1 -0
- package/dist/esm/index.js +74 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ch-badge/ch-badge.d.ts +8 -0
- package/dist/types/components/ch-button/ch-button.d.ts +24 -0
- package/dist/types/components/ch-card/ch-card.d.ts +3 -0
- package/dist/types/components/ch-input/ch-input.d.ts +44 -0
- package/dist/types/components/ch-select/ch-select.d.ts +44 -0
- package/dist/types/components.d.ts +348 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/types/tokens/tokens.d.ts +69 -0
- package/dist/types/tokens/types.d.ts +5 -0
- package/dist-react/components.d.ts +29 -0
- package/dist-react/components.js +51 -0
- package/dist-react/components.ts +81 -0
- package/dist-vue/index.d.ts +7 -0
- package/dist-vue/index.js +47 -0
- package/dist-vue/index.ts +63 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +125 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, c as createEvent } from './index-QBEhw78y.js';
|
|
2
|
+
|
|
3
|
+
const chBadgeCss = () => `:host{display:inline-block}.badge{display:inline-block;padding:0.18rem 0.6rem;border-radius:999px;font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.03em}.badge--default{background:var(--color-surface-hover);color:var(--accent)}.badge--positive{background:var(--color-status-positive-background);color:var(--color-status-positive)}.badge--warning{background:var(--color-status-warning-background);color:var(--color-status-warning)}`;
|
|
4
|
+
|
|
5
|
+
const ChBadge = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The visual style of the badge. Either `default`, `positive`, or `warning`.
|
|
11
|
+
*/
|
|
12
|
+
variant = 'default';
|
|
13
|
+
render() {
|
|
14
|
+
return (h(Host, { key: '9bac1191887568872ad75b1eec3a6084310253db' }, h("span", { key: 'fae2007c430f102f8ad4e0cc7d97c606dde69eed', class: { badge: true, [`badge--${this.variant}`]: true } }, h("slot", { key: '56913dac3a8c18e76a419c22c27c69ca1adc8cc0' }))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
ChBadge.style = chBadgeCss();
|
|
18
|
+
|
|
19
|
+
const chButtonCss = () => `:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:0.35rem;border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:0.5;cursor:not-allowed}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn--primary{background-color:var(--accent);color:#06210f;font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;transition:background-color 0.2s, transform 0.15s}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(-1px)}.btn--secondary{background-color:transparent;color:var(--text);font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;border:1px solid var(--border);transition:border-color 0.2s, background-color 0.2s, transform 0.15s}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(-1px)}`;
|
|
20
|
+
|
|
21
|
+
const ChButton = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
registerInstance(this, hostRef);
|
|
24
|
+
this.chClick = createEvent(this, "chClick");
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The visual style of the button. Either `primary` or `secondary`.
|
|
28
|
+
*/
|
|
29
|
+
variant = 'primary';
|
|
30
|
+
/**
|
|
31
|
+
* Whether the button is disabled.
|
|
32
|
+
*/
|
|
33
|
+
disabled = false;
|
|
34
|
+
/**
|
|
35
|
+
* Accessible label set as `aria-label` on the native `<button>`. Use it
|
|
36
|
+
* when the button's content doesn't convey its purpose on its own (e.g.
|
|
37
|
+
* an icon-only button).
|
|
38
|
+
*/
|
|
39
|
+
label;
|
|
40
|
+
/**
|
|
41
|
+
* Emitted when the button is clicked.
|
|
42
|
+
*/
|
|
43
|
+
chClick;
|
|
44
|
+
handleClick = (ev) => {
|
|
45
|
+
this.chClick.emit(ev);
|
|
46
|
+
};
|
|
47
|
+
render() {
|
|
48
|
+
return (h(Host, { key: 'ac7192a829924909b5068272786a301ae94f722c' }, h("button", { key: '74e32d6dcc873224e48101b13019df73aeac45c9', class: { btn: true, [`btn--${this.variant}`]: true }, type: "button", disabled: this.disabled, "aria-label": this.label, onClick: this.handleClick }, h("slot", { key: '2aee1cf56fec308e43d2abce2af9752fe7bc6f47' }))));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
ChButton.style = chButtonCss();
|
|
52
|
+
|
|
53
|
+
const chCardCss = () => `:host{display:block}::slotted(p){color:var(--text-muted)}.card{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.35rem 1.5rem;backdrop-filter:blur(10px);position:relative;overflow:hidden;transition:border-color 0.2s, transform 0.15s, box-shadow 0.2s}.card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);opacity:0;transition:opacity 0.2s}.card:hover{border-color:var(--border-hover);transform:translateX(2px);box-shadow:0 4px 20px rgba(45, 212, 191, 0.06)}.card:hover::before{opacity:1}`;
|
|
54
|
+
|
|
55
|
+
const ChCard = class {
|
|
56
|
+
constructor(hostRef) {
|
|
57
|
+
registerInstance(this, hostRef);
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
return (h(Host, { key: 'e9685d92d3ffe08fb37088c0743534fd2701ecbb' }, h("div", { key: '98317e248251b8d23baea9dd3810fc94953dabc4', class: "card" }, h("slot", { key: '842e2fe5f72c74f1a14f20957e2edfd882b71edc' }))));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
ChCard.style = chCardCss();
|
|
64
|
+
|
|
65
|
+
const chInputCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.input{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;transition:border-color 0.2s, box-shadow 0.2s}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.input:disabled{opacity:0.5;cursor:not-allowed}`;
|
|
66
|
+
|
|
67
|
+
let inputIds = 0;
|
|
68
|
+
const ChInput = class {
|
|
69
|
+
constructor(hostRef) {
|
|
70
|
+
registerInstance(this, hostRef);
|
|
71
|
+
this.chInput = createEvent(this, "chInput");
|
|
72
|
+
this.chChange = createEvent(this, "chChange");
|
|
73
|
+
}
|
|
74
|
+
inputId = `ch-input-${++inputIds}`;
|
|
75
|
+
/**
|
|
76
|
+
* Visible label rendered above the input and associated with it via
|
|
77
|
+
* `for`/`id`, so assistive technology announces the input's purpose.
|
|
78
|
+
*/
|
|
79
|
+
label;
|
|
80
|
+
/**
|
|
81
|
+
* The type of the input, mirroring the native `<input type>` attribute.
|
|
82
|
+
*/
|
|
83
|
+
type = 'text';
|
|
84
|
+
/**
|
|
85
|
+
* The value of the input.
|
|
86
|
+
*/
|
|
87
|
+
value = '';
|
|
88
|
+
/**
|
|
89
|
+
* Placeholder text shown when the input is empty.
|
|
90
|
+
*/
|
|
91
|
+
placeholder;
|
|
92
|
+
/**
|
|
93
|
+
* The name of the input, submitted with form data.
|
|
94
|
+
*/
|
|
95
|
+
name;
|
|
96
|
+
/**
|
|
97
|
+
* Whether the input is disabled.
|
|
98
|
+
*/
|
|
99
|
+
disabled = false;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the input is required.
|
|
102
|
+
*/
|
|
103
|
+
required = false;
|
|
104
|
+
/**
|
|
105
|
+
* Emitted on every keystroke, with the current input value.
|
|
106
|
+
*/
|
|
107
|
+
chInput;
|
|
108
|
+
/**
|
|
109
|
+
* Emitted when the input value is committed (on native `change`).
|
|
110
|
+
*/
|
|
111
|
+
chChange;
|
|
112
|
+
handleInput = (ev) => {
|
|
113
|
+
this.value = ev.target.value;
|
|
114
|
+
this.chInput.emit(this.value);
|
|
115
|
+
};
|
|
116
|
+
handleChange = (ev) => {
|
|
117
|
+
this.value = ev.target.value;
|
|
118
|
+
this.chChange.emit(this.value);
|
|
119
|
+
};
|
|
120
|
+
render() {
|
|
121
|
+
return (h(Host, { key: '83f68aa09efcfcd544012ffde27f116c122ba215' }, this.label && (h("label", { key: 'd8ca4d52450a024991a3c8f22876483d2031593c', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: 'fe8c7ce352397b8b0401226501039fc87e8cef57', id: this.label ? this.inputId : undefined, class: "input", type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.value, onInput: this.handleInput, onChange: this.handleChange })));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
ChInput.style = chInputCss();
|
|
125
|
+
|
|
126
|
+
const chSelectCss = () => `:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.select{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color 0.2s, box-shadow 0.2s}.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.select:disabled{opacity:0.5;cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}`;
|
|
127
|
+
|
|
128
|
+
let selectIds = 0;
|
|
129
|
+
const ChSelect = class {
|
|
130
|
+
constructor(hostRef) {
|
|
131
|
+
registerInstance(this, hostRef);
|
|
132
|
+
this.chChange = createEvent(this, "chChange");
|
|
133
|
+
}
|
|
134
|
+
selectId = `ch-select-${++selectIds}`;
|
|
135
|
+
/**
|
|
136
|
+
* Visible label rendered above the select and associated with it via
|
|
137
|
+
* `for`/`id`, so assistive technology announces the select's purpose.
|
|
138
|
+
*/
|
|
139
|
+
label;
|
|
140
|
+
/**
|
|
141
|
+
* The list of options rendered inside the select.
|
|
142
|
+
*/
|
|
143
|
+
options = [];
|
|
144
|
+
/**
|
|
145
|
+
* The value of the selected option.
|
|
146
|
+
*/
|
|
147
|
+
value;
|
|
148
|
+
/**
|
|
149
|
+
* Placeholder shown as a disabled, hidden first option when no value is selected.
|
|
150
|
+
*/
|
|
151
|
+
placeholder;
|
|
152
|
+
/**
|
|
153
|
+
* The name of the select, submitted with form data.
|
|
154
|
+
*/
|
|
155
|
+
name;
|
|
156
|
+
/**
|
|
157
|
+
* Whether the select is disabled.
|
|
158
|
+
*/
|
|
159
|
+
disabled = false;
|
|
160
|
+
/**
|
|
161
|
+
* Whether a value is required.
|
|
162
|
+
*/
|
|
163
|
+
required = false;
|
|
164
|
+
/**
|
|
165
|
+
* Emitted when the selected option changes, with the new value.
|
|
166
|
+
*/
|
|
167
|
+
chChange;
|
|
168
|
+
handleChange = (ev) => {
|
|
169
|
+
this.value = ev.target.value;
|
|
170
|
+
this.chChange.emit(this.value);
|
|
171
|
+
};
|
|
172
|
+
render() {
|
|
173
|
+
return (h(Host, { key: '57cb1bebbc8ab5ddc01ca1d568cd6871ad6591a2' }, this.label && (h("label", { key: '4f89a32b4dea704c6e4f59d7c070281bffbe6dae', class: "label", htmlFor: this.selectId }, this.label)), h("select", { key: 'f4d5badf61e6d72f3f1c9383a0f1b4093303acd3', id: this.label ? this.selectId : undefined, class: "select", name: this.name, disabled: this.disabled, required: this.required, onChange: this.handleChange }, this.placeholder && (h("option", { key: '241c5db4c8947c8b6bb0ad855e71e99b7315eb73', value: "", disabled: true, hidden: true, selected: !this.value }, this.placeholder)), this.options.map(option => (h("option", { value: option.value, disabled: option.disabled, selected: option.value === this.value }, option.label))))));
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
ChSelect.style = chSelectCss();
|
|
177
|
+
|
|
178
|
+
export { ChBadge as ch_badge, ChButton as ch_button, ChCard as ch_card, ChInput as ch_input, ChSelect as ch_select };
|
|
179
|
+
//# sourceMappingURL=ch-badge.ch-button.ch-card.ch-input.ch-select.entry.js.map
|
|
180
|
+
|
|
181
|
+
//# sourceMappingURL=ch-badge_5.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"ch-badge_5.entry.js","mappings":";;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC,wcAAwc,CAAC;;MCStd,OAAO,GAAA,MAAA;;;;AAClB;;AAEG;IACK,OAAO,GAAmB,SAAS;IAE3C,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA,OAAA,EAAU,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,IAAI,EAAE,EAAA,EAC5D,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR,CACF;;;;;ACrBb,MAAM,WAAW,GAAG,MAAM,CAAC,q2BAAq2B,CAAC;;MCSp3B,QAAQ,GAAA,MAAA;;;;;AACnB;;AAEG;IACK,OAAO,GAAoB,SAAS;AAE5C;;AAEG;IACK,QAAQ,GAAG,KAAK;AAExB;;;;AAIG;AACK,IAAA,KAAK;AAEb;;AAEG;AACM,IAAA,OAAO;AAER,IAAA,WAAW,GAAG,CAAC,EAAc,KAAI;AACvC,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;AACvB,KAAC;IAED,MAAM,GAAA;AACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA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,CAAC,WAAW,CACV,CACV,EACA,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,KACtB,CAAA,CAAA,QAAA,EAAA,EAAQ,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAC1F,MAAM,CAAC,KAAK,CACN,CACV,CAAC,CACK,CACJ;;;;;;;","names":[],"sources":["src/components/ch-badge/ch-badge.css?tag=ch-badge&encapsulation=shadow","src/components/ch-badge/ch-badge.tsx","src/components/ch-button/ch-button.css?tag=ch-button&encapsulation=shadow","src/components/ch-button/ch-button.tsx","src/components/ch-card/ch-card.css?tag=ch-card&encapsulation=shadow","src/components/ch-card/ch-card.tsx","src/components/ch-input/ch-input.css?tag=ch-input&encapsulation=shadow","src/components/ch-input/ch-input.tsx","src/components/ch-select/ch-select.css?tag=ch-select&encapsulation=shadow","src/components/ch-select/ch-select.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.badge {\n display: inline-block;\n padding: 0.18rem 0.6rem;\n border-radius: 999px;\n font-size: 0.68rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n}\n\n.badge--default {\n background: var(--color-surface-hover);\n color: var(--accent);\n}\n\n.badge--positive {\n background: var(--color-status-positive-background);\n color: var(--color-status-positive);\n}\n.badge--warning {\n background: var(--color-status-warning-background);\n color: var(--color-status-warning);\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\nexport type ChBadgeVariant = 'default' | 'positive' | 'warning';\n\n@Component({\n tag: 'ch-badge',\n styleUrl: 'ch-badge.css',\n shadow: true,\n})\nexport class ChBadge {\n /**\n * The visual style of the badge. Either `default`, `positive`, or `warning`.\n */\n @Prop() variant: ChBadgeVariant = 'default';\n\n render() {\n return (\n <Host>\n <span class={{ badge: true, [`badge--${this.variant}`]: true }}>\n <slot></slot>\n </span>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n}\n\n.btn {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n}\n\n.btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\n.btn--primary {\n background-color: var(--accent);\n color: #06210f;\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n transition:\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--primary:hover {\n background-color: var(--accent-hover);\n transform: translateY(-1px);\n}\n\n.btn--secondary {\n background-color: transparent;\n color: var(--text);\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n border: 1px solid var(--border);\n transition:\n border-color 0.2s,\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--secondary:hover {\n border-color: var(--border-hover);\n background-color: var(--surface-hover);\n transform: translateY(-1px);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport type ChButtonVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ch-button',\n styleUrl: 'ch-button.css',\n shadow: true,\n})\nexport class ChButton {\n /**\n * The visual style of the button. Either `primary` or `secondary`.\n */\n @Prop() variant: ChButtonVariant = 'primary';\n\n /**\n * Whether the button is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Accessible label set as `aria-label` on the native `<button>`. Use it\n * when the button's content doesn't convey its purpose on its own (e.g.\n * an icon-only button).\n */\n @Prop() label?: string;\n\n /**\n * Emitted when the button is clicked.\n */\n @Event() chClick: EventEmitter<MouseEvent>;\n\n private handleClick = (ev: MouseEvent) => {\n this.chClick.emit(ev);\n };\n\n render() {\n return (\n <Host>\n <button\n class={{ btn: true, [`btn--${this.variant}`]: true }}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.label}\n onClick={this.handleClick}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n",":host {\n display: block;\n}\n\n::slotted(p) {\n color: var(--text-muted);\n}\n\n.card {\n color: var(--text);\n background: var(--surface);\n border: 1px solid var(--border);\n border-radius: var(--radius);\n padding: 1.35rem 1.5rem;\n backdrop-filter: blur(10px);\n position: relative;\n overflow: hidden;\n transition:\n border-color 0.2s,\n transform 0.15s,\n box-shadow 0.2s;\n}\n\n.card::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: 3px;\n background: var(--accent);\n opacity: 0;\n transition: opacity 0.2s;\n}\n\n.card:hover {\n border-color: var(--border-hover);\n transform: translateX(2px);\n box-shadow: 0 4px 20px rgba(45, 212, 191, 0.06);\n}\n\n.card:hover::before {\n opacity: 1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'ch-card',\n styleUrl: 'ch-card.css',\n shadow: true,\n})\nexport class ChCard {\n render() {\n return (\n <Host>\n <div class=\"card\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.input {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.input::placeholder {\n color: var(--text-muted);\n}\n\n.input:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.input:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nlet inputIds = 0;\n\n@Component({\n tag: 'ch-input',\n styleUrl: 'ch-input.css',\n shadow: true,\n})\nexport class ChInput {\n private readonly inputId = `ch-input-${++inputIds}`;\n\n /**\n * Visible label rendered above the input and associated with it via\n * `for`/`id`, so assistive technology announces the input's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The type of the input, mirroring the native `<input type>` attribute.\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * Placeholder text shown when the input is empty.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the input, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the input is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether the input is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted on every keystroke, with the current input value.\n */\n @Event() chInput: EventEmitter<string>;\n\n /**\n * Emitted when the input value is committed (on native `change`).\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleInput = (ev: InputEvent) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chInput.emit(this.value);\n };\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n <input\n id={this.label ? this.inputId : undefined}\n class=\"input\"\n type={this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.value}\n onInput={this.handleInput}\n onChange={this.handleChange}\n />\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.select {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.select:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.select:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.select option {\n background: var(--bg);\n color: var(--text);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport interface ChSelectOption {\n label: string;\n value: string;\n disabled?: boolean;\n}\n\nlet selectIds = 0;\n\n@Component({\n tag: 'ch-select',\n styleUrl: 'ch-select.css',\n shadow: true,\n})\nexport class ChSelect {\n private readonly selectId = `ch-select-${++selectIds}`;\n\n /**\n * Visible label rendered above the select and associated with it via\n * `for`/`id`, so assistive technology announces the select's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The list of options rendered inside the select.\n */\n @Prop() options: ChSelectOption[] = [];\n\n /**\n * The value of the selected option.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * Placeholder shown as a disabled, hidden first option when no value is selected.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the select, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether a value is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted when the selected option changes, with the new value.\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLSelectElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.selectId}>\n {this.label}\n </label>\n )}\n <select\n id={this.label ? this.selectId : undefined}\n class=\"select\"\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n onChange={this.handleChange}\n >\n {this.placeholder && (\n <option value=\"\" disabled hidden selected={!this.value}>\n {this.placeholder}\n </option>\n )}\n {this.options.map(option => (\n <option value={option.value} disabled={option.disabled} selected={option.value === this.value}>\n {option.label}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-QBEhw78y.js';
|
|
2
|
+
export { s as setNonce } from './index-QBEhw78y.js';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
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]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4]}]]]], options);
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=chucao.js.map
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=chucao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chucao.js","sources":["node_modules/.pnpm/@stencil+core@4.43.5/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
|