@devschile/chucao 1.7.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/chucao/chucao.css +1 -1
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/index.esm.js +1 -1
- package/dist/chucao/index.esm.js.map +1 -1
- package/dist/chucao/p-10658dc9.entry.js +2 -0
- package/dist/chucao/p-10658dc9.entry.js.map +1 -0
- package/dist/chucao/p-19dde4f9.entry.js +2 -0
- package/dist/chucao/p-19dde4f9.entry.js.map +1 -0
- package/dist/chucao/p-2e20c7a1.entry.js +2 -0
- package/dist/chucao/p-2e20c7a1.entry.js.map +1 -0
- package/dist/chucao/p-66dce533.entry.js +2 -0
- package/dist/chucao/p-66dce533.entry.js.map +1 -0
- package/dist/chucao/p-75184fe1.entry.js +2 -0
- package/dist/chucao/p-75184fe1.entry.js.map +1 -0
- package/dist/chucao/p-96c852f5.entry.js +2 -0
- package/dist/chucao/p-96c852f5.entry.js.map +1 -0
- package/dist/chucao/p-BaKXvAYc.js +3 -0
- package/dist/chucao/p-BaKXvAYc.js.map +1 -0
- package/dist/chucao/{p-fe8e9537.entry.js → p-a0ec231a.entry.js} +2 -2
- package/dist/chucao/{p-488c7838.entry.js → p-e48912c7.entry.js} +2 -2
- package/dist/chucao/{p-20492b73.entry.js → p-f04d2f75.entry.js} +2 -2
- package/dist/chucao/{p-053d58a4.entry.js → p-f62e1da2.entry.js} +2 -2
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ch-alert_8.cjs.entry.js +185 -8
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-checkbox.cjs.entry.js +62 -3
- package/dist/cjs/ch-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-divider.cjs.entry.js +1 -1
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-modal.cjs.entry.js +167 -0
- package/dist/cjs/ch-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-radio.cjs.entry.js +62 -3
- package/dist/cjs/ch-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ch-textarea.cjs.entry.js +62 -3
- package/dist/cjs/ch-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/ch-tooltip.cjs.entry.js +82 -0
- package/dist/cjs/ch-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +2 -2
- package/dist/cjs/{index-ls4U227d.js → index-C9Abf0td.js} +204 -9
- package/dist/cjs/index-C9Abf0td.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.css +10 -0
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +64 -4
- package/dist/collection/components/ch-checkbox/ch-checkbox.js.map +1 -1
- package/dist/collection/components/ch-input/ch-input.css +11 -0
- package/dist/collection/components/ch-input/ch-input.js +64 -4
- package/dist/collection/components/ch-input/ch-input.js.map +1 -1
- package/dist/collection/components/ch-modal/ch-modal.css +69 -0
- package/dist/collection/components/ch-modal/ch-modal.js +278 -0
- package/dist/collection/components/ch-modal/ch-modal.js.map +1 -0
- package/dist/collection/components/ch-radio/ch-radio.css +10 -0
- package/dist/collection/components/ch-radio/ch-radio.js +64 -4
- package/dist/collection/components/ch-radio/ch-radio.js.map +1 -1
- package/dist/collection/components/ch-select/ch-select.css +11 -0
- package/dist/collection/components/ch-select/ch-select.js +64 -4
- package/dist/collection/components/ch-select/ch-select.js.map +1 -1
- package/dist/collection/components/ch-switch/ch-switch.css +10 -0
- package/dist/collection/components/ch-switch/ch-switch.js +64 -4
- package/dist/collection/components/ch-switch/ch-switch.js.map +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.css +11 -0
- package/dist/collection/components/ch-textarea/ch-textarea.js +64 -4
- package/dist/collection/components/ch-textarea/ch-textarea.js.map +1 -1
- package/dist/collection/components/ch-tooltip/ch-tooltip.css +100 -0
- package/dist/collection/components/ch-tooltip/ch-tooltip.js +168 -0
- package/dist/collection/components/ch-tooltip/ch-tooltip.js.map +1 -0
- package/dist/collection/tokens/tokens.js +4 -0
- package/dist/collection/tokens/tokens.js.map +1 -1
- package/dist/collection/tokens/types.js.map +1 -1
- package/dist/components/ch-accordion.js +1 -1
- package/dist/components/ch-alert.js +1 -1
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-checkbox.js.map +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-input.js.map +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-modal.d.ts +11 -0
- package/dist/components/ch-modal.js +2 -0
- package/dist/components/ch-modal.js.map +1 -0
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-radio.js.map +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-select.js.map +1 -1
- package/dist/components/ch-spinner.js +1 -1
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-switch.js.map +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/ch-textarea.js.map +1 -1
- package/dist/components/ch-tooltip.d.ts +11 -0
- package/dist/components/ch-tooltip.js +2 -0
- package/dist/components/ch-tooltip.js.map +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-DL-bL54o.js +2 -0
- package/dist/components/p-DL-bL54o.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/ch-alert_8.entry.js +185 -8
- package/dist/esm/ch-alert_8.entry.js.map +1 -1
- package/dist/esm/ch-checkbox.entry.js +62 -3
- package/dist/esm/ch-checkbox.entry.js.map +1 -1
- package/dist/esm/ch-divider.entry.js +1 -1
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-modal.entry.js +165 -0
- package/dist/esm/ch-modal.entry.js.map +1 -0
- package/dist/esm/ch-radio.entry.js +62 -3
- package/dist/esm/ch-radio.entry.js.map +1 -1
- package/dist/esm/ch-tabs.entry.js +1 -1
- package/dist/esm/ch-textarea.entry.js +62 -3
- package/dist/esm/ch-textarea.entry.js.map +1 -1
- package/dist/esm/ch-tooltip.entry.js +80 -0
- package/dist/esm/ch-tooltip.entry.js.map +1 -0
- package/dist/esm/chucao.js +3 -3
- package/dist/esm/{index-pfWAsOzE.js → index-BaKXvAYc.js} +204 -10
- package/dist/esm/index-BaKXvAYc.js.map +1 -0
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-checkbox/ch-checkbox.d.ts +9 -0
- package/dist/types/components/ch-input/ch-input.d.ts +9 -0
- package/dist/types/components/ch-modal/ch-modal.d.ts +67 -0
- package/dist/types/components/ch-radio/ch-radio.d.ts +9 -0
- package/dist/types/components/ch-select/ch-select.d.ts +9 -0
- package/dist/types/components/ch-switch/ch-switch.d.ts +9 -0
- package/dist/types/components/ch-textarea/ch-textarea.d.ts +9 -0
- package/dist/types/components/ch-tooltip/ch-tooltip.d.ts +47 -0
- package/dist/types/components.d.ts +240 -0
- package/dist/types/tokens/tokens.d.ts +4 -0
- package/dist/types/tokens/types.d.ts +1 -1
- package/dist-react/components.d.ts +10 -1
- package/dist-react/components.js +21 -0
- package/dist-react/components.ts +31 -1
- package/dist-vue/index.d.ts +2 -0
- package/dist-vue/index.js +15 -0
- package/dist-vue/index.ts +19 -0
- package/hydrate/index.js +836 -61
- package/hydrate/index.mjs +836 -61
- package/package.json +4 -1
- package/dist/chucao/p-0305f2eb.entry.js +0 -2
- package/dist/chucao/p-0305f2eb.entry.js.map +0 -1
- package/dist/chucao/p-9a614e82.entry.js +0 -2
- package/dist/chucao/p-9a614e82.entry.js.map +0 -1
- package/dist/chucao/p-ad3206a2.entry.js +0 -2
- package/dist/chucao/p-ad3206a2.entry.js.map +0 -1
- package/dist/chucao/p-c598f978.entry.js +0 -2
- package/dist/chucao/p-c598f978.entry.js.map +0 -1
- package/dist/chucao/p-pfWAsOzE.js +0 -3
- package/dist/chucao/p-pfWAsOzE.js.map +0 -1
- package/dist/cjs/index-ls4U227d.js.map +0 -1
- package/dist/components/p-ONE3uKkF.js +0 -2
- package/dist/components/p-ONE3uKkF.js.map +0 -1
- package/dist/esm/index-pfWAsOzE.js.map +0 -1
- /package/dist/chucao/{p-fe8e9537.entry.js.map → p-a0ec231a.entry.js.map} +0 -0
- /package/dist/chucao/{p-488c7838.entry.js.map → p-e48912c7.entry.js.map} +0 -0
- /package/dist/chucao/{p-20492b73.entry.js.map → p-f04d2f75.entry.js.map} +0 -0
- /package/dist/chucao/{p-053d58a4.entry.js.map → p-f62e1da2.entry.js.map} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -4,6 +4,7 @@ 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';
|
|
@@ -73,6 +74,9 @@ const tokens = {
|
|
|
73
74
|
default: 'rgba(32, 30, 64, 0.6)',
|
|
74
75
|
hover: 'rgba(45, 212, 191, 0.08)',
|
|
75
76
|
},
|
|
77
|
+
scrim: {
|
|
78
|
+
default: 'rgba(0, 0, 0, 0.6)',
|
|
79
|
+
},
|
|
76
80
|
border: {
|
|
77
81
|
default: 'rgba(255, 255, 255, 0.08)',
|
|
78
82
|
hover: 'rgba(45, 212, 191, 0.3)',
|
|
@@ -174,7 +178,7 @@ const tokens = {
|
|
|
174
178
|
},
|
|
175
179
|
};
|
|
176
180
|
|
|
177
|
-
export { borderAccentBar, borderWidth, colorAccentDefault, colorAccentHover, colorAccentText, colorBackgroundBase, colorBackgroundBottomGlow, colorBackgroundTopGlow, colorBorderDefault, colorBorderHover, colorBrandHuemulDark, colorBrandHuemulLight, colorBrandStroke, 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 };
|
|
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 };
|
|
178
182
|
//# sourceMappingURL=index.js.map
|
|
179
183
|
|
|
180
184
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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 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 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;A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AAI,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
|
+
{"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': {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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;;;;;"}
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-BaKXvAYc.js';
|
|
2
|
+
export { s as setNonce } from './index-BaKXvAYc.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[
|
|
7
|
+
return bootstrapLazy([["ch-alert_8",[[769,"ch-alert",{"variant":[1],"dismissLabel":[1,"dismiss-label"]}],[769,"ch-badge",{"variant":[1]}],[769,"ch-button",{"variant":[1],"disabled":[4],"label":[1]}],[257,"ch-card"],[577,"ch-input",{"label":[1],"type":[1],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[577,"ch-select",{"label":[1],"options":[16],"value":[1025],"placeholder":[1],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}],[513,"ch-spinner",{"size":[1],"label":[1]}],[577,"ch-switch",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-accordion",[[769,"ch-accordion",{"items":[16],"value":[1025]}]]],["ch-checkbox",[[577,"ch-checkbox",{"label":[1],"name":[513],"value":[1],"checked":[1028],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"checked":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-divider",[[513,"ch-divider",{"orientation":[1]}]]],["ch-link",[[769,"ch-link",{"href":[1],"target":[1],"variant":[1],"disabled":[4]}]]],["ch-modal",[[769,"ch-modal",{"open":[1028],"label":[1],"closeLabel":[1,"close-label"]},null,{"open":[{"handleOpenChange":0}]}]]],["ch-radio",[[577,"ch-radio",{"label":[1],"options":[16],"value":[1025],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tabs",[[769,"ch-tabs",{"tabs":[16],"value":[1025],"label":[1]}]]],["ch-textarea",[[577,"ch-textarea",{"label":[1],"value":[1025],"placeholder":[1],"rows":[2],"name":[513],"disabled":[516],"required":[516],"hint":[1],"errorMessage":[1,"error-message"],"invalid":[4],"formDisabled":[32]},null,{"value":[{"syncForm":0}],"required":[{"syncForm":0}],"invalid":[{"syncForm":0}],"errorMessage":[{"syncForm":0}]}]]],["ch-tooltip",[[769,"ch-tooltip",{"placement":[1],"hovered":[32],"focused":[32],"dismissed":[32]},[[1,"mouseenter","handleMouseEnter"],[1,"mouseleave","handleMouseLeave"],[0,"focusin","handleFocusIn"],[0,"focusout","handleFocusOut"],[4,"keydown","handleKeyDown"]]]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -3,6 +3,10 @@ export declare class ChCheckbox {
|
|
|
3
3
|
private readonly checkboxId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialChecked;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered next to the checkbox, associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the checkbox's purpose.
|
|
@@ -46,6 +50,11 @@ export declare class ChCheckbox {
|
|
|
46
50
|
*/
|
|
47
51
|
chChange: EventEmitter<boolean>;
|
|
48
52
|
private handleChange;
|
|
53
|
+
protected syncForm(): void;
|
|
54
|
+
componentDidLoad(): void;
|
|
55
|
+
private markTouched;
|
|
56
|
+
formResetCallback(): void;
|
|
57
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
49
58
|
private get describedBy();
|
|
50
59
|
render(): any;
|
|
51
60
|
}
|
|
@@ -3,6 +3,10 @@ export declare class ChInput {
|
|
|
3
3
|
private readonly inputId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialValue;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered above the input and associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the input's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChInput {
|
|
|
55
59
|
chChange: EventEmitter<string>;
|
|
56
60
|
private handleInput;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -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
|
+
}
|
|
@@ -9,6 +9,10 @@ export declare class ChRadio {
|
|
|
9
9
|
private readonly labelId;
|
|
10
10
|
private readonly hintId;
|
|
11
11
|
private readonly errorId;
|
|
12
|
+
private initialValue;
|
|
13
|
+
internals: ElementInternals;
|
|
14
|
+
formDisabled: boolean;
|
|
15
|
+
private host;
|
|
12
16
|
/**
|
|
13
17
|
* Visible label describing the radio group, associated with it via
|
|
14
18
|
* `aria-labelledby`.
|
|
@@ -53,6 +57,11 @@ export declare class ChRadio {
|
|
|
53
57
|
*/
|
|
54
58
|
chChange: EventEmitter<string>;
|
|
55
59
|
private handleChange;
|
|
60
|
+
protected syncForm(): void;
|
|
61
|
+
componentDidLoad(): void;
|
|
62
|
+
private markTouched;
|
|
63
|
+
formResetCallback(): void;
|
|
64
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
56
65
|
private get describedBy();
|
|
57
66
|
render(): any;
|
|
58
67
|
}
|
|
@@ -8,6 +8,10 @@ export declare class ChSelect {
|
|
|
8
8
|
private readonly selectId;
|
|
9
9
|
private readonly hintId;
|
|
10
10
|
private readonly errorId;
|
|
11
|
+
private initialValue;
|
|
12
|
+
internals: ElementInternals;
|
|
13
|
+
formDisabled: boolean;
|
|
14
|
+
private host;
|
|
11
15
|
/**
|
|
12
16
|
* Visible label rendered above the select and associated with it via
|
|
13
17
|
* `for`/`id`, so assistive technology announces the select's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChSelect {
|
|
|
55
59
|
*/
|
|
56
60
|
chChange: EventEmitter<string>;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -3,6 +3,10 @@ export declare class ChSwitch {
|
|
|
3
3
|
private readonly switchId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialChecked;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered next to the switch, associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the switch's purpose.
|
|
@@ -46,6 +50,11 @@ export declare class ChSwitch {
|
|
|
46
50
|
*/
|
|
47
51
|
chChange: EventEmitter<boolean>;
|
|
48
52
|
private handleChange;
|
|
53
|
+
protected syncForm(): void;
|
|
54
|
+
componentDidLoad(): void;
|
|
55
|
+
private markTouched;
|
|
56
|
+
formResetCallback(): void;
|
|
57
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
49
58
|
private get describedBy();
|
|
50
59
|
render(): any;
|
|
51
60
|
}
|
|
@@ -3,6 +3,10 @@ export declare class ChTextarea {
|
|
|
3
3
|
private readonly textareaId;
|
|
4
4
|
private readonly hintId;
|
|
5
5
|
private readonly errorId;
|
|
6
|
+
private initialValue;
|
|
7
|
+
internals: ElementInternals;
|
|
8
|
+
formDisabled: boolean;
|
|
9
|
+
private host;
|
|
6
10
|
/**
|
|
7
11
|
* Visible label rendered above the textarea and associated with it via
|
|
8
12
|
* `for`/`id`, so assistive technology announces the textarea's purpose.
|
|
@@ -55,6 +59,11 @@ export declare class ChTextarea {
|
|
|
55
59
|
chChange: EventEmitter<string>;
|
|
56
60
|
private handleInput;
|
|
57
61
|
private handleChange;
|
|
62
|
+
protected syncForm(): void;
|
|
63
|
+
componentDidLoad(): void;
|
|
64
|
+
private markTouched;
|
|
65
|
+
formResetCallback(): void;
|
|
66
|
+
formDisabledCallback(isDisabled: boolean): void;
|
|
58
67
|
private get describedBy();
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -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
|
+
}
|