@devschile/chucao 1.6.0 → 1.8.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 (155) hide show
  1. package/README.md +15 -12
  2. package/dist/chucao/chucao.css +1 -1
  3. package/dist/chucao/chucao.esm.js +1 -1
  4. package/dist/chucao/chucao.esm.js.map +1 -1
  5. package/dist/chucao/index.esm.js +1 -1
  6. package/dist/chucao/index.esm.js.map +1 -1
  7. package/dist/chucao/{p-175aee94.entry.js → p-13ab5f9a.entry.js} +2 -2
  8. package/dist/chucao/{p-dde82d7d.entry.js → p-1cc7042e.entry.js} +2 -2
  9. package/dist/chucao/p-23c5220b.entry.js +2 -0
  10. package/dist/chucao/p-23c5220b.entry.js.map +1 -0
  11. package/dist/chucao/p-2d7e81b2.entry.js +2 -0
  12. package/dist/chucao/p-2d7e81b2.entry.js.map +1 -0
  13. package/dist/chucao/{p-af2c57b5.entry.js → p-421cda05.entry.js} +2 -2
  14. package/dist/chucao/p-Bvah_WQV.js +3 -0
  15. package/dist/chucao/p-Bvah_WQV.js.map +1 -0
  16. package/dist/chucao/{p-d75eeeea.entry.js → p-c16b18b7.entry.js} +2 -2
  17. package/dist/chucao/p-cbb2b478.entry.js +2 -0
  18. package/dist/chucao/p-cbb2b478.entry.js.map +1 -0
  19. package/dist/chucao/{p-fcc70c8d.entry.js → p-cfb6db53.entry.js} +2 -2
  20. package/dist/chucao/p-df73f786.entry.js +2 -0
  21. package/dist/chucao/{p-85a49fd7.entry.js → p-e8fe65bb.entry.js} +2 -2
  22. package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/{ch-badge_6.cjs.entry.js → ch-alert_8.cjs.entry.js} +73 -9
  24. package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -0
  25. package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
  26. package/dist/cjs/ch-divider.cjs.entry.js +2 -2
  27. package/dist/cjs/ch-link.cjs.entry.js +1 -1
  28. package/dist/cjs/ch-modal.cjs.entry.js +167 -0
  29. package/dist/cjs/ch-modal.cjs.entry.js.map +1 -0
  30. package/dist/cjs/ch-radio.cjs.entry.js +2 -2
  31. package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
  32. package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
  33. package/dist/cjs/ch-tooltip.cjs.entry.js +82 -0
  34. package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -0
  35. package/dist/cjs/chucao.cjs.js +3 -3
  36. package/dist/cjs/chucao.cjs.js.map +1 -1
  37. package/dist/cjs/{index-CiYvuUBV.js → index-DMeDkSQU.js} +183 -11
  38. package/dist/cjs/index-DMeDkSQU.js.map +1 -0
  39. package/dist/cjs/index.cjs.js +12 -1
  40. package/dist/cjs/index.cjs.js.map +1 -1
  41. package/dist/cjs/loader.cjs.js +2 -2
  42. package/dist/collection/collection-manifest.json +5 -1
  43. package/dist/collection/components/ch-alert/ch-alert.css +77 -0
  44. package/dist/collection/components/ch-alert/ch-alert.js +118 -0
  45. package/dist/collection/components/ch-alert/ch-alert.js.map +1 -0
  46. package/dist/collection/components/ch-badge/ch-badge.js +1 -1
  47. package/dist/collection/components/ch-button/ch-button.js +1 -1
  48. package/dist/collection/components/ch-button/ch-button.js.map +1 -1
  49. package/dist/collection/components/ch-card/ch-card.js +1 -1
  50. package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
  51. package/dist/collection/components/ch-divider/ch-divider.js +1 -1
  52. package/dist/collection/components/ch-input/ch-input.js +1 -1
  53. package/dist/collection/components/ch-modal/ch-modal.css +69 -0
  54. package/dist/collection/components/ch-modal/ch-modal.js +278 -0
  55. package/dist/collection/components/ch-modal/ch-modal.js.map +1 -0
  56. package/dist/collection/components/ch-radio/ch-radio.js +1 -1
  57. package/dist/collection/components/ch-select/ch-select.js +1 -1
  58. package/dist/collection/components/ch-spinner/ch-spinner.css +39 -0
  59. package/dist/collection/components/ch-spinner/ch-spinner.js +90 -0
  60. package/dist/collection/components/ch-spinner/ch-spinner.js.map +1 -0
  61. package/dist/collection/components/ch-switch/ch-switch.js +1 -1
  62. package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
  63. package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
  64. package/dist/collection/components/ch-tooltip/ch-tooltip.css +100 -0
  65. package/dist/collection/components/ch-tooltip/ch-tooltip.js +168 -0
  66. package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -0
  67. package/dist/collection/tokens/tokens.js +9 -1
  68. package/dist/collection/tokens/tokens.js.map +1 -1
  69. package/dist/collection/tokens/types.js.map +1 -1
  70. package/dist/components/ch-accordion.js +1 -1
  71. package/dist/components/ch-alert.d.ts +11 -0
  72. package/dist/components/ch-alert.js +2 -0
  73. package/dist/components/ch-alert.js.map +1 -0
  74. package/dist/components/ch-badge.js +1 -1
  75. package/dist/components/ch-button.js +1 -1
  76. package/dist/components/ch-button.js.map +1 -1
  77. package/dist/components/ch-card.js +1 -1
  78. package/dist/components/ch-card.js.map +1 -1
  79. package/dist/components/ch-checkbox.js +1 -1
  80. package/dist/components/ch-divider.js +1 -1
  81. package/dist/components/ch-input.js +1 -1
  82. package/dist/components/ch-link.js +1 -1
  83. package/dist/components/ch-modal.d.ts +11 -0
  84. package/dist/components/ch-modal.js +2 -0
  85. package/dist/components/ch-modal.js.map +1 -0
  86. package/dist/components/ch-radio.js +1 -1
  87. package/dist/components/ch-select.js +1 -1
  88. package/dist/components/ch-spinner.d.ts +11 -0
  89. package/dist/components/ch-spinner.js +2 -0
  90. package/dist/components/ch-spinner.js.map +1 -0
  91. package/dist/components/ch-switch.js +1 -1
  92. package/dist/components/ch-tabs.js +1 -1
  93. package/dist/components/ch-textarea.js +1 -1
  94. package/dist/components/ch-tooltip.d.ts +11 -0
  95. package/dist/components/ch-tooltip.js +2 -0
  96. package/dist/components/ch-tooltip.js.map +1 -0
  97. package/dist/components/index.js +1 -1
  98. package/dist/components/index.js.map +1 -1
  99. package/dist/components/p-hyy-cLgi.js +2 -0
  100. package/dist/components/p-hyy-cLgi.js.map +1 -0
  101. package/dist/esm/ch-accordion.entry.js +1 -1
  102. package/dist/esm/{ch-badge_6.entry.js → ch-alert_8.entry.js} +72 -10
  103. package/dist/esm/ch-alert_8.entry.js.map +1 -0
  104. package/dist/esm/ch-checkbox.entry.js +2 -2
  105. package/dist/esm/ch-divider.entry.js +2 -2
  106. package/dist/esm/ch-link.entry.js +1 -1
  107. package/dist/esm/ch-modal.entry.js +165 -0
  108. package/dist/esm/ch-modal.entry.js.map +1 -0
  109. package/dist/esm/ch-radio.entry.js +2 -2
  110. package/dist/esm/ch-tabs.entry.js +2 -2
  111. package/dist/esm/ch-textarea.entry.js +2 -2
  112. package/dist/esm/ch-tooltip.entry.js +80 -0
  113. package/dist/esm/ch-tooltip.entry.js.map +1 -0
  114. package/dist/esm/chucao.js +4 -4
  115. package/dist/esm/chucao.js.map +1 -1
  116. package/dist/esm/{index-ImsAHlk9.js → index-Bvah_WQV.js} +183 -12
  117. package/dist/esm/index-Bvah_WQV.js.map +1 -0
  118. package/dist/esm/index.js +10 -2
  119. package/dist/esm/index.js.map +1 -1
  120. package/dist/esm/loader.js +3 -3
  121. package/dist/types/components/ch-alert/ch-alert.d.ts +34 -0
  122. package/dist/types/components/ch-modal/ch-modal.d.ts +67 -0
  123. package/dist/types/components/ch-spinner/ch-spinner.d.ts +25 -0
  124. package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +47 -0
  125. package/dist/types/components.d.ts +369 -0
  126. package/dist/types/stencil-public-runtime.d.ts +11 -0
  127. package/dist/types/tokens/tokens.d.ts +8 -0
  128. package/dist/types/tokens/types.d.ts +3 -3
  129. package/dist-react/components.d.ts +18 -1
  130. package/dist-react/components.js +39 -0
  131. package/dist-react/components.ts +55 -1
  132. package/dist-vue/index.d.ts +4 -0
  133. package/dist-vue/index.js +28 -0
  134. package/dist-vue/index.ts +36 -0
  135. package/hydrate/index.js +542 -19
  136. package/hydrate/index.mjs +542 -19
  137. package/package.json +6 -2
  138. package/dist/chucao/p-ImsAHlk9.js +0 -3
  139. package/dist/chucao/p-ImsAHlk9.js.map +0 -1
  140. package/dist/chucao/p-b4520f1c.entry.js +0 -2
  141. package/dist/chucao/p-b4520f1c.entry.js.map +0 -1
  142. package/dist/chucao/p-fe0c9320.entry.js +0 -2
  143. package/dist/cjs/ch-badge_6.cjs.entry.js.map +0 -1
  144. package/dist/cjs/index-CiYvuUBV.js.map +0 -1
  145. package/dist/components/p-x4aZoujY.js +0 -2
  146. package/dist/components/p-x4aZoujY.js.map +0 -1
  147. package/dist/esm/ch-badge_6.entry.js.map +0 -1
  148. package/dist/esm/index-ImsAHlk9.js.map +0 -1
  149. /package/dist/chucao/{p-175aee94.entry.js.map → p-13ab5f9a.entry.js.map} +0 -0
  150. /package/dist/chucao/{p-dde82d7d.entry.js.map → p-1cc7042e.entry.js.map} +0 -0
  151. /package/dist/chucao/{p-af2c57b5.entry.js.map → p-421cda05.entry.js.map} +0 -0
  152. /package/dist/chucao/{p-d75eeeea.entry.js.map → p-c16b18b7.entry.js.map} +0 -0
  153. /package/dist/chucao/{p-fcc70c8d.entry.js.map → p-cfb6db53.entry.js.map} +0 -0
  154. /package/dist/chucao/{p-fe0c9320.entry.js.map → p-df73f786.entry.js.map} +0 -0
  155. /package/dist/chucao/{p-85a49fd7.entry.js.map → p-e8fe65bb.entry.js.map} +0 -0
