@devschile/chucao 1.3.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 (161) hide show
  1. package/README.md +3 -0
  2. package/dist/chucao/chucao.esm.js +1 -1
  3. package/dist/chucao/p-12e02f8e.entry.js +2 -0
  4. package/dist/chucao/p-12e02f8e.entry.js.map +1 -0
  5. package/dist/chucao/p-21fa1897.entry.js +2 -0
  6. package/dist/chucao/p-21fa1897.entry.js.map +1 -0
  7. package/dist/chucao/p-5c5048cf.entry.js +2 -0
  8. package/dist/chucao/p-5c5048cf.entry.js.map +1 -0
  9. package/dist/chucao/p-5df14f4b.entry.js +2 -0
  10. package/dist/chucao/p-5df14f4b.entry.js.map +1 -0
  11. package/dist/chucao/p-5e0ba154.entry.js +2 -0
  12. package/dist/chucao/p-5e0ba154.entry.js.map +1 -0
  13. package/dist/chucao/p-C_GZnvOi.js +3 -0
  14. package/dist/chucao/p-C_GZnvOi.js.map +1 -0
  15. package/dist/chucao/p-bd015077.entry.js +2 -0
  16. package/dist/chucao/p-bd015077.entry.js.map +1 -0
  17. package/dist/chucao/p-ca96fa8a.entry.js +2 -0
  18. package/dist/chucao/p-ca96fa8a.entry.js.map +1 -0
  19. package/dist/chucao/p-ccae6c46.entry.js +2 -0
  20. package/dist/chucao/p-ccae6c46.entry.js.map +1 -0
  21. package/dist/chucao/p-ecf098bb.entry.js +2 -0
  22. package/dist/chucao/p-ecf098bb.entry.js.map +1 -0
  23. package/dist/cjs/ch-accordion.cjs.entry.js +48 -0
  24. package/dist/cjs/ch-accordion.cjs.entry.js.map +1 -0
  25. package/dist/cjs/ch-badge_5.cjs.entry.js +56 -8
  26. package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -1
  27. package/dist/cjs/ch-checkbox.cjs.entry.js +80 -0
  28. package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -0
  29. package/dist/cjs/ch-divider.cjs.entry.js +24 -0
  30. package/dist/cjs/ch-divider.cjs.entry.js.map +1 -0
  31. package/dist/cjs/ch-link.cjs.entry.js +49 -0
  32. package/dist/cjs/ch-link.cjs.entry.js.map +1 -0
  33. package/dist/cjs/ch-radio.cjs.entry.js +83 -0
  34. package/dist/cjs/ch-radio.cjs.entry.js.map +1 -0
  35. package/dist/cjs/ch-switch.cjs.entry.js +80 -0
  36. package/dist/cjs/ch-switch.cjs.entry.js.map +1 -0
  37. package/dist/cjs/ch-tabs.cjs.entry.js +100 -0
  38. package/dist/cjs/ch-tabs.cjs.entry.js.map +1 -0
  39. package/dist/cjs/ch-textarea.cjs.entry.js +94 -0
  40. package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -0
  41. package/dist/cjs/chucao.cjs.js +2 -2
  42. package/dist/cjs/{index-yB1Ik3Sa.js → index-Ha3VDOML.js} +35 -3
  43. package/dist/cjs/index-Ha3VDOML.js.map +1 -0
  44. package/dist/cjs/loader.cjs.js +2 -2
  45. package/dist/collection/collection-manifest.json +9 -1
  46. package/dist/collection/components/ch-accordion/ch-accordion.css +72 -0
  47. package/dist/collection/components/ch-accordion/ch-accordion.js +111 -0
  48. package/dist/collection/components/ch-accordion/ch-accordion.js.map +1 -0
  49. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  50. package/dist/collection/components/ch-button/ch-button.js +1 -1
  51. package/dist/collection/components/ch-card/ch-card.js +1 -1
  52. package/dist/collection/components/ch-checkbox/ch-checkbox.css +79 -0
  53. package/dist/collection/components/ch-checkbox/ch-checkbox.js +276 -0
  54. package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -0
  55. package/dist/collection/components/ch-divider/ch-divider.css +25 -0
  56. package/dist/collection/components/ch-divider/ch-divider.js +53 -0
  57. package/dist/collection/components/ch-divider/ch-divider.js.map +1 -0
  58. package/dist/collection/components/ch-input/ch-input.css +20 -0
  59. package/dist/collection/components/ch-input/ch-input.js +83 -1
  60. package/dist/collection/components/ch-input/ch-input.js.map +1 -1
  61. package/dist/collection/components/ch-link/ch-link.css +40 -0
  62. package/dist/collection/components/ch-link/ch-link.js +158 -0
  63. package/dist/collection/components/ch-link/ch-link.js.map +1 -0
  64. package/dist/collection/components/ch-radio/ch-radio.css +89 -0
  65. package/dist/collection/components/ch-radio/ch-radio.js +282 -0
  66. package/dist/collection/components/ch-radio/ch-radio.js.map +1 -0
  67. package/dist/collection/components/ch-select/ch-select.css +20 -0
  68. package/dist/collection/components/ch-select/ch-select.js +83 -1
  69. package/dist/collection/components/ch-select/ch-select.js.map +1 -1
  70. package/dist/collection/components/ch-switch/ch-switch.css +92 -0
  71. package/dist/collection/components/ch-switch/ch-switch.js +276 -0
  72. package/dist/collection/components/ch-switch/ch-switch.js.map +1 -0
  73. package/dist/collection/components/ch-tabs/ch-tabs.css +69 -0
  74. package/dist/collection/components/ch-tabs/ch-tabs.js +182 -0
  75. package/dist/collection/components/ch-tabs/ch-tabs.js.map +1 -0
  76. package/dist/collection/components/ch-textarea/ch-textarea.css +66 -0
  77. package/dist/collection/components/ch-textarea/ch-textarea.js +323 -0
  78. package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -0
  79. package/dist/components/ch-accordion.d.ts +11 -0
  80. package/dist/components/ch-accordion.js +2 -0
  81. package/dist/components/ch-accordion.js.map +1 -0
  82. package/dist/components/ch-badge.js +1 -1
  83. package/dist/components/ch-button.js +1 -1
  84. package/dist/components/ch-card.js +1 -1
  85. package/dist/components/ch-card.js.map +1 -1
  86. package/dist/components/ch-checkbox.d.ts +11 -0
  87. package/dist/components/ch-checkbox.js +2 -0
  88. package/dist/components/ch-checkbox.js.map +1 -0
  89. package/dist/components/ch-divider.d.ts +11 -0
  90. package/dist/components/ch-divider.js +2 -0
  91. package/dist/components/ch-divider.js.map +1 -0
  92. package/dist/components/ch-input.js +1 -1
  93. package/dist/components/ch-input.js.map +1 -1
  94. package/dist/components/ch-link.d.ts +11 -0
  95. package/dist/components/ch-link.js +2 -0
  96. package/dist/components/ch-link.js.map +1 -0
  97. package/dist/components/ch-radio.d.ts +11 -0
  98. package/dist/components/ch-radio.js +2 -0
  99. package/dist/components/ch-radio.js.map +1 -0
  100. package/dist/components/ch-select.js +1 -1
  101. package/dist/components/ch-select.js.map +1 -1
  102. package/dist/components/ch-switch.d.ts +11 -0
  103. package/dist/components/ch-switch.js +2 -0
  104. package/dist/components/ch-switch.js.map +1 -0
  105. package/dist/components/ch-tabs.d.ts +11 -0
  106. package/dist/components/ch-tabs.js +2 -0
  107. package/dist/components/ch-tabs.js.map +1 -0
  108. package/dist/components/ch-textarea.d.ts +11 -0
  109. package/dist/components/ch-textarea.js +2 -0
  110. package/dist/components/ch-textarea.js.map +1 -0
  111. package/dist/components/index.js +1 -1
  112. package/dist/components/p-C3Jfy_hI.js +2 -0
  113. package/dist/components/p-C3Jfy_hI.js.map +1 -0
  114. package/dist/esm/ch-accordion.entry.js +46 -0
  115. package/dist/esm/ch-accordion.entry.js.map +1 -0
  116. package/dist/esm/ch-badge_5.entry.js +56 -8
  117. package/dist/esm/ch-badge_5.entry.js.map +1 -1
  118. package/dist/esm/ch-checkbox.entry.js +78 -0
  119. package/dist/esm/ch-checkbox.entry.js.map +1 -0
  120. package/dist/esm/ch-divider.entry.js +22 -0
  121. package/dist/esm/ch-divider.entry.js.map +1 -0
  122. package/dist/esm/ch-link.entry.js +47 -0
  123. package/dist/esm/ch-link.entry.js.map +1 -0
  124. package/dist/esm/ch-radio.entry.js +81 -0
  125. package/dist/esm/ch-radio.entry.js.map +1 -0
  126. package/dist/esm/ch-switch.entry.js +78 -0
  127. package/dist/esm/ch-switch.entry.js.map +1 -0
  128. package/dist/esm/ch-tabs.entry.js +98 -0
  129. package/dist/esm/ch-tabs.entry.js.map +1 -0
  130. package/dist/esm/ch-textarea.entry.js +92 -0
  131. package/dist/esm/ch-textarea.entry.js.map +1 -0
  132. package/dist/esm/chucao.js +3 -3
  133. package/dist/esm/{index-COo5t8-6.js → index-C_GZnvOi.js} +35 -3
  134. package/dist/esm/index-C_GZnvOi.js.map +1 -0
  135. package/dist/esm/loader.js +3 -3
  136. package/dist/types/components/ch-accordion/ch-accordion.d.ts +25 -0
  137. package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +51 -0
  138. package/dist/types/components/ch-divider/ch-divider.d.ts +8 -0
  139. package/dist/types/components/ch-input/ch-input.d.ts +16 -0
  140. package/dist/types/components/ch-link/ch-link.d.ts +28 -0
  141. package/dist/types/components/ch-radio/ch-radio.d.ts +58 -0
  142. package/dist/types/components/ch-select/ch-select.d.ts +16 -0
  143. package/dist/types/components/ch-switch/ch-switch.d.ts +51 -0
  144. package/dist/types/components/ch-tabs/ch-tabs.d.ts +34 -0
  145. package/dist/types/components/ch-textarea/ch-textarea.d.ts +60 -0
  146. package/dist/types/components.d.ts +794 -0
  147. package/dist-react/components.d.ts +40 -1
  148. package/dist-react/components.js +75 -0
  149. package/dist-react/components.ts +103 -1
  150. package/dist-vue/index.d.ts +8 -0
  151. package/dist-vue/index.js +100 -0
  152. package/dist-vue/index.ts +116 -0
  153. package/package.json +1 -1
  154. package/dist/chucao/p-94a2b1be.entry.js +0 -2
  155. package/dist/chucao/p-94a2b1be.entry.js.map +0 -1
  156. package/dist/chucao/p-COo5t8-6.js +0 -3
  157. package/dist/chucao/p-COo5t8-6.js.map +0 -1
  158. package/dist/cjs/index-yB1Ik3Sa.js.map +0 -1
  159. package/dist/components/p-DCKzDjxR.js +0 -2
  160. package/dist/components/p-DCKzDjxR.js.map +0 -1
  161. package/dist/esm/index-COo5t8-6.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class ChDivider {
3
+ /**
4
+ * The orientation of the divider. Either `horizontal` (default) or `vertical`.
5
+ */
6
+ orientation = 'horizontal';
7
+ render() {
8
+ return (h(Host, { key: '30ad155d178afd93745eb4072a2d9a8012705191', class: { 'divider--vertical': this.orientation === 'vertical' } }, h("hr", { key: 'ce239ccdebec97a2735e14ad62b81d14888881a5', class: { divider: true, [`divider--${this.orientation}`]: true }, "aria-orientation": this.orientation })));
9
+ }
10
+ static get is() { return "ch-divider"; }
11
+ static get encapsulation() { return "shadow"; }
12
+ static get originalStyleUrls() {
13
+ return {
14
+ "$": ["ch-divider.css"]
15
+ };
16
+ }
17
+ static get styleUrls() {
18
+ return {
19
+ "$": ["ch-divider.css"]
20
+ };
21
+ }
22
+ static get properties() {
23
+ return {
24
+ "orientation": {
25
+ "type": "string",
26
+ "mutable": false,
27
+ "complexType": {
28
+ "original": "ChDividerOrientation",
29
+ "resolved": "\"horizontal\" | \"vertical\"",
30
+ "references": {
31
+ "ChDividerOrientation": {
32
+ "location": "local",
33
+ "path": "/home/runner/work/chucao/chucao/src/components/ch-divider/ch-divider.tsx",
34
+ "id": "src/components/ch-divider/ch-divider.tsx::ChDividerOrientation"
35
+ }
36
+ }
37
+ },
38
+ "required": false,
39
+ "optional": false,
40
+ "docs": {
41
+ "tags": [],
42
+ "text": "The orientation of the divider. Either `horizontal` (default) or `vertical`."
43
+ },
44
+ "getter": false,
45
+ "setter": false,
46
+ "reflect": false,
47
+ "attribute": "orientation",
48
+ "defaultValue": "'horizontal'"
49
+ }
50
+ };
51
+ }
52
+ }
53
+ //# sourceMappingURL=ch-divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-divider.js","sourceRoot":"","sources":["../../../../src/components/ch-divider/ch-divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AASzD,MAAM,OAAO,SAAS;IACpB;;OAEG;IACK,WAAW,GAAyB,YAAY,CAAC;IAEzD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,mBAAmB,EAAE,IAAI,CAAC,WAAW,KAAK,UAAU,EAAE;YACnE,2DAAI,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,YAAY,IAAI,CAAC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAoB,IAAI,CAAC,WAAW,GAAI,CACvG,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\nexport type ChDividerOrientation = 'horizontal' | 'vertical';\n\n@Component({\n tag: 'ch-divider',\n styleUrl: 'ch-divider.css',\n shadow: true,\n})\nexport class ChDivider {\n /**\n * The orientation of the divider. Either `horizontal` (default) or `vertical`.\n */\n @Prop() orientation: ChDividerOrientation = 'horizontal';\n\n render() {\n return (\n <Host class={{ 'divider--vertical': this.orientation === 'vertical' }}>\n <hr class={{ divider: true, [`divider--${this.orientation}`]: true }} aria-orientation={this.orientation} />\n </Host>\n );\n }\n}\n"]}
@@ -37,7 +37,27 @@
37
37
  outline: none;
