@devschile/chucao 2.4.0 → 2.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 (241) hide show
  1. package/README.md +17 -16
  2. package/dist/chucao/chucao.css +1 -1
  3. package/dist/chucao/chucao.esm.js +1 -1
  4. package/dist/chucao/index.esm.js +1 -1
  5. package/dist/chucao/index.esm.js.map +1 -1
  6. package/dist/chucao/{p-1ebd9dc4.entry.js → p-0bc141a2.entry.js} +2 -2
  7. package/dist/chucao/{p-449e1ba0.entry.js → p-0e044eff.entry.js} +2 -2
  8. package/dist/chucao/{p-a07e0e97.entry.js → p-1108062e.entry.js} +2 -2
  9. package/dist/chucao/{p-85db779c.entry.js → p-26e144ff.entry.js} +2 -2
  10. package/dist/chucao/p-2c681cc0.entry.js +2 -0
  11. package/dist/chucao/p-2c681cc0.entry.js.map +1 -0
  12. package/dist/chucao/p-2e785177.entry.js +2 -0
  13. package/dist/chucao/{p-0e3c83a6.entry.js.map → p-2e785177.entry.js.map} +1 -1
  14. package/dist/chucao/{p-6e95f31f.entry.js → p-337d7f68.entry.js} +2 -2
  15. package/dist/chucao/{p-7c85f5fe.entry.js → p-350f974d.entry.js} +2 -2
  16. package/dist/chucao/p-4846cac4.entry.js +2 -0
  17. package/dist/chucao/{p-d0533af6.entry.js → p-6345c9e1.entry.js} +2 -2
  18. package/dist/chucao/p-957acf39.entry.js +2 -0
  19. package/dist/chucao/p-957acf39.entry.js.map +1 -0
  20. package/dist/chucao/{p-34a9d1f4.entry.js → p-97655c41.entry.js} +2 -2
  21. package/dist/chucao/{p-b5552b50.entry.js → p-9f73855e.entry.js} +2 -2
  22. package/dist/chucao/p-CIV5Gg1o.js +3 -0
  23. package/dist/chucao/p-CIV5Gg1o.js.map +1 -0
  24. package/dist/chucao/p-CnivhwvG.js +2 -0
  25. package/dist/chucao/p-CnivhwvG.js.map +1 -0
  26. package/dist/chucao/{p-17451d92.entry.js → p-b53d954e.entry.js} +2 -2
  27. package/dist/chucao/{p-d776b092.entry.js → p-b6cc08f0.entry.js} +2 -2
  28. package/dist/chucao/p-be7b5c21.entry.js +2 -0
  29. package/dist/chucao/p-be7b5c21.entry.js.map +1 -0
  30. package/dist/chucao/p-c165f839.entry.js +2 -0
  31. package/dist/chucao/p-c165f839.entry.js.map +1 -0
  32. package/dist/chucao/{p-56d64d84.entry.js → p-c251b0d1.entry.js} +2 -2
  33. package/dist/chucao/p-f5b74bca.entry.js +2 -0
  34. package/dist/chucao/p-f5b74bca.entry.js.map +1 -0
  35. package/dist/chucao/{p-84d875e9.entry.js → p-f9fe752c.entry.js} +2 -2
  36. package/dist/chucao/{p-1778a313.entry.js → p-fdf065e6.entry.js} +2 -2
  37. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  38. package/dist/cjs/ch-alert_8.cjs.entry.js +34 -10
  39. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
  40. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  41. package/dist/cjs/ch-cluster.cjs.entry.js +3 -3
  42. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  43. package/dist/cjs/ch-drawer.cjs.entry.js +2 -2
  44. package/dist/cjs/ch-emoji.cjs.entry.js +2 -2
  45. package/dist/cjs/ch-empty-state.cjs.entry.js +2 -2
  46. package/dist/cjs/ch-grid.cjs.entry.js +2 -2
  47. package/dist/cjs/ch-icon-button.cjs.entry.js +51 -0
  48. package/dist/cjs/ch-icon-button.cjs.entry.js.map +1 -0
  49. package/dist/cjs/ch-icon.cjs.entry.js +38 -0
  50. package/dist/cjs/ch-icon.cjs.entry.js.map +1 -0
  51. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  52. package/dist/cjs/ch-modal.cjs.entry.js +2 -2
  53. package/dist/cjs/ch-page-header.cjs.entry.js +45 -0
  54. package/dist/cjs/ch-page-header.cjs.entry.js.map +1 -0
  55. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  56. package/dist/cjs/ch-segmented-control.cjs.entry.js +2 -2
  57. package/dist/cjs/ch-skeleton.cjs.entry.js +2 -2
  58. package/dist/cjs/ch-stack.cjs.entry.js +2 -2
  59. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  60. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  61. package/dist/cjs/ch-tooltip.cjs.entry.js +204 -5
  62. package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -1
  63. package/dist/cjs/chucao.cjs.js +2 -2
  64. package/dist/cjs/icons-CNyDgV-q.js +88 -0
  65. package/dist/cjs/icons-CNyDgV-q.js.map +1 -0
  66. package/dist/cjs/{index-ysucLiAq.js → index-ByZY6aTj.js} +81 -5
  67. package/dist/cjs/index-ByZY6aTj.js.map +1 -0
  68. package/dist/cjs/index.cjs.js +16 -0
  69. package/dist/cjs/index.cjs.js.map +1 -1
  70. package/dist/cjs/loader.cjs.js +2 -2
  71. package/dist/collection/collection-manifest.json +3 -0
  72. package/dist/collection/components/ch-alert/ch-alert.css +13 -0
  73. package/dist/collection/components/ch-alert/ch-alert.js +44 -1
  74. package/dist/collection/components/ch-alert/ch-alert.js.map +1 -1
  75. package/dist/collection/components/ch-badge/ch-badge.css +30 -1
  76. package/dist/collection/components/ch-badge/ch-badge.js +35 -1
  77. package/dist/collection/components/ch-badge/ch-badge.js.map +1 -1
  78. package/dist/collection/components/ch-card/ch-card.js +1 -1
  79. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  80. package/dist/collection/components/ch-cluster/ch-cluster.js +2 -2
  81. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  82. package/dist/collection/components/ch-drawer/ch-drawer.js +1 -1
  83. package/dist/collection/components/ch-emoji/ch-emoji.js +1 -1
  84. package/dist/collection/components/ch-empty-state/ch-empty-state.js +1 -1
  85. package/dist/collection/components/ch-grid/ch-grid.js +1 -1
  86. package/dist/collection/components/ch-icon/ch-icon.css +25 -0
  87. package/dist/collection/components/ch-icon/ch-icon.js +121 -0
  88. package/dist/collection/components/ch-icon/ch-icon.js.map +1 -0
  89. package/dist/collection/components/ch-icon-button/ch-icon-button.css +99 -0
  90. package/dist/collection/components/ch-icon-button/ch-icon-button.js +216 -0
  91. package/dist/collection/components/ch-icon-button/ch-icon-button.js.map +1 -0
  92. package/dist/collection/components/ch-input/ch-input.js +1 -1
  93. package/dist/collection/components/ch-modal/ch-modal.js +1 -1
  94. package/dist/collection/components/ch-page-header/ch-page-header.css +84 -0
  95. package/dist/collection/components/ch-page-header/ch-page-header.js +162 -0
  96. package/dist/collection/components/ch-page-header/ch-page-header.js.map +1 -0
  97. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  98. package/dist/collection/components/ch-segmented-control/ch-segmented-control.js +1 -1
  99. package/dist/collection/components/ch-select/ch-select.js +1 -1
  100. package/dist/collection/components/ch-skeleton/ch-skeleton.js +1 -1
  101. package/dist/collection/components/ch-spinner/ch-spinner.js +1 -1
  102. package/dist/collection/components/ch-stack/ch-stack.js +1 -1
  103. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  104. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  105. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  106. package/dist/collection/components/ch-tooltip/ch-tooltip.css +29 -1
  107. package/dist/collection/components/ch-tooltip/ch-tooltip.js +125 -6
  108. package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -1
  109. package/dist/collection/tokens/tokens.js +12 -0
  110. package/dist/collection/tokens/tokens.js.map +1 -1
  111. package/dist/collection/tokens/types.js.map +1 -1
  112. package/dist/collection/utils/icons.js +82 -0
  113. package/dist/collection/utils/icons.js.map +1 -0
  114. package/dist/collection/utils/overlay.js +101 -0
  115. package/dist/collection/utils/overlay.js.map +1 -0
  116. package/dist/components/ch-accordion.js +1 -1
  117. package/dist/components/ch-alert.js +1 -1
  118. package/dist/components/ch-alert.js.map +1 -1
  119. package/dist/components/ch-badge.js +1 -1
  120. package/dist/components/ch-badge.js.map +1 -1
  121. package/dist/components/ch-button.js +1 -1
  122. package/dist/components/ch-card.js +1 -1
  123. package/dist/components/ch-checkbox.js +1 -1
  124. package/dist/components/ch-cluster.js +1 -1
  125. package/dist/components/ch-divider.js +1 -1
  126. package/dist/components/ch-drawer.js +1 -1
  127. package/dist/components/ch-emoji.js +1 -1
  128. package/dist/components/ch-empty-state.js +1 -1
  129. package/dist/components/ch-grid.js +1 -1
  130. package/dist/components/ch-icon-button.d.ts +11 -0
  131. package/dist/components/ch-icon-button.js +2 -0
  132. package/dist/components/ch-icon-button.js.map +1 -0
  133. package/dist/components/ch-icon.d.ts +11 -0
  134. package/dist/components/ch-icon.js +2 -0
  135. package/dist/components/ch-icon.js.map +1 -0
  136. package/dist/components/ch-input.js +1 -1
  137. package/dist/components/ch-link.js +1 -1
  138. package/dist/components/ch-modal.js +1 -1
  139. package/dist/components/ch-page-header.d.ts +11 -0
  140. package/dist/components/ch-page-header.js +2 -0
  141. package/dist/components/ch-page-header.js.map +1 -0
  142. package/dist/components/ch-radio.js +1 -1
  143. package/dist/components/ch-segmented-control.js +1 -1
  144. package/dist/components/ch-select.js +1 -1
  145. package/dist/components/ch-skeleton.js +1 -1
  146. package/dist/components/ch-spinner.js +1 -1
  147. package/dist/components/ch-stack.js +1 -1
  148. package/dist/components/ch-switch.js +1 -1
  149. package/dist/components/ch-tabs.js +1 -1
  150. package/dist/components/ch-textarea.js +1 -1
  151. package/dist/components/ch-tooltip.js +1 -1
  152. package/dist/components/ch-tooltip.js.map +1 -1
  153. package/dist/components/index.js +1 -1
  154. package/dist/components/index.js.map +1 -1
  155. package/dist/components/{p-no2_9Jk-.js → p-CV0rD-fF.js} +2 -2
  156. package/dist/components/p-CnivhwvG.js +2 -0
  157. package/dist/components/p-CnivhwvG.js.map +1 -0
  158. package/dist/components/p-qP_9qshx.js +2 -0
  159. package/dist/components/p-qP_9qshx.js.map +1 -0
  160. package/dist/esm/ch-accordion.entry.js +1 -1
  161. package/dist/esm/ch-alert_8.entry.js +34 -10
  162. package/dist/esm/ch-alert_8.entry.js.map +1 -1
  163. package/dist/esm/ch-checkbox.entry.js +2 -2
  164. package/dist/esm/ch-cluster.entry.js +3 -3
  165. package/dist/esm/ch-divider.entry.js +2 -2
  166. package/dist/esm/ch-drawer.entry.js +2 -2
  167. package/dist/esm/ch-emoji.entry.js +2 -2
  168. package/dist/esm/ch-empty-state.entry.js +2 -2
  169. package/dist/esm/ch-grid.entry.js +2 -2
  170. package/dist/esm/ch-icon-button.entry.js +49 -0
  171. package/dist/esm/ch-icon-button.entry.js.map +1 -0
  172. package/dist/esm/ch-icon.entry.js +36 -0
  173. package/dist/esm/ch-icon.entry.js.map +1 -0
  174. package/dist/esm/ch-link.entry.js +1 -1
  175. package/dist/esm/ch-modal.entry.js +2 -2
  176. package/dist/esm/ch-page-header.entry.js +43 -0
  177. package/dist/esm/ch-page-header.entry.js.map +1 -0
  178. package/dist/esm/ch-radio.entry.js +2 -2
  179. package/dist/esm/ch-segmented-control.entry.js +2 -2
  180. package/dist/esm/ch-skeleton.entry.js +2 -2
  181. package/dist/esm/ch-stack.entry.js +2 -2
  182. package/dist/esm/ch-tabs.entry.js +2 -2
  183. package/dist/esm/ch-textarea.entry.js +2 -2
  184. package/dist/esm/ch-tooltip.entry.js +204 -5
  185. package/dist/esm/ch-tooltip.entry.js.map +1 -1
  186. package/dist/esm/chucao.js +3 -3
  187. package/dist/esm/icons-CnivhwvG.js +86 -0
  188. package/dist/esm/icons-CnivhwvG.js.map +1 -0
  189. package/dist/esm/{index-DVKZbUp9.js → index-CIV5Gg1o.js} +81 -6
  190. package/dist/esm/index-CIV5Gg1o.js.map +1 -0
  191. package/dist/esm/index.js +13 -1
  192. package/dist/esm/index.js.map +1 -1
  193. package/dist/esm/loader.js +3 -3
  194. package/dist/types/components/ch-alert/ch-alert.d.ts +11 -0
  195. package/dist/types/components/ch-badge/ch-badge.d.ts +14 -0
  196. package/dist/types/components/ch-icon/ch-icon.d.ts +29 -0
  197. package/dist/types/components/ch-icon-button/ch-icon-button.d.ts +36 -0
  198. package/dist/types/components/ch-page-header/ch-page-header.d.ts +39 -0
  199. package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +32 -2
  200. package/dist/types/components.d.ts +406 -2
  201. package/dist/types/tokens/tokens.d.ts +12 -0
  202. package/dist/types/tokens/types.d.ts +2 -1
  203. package/dist/types/utils/icons.d.ts +15 -0
  204. package/dist/types/utils/overlay.d.ts +49 -0
  205. package/dist-react/components.d.ts +12 -1
  206. package/dist-react/components.js +27 -0
  207. package/dist-react/components.ts +37 -1
  208. package/dist-vue/index.d.ts +3 -0
  209. package/dist-vue/index.js +29 -1
  210. package/dist-vue/index.ts +35 -1
  211. package/hydrate/index.js +601 -34
  212. package/hydrate/index.mjs +601 -34
  213. package/package.json +91 -4
  214. package/dist/chucao/p-0e3c83a6.entry.js +0 -2
  215. package/dist/chucao/p-82216381.entry.js +0 -2
  216. package/dist/chucao/p-82216381.entry.js.map +0 -1
  217. package/dist/chucao/p-907195ff.entry.js +0 -2
  218. package/dist/chucao/p-DVKZbUp9.js +0 -3
  219. package/dist/chucao/p-DVKZbUp9.js.map +0 -1
  220. package/dist/chucao/p-b392021c.entry.js +0 -2
  221. package/dist/chucao/p-b392021c.entry.js.map +0 -1
  222. package/dist/cjs/index-ysucLiAq.js.map +0 -1
  223. package/dist/components/p-DQOKq7af.js +0 -2
  224. package/dist/components/p-DQOKq7af.js.map +0 -1
  225. package/dist/esm/index-DVKZbUp9.js.map +0 -1
  226. /package/dist/chucao/{p-1ebd9dc4.entry.js.map → p-0bc141a2.entry.js.map} +0 -0
  227. /package/dist/chucao/{p-449e1ba0.entry.js.map → p-0e044eff.entry.js.map} +0 -0
  228. /package/dist/chucao/{p-a07e0e97.entry.js.map → p-1108062e.entry.js.map} +0 -0
  229. /package/dist/chucao/{p-85db779c.entry.js.map → p-26e144ff.entry.js.map} +0 -0
  230. /package/dist/chucao/{p-6e95f31f.entry.js.map → p-337d7f68.entry.js.map} +0 -0
  231. /package/dist/chucao/{p-7c85f5fe.entry.js.map → p-350f974d.entry.js.map} +0 -0
  232. /package/dist/chucao/{p-907195ff.entry.js.map → p-4846cac4.entry.js.map} +0 -0
  233. /package/dist/chucao/{p-d0533af6.entry.js.map → p-6345c9e1.entry.js.map} +0 -0
  234. /package/dist/chucao/{p-34a9d1f4.entry.js.map → p-97655c41.entry.js.map} +0 -0
  235. /package/dist/chucao/{p-b5552b50.entry.js.map → p-9f73855e.entry.js.map} +0 -0
  236. /package/dist/chucao/{p-17451d92.entry.js.map → p-b53d954e.entry.js.map} +0 -0
  237. /package/dist/chucao/{p-d776b092.entry.js.map → p-b6cc08f0.entry.js.map} +0 -0
  238. /package/dist/chucao/{p-56d64d84.entry.js.map → p-c251b0d1.entry.js.map} +0 -0
  239. /package/dist/chucao/{p-84d875e9.entry.js.map → p-f9fe752c.entry.js.map} +0 -0
  240. /package/dist/chucao/{p-1778a313.entry.js.map → p-fdf065e6.entry.js.map} +0 -0
  241. /package/dist/components/{p-no2_9Jk-.js.map → p-CV0rD-fF.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ch-tooltip.entry.js","sources":["src/components/ch-tooltip/ch-tooltip.css?tag=ch-tooltip&encapsulation=shadow","src/components/ch-tooltip/ch-tooltip.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.anchor {\n position: relative;\n display: inline-flex;\n}\n\n.bubble {\n position: absolute;\n z-index: var(--z-index-dropdown);\n width: max-content;\n max-width: 16rem;\n padding: var(--spacing-md) var(--spacing-2xl);\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius-sm);\n background: var(--color-background-base);\n color: var(--text);\n font-family: var(--font-body);\n font-size: var(--typography-size-sm);\n line-height: 1.4;\n opacity: 0;\n visibility: hidden;\n transition:\n opacity var(--duration-fast) var(--easing-default),\n visibility var(--duration-fast) var(--easing-default);\n}\n\n.bubble--visible {\n opacity: 1;\n visibility: visible;\n}\n\n.bubble::before {\n content: '';\n position: absolute;\n}\n\n.bubble--top {\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: var(--spacing-md);\n}\n\n.bubble--top::before {\n top: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--bottom {\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: var(--spacing-md);\n}\n\n.bubble--bottom::before {\n bottom: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--left {\n right: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-right: var(--spacing-md);\n}\n\n.bubble--left::before {\n left: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n.bubble--right {\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-left: var(--spacing-md);\n}\n\n.bubble--right::before {\n right: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bubble {\n transition: none;\n }\n}\n","import { Component, Element, Host, Listen, Prop, State, h } from '@stencil/core';\n\nexport type ChTooltipPlacement = 'top' | 'bottom' | 'left' | 'right';\n\nlet tooltipIds = 0;\n\n/**\n * Short help text shown on hover and on focus.\n *\n * Both the trigger and the text come from the consumer's light DOM through\n * named slots. That is what makes the accessible association work: an\n * `aria-describedby` IDREF only resolves within a single tree, and slotted\n * nodes stay in the document tree even though they render inside the shadow\n * root. Keeping the text in the shadow root instead would need a reference\n * pointing into a shadow tree, which the platform does not allow — element\n * reflection only points outwards, and `referenceTarget` is not available yet.\n *\n * The trigger has to be a natively focusable element (`<button>`, `<a>`,\n * `<input>`). A chucao component such as `ch-button` will not be described,\n * because `aria-*` set on a custom element host does not reach the native\n * element inside it — see the discussion in issue #47.\n */\n@Component({\n tag: 'ch-tooltip',\n styleUrl: 'ch-tooltip.css',\n shadow: true,\n})\nexport class ChTooltip {\n @Element() private el: HTMLElement;\n\n private readonly fallbackId = `ch-tooltip-${++tooltipIds}`;\n\n /**\n * Which side of the trigger the bubble is placed on.\n */\n @Prop() placement: ChTooltipPlacement = 'top';\n\n // Hover and focus are tracked apart so that neither cancels the other: a\n // pointer passing over and away must not hide a tooltip whose trigger still\n // holds keyboard focus.\n @State() hovered = false;\n @State() focused = false;\n @State() dismissed = false;\n\n private get visible() {\n return (this.hovered || this.focused) && !this.dismissed;\n }\n\n componentDidLoad() {\n this.associate();\n }\n\n @Listen('mouseenter')\n handleMouseEnter() {\n this.hovered = true;\n this.dismissed = false;\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Listen('focusin')\n handleFocusIn() {\n this.focused = true;\n this.dismissed = false;\n }\n\n @Listen('focusout')\n handleFocusOut() {\n this.focused = false;\n }\n\n /**\n * Listens on the document because a tooltip opened by hovering leaves focus\n * wherever it was, so a host-scoped handler would never see the key.\n */\n @Listen('keydown', { target: 'document' })\n handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'Escape' && this.visible) {\n this.dismissed = true;\n }\n }\n\n private slotted(name: string) {\n return Array.from(this.el.children).find(child => child.getAttribute('slot') === name);\n }\n\n /**\n * Points the trigger at the text with `aria-describedby`. Re-run on\n * `slotchange` because a framework re-render can replace the slotted nodes\n * and take the attributes with them.\n */\n private associate = () => {\n const trigger = this.slotted('trigger');\n const content = this.slotted('content');\n if (!trigger || !content) {\n return;\n }\n if (!content.id) {\n content.id = this.fallbackId;\n }\n content.setAttribute('role', 'tooltip');\n trigger.setAttribute('aria-describedby', content.id);\n };\n\n render() {\n return (\n <Host>\n <span class=\"anchor\">\n <slot name=\"trigger\" onSlotchange={this.associate}></slot>\n <span class={{ 'bubble': true, [`bubble--${this.placement}`]: true, 'bubble--visible': this.visible }}>\n <slot name=\"content\" onSlotchange={this.associate}></slot>\n </span>\n </span>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,YAAY,GAAG,MAAM,CAAC,02CAA02C,CAAC;;ACIv4C,IAAI,UAAU,GAAG,CAAC;MAuBL,SAAS,GAAA,MAAA;;;;;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AI,CAAC,OAAO,IAAI,CAAC,OAAO,EAAE;YACxB;;AAEF,QAAA,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE;AACf,YAAA,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU;;AAE9B,QAAA,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC;QACvC,OAAO,CAAC,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE,CAAC;AACtD,KAAC;IAED,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,QAAQ,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAA,CAAS,EAC1D,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA,QAAA,EAAW,IAAI,CAAC,SAAS,CAAA,CAAE,GAAG,IAAI,EAAE,iBAAiB,EAAE,IAAI,CAAC,OAAO,EAAE,EAAA,EACnG,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAA,CAAS,CACrD,CACF,CACF;;;;;;;"}
1
+ {"version":3,"file":"ch-tooltip.entry.js","sources":["src/utils/overlay.ts","src/components/ch-tooltip/ch-tooltip.css?tag=ch-tooltip&encapsulation=shadow","src/components/ch-tooltip/ch-tooltip.tsx"],"sourcesContent":["export type ChOverlayPlacement = 'top' | 'bottom' | 'left' | 'right';\n\nexport interface ChOverlayPosition {\n /** Placement after flipping when the preferred side does not fit. */\n placement: ChOverlayPlacement;\n /** Offset from the anchor's top-left corner, in pixels. */\n top: number;\n left: number;\n}\n\nexport interface ChOverlayRect {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nexport interface ChOverlayViewport {\n top: number;\n left: number;\n width: number;\n height: number;\n}\n\nconst OPPOSITE: Record<ChOverlayPlacement, ChOverlayPlacement> = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left',\n};\n\nconst AXIS: Record<ChOverlayPlacement, 'vertical' | 'horizontal'> = {\n top: 'vertical',\n bottom: 'vertical',\n left: 'horizontal',\n right: 'horizontal',\n};\n\n/**\n * How far a placed surface overflows each viewport edge. Positive values are\n * overflow. Used both to pick a placement and to shift the surface back in.\n */\nexport function overflowOf(surface: ChOverlayRect, viewport: ChOverlayViewport) {\n return {\n top: viewport.top - surface.top,\n left: viewport.left - surface.left,\n bottom: surface.top + surface.height - (viewport.top + viewport.height),\n right: surface.left + surface.width - (viewport.left + viewport.width),\n };\n}\n\nfunction offsetFor(placement: ChOverlayPlacement, anchor: ChOverlayRect, surface: { width: number; height: number }, gap: number) {\n switch (placement) {\n case 'top':\n return {\n top: anchor.top - surface.height - gap,\n left: anchor.left + (anchor.width - surface.width) / 2,\n };\n case 'bottom':\n return {\n top: anchor.top + anchor.height + gap,\n left: anchor.left + (anchor.width - surface.width) / 2,\n };\n case 'left':\n return {\n top: anchor.top + (anchor.height - surface.height) / 2,\n left: anchor.left - surface.width - gap,\n };\n case 'right':\n return {\n top: anchor.top + (anchor.height - surface.height) / 2,\n left: anchor.left + anchor.width + gap,\n };\n }\n}\n\n/**\n * Picks the placement that overflows least and then shifts the surface along\n * the cross axis so it stays inside the viewport.\n *\n * The main-axis overflow is not compensated with a translate: a tooltip pinned\n * to the top edge would cover its own trigger. Flipping to the other side is\n * what keeps it readable, and the caller decides whether to accept the\n * remaining overflow.\n */\nexport function placeOverlay({\n anchor,\n surface,\n viewport,\n preferred,\n gap,\n}: {\n anchor: ChOverlayRect;\n surface: { width: number; height: number };\n viewport: ChOverlayViewport;\n preferred: ChOverlayPlacement;\n gap: number;\n}): ChOverlayPosition {\n const candidates: ChOverlayPlacement[] = [preferred, OPPOSITE[preferred]];\n let placement = preferred;\n let best = Number.POSITIVE_INFINITY;\n\n for (const candidate of candidates) {\n const { top, left } = offsetFor(candidate, anchor, surface, gap);\n const rect = { top, left, width: surface.width, height: surface.height };\n const overflow = overflowOf(rect, viewport);\n const main = AXIS[candidate] === 'vertical' ? clamp(overflow.top) + clamp(overflow.bottom) : clamp(overflow.left) + clamp(overflow.right);\n\n if (main < best) {\n best = main;\n placement = candidate;\n }\n }\n\n const { top, left } = offsetFor(placement, anchor, surface, gap);\n const rect = { top, left, width: surface.width, height: surface.height };\n const overflow = overflowOf(rect, viewport);\n\n const shifted = AXIS[placement] === 'vertical' ? { top, left: left + correction(overflow.left, overflow.right) } : { top: top + correction(overflow.top, overflow.bottom), left };\n\n return { placement, top: shifted.top, left: shifted.left };\n}\n\n/** Only real overflow counts: the side that fits contributes nothing. */\nfunction clamp(overflow: number) {\n return overflow > 0 ? overflow : 0;\n}\n\n/**\n * Turns the two overflows on an axis into a shift. `before` is the overflow on\n * the leading edge (top or left), `after` the one on the trailing edge; both\n * are positive when the surface spills past that edge.\n *\n * Pushing away from the leading edge moves the surface inwards, so the shift is\n * `+before`. The trailing edge needs the opposite sign. When both overflow the\n * surface is larger than the viewport: pin it to the leading edge and let\n * `max-width` stop the spill.\n */\nfunction correction(before: number, after: number) {\n if (before > 0) {\n return before;\n }\n if (after > 0) {\n return -after;\n }\n return 0;\n}\n",":host {\n display: inline-block;\n}\n\n.anchor {\n position: relative;\n display: inline-flex;\n}\n\n.bubble {\n position: absolute;\n z-index: var(--z-index-dropdown);\n width: max-content;\n max-width: min(16rem, calc(100vw - 2 * var(--spacing-2xl)));\n padding: var(--spacing-md) var(--spacing-2xl);\n border: var(--border-width) solid var(--border);\n border-radius: var(--radius-sm);\n background: var(--color-background-base);\n color: var(--text);\n font-family: var(--font-body);\n font-size: var(--typography-size-sm);\n line-height: 1.4;\n opacity: 0;\n visibility: hidden;\n transition:\n opacity var(--duration-fast) var(--easing-default),\n visibility var(--duration-fast) var(--easing-default);\n}\n\n.bubble--visible {\n opacity: 1;\n visibility: visible;\n}\n\n.bubble::before {\n content: '';\n position: absolute;\n}\n\n/*\n * Once the component has measured the anchor, the bubble is placed with fixed\n * coordinates. Viewport coordinates do not depend on ancestors' transforms or\n * overflow, so a tooltip inside a scrolling drawer or modal stays anchored.\n */\n.bubble--positioned {\n position: fixed;\n top: var(--ch-tooltip-offset-top);\n left: var(--ch-tooltip-offset-left);\n transform: none;\n margin: 0;\n}\n\n.bubble--top {\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-bottom: var(--spacing-md);\n}\n\n/* Stencil scopes each rule by doubling its classes, so a three-class selector\n is what actually outranks the single-class placement rules above. */\n.bubble.bubble--positioned.bubble--top,\n.bubble.bubble--positioned.bubble--bottom,\n.bubble.bubble--positioned.bubble--left,\n.bubble.bubble--positioned.bubble--right {\n inset: auto;\n top: var(--ch-tooltip-offset-top);\n left: var(--ch-tooltip-offset-left);\n right: auto;\n bottom: auto;\n transform: none;\n margin: 0;\n}\n\n.bubble--top::before {\n top: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--bottom {\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n margin-top: var(--spacing-md);\n}\n\n.bubble--bottom::before {\n bottom: 100%;\n left: 0;\n right: 0;\n height: var(--spacing-md);\n}\n\n.bubble--left {\n right: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-right: var(--spacing-md);\n}\n\n.bubble--left::before {\n left: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n.bubble--right {\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n margin-left: var(--spacing-md);\n}\n\n.bubble--right::before {\n right: 100%;\n top: 0;\n bottom: 0;\n width: var(--spacing-md);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .bubble {\n transition: none;\n }\n}\n","import { Component, Element, forceUpdate, Host, Listen, Prop, State, h } from '@stencil/core';\n\nimport { placeOverlay, type ChOverlayPlacement } from '../../utils/overlay';\n\nexport type ChTooltipPlacement = ChOverlayPlacement;\n\nlet tooltipIds = 0;\n\n/** Space between the trigger and the bubble, matching `--spacing-md`. */\nconst GAP = 8;\n\n/**\n * Short help text shown on hover and on focus.\n *\n * Both the trigger and the text come from the consumer's light DOM through\n * named slots. That is what makes the accessible association work: an\n * `aria-describedby` IDREF only resolves within a single tree, and slotted\n * nodes stay in the document tree even though they render inside the shadow\n * root. Keeping the text in the shadow root instead would need a reference\n * pointing into a shadow tree, which the platform does not allow — element\n * reflection only points outwards, and `referenceTarget` is not available yet.\n *\n * The trigger has to be a natively focusable element (`<button>`, `<a>`,\n * `<input>`). A chucao component such as `ch-button` will not be described,\n * because `aria-*` set on a custom element host does not reach the native\n * element inside it — see the discussion in issue #47.\n *\n * Positioning is measured, not purely CSS: `placement` is the preferred side,\n * and the bubble flips to the opposite side when the preferred one does not\n * fit, then shifts along the other axis to stay inside the viewport. It\n * re-measures on scroll, resize and visual-viewport changes, which is what\n * keeps it correct inside a scrolling modal or drawer and when a mobile\n * keyboard shrinks the visible area.\n */\n@Component({\n tag: 'ch-tooltip',\n styleUrl: 'ch-tooltip.css',\n shadow: true,\n})\nexport class ChTooltip {\n @Element() private el: HTMLElement;\n\n private readonly fallbackId = `ch-tooltip-${++tooltipIds}`;\n\n private bubbleEl?: HTMLElement;\n\n private cleanup?: () => void;\n\n /**\n * The side the bubble is placed on. It is a preference: when that side has no\n * room the bubble flips to the opposite one.\n */\n @Prop() placement: ChTooltipPlacement = 'top';\n\n // Hover and focus are tracked apart so that neither cancels the other: a\n // pointer passing over and away must not hide a tooltip whose trigger still\n // holds keyboard focus.\n @State() hovered = false;\n @State() focused = false;\n @State() dismissed = false;\n\n /** The placement actually used, which may differ from the prop after a flip. */\n @State() resolvedPlacement?: ChTooltipPlacement;\n\n /** Offset applied to the bubble once it has been measured. */\n private offset?: { top: number; left: number };\n\n private get visible() {\n return (this.hovered || this.focused) && !this.dismissed;\n }\n\n componentDidLoad() {\n this.associate();\n }\n\n connectedCallback() {\n this.watchViewport();\n }\n\n disconnectedCallback() {\n this.cleanup?.();\n }\n\n @Listen('mouseenter')\n handleMouseEnter() {\n this.hovered = true;\n this.dismissed = false;\n this.position();\n }\n\n @Listen('mouseleave')\n handleMouseLeave() {\n this.hovered = false;\n }\n\n @Listen('focusin')\n handleFocusIn() {\n this.focused = true;\n this.dismissed = false;\n this.position();\n }\n\n @Listen('focusout')\n handleFocusOut() {\n this.focused = false;\n }\n\n /**\n * Listens on the document because a tooltip opened by hovering leaves focus\n * wherever it was, so a host-scoped handler would never see the key.\n *\n * Only the outermost Escape handler is stopped from propagating, so a\n * tooltip inside an open modal closes itself and leaves the modal open.\n */\n @Listen('keydown', { target: 'document' })\n handleKeyDown(event: KeyboardEvent) {\n if (event.key === 'Escape' && this.visible && !event.defaultPrevented) {\n event.preventDefault();\n this.dismissed = true;\n }\n }\n\n /** Cheap guard so scroll frames do not measure while nothing is shown. */\n @Listen('scroll', { target: 'window', capture: true, passive: true })\n handleScroll() {\n if (this.visible && this.offset) {\n this.position();\n }\n }\n\n @Listen('resize', { target: 'window', passive: true })\n handleResize() {\n this.position();\n }\n\n private watchViewport() {\n if (typeof window === 'undefined') {\n return;\n }\n const viewport = window.visualViewport;\n if (!viewport || this.cleanup) {\n return;\n }\n const update = () => this.position();\n viewport.addEventListener('resize', update);\n viewport.addEventListener('scroll', update);\n this.cleanup = () => {\n viewport.removeEventListener('resize', update);\n viewport.removeEventListener('scroll', update);\n };\n }\n\n private slotted(name: string) {\n return Array.from(this.el.children).find(child => child.getAttribute('slot') === name);\n }\n\n /**\n * Measures the anchor and the bubble and stores the offset that keeps the\n * bubble inside the viewport. Nothing is measured before the bubble has a\n * box to measure, so the pre-paint render uses plain CSS.\n */\n private position() {\n if (typeof window === 'undefined') {\n return;\n }\n const bubble = this.bubbleEl ?? (this.bubbleEl = this.el.shadowRoot?.querySelector<HTMLElement>('.bubble') ?? undefined);\n if (!bubble || bubble.offsetWidth === 0) {\n return;\n }\n\n const anchorRect = (this.slotted('trigger') as HTMLElement | undefined)?.getBoundingClientRect?.();\n if (!anchorRect) {\n return;\n }\n\n const surface = {\n width: bubble.offsetWidth + horizontalMargin(bubble),\n height: bubble.offsetHeight,\n };\n const viewport = window.visualViewport;\n\n const { placement, top, left } = placeOverlay({\n anchor: { top: anchorRect.top, left: anchorRect.left, width: anchorRect.width, height: anchorRect.height },\n surface,\n viewport: viewport\n ? { top: viewport.offsetTop, left: viewport.offsetLeft, width: viewport.width, height: viewport.height }\n : { top: 0, left: 0, width: window.innerWidth, height: window.innerHeight },\n preferred: this.placement,\n gap: GAP,\n });\n\n const current = this.offset;\n const unchanged = current?.top === top && current?.left === left && this.resolvedPlacement === placement;\n this.resolvedPlacement = placement;\n this.offset = { top, left };\n if (!unchanged) {\n forceUpdate(this);\n }\n }\n\n /**\n * Points the trigger at the text with `aria-describedby`. Re-run on\n * `slotchange` because a framework re-render can replace the slotted nodes\n * and take the attributes with them.\n */\n private associate = () => {\n const trigger = this.slotted('trigger');\n const content = this.slotted('content');\n if (!trigger || !content) {\n return;\n }\n if (!content.id) {\n content.id = this.fallbackId;\n }\n content.setAttribute('role', 'tooltip');\n trigger.setAttribute('aria-describedby', content.id);\n };\n\n render() {\n const { offset } = this;\n\n return (\n <Host>\n <span class=\"anchor\">\n {/* Pre-measure render uses the preferred side so the bubble never\n jumps from the wrong edge on its first frame. */}\n <slot name=\"trigger\" onSlotchange={this.associate}></slot>\n <span\n ref={el => (this.bubbleEl = el)}\n style={{\n '--ch-tooltip-offset-top': offset ? `${offset.top}px` : null,\n '--ch-tooltip-offset-left': offset ? `${offset.left}px` : null,\n }}\n class={{\n 'bubble': true,\n 'bubble--positioned': Boolean(this.offset),\n [`bubble--${this.resolvedPlacement ?? this.placement}`]: true,\n 'bubble--visible': this.visible,\n }}\n >\n <slot name=\"content\" onSlotchange={this.associate}></slot>\n </span>\n </span>\n </Host>\n );\n }\n}\n\nfunction horizontalMargin(el: HTMLElement) {\n const style = getComputedStyle(el);\n return (parseFloat(style.marginLeft) || 0) + (parseFloat(style.marginRight) || 0);\n}\n"],"names":[],"mappings":";;AAwBA,MAAM,QAAQ,GAAmD;AAC/D,IAAA,GAAG,EAAE,QAAQ;AACb,IAAA,MAAM,EAAE,KAAK;AACb,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,KAAK,EAAE,MAAM;CACd;AAED,MAAM,IAAI,GAA0D;AAClE,IAAA,GAAG,EAAE,UAAU;AACf,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,KAAK,EAAE,YAAY;CACpB;AAED;;;AAGG;AACG,SAAU,UAAU,CAAC,OAAsB,EAAE,QAA2B,EAAA;IAC5E,OAAO;AACL,QAAA,GAAG,EAAE,QAAQ,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG;AAC/B,QAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI;AAClC,QAAA,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,MAAM,IAAI,QAAQ,CAAC,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC;AACvE,QAAA,KAAK,EAAE,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC;KACvE;AACH;AAEA,SAAS,SAAS,CAAC,SAA6B,EAAE,MAAqB,EAAE,OAA0C,EAAE,GAAW,EAAA;IAC9H,QAAQ,SAAS;AACf,QAAA,KAAK,KAAK;YACR,OAAO;gBACL,GAAG,EAAE,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,GAAG;AACtC,gBAAA,IAAI,EAAE,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK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AAC,SAAS,EAAA,CAAS,EAC1D,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,GAAG,EAAE,EAAE,KAAK,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,EAC/B,KAAK,EAAE;AACL,gBAAA,yBAAyB,EAAE,MAAM,GAAG,CAAA,EAAG,MAAM,CAAC,GAAG,CAAA,EAAA,CAAI,GAAG,IAAI;AAC5D,gBAAA,0BAA0B,EAAE,MAAM,GAAG,CAAA,EAAG,MAAM,CAAC,IAAI,CAAA,EAAA,CAAI,GAAG,IAAI;AAC/D,aAAA,EACD,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,IAAI;AACd,gBAAA,oBAAoB,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC1C,CAAC,CAAA,QAAA,EAAW,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,SAAS,CAAA,CAAE,GAAG,IAAI;gBAC7D,iBAAiB,EAAE,IAAI,CAAC,OAAO;aAChC,EAAA,EAED,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAA,CAAS,CACrD,CACF,CACF;;;AAKb,SAAS,gBAAgB,CAAC,EAAe,EAAA;AACvC,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,EAAE,CAAC;IAClC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACnF;;;;;"}
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-DVKZbUp9.js';
2
- export { s as setNonce } from './index-DVKZbUp9.js';
1
+ import { p as promiseResolve, g as globalScripts, b as bootstrapLazy } from './index-CIV5Gg1o.js';
2
+ export { s as setNonce } from './index-CIV5Gg1o.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v4.45.1 | MIT Licensed | https://stenciljs.com
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["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-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["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"],"size":[1]},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-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["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"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[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}]}],[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}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]]], options);
19
+ return bootstrapLazy([["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-cluster",[[769,"ch-cluster",{"gap":[1],"align":[1],"justify":[1],"wrap":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-drawer",[[769,"ch-drawer",{"open":[1028],"side":[1],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-emoji",[[513,"ch-emoji",{"name":[1],"alt":[1],"size":[1],"extIndex":[32],"loaded":[32]},null,{"name":[{"handleNameChange":0}]}]]],["ch-empty-state",[[769,"ch-empty-state",{"title":[1],"description":[1],"size":[1]}]]],["ch-grid",[[769,"ch-grid",{"columns":[1],"gap":[1],"minItemWidth":[1,"min-item-width"]}]]],["ch-icon",[[513,"ch-icon",{"name":[1],"size":[1],"label":[1]}]]],["ch-icon-button",[[513,"ch-icon-button",{"name":[1],"label":[1],"size":[1],"type":[1],"disabled":[4],"loading":[4]}]]],["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"],"size":[1]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-page-header",[[769,"ch-page-header",{"title":[1],"headingLevel":[1,"heading-level"],"eyebrow":[1],"description":[1],"actionsStacked":[4,"actions-stacked"]}]]],["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-segmented-control",[[577,"ch-segmented-control",{"label":[1],"options":[16],"value":[1025],"size":[1],"name":[513],"disabled":[516],"required":[516],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}]}]]],["ch-skeleton",[[513,"ch-skeleton",{"width":[1],"height":[1],"shape":[1],"count":[2],"animated":[4]}]]],["ch-stack",[[769,"ch-stack",{"gap":[1],"align":[1],"justify":[1]}]]],["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],"resolvedPlacement":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"],[11,"scroll","handleScroll"],[9,"resize","handleResize"]]]]],["ch-alert_8",[[769,"ch-button",{"variant":[1],"size":[1],"disabled":[4],"loading":[4],"href":[1],"target":[1],"label":[1]}],[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"],"statusCue":[4,"status-cue"]}],[769,"ch-badge",{"variant":[1],"statusCue":[4,"status-cue"]}],[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}]}],[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}]}],[513,"ch-spinner",{"size":[1],"label":[1]}]]]], options);
20
20
  });