package/dist/esm/index.js CHANGED
@@ -1,9 +1,10 @@
1
- /* Generated by toki v1.10.0 — do not edit */
1
+ /* Generated by toki v1.12.1 — do not edit */
2
2
  const colorBackgroundBase = '#100a1c';
3
3
  const colorBackgroundTopGlow = '#201e40';
4
4
  const colorBackgroundBottomGlow = '#261226';
5
5
  const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';
6
6
  const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';
7
+ const colorScrimDefault = 'rgba(0, 0, 0, 0.6)';
7
8
  const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';
8
9
  const colorBorderHover = 'rgba(45, 212, 191, 0.3)';
9
10
  const colorAccentDefault = '#2dd4bf';
@@ -52,7 +53,9 @@ const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';
52
53
  const effectBlur = '10px';
53
54
  const durationFast = '150ms';
54
55
  const durationNormal = '200ms';
56
+ const durationSpin = '800ms';
55
57
  const easingDefault = 'ease';
58
+ const easingLinear = 'linear';
56
59
  const focusOutlineWidth = '2px';
57
60
  const focusOutlineOffset = '2px';
58
61
  const opacityDisabled = 0.5;
@@ -71,6 +74,9 @@ const tokens = {
71
74
  default: 'rgba(32, 30, 64, 0.6)',
72
75
  hover: 'rgba(45, 212, 191, 0.08)',
73
76
  },