38
38
  }
39
39
 
40
+ .input--invalid {
41
+ border-color: var(--color-status-warning);
42
+ }
43
+
44
+ .input--invalid:focus {
45
+ border-color: var(--color-status-warning);
46
+ box-shadow: 0 0 0 3px var(--color-status-warning-background);
47
+ }
48
+
40
49
  .input:disabled {
41
50
  opacity: var(--opacity-disabled);
42
51
  cursor: not-allowed;
43
52
  }
53
+
54
+ .hint,
55
+ .error {
56
+ margin: var(--spacing-sm) 0 0;
57
+ font-size: var(--typography-size-sm);
58
+ color: var(--text-muted);
59
+ }
60
+
61
+ .error {
62
+ color: var(--color-status-warning);
63
+ }
@@ -2,6 +2,8 @@ import { Host, h } from "@stencil/core";
2
2
  let inputIds = 0;
3
3
  export class ChInput {
4
4
  inputId = `ch-input-${++inputIds}`;
5
+ hintId = `${this.inputId}-hint`;
6
+ errorId = `${this.inputId}-error`;
5
7
  /**
6
8
  * Visible label rendered above the input and associated with it via
7
9
  * `for`/`id`, so assistive technology announces the input's purpose.
@@ -31,6 +33,19 @@ export class ChInput {
31
33
  * Whether the input is required.
32
34
  */
33
35
  required = false;
36
+ /**
37
+ * Helper text rendered below the input, associated via `aria-describedby`.
38
+ * Replaced by `errorMessage` when the input is invalid.
39
+ */
40
+ hint;
41
+ /**
42
+ * Error message rendered below the input when it is invalid.
43
+ */
44
+ errorMessage;
45
+ /**
46
+ * Whether the input is in an invalid state; toggles `aria-invalid` and error styling.
47
+ */
48
+ invalid = false;
34
49
  /**
35
50
  * Emitted on every keystroke, with the current input value.
36
51
  */
@@ -47,8 +62,17 @@ export class ChInput {
47
62
  this.value = ev.target.value;
48
63
  this.chChange.emit(this.value);
49
64
  };
65
+ get describedBy() {
66
+ if (this.invalid && this.errorMessage) {
67
+ return this.errorId;
68
+ }
69
+ if (this.hint) {
70
+ return this.hintId;
71
+ }
72
+ return undefined;
73
+ }
50
74
  render() {
51
- 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 })));
75
+ return (h(Host, { key: '82557c17d49bf048b7056853a088565a243325be' }, this.label && (h("label", { key: 'cc774b0001daa6c7f4e4bb8d62ea21698bd744e9', class: "label", htmlFor: this.inputId }, this.label)), h("input", { key: 'dc30d9f798611a0a4bb577c18a2696d065a281ee', id: this.label ? this.inputId : undefined, class: { 'input': true, 'input--invalid': this.invalid }, type: this.type, name: this.name, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.value, "aria-invalid": this.invalid ? 'true' : undefined, "aria-describedby": this.describedBy, onInput: this.handleInput, onChange: this.handleChange }), this.hint && !(this.invalid && this.errorMessage) && (h("p", { key: '21b76002a309dfe167e671fd270699f8699ed6b9', class: "hint", id: this.hintId }, this.hint)), this.invalid && this.errorMessage && (h("p", { key: 'be64956da00a76dccdbf0979f3352b263a21fb12', class: "error", id: this.errorId, role: "alert" }, this.errorMessage))));
52
76
  }
