@devschile/chucao 1.6.0 → 1.7.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 +5 -3
- package/dist/chucao/chucao.css +1 -1
- package/dist/chucao/chucao.esm.js +1 -1
- package/dist/chucao/chucao.esm.js.map +1 -1
- package/dist/chucao/index.esm.js +1 -1
- package/dist/chucao/index.esm.js.map +1 -1
- package/dist/chucao/p-0305f2eb.entry.js +2 -0
- package/dist/chucao/{p-af2c57b5.entry.js.map → p-0305f2eb.entry.js.map} +1 -1
- package/dist/chucao/{p-dde82d7d.entry.js → p-053d58a4.entry.js} +2 -2
- package/dist/chucao/{p-fcc70c8d.entry.js → p-20492b73.entry.js} +2 -2
- package/dist/chucao/p-488c7838.entry.js +2 -0
- package/dist/chucao/{p-175aee94.entry.js → p-9a614e82.entry.js} +2 -2
- package/dist/chucao/{p-d75eeeea.entry.js → p-ad3206a2.entry.js} +2 -2
- package/dist/chucao/p-c598f978.entry.js +2 -0
- package/dist/chucao/p-c598f978.entry.js.map +1 -0
- package/dist/chucao/{p-85a49fd7.entry.js → p-fe8e9537.entry.js} +2 -2
- package/dist/chucao/p-pfWAsOzE.js +3 -0
- package/dist/chucao/p-pfWAsOzE.js.map +1 -0
- package/dist/cjs/ch-accordion.cjs.entry.js +1 -1
- package/dist/cjs/{ch-badge_6.cjs.entry.js → ch-alert_8.cjs.entry.js} +73 -9
- package/dist/cjs/ch-alert_8.cjs.entry.js.map +1 -0
- package/dist/cjs/ch-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ch-divider.cjs.entry.js +2 -2
- package/dist/cjs/ch-link.cjs.entry.js +1 -1
- package/dist/cjs/ch-radio.cjs.entry.js +2 -2
- package/dist/cjs/ch-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ch-textarea.cjs.entry.js +2 -2
- package/dist/cjs/chucao.cjs.js +3 -3
- package/dist/cjs/chucao.cjs.js.map +1 -1
- package/dist/cjs/{index-CiYvuUBV.js → index-ls4U227d.js} +38 -9
- package/dist/cjs/index-ls4U227d.js.map +1 -0
- package/dist/cjs/index.cjs.js +7 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ch-alert/ch-alert.css +77 -0
- package/dist/collection/components/ch-alert/ch-alert.js +118 -0
- package/dist/collection/components/ch-alert/ch-alert.js.map +1 -0
- package/dist/collection/components/ch-badge/ch-badge.js +1 -1
- package/dist/collection/components/ch-button/ch-button.js +1 -1
- package/dist/collection/components/ch-button/ch-button.js.map +1 -1
- package/dist/collection/components/ch-card/ch-card.js +1 -1
- package/dist/collection/components/ch-checkbox/ch-checkbox.js +1 -1
- package/dist/collection/components/ch-divider/ch-divider.js +1 -1
- package/dist/collection/components/ch-input/ch-input.js +1 -1
- package/dist/collection/components/ch-radio/ch-radio.js +1 -1
- package/dist/collection/components/ch-select/ch-select.js +1 -1
- package/dist/collection/components/ch-spinner/ch-spinner.css +39 -0
- package/dist/collection/components/ch-spinner/ch-spinner.js +90 -0
- package/dist/collection/components/ch-spinner/ch-spinner.js.map +1 -0
- package/dist/collection/components/ch-switch/ch-switch.js +1 -1
- package/dist/collection/components/ch-tabs/ch-tabs.js +1 -1
- package/dist/collection/components/ch-textarea/ch-textarea.js +1 -1
- package/dist/collection/tokens/tokens.js +5 -1
- 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.d.ts +11 -0
- package/dist/components/ch-alert.js +2 -0
- package/dist/components/ch-alert.js.map +1 -0
- package/dist/components/ch-badge.js +1 -1
- package/dist/components/ch-button.js +1 -1
- package/dist/components/ch-button.js.map +1 -1
- package/dist/components/ch-card.js +1 -1
- package/dist/components/ch-card.js.map +1 -1
- package/dist/components/ch-checkbox.js +1 -1
- package/dist/components/ch-divider.js +1 -1
- package/dist/components/ch-input.js +1 -1
- package/dist/components/ch-link.js +1 -1
- package/dist/components/ch-radio.js +1 -1
- package/dist/components/ch-select.js +1 -1
- package/dist/components/ch-spinner.d.ts +11 -0
- package/dist/components/ch-spinner.js +2 -0
- package/dist/components/ch-spinner.js.map +1 -0
- package/dist/components/ch-switch.js +1 -1
- package/dist/components/ch-tabs.js +1 -1
- package/dist/components/ch-textarea.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-ONE3uKkF.js +2 -0
- package/dist/components/p-ONE3uKkF.js.map +1 -0
- package/dist/esm/ch-accordion.entry.js +1 -1
- package/dist/esm/{ch-badge_6.entry.js → ch-alert_8.entry.js} +72 -10
- package/dist/esm/ch-alert_8.entry.js.map +1 -0
- package/dist/esm/ch-checkbox.entry.js +2 -2
- package/dist/esm/ch-divider.entry.js +2 -2
- package/dist/esm/ch-link.entry.js +1 -1
- package/dist/esm/ch-radio.entry.js +2 -2
- package/dist/esm/ch-tabs.entry.js +2 -2
- package/dist/esm/ch-textarea.entry.js +2 -2
- package/dist/esm/chucao.js +4 -4
- package/dist/esm/chucao.js.map +1 -1
- package/dist/esm/{index-ImsAHlk9.js → index-pfWAsOzE.js} +38 -9
- package/dist/esm/index-pfWAsOzE.js.map +1 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/ch-alert/ch-alert.d.ts +34 -0
- package/dist/types/components/ch-spinner/ch-spinner.d.ts +25 -0
- package/dist/types/components.d.ts +153 -0
- package/dist/types/stencil-public-runtime.d.ts +11 -0
- package/dist/types/tokens/tokens.d.ts +4 -0
- package/dist/types/tokens/types.d.ts +2 -2
- package/dist-react/components.d.ts +9 -1
- package/dist-react/components.js +18 -0
- package/dist-react/components.ts +25 -1
- package/dist-vue/index.d.ts +2 -0
- package/dist-vue/index.js +13 -0
- package/dist-vue/index.ts +17 -0
- package/hydrate/index.js +138 -16
- package/hydrate/index.mjs +138 -16
- package/package.json +6 -2
- package/dist/chucao/p-ImsAHlk9.js +0 -3
- package/dist/chucao/p-ImsAHlk9.js.map +0 -1
- package/dist/chucao/p-af2c57b5.entry.js +0 -2
- package/dist/chucao/p-b4520f1c.entry.js +0 -2
- package/dist/chucao/p-b4520f1c.entry.js.map +0 -1
- package/dist/chucao/p-fe0c9320.entry.js +0 -2
- package/dist/cjs/ch-badge_6.cjs.entry.js.map +0 -1
- package/dist/cjs/index-CiYvuUBV.js.map +0 -1
- package/dist/components/p-x4aZoujY.js +0 -2
- package/dist/components/p-x4aZoujY.js.map +0 -1
- package/dist/esm/ch-badge_6.entry.js.map +0 -1
- package/dist/esm/index-ImsAHlk9.js.map +0 -1
- /package/dist/chucao/{p-dde82d7d.entry.js.map → p-053d58a4.entry.js.map} +0 -0
- /package/dist/chucao/{p-fcc70c8d.entry.js.map → p-20492b73.entry.js.map} +0 -0
- /package/dist/chucao/{p-fe0c9320.entry.js.map → p-488c7838.entry.js.map} +0 -0
- /package/dist/chucao/{p-175aee94.entry.js.map → p-9a614e82.entry.js.map} +0 -0
- /package/dist/chucao/{p-d75eeeea.entry.js.map → p-ad3206a2.entry.js.map} +0 -0
- /package/dist/chucao/{p-85a49fd7.entry.js.map → p-fe8e9537.entry.js.map} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by toki v1.
|
|
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';
|
|
@@ -52,7 +52,9 @@ const shadowCardHover = '0 4px 20px rgba(45, 212, 191, 0.06)';
|
|
|
52
52
|
const effectBlur = '10px';
|
|
53
53
|
const durationFast = '150ms';
|
|
54
54
|
const durationNormal = '200ms';
|
|
55
|
+
const durationSpin = '800ms';
|
|
55
56
|
const easingDefault = 'ease';
|
|
57
|
+
const easingLinear = 'linear';
|
|
56
58
|
const focusOutlineWidth = '2px';
|
|
57
59
|
const focusOutlineOffset = '2px';
|
|
58
60
|
const opacityDisabled = 0.5;
|
|
@@ -149,9 +151,11 @@ const tokens = {
|
|
|
149
151
|
'duration': {
|
|
150
152
|
fast: '150ms',
|
|
151
153
|
normal: '200ms',
|
|
154
|
+
spin: '800ms',
|
|
152
155
|
},
|
|
153
156
|
'easing': {
|
|
154
157
|
default: 'ease',
|
|
158
|
+
linear: 'linear',
|
|
155
159
|
},
|
|
156
160
|
'focus': {
|
|
157
161
|
outlineWidth: '2px',
|
|
@@ -170,7 +174,7 @@ const tokens = {
|
|
|
170
174
|
},
|
|
171
175
|
};
|
|
172
176
|
|
|
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 };
|
|
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 };
|
|
174
178
|
//# sourceMappingURL=index.js.map
|
|
175
179
|
|
|
176
180
|
//# 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.
|
|
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":"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"}
|
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-pfWAsOzE.js';
|
|
2
|
+
export { s as setNonce } from './index-pfWAsOzE.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-
|
|
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-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);
|
|
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,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
|
+
}
|
|
@@ -6,20 +6,24 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
9
|
+
import { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
9
10
|
import { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
10
11
|
import { ChButtonVariant } from "./components/ch-button/ch-button";
|
|
11
12
|
import { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
12
13
|
import { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
13
14
|
import { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
14
15
|
import { ChSelectOption } from "./components/ch-select/ch-select";
|
|
16
|
+
import { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
15
17
|
import { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
16
18
|
export { ChAccordionItem } from "./components/ch-accordion/ch-accordion";
|
|
19
|
+
export { ChAlertVariant } from "./components/ch-alert/ch-alert";
|
|
17
20
|
export { ChBadgeVariant } from "./components/ch-badge/ch-badge";
|
|
18
21
|
export { ChButtonVariant } from "./components/ch-button/ch-button";
|
|
19
22
|
export { ChDividerOrientation } from "./components/ch-divider/ch-divider";
|
|
20
23
|
export { ChLinkVariant } from "./components/ch-link/ch-link";
|
|
21
24
|
export { ChRadioOption } from "./components/ch-radio/ch-radio";
|
|
22
25
|
export { ChSelectOption } from "./components/ch-select/ch-select";
|
|
26
|
+
export { ChSpinnerSize } from "./components/ch-spinner/ch-spinner";
|
|
23
27
|
export { ChTab } from "./components/ch-tabs/ch-tabs";
|
|
24
28
|
export namespace Components {
|
|
25
29
|
interface ChAccordion {
|
|
@@ -33,6 +37,25 @@ export namespace Components {
|
|
|
33
37
|
*/
|
|
34
38
|
"value"?: string;
|
|
35
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Block-level status message.
|
|
42
|
+
* `warning` carries `role="alert"` and is announced assertively; `default` and
|
|
43
|
+
* `positive` use `role="status"`, since a confirmation is not urgent enough to
|
|
44
|
+
* interrupt. Both announce reliably when the alert is added to the page in
|
|
45
|
+
* response to something — an alert already present at load may not be read out,
|
|
46
|
+
* which is how live regions work rather than something this component controls.
|
|
47
|
+
*/
|
|
48
|
+
interface ChAlert {
|
|
49
|
+
/**
|
|
50
|
+
* Accessible label for the dismiss button, set as `aria-label`. Setting it is what adds the button: the button's only content is a decorative glyph, so without a label it would have no accessible name at all.
|
|
51
|
+
*/
|
|
52
|
+
"dismissLabel"?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
|
|
55
|
+
* @default 'default'
|
|
56
|
+
*/
|
|
57
|
+
"variant": ChAlertVariant;
|
|
58
|
+
}
|
|
36
59
|
interface ChBadge {
|
|
37
60
|
/**
|
|
38
61
|
* The visual style of the badge. Either `default`, `positive`, or `warning`.
|
|
@@ -263,6 +286,24 @@ export namespace Components {
|
|
|
263
286
|
*/
|
|
264
287
|
"value"?: string;
|
|
265
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Loading indicator.
|
|
291
|
+
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
292
|
+
* colour and stays legible on any surface — inside a primary `ch-button` it
|
|
293
|
+
* picks up the button's own text colour instead of the accent, which would be
|
|
294
|
+
* invisible there. Set `color` on or above the element to change it.
|
|
295
|
+
*/
|
|
296
|
+
interface ChSpinner {
|
|
297
|
+
/**
|
|
298
|
+
* Accessible label announced while the spinner is visible, e.g. `Cargando resultados`. When omitted the spinner is treated as decorative and hidden from assistive technology — the right behaviour next to visible loading text, which would otherwise be announced twice.
|
|
299
|
+
*/
|
|
300
|
+
"label"?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The size of the spinner. Either `sm`, `md`, or `lg`. Each size sets a font-size and the spinner is drawn in `em`, so it also scales with an inherited font-size.
|
|
303
|
+
* @default 'md'
|
|
304
|
+
*/
|
|
305
|
+
"size": ChSpinnerSize;
|
|
306
|
+
}
|
|
266
307
|
interface ChSwitch {
|
|
267
308
|
/**
|
|
268
309
|
* Whether the switch is on.
|
|
@@ -373,6 +414,10 @@ export interface ChAccordionCustomEvent<T> extends CustomEvent<T> {
|
|
|
373
414
|
detail: T;
|
|
374
415
|
target: HTMLChAccordionElement;
|
|
375
416
|
}
|
|
417
|
+
export interface ChAlertCustomEvent<T> extends CustomEvent<T> {
|
|
418
|
+
detail: T;
|
|
419
|
+
target: HTMLChAlertElement;
|
|
420
|
+
}
|
|
376
421
|
export interface ChButtonCustomEvent<T> extends CustomEvent<T> {
|
|
377
422
|
detail: T;
|
|
378
423
|
target: HTMLChButtonElement;
|
|
@@ -427,6 +472,31 @@ declare global {
|
|
|
427
472
|
prototype: HTMLChAccordionElement;
|
|
428
473
|
new (): HTMLChAccordionElement;
|
|
429
474
|
};
|
|
475
|
+
interface HTMLChAlertElementEventMap {
|
|
476
|
+
"chDismiss": void;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Block-level status message.
|
|
480
|
+
* `warning` carries `role="alert"` and is announced assertively; `default` and
|
|
481
|
+
* `positive` use `role="status"`, since a confirmation is not urgent enough to
|
|
482
|
+
* interrupt. Both announce reliably when the alert is added to the page in
|
|
483
|
+
* response to something — an alert already present at load may not be read out,
|
|
484
|
+
* which is how live regions work rather than something this component controls.
|
|
485
|
+
*/
|
|
486
|
+
interface HTMLChAlertElement extends Components.ChAlert, HTMLStencilElement {
|
|
487
|
+
addEventListener<K extends keyof HTMLChAlertElementEventMap>(type: K, listener: (this: HTMLChAlertElement, ev: ChAlertCustomEvent<HTMLChAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
488
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
489
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
490
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
491
|
+
removeEventListener<K extends keyof HTMLChAlertElementEventMap>(type: K, listener: (this: HTMLChAlertElement, ev: ChAlertCustomEvent<HTMLChAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
492
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
493
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
494
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
495
|
+
}
|
|
496
|
+
var HTMLChAlertElement: {
|
|
497
|
+
prototype: HTMLChAlertElement;
|
|
498
|
+
new (): HTMLChAlertElement;
|
|
499
|
+
};
|
|
430
500
|
interface HTMLChBadgeElement extends Components.ChBadge, HTMLStencilElement {
|
|
431
501
|
}
|
|
432
502
|
var HTMLChBadgeElement: {
|
|
@@ -548,6 +618,19 @@ declare global {
|
|
|
548
618
|
prototype: HTMLChSelectElement;
|
|
549
619
|
new (): HTMLChSelectElement;
|
|
550
620
|
};
|
|
621
|
+
/**
|
|
622
|
+
* Loading indicator.
|
|
623
|
+
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
624
|
+
* colour and stays legible on any surface — inside a primary `ch-button` it
|
|
625
|
+
* picks up the button's own text colour instead of the accent, which would be
|
|
626
|
+
* invisible there. Set `color` on or above the element to change it.
|
|
627
|
+
*/
|
|
628
|
+
interface HTMLChSpinnerElement extends Components.ChSpinner, HTMLStencilElement {
|
|
629
|
+
}
|
|
630
|
+
var HTMLChSpinnerElement: {
|
|
631
|
+
prototype: HTMLChSpinnerElement;
|
|
632
|
+
new (): HTMLChSpinnerElement;
|
|
633
|
+
};
|
|
551
634
|
interface HTMLChSwitchElementEventMap {
|
|
552
635
|
"chChange": boolean;
|
|
553
636
|
}
|
|
@@ -602,6 +685,7 @@ declare global {
|
|
|
602
685
|
};
|
|
603
686
|
interface HTMLElementTagNameMap {
|
|
604
687
|
"ch-accordion": HTMLChAccordionElement;
|
|
688
|
+
"ch-alert": HTMLChAlertElement;
|
|
605
689
|
"ch-badge": HTMLChBadgeElement;
|
|
606
690
|
"ch-button": HTMLChButtonElement;
|
|
607
691
|
"ch-card": HTMLChCardElement;
|
|
@@ -611,6 +695,7 @@ declare global {
|
|
|
611
695
|
"ch-link": HTMLChLinkElement;
|
|
612
696
|
"ch-radio": HTMLChRadioElement;
|
|
613
697
|
"ch-select": HTMLChSelectElement;
|
|
698
|
+
"ch-spinner": HTMLChSpinnerElement;
|
|
614
699
|
"ch-switch": HTMLChSwitchElement;
|
|
615
700
|
"ch-tabs": HTMLChTabsElement;
|
|
616
701
|
"ch-textarea": HTMLChTextareaElement;
|
|
@@ -632,6 +717,29 @@ declare namespace LocalJSX {
|
|
|
632
717
|
*/
|
|
633
718
|
"value"?: string;
|
|
634
719
|
}
|
|
720
|
+
/**
|
|
721
|
+
* Block-level status message.
|
|
722
|
+
* `warning` carries `role="alert"` and is announced assertively; `default` and
|
|
723
|
+
* `positive` use `role="status"`, since a confirmation is not urgent enough to
|
|
724
|
+
* interrupt. Both announce reliably when the alert is added to the page in
|
|
725
|
+
* response to something — an alert already present at load may not be read out,
|
|
726
|
+
* which is how live regions work rather than something this component controls.
|
|
727
|
+
*/
|
|
728
|
+
interface ChAlert {
|
|
729
|
+
/**
|
|
730
|
+
* Accessible label for the dismiss button, set as `aria-label`. Setting it is what adds the button: the button's only content is a decorative glyph, so without a label it would have no accessible name at all.
|
|
731
|
+
*/
|
|
732
|
+
"dismissLabel"?: string;
|
|
733
|
+
/**
|
|
734
|
+
* Emitted when the dismiss button is clicked. The alert stays in the DOM — whether to remove it is the consumer's decision. If you do remove it, move focus somewhere sensible first: removing the focused button drops focus to `<body>`.
|
|
735
|
+
*/
|
|
736
|
+
"onChDismiss"?: (event: ChAlertCustomEvent<void>) => void;
|
|
737
|
+
/**
|
|
738
|
+
* The kind of message. `default` is neutral, `positive` confirms, and `warning` covers both warnings and errors — the token scale has a single status colour for the two of them.
|
|
739
|
+
* @default 'default'
|
|
740
|
+
*/
|
|
741
|
+
"variant"?: ChAlertVariant;
|
|
742
|
+
}
|
|
635
743
|
interface ChBadge {
|
|
636
744
|
/**
|
|
637
745
|
* The visual style of the badge. Either `default`, `positive`, or `warning`.
|
|
@@ -890,6 +998,24 @@ declare namespace LocalJSX {
|
|
|
890
998
|
*/
|
|
891
999
|
"value"?: string;
|
|
892
1000
|
}
|
|
1001
|
+
/**
|
|
1002
|
+
* Loading indicator.
|
|
1003
|
+
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
1004
|
+
* colour and stays legible on any surface — inside a primary `ch-button` it
|
|
1005
|
+
* picks up the button's own text colour instead of the accent, which would be
|
|
1006
|
+
* invisible there. Set `color` on or above the element to change it.
|
|
1007
|
+
*/
|
|
1008
|
+
interface ChSpinner {
|
|
1009
|
+
/**
|
|
1010
|
+
* Accessible label announced while the spinner is visible, e.g. `Cargando resultados`. When omitted the spinner is treated as decorative and hidden from assistive technology — the right behaviour next to visible loading text, which would otherwise be announced twice.
|
|
1011
|
+
*/
|
|
1012
|
+
"label"?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The size of the spinner. Either `sm`, `md`, or `lg`. Each size sets a font-size and the spinner is drawn in `em`, so it also scales with an inherited font-size.
|
|
1015
|
+
* @default 'md'
|
|
1016
|
+
*/
|
|
1017
|
+
"size"?: ChSpinnerSize;
|
|
1018
|
+
}
|
|
893
1019
|
interface ChSwitch {
|
|
894
1020
|
/**
|
|
895
1021
|
* Whether the switch is on.
|
|
@@ -1015,6 +1141,10 @@ declare namespace LocalJSX {
|
|
|
1015
1141
|
interface ChAccordionAttributes {
|
|
1016
1142
|
"value": string;
|
|
1017
1143
|
}
|
|
1144
|
+
interface ChAlertAttributes {
|
|
1145
|
+
"variant": ChAlertVariant;
|
|
1146
|
+
"dismissLabel": string;
|
|
1147
|
+
}
|
|
1018
1148
|
interface ChBadgeAttributes {
|
|
1019
1149
|
"variant": ChBadgeVariant;
|
|
1020
1150
|
}
|
|
@@ -1076,6 +1206,10 @@ declare namespace LocalJSX {
|
|
|
1076
1206
|
"errorMessage": string;
|
|
1077
1207
|
"invalid": boolean;
|
|
1078
1208
|
}
|
|
1209
|
+
interface ChSpinnerAttributes {
|
|
1210
|
+
"size": ChSpinnerSize;
|
|
1211
|
+
"label": string;
|
|
1212
|
+
}
|
|
1079
1213
|
interface ChSwitchAttributes {
|
|
1080
1214
|
"label": string;
|
|
1081
1215
|
"name": string;
|
|
@@ -1106,6 +1240,7 @@ declare namespace LocalJSX {
|
|
|
1106
1240
|
|
|
1107
1241
|
interface IntrinsicElements {
|
|
1108
1242
|
"ch-accordion": Omit<ChAccordion, keyof ChAccordionAttributes> & { [K in keyof ChAccordion & keyof ChAccordionAttributes]?: ChAccordion[K] } & { [K in keyof ChAccordion & keyof ChAccordionAttributes as `attr:${K}`]?: ChAccordionAttributes[K] } & { [K in keyof ChAccordion & keyof ChAccordionAttributes as `prop:${K}`]?: ChAccordion[K] };
|
|
1243
|
+
"ch-alert": Omit<ChAlert, keyof ChAlertAttributes> & { [K in keyof ChAlert & keyof ChAlertAttributes]?: ChAlert[K] } & { [K in keyof ChAlert & keyof ChAlertAttributes as `attr:${K}`]?: ChAlertAttributes[K] } & { [K in keyof ChAlert & keyof ChAlertAttributes as `prop:${K}`]?: ChAlert[K] };
|
|
1109
1244
|
"ch-badge": Omit<ChBadge, keyof ChBadgeAttributes> & { [K in keyof ChBadge & keyof ChBadgeAttributes]?: ChBadge[K] } & { [K in keyof ChBadge & keyof ChBadgeAttributes as `attr:${K}`]?: ChBadgeAttributes[K] } & { [K in keyof ChBadge & keyof ChBadgeAttributes as `prop:${K}`]?: ChBadge[K] };
|
|
1110
1245
|
"ch-button": Omit<ChButton, keyof ChButtonAttributes> & { [K in keyof ChButton & keyof ChButtonAttributes]?: ChButton[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `attr:${K}`]?: ChButtonAttributes[K] } & { [K in keyof ChButton & keyof ChButtonAttributes as `prop:${K}`]?: ChButton[K] };
|
|
1111
1246
|
"ch-card": ChCard;
|
|
@@ -1115,6 +1250,7 @@ declare namespace LocalJSX {
|
|
|
1115
1250
|
"ch-link": Omit<ChLink, keyof ChLinkAttributes> & { [K in keyof ChLink & keyof ChLinkAttributes]?: ChLink[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `attr:${K}`]?: ChLinkAttributes[K] } & { [K in keyof ChLink & keyof ChLinkAttributes as `prop:${K}`]?: ChLink[K] };
|
|
1116
1251
|
"ch-radio": Omit<ChRadio, keyof ChRadioAttributes> & { [K in keyof ChRadio & keyof ChRadioAttributes]?: ChRadio[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `attr:${K}`]?: ChRadioAttributes[K] } & { [K in keyof ChRadio & keyof ChRadioAttributes as `prop:${K}`]?: ChRadio[K] };
|
|
1117
1252
|
"ch-select": Omit<ChSelect, keyof ChSelectAttributes> & { [K in keyof ChSelect & keyof ChSelectAttributes]?: ChSelect[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `attr:${K}`]?: ChSelectAttributes[K] } & { [K in keyof ChSelect & keyof ChSelectAttributes as `prop:${K}`]?: ChSelect[K] };
|
|
1253
|
+
"ch-spinner": Omit<ChSpinner, keyof ChSpinnerAttributes> & { [K in keyof ChSpinner & keyof ChSpinnerAttributes]?: ChSpinner[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `attr:${K}`]?: ChSpinnerAttributes[K] } & { [K in keyof ChSpinner & keyof ChSpinnerAttributes as `prop:${K}`]?: ChSpinner[K] };
|
|
1118
1254
|
"ch-switch": Omit<ChSwitch, keyof ChSwitchAttributes> & { [K in keyof ChSwitch & keyof ChSwitchAttributes]?: ChSwitch[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `attr:${K}`]?: ChSwitchAttributes[K] } & { [K in keyof ChSwitch & keyof ChSwitchAttributes as `prop:${K}`]?: ChSwitch[K] };
|
|
1119
1255
|
"ch-tabs": Omit<ChTabs, keyof ChTabsAttributes> & { [K in keyof ChTabs & keyof ChTabsAttributes]?: ChTabs[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `attr:${K}`]?: ChTabsAttributes[K] } & { [K in keyof ChTabs & keyof ChTabsAttributes as `prop:${K}`]?: ChTabs[K] };
|
|
1120
1256
|
"ch-textarea": Omit<ChTextarea, keyof ChTextareaAttributes> & { [K in keyof ChTextarea & keyof ChTextareaAttributes]?: ChTextarea[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `attr:${K}`]?: ChTextareaAttributes[K] } & { [K in keyof ChTextarea & keyof ChTextareaAttributes as `prop:${K}`]?: ChTextarea[K] };
|
|
@@ -1125,6 +1261,15 @@ declare module "@stencil/core" {
|
|
|
1125
1261
|
export namespace JSX {
|
|
1126
1262
|
interface IntrinsicElements {
|
|
1127
1263
|
"ch-accordion": LocalJSX.IntrinsicElements["ch-accordion"] & JSXBase.HTMLAttributes<HTMLChAccordionElement>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Block-level status message.
|
|
1266
|
+
* `warning` carries `role="alert"` and is announced assertively; `default` and
|
|
1267
|
+
* `positive` use `role="status"`, since a confirmation is not urgent enough to
|
|
1268
|
+
* interrupt. Both announce reliably when the alert is added to the page in
|
|
1269
|
+
* response to something — an alert already present at load may not be read out,
|
|
1270
|
+
* which is how live regions work rather than something this component controls.
|
|
1271
|
+
*/
|
|
1272
|
+
"ch-alert": LocalJSX.IntrinsicElements["ch-alert"] & JSXBase.HTMLAttributes<HTMLChAlertElement>;
|
|
1128
1273
|
"ch-badge": LocalJSX.IntrinsicElements["ch-badge"] & JSXBase.HTMLAttributes<HTMLChBadgeElement>;
|
|
1129
1274
|
"ch-button": LocalJSX.IntrinsicElements["ch-button"] & JSXBase.HTMLAttributes<HTMLChButtonElement>;
|
|
1130
1275
|
"ch-card": LocalJSX.IntrinsicElements["ch-card"] & JSXBase.HTMLAttributes<HTMLChCardElement>;
|
|
@@ -1134,6 +1279,14 @@ declare module "@stencil/core" {
|
|
|
1134
1279
|
"ch-link": LocalJSX.IntrinsicElements["ch-link"] & JSXBase.HTMLAttributes<HTMLChLinkElement>;
|
|
1135
1280
|
"ch-radio": LocalJSX.IntrinsicElements["ch-radio"] & JSXBase.HTMLAttributes<HTMLChRadioElement>;
|
|
1136
1281
|
"ch-select": LocalJSX.IntrinsicElements["ch-select"] & JSXBase.HTMLAttributes<HTMLChSelectElement>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Loading indicator.
|
|
1284
|
+
* The spinner is drawn in `currentColor`, so it takes the surrounding text
|
|
1285
|
+
* colour and stays legible on any surface — inside a primary `ch-button` it
|
|
1286
|
+
* picks up the button's own text colour instead of the accent, which would be
|
|
1287
|
+
* invisible there. Set `color` on or above the element to change it.
|
|
1288
|
+
*/
|
|
1289
|
+
"ch-spinner": LocalJSX.IntrinsicElements["ch-spinner"] & JSXBase.HTMLAttributes<HTMLChSpinnerElement>;
|
|
1137
1290
|
"ch-switch": LocalJSX.IntrinsicElements["ch-switch"] & JSXBase.HTMLAttributes<HTMLChSwitchElement>;
|
|
1138
1291
|
"ch-tabs": LocalJSX.IntrinsicElements["ch-tabs"] & JSXBase.HTMLAttributes<HTMLChTabsElement>;
|
|
1139
1292
|
"ch-textarea": LocalJSX.IntrinsicElements["ch-textarea"] & JSXBase.HTMLAttributes<HTMLChTextareaElement>;
|
|
@@ -1008,6 +1008,7 @@ export declare namespace JSXBase {
|
|
|
1008
1008
|
onClose?: (event: Event) => void;
|
|
1009
1009
|
open?: boolean;
|
|
1010
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
1011
1012
|
}
|
|
1012
1013
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
1014
|
height?: number | string;
|
|
@@ -1045,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
1045
1046
|
allowtransparency?: string | boolean;
|
|
1046
1047
|
frameBorder?: number | string;
|
|
1047
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1048
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
1049
1052
|
height?: number | string;
|
|
1050
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1067,6 +1070,8 @@ export declare namespace JSXBase {
|
|
|
1067
1070
|
crossOrigin?: string;
|
|
1068
1071
|
crossorigin?: string;
|
|
1069
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1070
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
1071
1076
|
height?: number | string;
|
|
1072
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1166,6 +1171,8 @@ export declare namespace JSXBase {
|
|
|
1166
1171
|
}
|
|
1167
1172
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1168
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1169
1176
|
href?: string;
|
|
1170
1177
|
hrefLang?: string;
|
|
1171
1178
|
hreflang?: string;
|
|
@@ -1289,6 +1296,8 @@ export declare namespace JSXBase {
|
|
|
1289
1296
|
crossOrigin?: string;
|
|
1290
1297
|
crossorigin?: string;
|
|
1291
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1292
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1293
1302
|
integrity?: string;
|
|
1294
1303
|
nonce?: string;
|
|
@@ -1404,7 +1413,9 @@ export declare namespace JSXBase {
|
|
|
1404
1413
|
tabIndex?: number;
|
|
1405
1414
|
tabindex?: number | string;
|
|
1406
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1407
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1408
1419
|
inputMode?: string;
|
|
1409
1420
|
inputmode?: string;
|
|
1410
1421
|
enterKeyHint?: string;
|
|
@@ -51,7 +51,9 @@ export declare const shadowCardHover = "0 4px 20px rgba(45, 212, 191, 0.06)";
|
|
|
51
51
|
export declare const effectBlur = "10px";
|
|
52
52
|
export declare const durationFast = "150ms";
|
|
53
53
|
export declare const durationNormal = "200ms";
|
|
54
|
+
export declare const durationSpin = "800ms";
|
|
54
55
|
export declare const easingDefault = "ease";
|
|
56
|
+
export declare const easingLinear = "linear";
|
|
55
57
|
export declare const focusOutlineWidth = "2px";
|
|
56
58
|
export declare const focusOutlineOffset = "2px";
|
|
57
59
|
export declare const opacityDisabled = 0.5;
|
|
@@ -148,9 +150,11 @@ export declare const tokens: {
|
|
|
148
150
|
readonly duration: {
|
|
149
151
|
readonly fast: "150ms";
|
|
150
152
|
readonly normal: "200ms";
|
|
153
|
+
readonly spin: "800ms";
|
|
151
154
|
};
|
|
152
155
|
readonly easing: {
|
|
153
156
|
readonly default: "ease";
|
|
157
|
+
readonly linear: "linear";
|
|
154
158
|
};
|
|
155
159
|
readonly focus: {
|
|
156
160
|
readonly outlineWidth: "2px";
|
|
@@ -5,8 +5,8 @@ export type RadiusToken = 'radius.sm' | 'radius.md' | 'radius.pill';
|
|
|
5
5
|
export type BorderToken = 'border.width' | 'border.accent-bar';
|
|
6
6
|
export type ShadowToken = 'shadow.focus-ring' | 'shadow.card-hover';
|
|
7
7
|
export type EffectToken = 'effect.blur';
|
|
8
|
-
export type DurationToken = 'duration.fast' | 'duration.normal';
|
|
9
|
-
export type EasingToken = 'easing.default';
|
|
8
|
+
export type DurationToken = 'duration.fast' | 'duration.normal' | 'duration.spin';
|
|
9
|
+
export type EasingToken = 'easing.default' | 'easing.linear';
|
|
10
10
|
export type FocusToken = 'focus.outline-width' | 'focus.outline-offset';
|
|
11
11
|
export type OpacityToken = 'opacity.disabled';
|
|
12
12
|
export type ZIndexToken = 'z-index.base' | 'z-index.dropdown' | 'z-index.modal';
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
4
|
*/
|
|
5
5
|
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
-
import { type ChAccordionCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
6
|
+
import { type ChAccordionCustomEvent, type ChAlertCustomEvent, type ChButtonCustomEvent, type ChCheckboxCustomEvent, type ChInputCustomEvent, type ChLinkCustomEvent, type ChRadioCustomEvent, type ChSelectCustomEvent, type ChSwitchCustomEvent, type ChTabsCustomEvent, type ChTextareaCustomEvent } from "@devschile/chucao";
|
|
7
7
|
import type { Components } from "@devschile/chucao/dist/components";
|
|
8
8
|
import { ChAccordion as ChAccordionElement } from "@devschile/chucao/dist/components/ch-accordion.js";
|
|
9
|
+
import { ChAlert as ChAlertElement } from "@devschile/chucao/dist/components/ch-alert.js";
|
|
9
10
|
import { ChBadge as ChBadgeElement } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
10
11
|
import { ChButton as ChButtonElement } from "@devschile/chucao/dist/components/ch-button.js";
|
|
11
12
|
import { ChCard as ChCardElement } from "@devschile/chucao/dist/components/ch-card.js";
|
|
@@ -15,6 +16,7 @@ import { ChInput as ChInputElement } from "@devschile/chucao/dist/components/ch-
|
|
|
15
16
|
import { ChLink as ChLinkElement } from "@devschile/chucao/dist/components/ch-link.js";
|
|
16
17
|
import { ChRadio as ChRadioElement } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
17
18
|
import { ChSelect as ChSelectElement } from "@devschile/chucao/dist/components/ch-select.js";
|
|
19
|
+
import { ChSpinner as ChSpinnerElement } from "@devschile/chucao/dist/components/ch-spinner.js";
|
|
18
20
|
import { ChSwitch as ChSwitchElement } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
19
21
|
import { ChTabs as ChTabsElement } from "@devschile/chucao/dist/components/ch-tabs.js";
|
|
20
22
|
import { ChTextarea as ChTextareaElement } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
@@ -22,6 +24,10 @@ export type ChAccordionEvents = {
|
|
|
22
24
|
onChChange: EventName<ChAccordionCustomEvent<string | undefined>>;
|
|
23
25
|
};
|
|
24
26
|
export declare const ChAccordion: StencilReactComponent<ChAccordionElement, ChAccordionEvents, Components.ChAccordion>;
|
|
27
|
+
export type ChAlertEvents = {
|
|
28
|
+
onChDismiss: EventName<ChAlertCustomEvent<void>>;
|
|
29
|
+
};
|
|
30
|
+
export declare const ChAlert: StencilReactComponent<ChAlertElement, ChAlertEvents, Components.ChAlert>;
|
|
25
31
|
export type ChBadgeEvents = NonNullable<unknown>;
|
|
26
32
|
export declare const ChBadge: StencilReactComponent<ChBadgeElement, ChBadgeEvents, Components.ChBadge>;
|
|
27
33
|
export type ChButtonEvents = {
|
|
@@ -53,6 +59,8 @@ export type ChSelectEvents = {
|
|
|
53
59
|
onChChange: EventName<ChSelectCustomEvent<string>>;
|
|
54
60
|
};
|
|
55
61
|
export declare const ChSelect: StencilReactComponent<ChSelectElement, ChSelectEvents, Components.ChSelect>;
|
|
62
|
+
export type ChSpinnerEvents = NonNullable<unknown>;
|
|
63
|
+
export declare const ChSpinner: StencilReactComponent<ChSpinnerElement, ChSpinnerEvents, Components.ChSpinner>;
|
|
56
64
|
export type ChSwitchEvents = {
|
|
57
65
|
onChChange: EventName<ChSwitchCustomEvent<boolean>>;
|
|
58
66
|
};
|
package/dist-react/components.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ChAccordion as ChAccordionElement, defineCustomElement as defineChAccordion } from "@devschile/chucao/dist/components/ch-accordion.js";
|
|
5
|
+
import { ChAlert as ChAlertElement, defineCustomElement as defineChAlert } from "@devschile/chucao/dist/components/ch-alert.js";
|
|
5
6
|
import { ChBadge as ChBadgeElement, defineCustomElement as defineChBadge } from "@devschile/chucao/dist/components/ch-badge.js";
|
|
6
7
|
import { ChButton as ChButtonElement, defineCustomElement as defineChButton } from "@devschile/chucao/dist/components/ch-button.js";
|
|
7
8
|
import { ChCard as ChCardElement, defineCustomElement as defineChCard } from "@devschile/chucao/dist/components/ch-card.js";
|
|
@@ -11,6 +12,7 @@ import { ChInput as ChInputElement, defineCustomElement as defineChInput } from
|
|
|
11
12
|
import { ChLink as ChLinkElement, defineCustomElement as defineChLink } from "@devschile/chucao/dist/components/ch-link.js";
|
|
12
13
|
import { ChRadio as ChRadioElement, defineCustomElement as defineChRadio } from "@devschile/chucao/dist/components/ch-radio.js";
|
|
13
14
|
import { ChSelect as ChSelectElement, defineCustomElement as defineChSelect } from "@devschile/chucao/dist/components/ch-select.js";
|
|
15
|
+
import { ChSpinner as ChSpinnerElement, defineCustomElement as defineChSpinner } from "@devschile/chucao/dist/components/ch-spinner.js";
|
|
14
16
|
import { ChSwitch as ChSwitchElement, defineCustomElement as defineChSwitch } from "@devschile/chucao/dist/components/ch-switch.js";
|
|
15
17
|
import { ChTabs as ChTabsElement, defineCustomElement as defineChTabs } from "@devschile/chucao/dist/components/ch-tabs.js";
|
|
16
18
|
import { ChTextarea as ChTextareaElement, defineCustomElement as defineChTextarea } from "@devschile/chucao/dist/components/ch-textarea.js";
|
|
@@ -22,6 +24,14 @@ export const ChAccordion = /*@__PURE__*/ createComponent({
|
|
|
22
24
|
events: { onChChange: 'chChange' },
|
|
23
25
|
defineCustomElement: defineChAccordion
|
|
24
26
|
});
|
|
27
|
+
export const ChAlert = /*@__PURE__*/ createComponent({
|
|
28
|
+
tagName: 'ch-alert',
|
|
29
|
+
elementClass: ChAlertElement,
|
|
30
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
31
|
+
react: React,
|
|
32
|
+
events: { onChDismiss: 'chDismiss' },
|
|
33
|
+
defineCustomElement: defineChAlert
|
|
34
|
+
});
|
|
25
35
|
export const ChBadge = /*@__PURE__*/ createComponent({
|
|
26
36
|
tagName: 'ch-badge',
|
|
27
37
|
elementClass: ChBadgeElement,
|
|
@@ -97,6 +107,14 @@ export const ChSelect = /*@__PURE__*/ createComponent({
|
|
|
97
107
|
events: { onChChange: 'chChange' },
|
|
98
108
|
defineCustomElement: defineChSelect
|
|
99
109
|
});
|
|
110
|
+
export const ChSpinner = /*@__PURE__*/ createComponent({
|
|
111
|
+
tagName: 'ch-spinner',
|
|
112
|
+
elementClass: ChSpinnerElement,
|
|
113
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
114
|
+
react: React,
|
|
115
|
+
events: {},
|
|
116
|
+
defineCustomElement: defineChSpinner
|
|
117
|
+
});
|
|
100
118
|
export const ChSwitch = /*@__PURE__*/ createComponent({
|
|
101
119
|
tagName: 'ch-switch',
|
|
102
120
|
elementClass: ChSwitchElement,
|