77
+ scrim: {
78
+ default: 'rgba(0, 0, 0, 0.6)',
79
+ },
74
80
  border: {
75
81
  default: 'rgba(255, 255, 255, 0.08)',
76
82
  hover: 'rgba(45, 212, 191, 0.3)',
@@ -149,9 +155,11 @@ const tokens = {
149
155
  'duration': {
150
156
  fast: '150ms',
151
157
  normal: '200ms',
158
+ spin: '800ms',
152
159
  },
153
160
  'easing': {
154
161
  default: 'ease',
162
+ linear: 'linear',
155
163
  },
156
164
  'focus': {
157
165
  outlineWidth: '2px',
@@ -170,7 +178,7 @@ const tokens = {
170
178
  },
171
179
  };
172
180
 
173
- export { borderAccentBar, borderWidth, colorAccentDefault, colorAccentHover, colorAccentText, colorBackgroundBase, colorBackgroundBottomGlow, colorBackgroundTopGlow, colorBorderDefault, colorBorderHover, colorBrandHuemulDark, colorBrandHuemulLight, colorBrandStroke, colorStatusPositive, colorStatusPositiveBackground, colorStatusWarning, colorStatusWarningBackground, colorSurfaceDefault, colorSurfaceHover, colorTextPrimary, colorTextSecondary, durationFast, durationNormal, easingDefault, effectBlur, focusOutlineOffset, focusOutlineWidth, layoutMaxWidth, opacityDisabled, radiusMd, radiusPill, radiusSm, shadowCardHover, shadowFocusRing, spacing2xl, spacing2xs, spacing3xl, spacing4xl, spacing5xl, spacing6xl, spacingElevate, spacingLg, spacingMd, spacingShift, spacingSm, spacingXl, spacingXs, tokens, typographyBody, typographyHeading, typographySizeLg, typographySizeMd, typographySizeSm, typographySizeXl, typographySizeXs, typographyTrackingBadge, typographyWeightBold, typographyWeightRegular, typographyWeightSemibold, zIndexBase, zIndexDropdown, zIndexModal };
181
+ export { borderAccentBar, borderWidth, colorAccentDefault, colorAccentHover, colorAccentText, colorBackgroundBase, colorBackgroundBottomGlow, colorBackgroundTopGlow, colorBorderDefault, colorBorderHover, colorBrandHuemulDark, colorBrandHuemulLight, colorBrandStroke, colorScrimDefault, colorStatusPositive, colorStatusPositiveBackground, colorStatusWarning, colorStatusWarningBackground, colorSurfaceDefault, colorSurfaceHover, colorTextPrimary, colorTextSecondary, durationFast, durationNormal, durationSpin, easingDefault, easingLinear, effectBlur, focusOutlineOffset, focusOutlineWidth, layoutMaxWidth, opacityDisabled, radiusMd, radiusPill, radiusSm, shadowCardHover, shadowFocusRing, spacing2xl, spacing2xs, spacing3xl, spacing4xl, spacing5xl, spacing6xl, spacingElevate, spacingLg, spacingMd, spacingShift, spacingSm, spacingXl, spacingXs, tokens, typographyBody, typographyHeading, typographySizeLg, typographySizeMd, typographySizeSm, typographySizeXl, typographySizeXs, typographyTrackingBadge, typographyWeightBold, typographyWeightRegular, typographyWeightSemibold, zIndexBase, zIndexDropdown, zIndexModal };
174
182
  //# sourceMappingURL=index.js.map
175
183
 
176
184
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["src/tokens/tokens.ts"],"sourcesContent":["/* Generated by toki v1.10.0 — do not edit */\n\nexport const colorBackgroundBase = '#100a1c';\nexport const colorBackgroundTopGlow = '#201e40';\nexport const colorBackgroundBottomGlow = '#261226';\nexport const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';\nexport const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';\nexport const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';\nexport const colorBorderHover = 'rgba(45, 212, 191, 0.3)';\nexport const colorAccentDefault = '#2dd4bf';\nexport const colorAccentHover = '#5ee8d4';\nexport const colorAccentText = '#06210f';\nexport const colorStatusPositive = '#4ade80';\nexport const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';\nexport const colorStatusWarning = '#f87171';\nexport const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';\nexport const colorTextPrimary = '#ffffff';\nexport const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';\nexport const colorBrandHuemulDark = '#85422b';\nexport const colorBrandHuemulLight = '#b45b38';\nexport const colorBrandStroke = '#1d1d1b';\nexport const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';\nexport const typographyHeading = 'Inconsolata, monospace';\nexport const typographySizeXs = '0.68rem';\nexport const typographySizeSm = '0.85rem';\nexport const typographySizeMd = '1rem';\nexport const typographySizeLg = '1.25rem';\nexport const typographySizeXl = '1.5rem';\nexport const typographyWeightRegular = '400';\nexport const typographyWeightSemibold = '600';\nexport const typographyWeightBold = '700';\nexport const typographyTrackingBadge = '0.03em';\nexport const spacing2xs = '0.18rem';\nexport const spacingXs = '0.25rem';\nexport const spacingSm = '0.35rem';\nexport const spacingMd = '0.5rem';\nexport const spacingLg = '0.6rem';\nexport const spacingXl = '0.8rem';\nexport const spacing2xl = '1rem';\nexport const spacing3xl = '1.25rem';\nexport const spacing4xl = '1.35rem';\nexport const spacing5xl = '1.5rem';\nexport const spacing6xl = '2rem';\nexport const spacingShift = '2px';\nexport const spacingElevate = '1px';\nexport const radiusSm = '6px';\nexport const radiusMd = '8px';\nexport const radiusPill = '999px';\nexport const borderWidth = '1px';\nexport const borderAccentBar = '3px';\nexport const shadowFocusRing = '0 0 0 3px rgba(45, 212, 191, 0.12)';\nexport const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';\nexport const effectBlur = '10px';\nexport const durationFast = '150ms';\nexport const durationNormal = '200ms';\nexport const easingDefault = 'ease';\nexport const focusOutlineWidth = '2px';\nexport const focusOutlineOffset = '2px';\nexport const opacityDisabled = 0.5;\nexport const zIndexBase = 0;\nexport const zIndexDropdown = 100;\nexport const zIndexModal = 1000;\nexport const layoutMaxWidth = '68rem';\n\nexport const tokens = {\n 'color': {\n background: {\n base: '#100a1c',\n topGlow: '#201e40',\n bottomGlow: '#261226',\n },\n surface: {\n default: 'rgba(32, 30, 64, 0.6)',\n hover: 'rgba(45, 212, 191, 0.08)',\n },\n border: {\n default: 'rgba(255, 255, 255, 0.08)',\n hover: 'rgba(45, 212, 191, 0.3)',\n },\n accent: {\n default: '#2dd4bf',\n hover: '#5ee8d4',\n text: '#06210f',\n },\n status: {\n positive: '#4ade80',\n positiveBackground: 'rgba(34, 197, 94, 0.18)',\n warning: '#f87171',\n warningBackground: 'rgba(248, 113, 113, 0.15)',\n },\n text: {\n primary: '#ffffff',\n secondary: 'rgba(255, 255, 255, 0.55)',\n },\n brand: {\n huemulDark: '#85422b',\n huemulLight: '#b45b38',\n stroke: '#1d1d1b',\n },\n },\n 'typography': {\n body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',\n heading: 'Inconsolata, monospace',\n size: {\n xs: '0.68rem',\n sm: '0.85rem',\n md: '1rem',\n lg: '1.25rem',\n xl: '1.5rem',\n },\n weight: {\n regular: '400',\n semibold: '600',\n bold: '700',\n },\n tracking: {\n badge: '0.03em',\n },\n },\n 'spacing': {\n '2xs': '0.18rem',\n 'xs': '0.25rem',\n 'sm': '0.35rem',\n 'md': '0.5rem',\n 'lg': '0.6rem',\n 'xl': '0.8rem',\n '2xl': '1rem',\n '3xl': '1.25rem',\n '4xl': '1.35rem',\n '5xl': '1.5rem',\n '6xl': '2rem',\n 'shift': '2px',\n 'elevate': '1px',\n },\n 'radius': {\n sm: '6px',\n md: '8px',\n pill: '999px',\n },\n 'border': {\n width: '1px',\n accentBar: '3px',\n },\n 'shadow': {\n focusRing: '0 0 0 3px rgba(45, 212, 191, 0.12)',\n cardHover: '0 4px 20px rgba(45, 212, 191, 0.06)',\n },\n 'effect': {\n blur: '10px',\n },\n 'duration': {\n fast: '150ms',\n normal: '200ms',\n },\n 'easing': {\n default: 'ease',\n },\n 'focus': {\n outlineWidth: '2px',\n outlineOffset: '2px',\n },\n 'opacity': {\n disabled: 0.5,\n },\n 'z-index': {\n base: 0,\n dropdown: 100,\n modal: 1000,\n },\n 'layout': {\n maxWidth: '68rem',\n },\n} as const;\n\nexport type TokenCategory = keyof typeof tokens;\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,mBAAmB,GAAG;AAC5B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,eAAe,GAAG;AACxB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,6BAA6B,GAAG;AACtC,MAAM,kBAAkB,GAAG;AAC3B,MAAM,4BAA4B,GAAG;AACrC,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,oBAAoB,GAAG;AAC7B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,gBAAgB,GAAG;AACzB,MAAM,cAAc,GAAG;AACvB,MAAM,iBAAiB,GAAG;AAC1B,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,uBAAuB,GAAG;AAChC,MAAM,wBAAwB,GAAG;AACjC,MAAM,oBAAoB,GAAG;AAC7B,MAAM,uBAAuB,GAAG;AAChC,MAAM,UAAU,GAAG;AACnB,MAAM,SAAS,GAAG;AAClB,MAAM,SAAS,GAAG;AAClB,MAAM,SAAS,GAAG;AAClB,MAAM,SAAS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EAAE,KAAK;AACT,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,KAAK;AACZ,QAAA,SAAS,EAAE,KAAK;AACjB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE,oCAAoC;AAC/C,QAAA,SAAS,EAAE,qCAAqC;AACjD,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE,MAAM;AACb,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,MAAM,EAAE,OAAO;AAChB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE,MAAM;AAChB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,aAAa,EAAE,KAAK;AACrB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,QAAQ,EAAE,GAAG;AACd,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,QAAQ,EAAE,GAAG;AACb,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["src/tokens/tokens.ts"],"sourcesContent":["/* Generated by toki v1.12.1 — do not edit */\n\nexport const colorBackgroundBase = '#100a1c';\nexport const colorBackgroundTopGlow = '#201e40';\nexport const colorBackgroundBottomGlow = '#261226';\nexport const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';\nexport const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';\nexport const colorScrimDefault = 'rgba(0, 0, 0, 0.6)';\nexport const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';\nexport const colorBorderHover = 'rgba(45, 212, 191, 0.3)';\nexport const colorAccentDefault = '#2dd4bf';\nexport const colorAccentHover = '#5ee8d4';\nexport const colorAccentText = '#06210f';\nexport const colorStatusPositive = '#4ade80';\nexport const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';\nexport const colorStatusWarning = '#f87171';\nexport const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';\nexport const colorTextPrimary = '#ffffff';\nexport const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';\nexport const colorBrandHuemulDark = '#85422b';\nexport const colorBrandHuemulLight = '#b45b38';\nexport const colorBrandStroke = '#1d1d1b';\nexport const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';\nexport const typographyHeading = 'Inconsolata, monospace';\nexport const typographySizeXs = '0.68rem';\nexport const typographySizeSm = '0.85rem';\nexport const typographySizeMd = '1rem';\nexport const typographySizeLg = '1.25rem';\nexport const typographySizeXl = '1.5rem';\nexport const typographyWeightRegular = '400';\nexport const typographyWeightSemibold = '600';\nexport const typographyWeightBold = '700';\nexport const typographyTrackingBadge = '0.03em';\nexport const spacing2xs = '0.18rem';\nexport const spacingXs = '0.25rem';\nexport const spacingSm = '0.35rem';\nexport const spacingMd = '0.5rem';\nexport const spacingLg = '0.6rem';\nexport const spacingXl = '0.8rem';\nexport const spacing2xl = '1rem';\nexport const spacing3xl = '1.25rem';\nexport const spacing4xl = '1.35rem';\nexport const spacing5xl = '1.5rem';\nexport const spacing6xl = '2rem';\nexport const spacingShift = '2px';\nexport const spacingElevate = '1px';\nexport const radiusSm = '6px';\nexport const radiusMd = '8px';\nexport const radiusPill = '999px';\nexport const borderWidth = '1px';\nexport const borderAccentBar = '3px';\nexport const shadowFocusRing = '0 0 0 3px rgba(45, 212, 191, 0.12)';\nexport const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';\nexport const effectBlur = '10px';\nexport const durationFast = '150ms';\nexport const durationNormal = '200ms';\nexport const durationSpin = '800ms';\nexport const easingDefault = 'ease';\nexport const easingLinear = 'linear';\nexport const focusOutlineWidth = '2px';\nexport const focusOutlineOffset = '2px';\nexport const opacityDisabled = 0.5;\nexport const zIndexBase = 0;\nexport const zIndexDropdown = 100;\nexport const zIndexModal = 1000;\nexport const layoutMaxWidth = '68rem';\n\nexport const tokens = {\n 'color': {\n background: {\n base: '#100a1c',\n topGlow: '#201e40',\n bottomGlow: '#261226',\n },\n surface: {\n default: 'rgba(32, 30, 64, 0.6)',\n hover: 'rgba(45, 212, 191, 0.08)',\n },\n scrim: {\n default: 'rgba(0, 0, 0, 0.6)',\n },\n border: {\n default: 'rgba(255, 255, 255, 0.08)',\n hover: 'rgba(45, 212, 191, 0.3)',\n },\n accent: {\n default: '#2dd4bf',\n hover: '#5ee8d4',\n text: '#06210f',\n },\n status: {\n positive: '#4ade80',\n positiveBackground: 'rgba(34, 197, 94, 0.18)',\n warning: '#f87171',\n warningBackground: 'rgba(248, 113, 113, 0.15)',\n },\n text: {\n primary: '#ffffff',\n secondary: 'rgba(255, 255, 255, 0.55)',\n },\n brand: {\n huemulDark: '#85422b',\n huemulLight: '#b45b38',\n stroke: '#1d1d1b',\n },\n },\n 'typography': {\n body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',\n heading: 'Inconsolata, monospace',\n size: {\n xs: '0.68rem',\n sm: '0.85rem',\n md: '1rem',\n lg: '1.25rem',\n xl: '1.5rem',\n },\n weight: {\n regular: '400',\n semibold: '600',\n bold: '700',\n },\n tracking: {\n badge: '0.03em',\n },\n },\n 'spacing': {\n '2xs': '0.18rem',\n 'xs': '0.25rem',\n 'sm': '0.35rem',\n 'md': '0.5rem',\n 'lg': '0.6rem',\n 'xl': '0.8rem',\n '2xl': '1rem',\n '3xl': '1.25rem',\n '4xl': '1.35rem',\n '5xl': '1.5rem',\n '6xl': '2rem',\n 'shift': '2px',\n 'elevate': '1px',\n },\n 'radius': {\n sm: '6px',\n md: '8px',\n pill: '999px',\n },\n 'border': {\n width: '1px',\n accentBar: '3px',\n },\n 'shadow': {\n focusRing: '0 0 0 3px rgba(45, 212, 191, 0.12)',\n cardHover: '0 4px 20px rgba(45, 212, 191, 0.06)',\n },\n 'effect': {\n blur: '10px',\n },\n 'duration': {\n fast: '150ms',\n normal: '200ms',\n spin: '800ms',\n },\n 'easing': {\n default: 'ease',\n linear: 'linear',\n },\n 'focus': {\n outlineWidth: '2px',\n outlineOffset: '2px',\n },\n 'opacity': {\n disabled: 0.5,\n },\n 'z-index': {\n base: 0,\n dropdown: 100,\n modal: 1000,\n },\n 'layout': {\n maxWidth: '68rem',\n },\n} as const;\n\nexport type TokenCategory = keyof typeof tokens;\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,mBAAmB,GAAG;AAC5B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,eAAe,GAAG;AACxB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,6BAA6B,GAAG;AACtC,MAAM,kBAAkB,GAAG;AAC3B,MAAM,4BAA4B,GAAG;AACrC,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,oBAAoB,GAAG;AAC7B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,gBAAgB,GAAG;AACzB,MAAM,cAAc,GAAG;AACvB,MAAM,iBAAiB,GAAG;AAC1B,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,gBAAgB,GAAG;AACzB,MAAM,uBAAuB,GAAG;AAChC,MAAM,wBAAwB,GAAG;AACjC,MAAM,oBAAoB,GAAG;AAC7B,MAAM,uBAAuB,GAAG;AAChC,MAA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KAAK,EAAE,SAAS;AAChB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,KAAK,EAAE,QAAQ;AACf,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,SAAS,EAAE,KAAK;AACjB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,EAAE,EAAE,KAAK;AACT,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE,KAAK;AACZ,QAAA,SAAS,EAAE,KAAK;AACjB,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE,oCAAoC;AAC/C,QAAA,SAAS,EAAE,qCAAqC;AACjD,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE,MAAM;AACb,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,MAAM,EAAE,OAAO;AACf,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,MAAM,EAAE,QAAQ;AACjB,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,YAAY,EAAE,KAAK;AACnB,QAAA,aAAa,EAAE,KAAK;AACrB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,QAAQ,EAAE,GAAG;AACd,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,CAAC;AACP,QAAA,QAAQ,EAAE,GAAG;AACb,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;;;;;"}
@@ -1,10 +1,10 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-ImsAHlk9.js';
2
- export { s as setNonce } from './index-ImsAHlk9.js';
1
+ import { g as globalScripts, b as bootstrapLazy } from './index-Bvah_WQV.js';
2
+ export { s as setNonce } from './index-Bvah_WQV.js';
3
3
 
4
4
  const defineCustomElements = async (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
6
  await globalScripts();
7
- return bootstrapLazy([["ch-badge_6",[[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-switch",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[513,"ch-checkbox",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-radio",[[513,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[513,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]]], options);
7
+ return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[513,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}],[513,"ch-spinner",{"size":[1],"label":[1]}],[513,"ch-switch",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[513,"ch-checkbox",{"label":[1],"name":[1],"value":[1],"checked":[1028],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[513,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[513,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[1],"disabled":[4],"required":[4],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]], options);
8
8
  };
9
9
 
10
10
  export { defineCustomElements };
@@ -0,0 +1,34 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ export type ChAlertVariant = 'default' | 'positive' | 'warning';
3
+ /**
4
+ * Block-level status message.
5
+ *
6
+ * `warning` carries `role="alert"` and is announced assertively; `default` and
7
+ * `positive` use `role="status"`, since a confirmation is not urgent enough to
8
+ * interrupt. Both announce reliably when the alert is added to the page in
9
+ * response to something — an alert already present at load may not be read out,
10
+ * which is how live regions work rather than something this component controls.
11
+ */
12
+ export declare class ChAlert {
13
+ /**
14
+ * The kind of message. `default` is neutral, `positive` confirms, and
15
+ * `warning` covers both warnings and errors — the token scale has a single
16
+ * status colour for the two of them.
17
+ */
18
+ variant: ChAlertVariant;
19
+ /**
20
+ * Accessible label for the dismiss button, set as `aria-label`. Setting it
21
+ * is what adds the button: the button's only content is a decorative glyph,
22
+ * so without a label it would have no accessible name at all.
23
+ */
24
+ dismissLabel?: string;
25
+ /**
26
+ * Emitted when the dismiss button is clicked. The alert stays in the DOM —
27
+ * whether to remove it is the consumer's decision. If you do remove it, move
28
+ * focus somewhere sensible first: removing the focused button drops focus to
29
+ * `<body>`.
30
+ */
31
+ chDismiss: EventEmitter<void>;
32
+ private handleDismiss;
33
+ render(): any;
34
+ }
@@ -0,0 +1,67 @@
1
+ import { type EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Modal dialog, built on the native `<dialog>` element and opened with
4
+ * `showModal()`.
5
+ *
6
+ * The browser therefore supplies the parts that are easy to get wrong: moving
7
+ * focus into the dialog and returning it afterwards, marking the rest of the
8
+ * document inert, `Escape` to close, the top layer, `::backdrop`, and the
9
+ * implicit `dialog` role with `aria-modal="true"`. Notably it does not trap
10
+ * focus, which is deliberate — the W3C APA group concluded a modal should let
11
+ * keyboard users reach browser UI, so a hand-rolled trap would be less
12
+ * correct, not more.
13
+ *
14
+ * What the platform does not cover, and this component adds: locking the page
15
+ * behind the dialog so it cannot scroll, and closing when the backdrop is
16
+ * clicked. The latter is `closedby="any"` in the platform, which Safari does
17
+ * not support yet, so it is implemented here for every browser alike rather
18
+ * than only for some.
19
+ */
20
+ export declare class ChModal {
21
+ /**
22
+ * Whether the dialog is open. Kept in sync when the user closes it with
23
+ * `Escape`, the close button or a click outside.
24
+ */
25
+ open: boolean;
26
+ /**
27
+ * Accessible name for the dialog, set as `aria-label`. A slotted heading
28
+ * cannot be referenced with `aria-labelledby` across the shadow boundary, so
29
+ * the name comes through this prop — and a modal dialog needs one, so pass
30
+ * the same text as the heading.
31
+ */
32
+ label?: string;
33
+ /**
34
+ * Accessible label for the close button, set as `aria-label`. Setting it is
35
+ * what adds the button: its only content is a decorative glyph, so without a
36
+ * label it would have no accessible name.
37
+ */
38
+ closeLabel?: string;
39
+ /**
40
+ * Emitted after the dialog opens.
41
+ */
42
+ chOpen: EventEmitter<void>;
43
+ /**
44
+ * Emitted after the dialog closes, however it was closed.
45
+ */
46
+ chClose: EventEmitter<void>;
47
+ private dialog?;
48
+ private scrollLocked;
49
+ private pointerDownedOutside;
50
+ componentDidLoad(): void;
51
+ disconnectedCallback(): void;
52
+ handleOpenChange(open: boolean): void;
53
+ private showDialog;
54
+ private closeDialog;
55
+ private lockScroll;
56
+ private unlockScroll;
57
+ /**
58
+ * True for a pointer event on the backdrop: the `<dialog>` is the event
59
+ * target for its own box only, and the coordinates fall outside that box.
60
+ */
61
+ private isOnBackdrop;
62
+ private handlePointerDown;
63
+ private handleClick;
64
+ private handleNativeClose;
65
+ private handleCloseClick;
66
+ render(): any;
67
+ }
@@ -0,0 +1,25 @@
1
+ export type ChSpinnerSize = 'sm' | 'md' | 'lg';
2
+ /**
3
+ * Loading indicator.
4
+ *
5
+ * The spinner is drawn in `currentColor`, so it takes the surrounding text
6
+ * colour and stays legible on any surface — inside a primary `ch-button` it
7
+ * picks up the button's own text colour instead of the accent, which would be
8
+ * invisible there. Set `color` on or above the element to change it.
9
+ */
10
+ export declare class ChSpinner {
11
+ /**
12
+ * The size of the spinner. Either `sm`, `md`, or `lg`. Each size sets a
13
+ * font-size and the spinner is drawn in `em`, so it also scales with an
14
+ * inherited font-size.
15
+ */
16
+ size: ChSpinnerSize;
17
+ /**
18
+ * Accessible label announced while the spinner is visible, e.g. `Cargando
19
+ * resultados`. When omitted the spinner is treated as decorative and hidden
20
+ * from assistive technology — the right behaviour next to visible loading
21
+ * text, which would otherwise be announced twice.
22
+ */
23
+ label?: string;
24
+ render(): any;
25
+ }
@@ -0,0 +1,47 @@
1
+ export type ChTooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
2
+ /**
3
+ * Short help text shown on hover and on focus.
4
+ *
5
+ * Both the trigger and the text come from the consumer's light DOM through
6
+ * named slots. That is what makes the accessible association work: an
7
+ * `aria-describedby` IDREF only resolves within a single tree, and slotted
8
+ * nodes stay in the document tree even though they render inside the shadow
9
+ * root. Keeping the text in the shadow root instead would need a reference
10
+ * pointing into a shadow tree, which the platform does not allow — element
11
+ * reflection only points outwards, and `referenceTarget` is not available yet.
12
+ *
13
+ * The trigger has to be a natively focusable element (`<button>`, `<a>`,
14
+ * `<input>`). A chucao component such as `ch-button` will not be described,
15
+ * because `aria-*` set on a custom element host does not reach the native
16
+ * element inside it — see the discussion in issue #47.
17
+ */
18
+ export declare class ChTooltip {
19
+ private el;
20
+ private readonly fallbackId;
21
+ /**
22
+ * Which side of the trigger the bubble is placed on.
23
+ */
24
+ placement: ChTooltipPlacement;
25
+ hovered: boolean;
26
+ focused: boolean;
27
+ dismissed: boolean;
28
+ private get visible();
29
+ componentDidLoad(): void;
30
+ handleMouseEnter(): void;
31
+ handleMouseLeave(): void;
32
+ handleFocusIn(): void;
33
+ handleFocusOut(): void;
34
+ /**
35
+ * Listens on the document because a tooltip opened by hovering leaves focus
36
+ * wherever it was, so a host-scoped handler would never see the key.
37
+ */
38
+ handleKeyDown(event: KeyboardEvent): void;
39
+ private slotted;
40
+ /**
41
+ * Points the trigger at the text with `aria-describedby`. Re-run on
42
+ * `slotchange` because a framework re-render can replace the slotted nodes
43
+ * and take the attributes with them.
44
+ */
45
+ private associate;
46
+ render(): any;
47
+ }