21
21
  //# sourceMappingURL=chucao.js.map
22
22
 
@@ -0,0 +1,86 @@
1
+ const chIcons = {
2
+ alert: [
3
+ { tag: 'path', attrs: { d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' } },
4
+ { tag: 'path', attrs: { d: 'M12 9v4' } },
5
+ { tag: 'path', attrs: { d: 'M12 17h.01' } },
6
+ ],
7
+ arrowRight: [
8
+ { tag: 'path', attrs: { d: 'M5 12h14' } },
9
+ { tag: 'path', attrs: { d: 'm12 5 7 7-7 7' } },
10
+ ],
11
+ check: [{ tag: 'path', attrs: { d: 'M20 6 9 17l-5-5' } }],
12
+ chevronDown: [{ tag: 'path', attrs: { d: 'm6 9 6 6 6-6' } }],
13
+ chevronRight: [{ tag: 'path', attrs: { d: 'm9 18 6-6-6-6' } }],
14
+ close: [
15
+ { tag: 'path', attrs: { d: 'M18 6 6 18' } },
16
+ { tag: 'path', attrs: { d: 'm6 6 12 12' } },
17
+ ],
18
+ copy: [
19
+ { tag: 'rect', attrs: { width: '14', height: '14', x: '8', y: '8', rx: '2', ry: '2' } },
20
+ { tag: 'path', attrs: { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2' } },
21
+ ],
22
+ delete: [
23
+ { tag: 'path', attrs: { d: 'M10 11v6' } },
24
+ { tag: 'path', attrs: { d: 'M14 11v6' } },
25
+ { tag: 'path', attrs: { d: 'M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6' } },
26
+ { tag: 'path', attrs: { d: 'M3 6h18' } },
27
+ { tag: 'path', attrs: { d: 'M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2' } },
28
+ ],
29
+ download: [
30
+ { tag: 'path', attrs: { d: 'M12 15V3' } },
31
+ { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },
32
+ { tag: 'path', attrs: { d: 'm7 10 5 5 5-5' } },
33
+ ],
34
+ error: [
35
+ { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
36
+ { tag: 'line', attrs: {} },
37
+ { tag: 'line', attrs: {} },
38
+ ],
39
+ externalLink: [
40
+ { tag: 'path', attrs: { d: 'M15 3h6v6' } },
41
+ { tag: 'path', attrs: { d: 'M10 14 21 3' } },
42
+ { tag: 'path', attrs: { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' } },
43
+ ],
44
+ info: [
45
+ { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
46
+ { tag: 'path', attrs: { d: 'M12 16v-4' } },
47
+ { tag: 'path', attrs: { d: 'M12 8h.01' } },
48
+ ],
49
+ menu: [
50
+ { tag: 'path', attrs: { d: 'M4 5h16' } },
51
+ { tag: 'path', attrs: { d: 'M4 12h16' } },
52
+ { tag: 'path', attrs: { d: 'M4 19h16' } },
53
+ ],
54
+ plus: [
55
+ { tag: 'path', attrs: { d: 'M5 12h14' } },
56
+ { tag: 'path', attrs: { d: 'M12 5v14' } },
57
+ ],
58
+ search: [
59
+ { tag: 'path', attrs: { d: 'm21 21-4.34-4.34' } },
60
+ { tag: 'circle', attrs: { cx: '11', cy: '11', r: '8' } },
61
+ ],
62
+ spinner: [
63
+ { tag: 'path', attrs: { d: 'M12 2v4' } },
64
+ { tag: 'path', attrs: { d: 'm16.2 7.8 2.9-2.9' } },
65
+ { tag: 'path', attrs: { d: 'M18 12h4' } },
66
+ { tag: 'path', attrs: { d: 'm16.2 16.2 2.9 2.9' } },
67
+ { tag: 'path', attrs: { d: 'M12 18v4' } },
68
+ { tag: 'path', attrs: { d: 'm4.9 19.1 2.9-2.9' } },
69
+ { tag: 'path', attrs: { d: 'M2 12h4' } },
70
+ { tag: 'path', attrs: { d: 'm4.9 4.9 2.9 2.9' } },
71
+ ],
72
+ success: [
73
+ { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },
74
+ { tag: 'path', attrs: { d: 'm16 9-5.5 5.5L8 12' } },
75
+ ],
76
+ upload: [
77
+ { tag: 'path', attrs: { d: 'M12 3v12' } },
78
+ { tag: 'path', attrs: { d: 'm17 8-5-5-5 5' } },
79
+ { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },
80
+ ],
81
+ };
82
+
83
+ export { chIcons as c };
84
+ //# sourceMappingURL=icons-CnivhwvG.js.map
85
+
86
+ //# sourceMappingURL=icons-CnivhwvG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons-CnivhwvG.js","sources":["src/utils/icons.ts"],"sourcesContent":["/**\n * Icon geometry, copied from Lucide v1.82.0 (https://lucide.dev), ISC licensed.\n *\n * Only the shapes are vendored, not the package: a dependency would ship a\n * whole icon set to consumers who need six of them, and the set has to be\n * frozen so an upstream rename cannot silently break a public `name` value.\n * Each entry keeps Lucide's 24x24 viewBox, so stroke width stays consistent\n * across sizes.\n */\nexport type ChIconName =\n | 'alert'\n | 'arrowRight'\n | 'check'\n | 'chevronDown'\n | 'chevronRight'\n | 'close'\n | 'copy'\n | 'delete'\n | 'download'\n | 'error'\n | 'externalLink'\n | 'info'\n | 'menu'\n | 'plus'\n | 'search'\n | 'spinner'\n | 'success'\n | 'upload';\n\nexport interface ChIconShape {\n tag: 'path' | 'circle' | 'rect' | 'line' | 'polyline' | 'polygon';\n attrs: Record<string, string>;\n}\n\nexport const chIcons: Record<ChIconName, ChIconShape[]> = {\n alert: [\n { tag: 'path', attrs: { d: 'm21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3' } },\n { tag: 'path', attrs: { d: 'M12 9v4' } },\n { tag: 'path', attrs: { d: 'M12 17h.01' } },\n ],\n arrowRight: [\n { tag: 'path', attrs: { d: 'M5 12h14' } },\n { tag: 'path', attrs: { d: 'm12 5 7 7-7 7' } },\n ],\n check: [{ tag: 'path', attrs: { d: 'M20 6 9 17l-5-5' } }],\n chevronDown: [{ tag: 'path', attrs: { d: 'm6 9 6 6 6-6' } }],\n chevronRight: [{ tag: 'path', attrs: { d: 'm9 18 6-6-6-6' } }],\n close: [\n { tag: 'path', attrs: { d: 'M18 6 6 18' } },\n { tag: 'path', attrs: { d: 'm6 6 12 12' } },\n ],\n copy: [\n { tag: 'rect', attrs: { width: '14', height: '14', x: '8', y: '8', rx: '2', ry: '2' } },\n { tag: 'path', attrs: { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2' } },\n ],\n delete: [\n { tag: 'path', attrs: { d: 'M10 11v6' } },\n { tag: 'path', attrs: { d: 'M14 11v6' } },\n { tag: 'path', attrs: { d: 'M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6' } },\n { tag: 'path', attrs: { d: 'M3 6h18' } },\n { tag: 'path', attrs: { d: 'M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2' } },\n ],\n download: [\n { tag: 'path', attrs: { d: 'M12 15V3' } },\n { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },\n { tag: 'path', attrs: { d: 'm7 10 5 5 5-5' } },\n ],\n error: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'line', attrs: {} },\n { tag: 'line', attrs: {} },\n ],\n externalLink: [\n { tag: 'path', attrs: { d: 'M15 3h6v6' } },\n { tag: 'path', attrs: { d: 'M10 14 21 3' } },\n { tag: 'path', attrs: { d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' } },\n ],\n info: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'path', attrs: { d: 'M12 16v-4' } },\n { tag: 'path', attrs: { d: 'M12 8h.01' } },\n ],\n menu: [\n { tag: 'path', attrs: { d: 'M4 5h16' } },\n { tag: 'path', attrs: { d: 'M4 12h16' } },\n { tag: 'path', attrs: { d: 'M4 19h16' } },\n ],\n plus: [\n { tag: 'path', attrs: { d: 'M5 12h14' } },\n { tag: 'path', attrs: { d: 'M12 5v14' } },\n ],\n search: [\n { tag: 'path', attrs: { d: 'm21 21-4.34-4.34' } },\n { tag: 'circle', attrs: { cx: '11', cy: '11', r: '8' } },\n ],\n spinner: [\n { tag: 'path', attrs: { d: 'M12 2v4' } },\n { tag: 'path', attrs: { d: 'm16.2 7.8 2.9-2.9' } },\n { tag: 'path', attrs: { d: 'M18 12h4' } },\n { tag: 'path', attrs: { d: 'm16.2 16.2 2.9 2.9' } },\n { tag: 'path', attrs: { d: 'M12 18v4' } },\n { tag: 'path', attrs: { d: 'm4.9 19.1 2.9-2.9' } },\n { tag: 'path', attrs: { d: 'M2 12h4' } },\n { tag: 'path', attrs: { d: 'm4.9 4.9 2.9 2.9' } },\n ],\n success: [\n { tag: 'circle', attrs: { cx: '12', cy: '12', r: '10' } },\n { tag: 'path', attrs: { d: 'm16 9-5.5 5.5L8 12' } },\n ],\n upload: [\n { tag: 'path', attrs: { d: 'M12 3v12' } },\n { tag: 'path', attrs: { d: 'm17 8-5-5-5 5' } },\n { tag: 'path', attrs: { d: 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' } },\n ],\n};\n"],"names":[],"mappings":"AAkCO,MAAM,OAAO,GAAsC;AACxD,IAAA,KAAK,EAAE;QACL,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,0EAA0E,EAAE,EAAE;QACzG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE;QACxC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE;AAC5C,KAAA;AACD,IAAA,UAAU,EAAE;QACV,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE;QACzC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;AAC/C,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,iBAAiB,EAAE,EAAE,CAAC;AACzD,IAAA,WAAW,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC;AAC5D,IAAA,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE,CAAC;AAC9D,IAAA,KAAK,EAAE;QACL,EAAE,GAAG,EAAE,MAAM,E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G,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACzD,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,oBAAoB,EAAE,EAAE;AACpD,KAAA;AACD,IAAA,MAAM,EAAE;QACN,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE;QACzC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,eAAe,EAAE,EAAE;QAC9C,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,2CAA2C,EAAE,EAAE;AAC3E,KAAA;;;;;"}
@@ -2,12 +2,16 @@ const NAMESPACE = 'chucao';
2
2
  const BUILD = /* chucao */ { hotModuleReplacement: false, lazyLoad: true, propChangeCallback: true, state: true, updatable: true};
3
3
 
4
4
  const globalScripts = () => {};
5
- const globalStyles = ":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-scrim-default:rgba(0, 0, 0, 0.6);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--duration-spin:800ms;--easing-default:ease;--easing-linear:linear;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";
5
+ const globalStyles = ":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-scrim-default:rgba(0, 0, 0, 0.6);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-accent-text:#06210f;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--typography-size-xs:0.68rem;--typography-size-sm:0.85rem;--typography-size-md:1rem;--typography-size-lg:1.25rem;--typography-size-xl:1.5rem;--typography-weight-regular:400;--typography-weight-semibold:600;--typography-weight-bold:700;--typography-tracking-badge:0.03em;--spacing-2xs:0.18rem;--spacing-xs:0.25rem;--spacing-sm:0.35rem;--spacing-md:0.5rem;--spacing-lg:0.6rem;--spacing-xl:0.8rem;--spacing-2xl:1rem;--spacing-3xl:1.25rem;--spacing-4xl:1.35rem;--spacing-5xl:1.5rem;--spacing-6xl:2rem;--spacing-shift:2px;--spacing-elevate:1px;--radius-sm:6px;--radius-md:8px;--radius-pill:999px;--border-width:1px;--border-accent-bar:3px;--shadow-focus-ring:0 0 0 3px rgba(45, 212, 191, 0.12);--shadow-card-hover:0 4px 20px rgba(45, 212, 191, 0.06);--effect-blur:10px;--duration-fast:150ms;--duration-normal:200ms;--duration-spin:800ms;--easing-default:ease;--easing-linear:linear;--focus-outline-width:2px;--focus-outline-offset:2px;--opacity-disabled:0.5;--z-index-base:0;--z-index-dropdown:100;--z-index-modal:1000;--layout-max-width:68rem;--icon-size-sm:16px;--icon-size-md:20px;--icon-size-lg:24px;--icon-stroke:2px}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('https://static.devschile.cl/chucao/fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--radius-sm)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:var(--spacing-md)}.ch-gap-md{gap:var(--spacing-2xl)}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";
6
6
 
7
7
  /*
8
8
  Stencil Client Platform v4.45.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
+
12
+ // src/utils/constants.ts
13
+ var SVG_NS = "http://www.w3.org/2000/svg";
14
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
11
15
  var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
12
16
  PrimitiveType2["Undefined"] = "undefined";
13
17
  PrimitiveType2["Null"] = "null";
@@ -569,6 +573,13 @@ var h = (nodeName, vnodeData, ...children) => {
569
573
  }
570
574
  }
571
575
  }
576
+ if (typeof nodeName === "function") {
577
+ return nodeName(
578
+ vnodeData === null ? {} : vnodeData,
579
+ vNodeChildren,
580
+ vdomFnUtils
581
+ );
582
+ }
572
583
  const vnode = newVNode(nodeName, null);
573
584
  vnode.$attrs$ = vnodeData;
574
585
  if (vNodeChildren.length > 0) {
@@ -598,6 +609,36 @@ var newVNode = (tag, text) => {
598
609
  };
599
610
  var Host = {};
600
611
  var isHost = (node) => node && node.$tag$ === Host;
612
+ var vdomFnUtils = {
613
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
614
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
615
+ };
616
+ var convertToPublic = (node) => ({
617
+ vattrs: node.$attrs$,
618
+ vchildren: node.$children$,
619
+ vkey: node.$key$,
620
+ vname: node.$name$,
621
+ vtag: node.$tag$,
622
+ vtext: node.$text$
623
+ });
624
+ var convertToPrivate = (node) => {
625
+ if (typeof node.vtag === "function") {
626
+ const vnodeData = { ...node.vattrs };
627
+ if (node.vkey) {
628
+ vnodeData.key = node.vkey;
629
+ }
630
+ if (node.vname) {
631
+ vnodeData.name = node.vname;
632
+ }
633
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
634
+ }
635
+ const vnode = newVNode(node.vtag, node.vtext);
636
+ vnode.$attrs$ = node.vattrs;
637
+ vnode.$children$ = node.vchildren;
638
+ vnode.$key$ = node.vkey;
639
+ vnode.$name$ = node.vname;
640
+ return vnode;
641
+ };
601
642
 
602
643
  // src/runtime/client-hydrate.ts
603
644
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
@@ -1370,12 +1411,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1370
1411
  if (newVNode2.$text$ != null) {
1371
1412
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1372
1413
  } else {
1414
+ if (!isSvgMode) {
1415
+ isSvgMode = newVNode2.$tag$ === "svg";
1416
+ }
1373
1417
  if (!win.document) {
1374
1418
  throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
1375
1419
  }
1376
- elm = newVNode2.$elm$ = win.document.createElement(
1420
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1421
+ isSvgMode ? SVG_NS : HTML_NS,
1377
1422
  newVNode2.$tag$
1378
- );
1423
+ ) ;
1424
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1425
+ isSvgMode = false;
1426
+ }
1379
1427
  {
1380
1428
  updateElement(null, newVNode2, isSvgMode);
1381
1429
  }
@@ -1388,6 +1436,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1388
1436
  }
1389
1437
  }
1390
1438
  }
1439
+ {
1440
+ if (newVNode2.$tag$ === "svg") {
1441
+ isSvgMode = false;
1442
+ } else if (elm.tagName === "foreignObject") {
1443
+ isSvgMode = true;
1444
+ }
1445
+ }
1391
1446
  }
1392
1447
  elm["s-hn"] = hostTagName;
1393
1448
  return elm;
@@ -1546,6 +1601,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1546
1601
  const tag = newVNode2.$tag$;
1547
1602
  const text = newVNode2.$text$;
1548
1603
  if (text == null) {
1604
+ {
1605
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1606
+ }
1549
1607
  {
1550
1608
  if (tag === "slot" && !useNativeShadowDom) {
1551
1609
  if (oldVNode.$name$ !== newVNode2.$name$) {
@@ -1570,6 +1628,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1570
1628
  } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
1571
1629
  newVNode2.$children$ = oldChildren;
1572
1630
  }
1631
+ if (isSvgMode && tag === "svg") {
1632
+ isSvgMode = false;
1633
+ }
1573
1634
  } else if (oldVNode.$text$ !== text) {
1574
1635
  elm.data = text;
1575
1636
  }
@@ -1781,6 +1842,17 @@ var postUpdateComponent = (hostRef) => {
1781
1842
  hostRef.$flags$ &= -517;
1782
1843
  }
1783
1844
  };
1845
+ var forceUpdate = (ref) => {
1846
+ var _a;
1847
+ {
1848
+ const hostRef = getHostRef(ref);
1849
+ const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
1850
+ if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1851
+ scheduleUpdate(hostRef, false);
1852
+ }
1853
+ return isConnected;
1854
+ }
1855
+ };
1784
1856
  var appDidLoad = (who) => {
1785
1857
  var _a;
1786
1858
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
@@ -2405,6 +2477,9 @@ var getHostListenerTarget = (doc, elm, flags) => {
2405
2477
  if (flags & 4 /* TargetDocument */) {
2406
2478
  return doc;
2407
2479
  }
2480
+ if (flags & 8 /* TargetWindow */) {
2481
+ return win;
2482
+ }
2408
2483
  return elm;
2409
2484
  };
2410
2485
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2418,7 +2493,7 @@ function transformTag(tag) {
2418
2493
  return tag;
2419
2494
  }
2420
2495
 
2421
- export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2422
- //# sourceMappingURL=index-DVKZbUp9.js.map
2496
+ export { Host as H, getElement as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2497
+ //# sourceMappingURL=index-CIV5Gg1o.js.map
2423
2498
 
2424
- //# sourceMappingURL=index-DVKZbUp9.js.map
2499
+ //# sourceMappingURL=index-CIV5Gg1o.js.map