53
77
  static get is() { return "ch-input"; }
54
78
  static get encapsulation() { return "shadow"; }
@@ -200,6 +224,64 @@ export class ChInput {
200
224
  "reflect": false,
201
225
  "attribute": "required",
202
226
  "defaultValue": "false"
227
+ },
228
+ "hint": {
229
+ "type": "string",
230
+ "mutable": false,
231
+ "complexType": {
232
+ "original": "string",
233
+ "resolved": "string",
234
+ "references": {}
235
+ },
236
+ "required": false,
237
+ "optional": true,
238
+ "docs": {
239
+ "tags": [],
240
+ "text": "Helper text rendered below the input, associated via `aria-describedby`.\nReplaced by `errorMessage` when the input is invalid."
241
+ },
242
+ "getter": false,
243
+ "setter": false,
244
+ "reflect": false,
245
+ "attribute": "hint"
246
+ },
247
+ "errorMessage": {
248
+ "type": "string",
249
+ "mutable": false,
250
+ "complexType": {
251
+ "original": "string",
252
+ "resolved": "string",
253
+ "references": {}
254
+ },
255
+ "required": false,
256
+ "optional": true,
257
+ "docs": {
258
+ "tags": [],
259
+ "text": "Error message rendered below the input when it is invalid."
260
+ },
261
+ "getter": false,
262
+ "setter": false,
263
+ "reflect": false,
264
+ "attribute": "error-message"
265
+ },
266
+ "invalid": {
267
+ "type": "boolean",
268
+ "mutable": false,
269
+ "complexType": {
270
+ "original": "boolean",
271
+ "resolved": "boolean",
272
+ "references": {}
273
+ },
274
+ "required": false,
275
+ "optional": false,
276
+ "docs": {
277
+ "tags": [],
278
+ "text": "Whether the input is in an invalid state; toggles `aria-invalid` and error styling."
279
+ },
280
+ "getter": false,
281
+ "setter": false,
282
+ "reflect": false,
283
+ "attribute": "invalid",
284
+ "defaultValue": "false"
203
285
  }
