@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
89 lines (88 loc) • 2.87 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { generateBemClassNames } from "typed-bem";
export const bem = generateBemClassNames();
const BEM = {
'kol-alert': {
elements: {
closer: { modifiers: null },
heading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },
icon: { modifiers: null },
content: { modifiers: null },
container: { modifiers: null },
},
modifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),
},
'kol-avatar': {
elements: {
image: { modifiers: null },
initials: { modifiers: null },
},
modifiers: null,
},
'kol-icon': {
elements: {
icon: { modifiers: null },
},
modifiers: null,
},
'kol-meter': {
elements: {
bar: { modifiers: null },
'bar-background': { modifiers: null },
'bar-border': { modifiers: null },
'bar-fill': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },
'bar-label': { modifiers: null },
'bar-state': { modifiers: new Set(['critical', 'optimum', 'suboptimal']) },
'bar-track': { modifiers: null },
unit: { modifiers: null },
value: { modifiers: null },
'value-unit': { modifiers: null },
},
modifiers: new Set(['vertical']),
},
'kol-quote': {
elements: {
blockquote: { modifiers: null },
cite: { modifiers: null },
figcaption: { modifiers: null },
quote: { modifiers: null },
},
modifiers: new Set(['block', 'inline']),
},
'kol-skeleton': {
elements: {
actions: { modifiers: null },
container: { modifiers: null },
counter: { modifiers: null },
name: { modifiers: null },
},
modifiers: new Set(['has-name', 'is-hidden']),
},
'kol-click-button': {
elements: {
label: { modifiers: null },
},
modifiers: null,
},
'kol-span': {
elements: {
container: { modifiers: null },
icon: { modifiers: new Set(['bottom', 'left', 'right', 'top']) },
label: { modifiers: null },
slot: { modifiers: null },
},
modifiers: new Set(['has-badge', 'hide-label']),
},
'kol-spin': {
elements: {
loader: { modifiers: null },
spinner: { modifiers: new Set(['cycle', 'dot', 'none']) },
'spinner-element': { modifiers: new Set(['1', '2', '3', 'neutral']) },
},
modifiers: null,
},
};
export { BEM };
//# sourceMappingURL=bem-registry.js.map