204
286
  };
205
287
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ch-input.js","sourceRoot":"","sources":["../../../../src/components/ch-input/ch-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnF,IAAI,QAAQ,GAAG,CAAC,CAAC;AAOjB,MAAM,OAAO,OAAO;IACD,OAAO,GAAG,YAAY,EAAE,QAAQ,EAAE,CAAC;IAEpD;;;OAGG;IACK,KAAK,CAAU;IAEvB;;OAEG;IACK,IAAI,GAAG,MAAM,CAAC;IAEtB;;OAEG;IACsB,KAAK,GAAG,EAAE,CAAC;IAEpC;;OAEG;IACK,WAAW,CAAU;IAE7B;;OAEG;IACK,IAAI,CAAU;IAEtB;;OAEG;IACK,QAAQ,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACK,QAAQ,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACM,OAAO,CAAuB;IAEvC;;OAEG;IACM,QAAQ,CAAuB;IAEhC,WAAW,GAAG,CAAC,EAAc,EAAE,EAAE;QACvC,IAAI,CAAC,KAAK,GAAI,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC;QACnD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC;IAEM,YAAY,GAAG,CAAC,EAAS,EAAE,EAAE;QACnC,IAAI,CAAC,KAAK,GAAI,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC;QACnD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC,CAAC;IAEF,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACF,IAAI,CAAC,KAAK,IAAI,CACb,8DAAO,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,IAAI,CAAC,OAAO,IACvC,IAAI,CAAC,KAAK,CACL,CACT;YACD,8DACE,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EACzC,KAAK,EAAC,OAAO,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,QAAQ,EAAE,IAAI,CAAC,YAAY,GAC3B,CACG,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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"]}
1
+ {"version":3,"file":"ch-input.js","sourceRoot":"","sources":["../../../../src/components/ch-input/ch-input.tsx"],"names":[],"mappings":"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","sourcesContent":["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 private readonly hintId = `${this.inputId}-hint`;\n private readonly errorId = `${this.inputId}-error`;\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 * Helper text rendered below the input, associated via `aria-describedby`.\n * Replaced by `errorMessage` when the input is invalid.\n */\n @Prop() hint?: string;\n\n /**\n * Error message rendered below the input when it is invalid.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Whether the input is in an invalid state; toggles `aria-invalid` and error styling.\n */\n @Prop() invalid = 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 private get describedBy(): string | undefined {\n if (this.invalid && this.errorMessage) {\n return this.errorId;\n }\n if (this.hint) {\n return this.hintId;\n }\n return undefined;\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': true, 'input--invalid': this.invalid }}\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 aria-invalid={this.invalid ? 'true' : undefined}\n aria-describedby={this.describedBy}\n onInput={this.handleInput}\n onChange={this.handleChange}\n />\n {this.hint && !(this.invalid && this.errorMessage) && (\n <p class=\"hint\" id={this.hintId}>\n {this.hint}\n </p>\n )}\n {this.invalid && this.errorMessage && (\n <p class=\"error\" id={this.errorId} role=\"alert\">\n {this.errorMessage}\n </p>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,40 @@
1
+ :host {
2
+ display: inline;
3
+ }
4
+
5
+ .link {
6
+ color: var(--accent);
7
+ font-weight: var(--typography-weight-semibold);
8
+ text-decoration: underline;
9
+ text-decoration-thickness: var(--border-width);
10
+ text-underline-offset: var(--spacing-shift);
11
+ border-radius: var(--radius-sm);
12
+ transition:
13
+ color var(--duration-normal) var(--easing-default),
14
+ opacity var(--duration-normal) var(--easing-default);
15
+ }
16
+
17
+ .link:hover {
18
+ color: var(--accent-hover);
19
+ }
20
+
21
+ .link:focus-visible {
22
+ outline: var(--focus-outline-width) solid var(--accent);
23
+ outline-offset: var(--focus-outline-offset);
24
+ }
25
+
26
+ .link--muted {
27
+ color: var(--text-muted);
28
+ text-decoration: none;
29
+ }
30
+
31
+ .link--muted:hover {
32
+ color: var(--text);
33
+ }
34
+
35
+ .link--disabled {
36
+ color: var(--text-muted);
37
+ text-decoration: none;
38
+ opacity: var(--opacity-disabled);
39
+ cursor: not-allowed;
40
+ }
@@ -0,0 +1,158 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class ChLink {
3
+ /**
4
+ * The URL the link points to.
5
+ */
6
+ href;
7
+ /**
8
+ * The browsing context the link opens in (e.g. `_blank`). For `_blank`, a
9
+ * `noopener noreferrer` `rel` is added automatically.
10
+ */
11
+ target;
12
+ /**
13
+ * The visual style of the link. Either `default` or `muted`.
14
+ */
15
+ variant = 'default';
16
+ /**
17
+ * Whether the link is disabled. Renders a non-interactive element with
18
+ * `aria-disabled="true"` instead of an anchor.
19
+ */
20
+ disabled = false;
21
+ /**
22
+ * Emitted when the link is clicked.
23
+ */
24
+ chClick;
25
+ handleClick = (ev) => {
26
+ this.chClick.emit(ev);
27
+ };
28
+ render() {
29
+ if (this.disabled) {
30
+ return (h(Host, null, h("span", { class: { 'link': true, [`link--${this.variant}`]: true, 'link--disabled': true }, "aria-disabled": "true" }, h("slot", null))));
31
+ }
32
+ return (h(Host, null, h("a", { class: { link: true, [`link--${this.variant}`]: true }, href: this.href, target: this.target, rel: this.target === '_blank' ? 'noopener noreferrer' : undefined, onClick: this.handleClick }, h("slot", null))));
33
+ }
34
+ static get is() { return "ch-link"; }
35
+ static get encapsulation() { return "shadow"; }
36
+ static get originalStyleUrls() {
37
+ return {
38
+ "$": ["ch-link.css"]
39
+ };
40
+ }
41
+ static get styleUrls() {
42
+ return {
43
+ "$": ["ch-link.css"]
44
+ };
45
+ }
46
+ static get properties() {
47
+ return {
48
+ "href": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": true,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": "The URL the link points to."
61
+ },
62
+ "getter": false,
63
+ "setter": false,
64
+ "reflect": false,
65
+ "attribute": "href"
66
+ },
67
+ "target": {
68
+ "type": "string",
69
+ "mutable": false,
70
+ "complexType": {
71
+ "original": "string",
72
+ "resolved": "string",
73
+ "references": {}
74
+ },
75
+ "required": false,
76
+ "optional": true,
77
+ "docs": {
78
+ "tags": [],
79
+ "text": "The browsing context the link opens in (e.g. `_blank`). For `_blank`, a\n`noopener noreferrer` `rel` is added automatically."
80
+ },
81
+ "getter": false,
82
+ "setter": false,
83
+ "reflect": false,
84
+ "attribute": "target"
85
+ },
86
+ "variant": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "ChLinkVariant",
91
+ "resolved": "\"default\" | \"muted\"",
92
+ "references": {
93
+ "ChLinkVariant": {
94
+ "location": "local",
95
+ "path": "/home/runner/work/chucao/chucao/src/components/ch-link/ch-link.tsx",
96
+ "id": "src/components/ch-link/ch-link.tsx::ChLinkVariant"
97
+ }
98
+ }
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "The visual style of the link. Either `default` or `muted`."
105
+ },
106
+ "getter": false,
107
+ "setter": false,
108
+ "reflect": false,
109
+ "attribute": "variant",
110
+ "defaultValue": "'default'"
111
+ },
112
+ "disabled": {
113
+ "type": "boolean",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "boolean",
117
+ "resolved": "boolean",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": false,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": "Whether the link is disabled. Renders a non-interactive element with\n`aria-disabled=\"true\"` instead of an anchor."
125
+ },
126
+ "getter": false,
127
+ "setter": false,
128
+ "reflect": false,
129
+ "attribute": "disabled",
130
+ "defaultValue": "false"
131
+ }
132
+ };
133
+ }
134
+ static get events() {
135
+ return [{
136
+ "method": "chClick",
137
+ "name": "chClick",
138
+ "bubbles": true,
139
+ "cancelable": true,
140
+ "composed": true,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Emitted when the link is clicked."
144
+ },
145
+ "complexType": {
146
+ "original": "MouseEvent",
147
+ "resolved": "MouseEvent",
148
+ "references": {
149
+ "MouseEvent": {
150
+ "location": "global",
151
+ "id": "global::MouseEvent"
152
+ }
153
+ }
154
+ }
155
+ }];
156
+ }
157
+ }
158
+ //# sourceMappingURL=ch-link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ch-link.js","sourceRoot":"","sources":["../../../../src/components/ch-link/ch-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AASnF,MAAM,OAAO,MAAM;IACjB;;OAEG;IACK,IAAI,CAAU;IAEtB;;;OAGG;IACK,MAAM,CAAU;IAExB;;OAEG;IACK,OAAO,GAAkB,SAAS,CAAC;IAE3C;;;OAGG;IACK,QAAQ,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACM,OAAO,CAA2B;IAEnC,WAAW,GAAG,CAAC,EAAc,EAAE,EAAE;QACvC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,MAAM;QACJ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,OAAO,CACL,EAAC,IAAI;gBACH,YAAM,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,mBAAgB,MAAM;oBAC1G,eAAa,CACR,CACF,CACR,CAAC;QACJ,CAAC;QACD,OAAO,CACL,EAAC,IAAI;YACH,SACE,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EACtD,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,GAAG,EAAE,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,EACjE,OAAO,EAAE,IAAI,CAAC,WAAW;gBAEzB,eAAa,CACX,CACC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport type ChLinkVariant = 'default' | 'muted';\n\n@Component({\n tag: 'ch-link',\n styleUrl: 'ch-link.css',\n shadow: true,\n})\nexport class ChLink {\n /**\n * The URL the link points to.\n */\n @Prop() href?: string;\n\n /**\n * The browsing context the link opens in (e.g. `_blank`). For `_blank`, a\n * `noopener noreferrer` `rel` is added automatically.\n */\n @Prop() target?: string;\n\n /**\n * The visual style of the link. Either `default` or `muted`.\n */\n @Prop() variant: ChLinkVariant = 'default';\n\n /**\n * Whether the link is disabled. Renders a non-interactive element with\n * `aria-disabled=\"true\"` instead of an anchor.\n */\n @Prop() disabled = false;\n\n /**\n * Emitted when the link is clicked.\n */\n @Event() chClick: EventEmitter<MouseEvent>;\n\n private handleClick = (ev: MouseEvent) => {\n this.chClick.emit(ev);\n };\n\n render() {\n if (this.disabled) {\n return (\n <Host>\n <span class={{ 'link': true, [`link--${this.variant}`]: true, 'link--disabled': true }} aria-disabled=\"true\">\n <slot></slot>\n </span>\n </Host>\n );\n }\n return (\n <Host>\n <a\n class={{ link: true, [`link--${this.variant}`]: true }}\n href={this.href}\n target={this.target}\n rel={this.target === '_blank' ? 'noopener noreferrer' : undefined}\n onClick={this.handleClick}\n >\n <slot></slot>\n </a>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,89 @@
1
+ :host {
2
+ display: inline-block;
3
+ }
4
+
5
+ .group-label {
6
+ display: block;
7
+ margin-bottom: var(--spacing-sm);
8
+ font-size: var(--typography-size-sm);
9
+ font-weight: var(--typography-weight-semibold);
10
+ color: var(--text);
11
+ }
12
+
13
+ .radio-group {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: var(--spacing-lg);
17
+ }
18
+
19
+ .control {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ gap: var(--spacing-lg);
23
+ cursor: pointer;
24
+ }
25
+
26
+ .control--disabled {
27
+ opacity: var(--opacity-disabled);
28
+ cursor: not-allowed;
29
+ }
30
+
31
+ .input {
32
+ appearance: none;
33
+ -webkit-appearance: none;
34
+ display: inline-flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ box-sizing: border-box;
38
+ width: var(--spacing-4xl);
39
+ height: var(--spacing-4xl);
40
+ margin: 0;
41
+ flex-shrink: 0;
42
+ border: var(--border-width) solid var(--border);
43
+ border-radius: 50%;
44
+ background: var(--surface);
45
+ cursor: pointer;
46
+ transition:
47
+ border-color var(--duration-normal) var(--easing-default),
48
+ box-shadow var(--duration-normal) var(--easing-default);
49
+ }
50
+
51
+ .input:focus-visible {
52
+ outline: var(--focus-outline-width) solid var(--accent);
53
+ outline-offset: var(--focus-outline-offset);
54
+ }
55
+
56
+ .input:checked {
57
+ border-color: var(--accent);
58
+ }
59
+
60
+ .input:checked::before {
61
+ content: '';
62
+ width: var(--spacing-md);
63
+ height: var(--spacing-md);
64
+ border-radius: 50%;
65
+ background: var(--accent);
66
+ }
67
+
68
+ .input--invalid {
69
+ border-color: var(--color-status-warning);
70
+ }
71
+
72
+ .input--invalid:focus-visible {
73
+ outline-color: var(--color-status-warning);
74
+ }
75
+
76
+ .label-text {
77
+ color: var(--text);
78
+ }
79
+
80
+ .hint,
81
+ .error {
82
+ margin: var(--spacing-sm) 0 0;
83
+ font-size: var(--typography-size-sm);
84
+ color: var(--text-muted);
85
+ }
86
+
87
+ .error {
88
+ color: var(--color-status-warning);
89
+ }