init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
import './divider.sass';
import { ThemeColorMap } from '../../../types/ThemeColorMap';
export interface BDividerProps {
text?: string;
tag?: string;
themeMap?: ThemeColorMap;
isThemeable?: boolean;
}
export default function BHorizontalDivider(props: BDividerProps): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;

View File

@@ -0,0 +1,16 @@
import "../../../../src/components/layout/divider/divider.sass";
import { DEFAULT_THEME_COLOR_MAP, useTheme } from '../../../composables/theme';
import { h } from 'vue';
export default function BHorizontalDivider(props) {
const {
themeClasses
} = useTheme({
themeMap: props.themeMap ?? DEFAULT_THEME_COLOR_MAP,
isThemeable: props.isThemeable ?? true
});
return h(props.tag ?? 'hr', {
class: ['is-divider', ...themeClasses.value],
'data-content': props.text || null
});
}
//# sourceMappingURL=BHorizontalDivider.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/layout/divider/BHorizontalDivider.ts"],"names":[],"mappings":"AAAA,OAAO,wDAAP;AACA,SAAS,uBAAT,EAAkC,QAAlC,QAAkD,4BAAlD;AAEA,SAAS,CAAT,QAAkB,KAAlB;AASA,eAAc,SAAU,kBAAV,CAA6B,KAA7B,EAAiD;AAC7D,QAAM;AAAE,IAAA;AAAF,MAAmB,QAAQ,CAAC;AAChC,IAAA,QAAQ,EAAE,KAAK,CAAC,QAAN,IAAkB,uBADI;AAEhC,IAAA,WAAW,EAAE,KAAK,CAAC,WAAN,IAAqB;AAFF,GAAD,CAAjC;AAKA,SAAO,CAAC,CAAC,KAAK,CAAC,GAAN,IAAa,IAAd,EAAoB;AAC1B,IAAA,KAAK,EAAE,CAAC,YAAD,EAAe,GAAG,YAAY,CAAC,KAA/B,CADmB;AAE1B,oBAAgB,KAAK,CAAC,IAAN,IAAc;AAFJ,GAApB,CAAR;AAID","sourcesContent":["import './divider.sass';\nimport { DEFAULT_THEME_COLOR_MAP, useTheme } from '../../../composables/theme';\nimport { ThemeColorMap } from '../../../types/ThemeColorMap';\nimport { h } from 'vue';\n\nexport interface BDividerProps {\n text?: string;\n tag?: string;\n themeMap?: ThemeColorMap;\n isThemeable?: boolean;\n}\n\nexport default function BHorizontalDivider(props: BDividerProps) {\n const { themeClasses } = useTheme({\n themeMap: props.themeMap ?? DEFAULT_THEME_COLOR_MAP,\n isThemeable: props.isThemeable ?? true\n });\n\n return h(props.tag ?? 'hr', {\n class: ['is-divider', ...themeClasses.value],\n 'data-content': props.text || null\n });\n}\n"],"sourceRoot":"","file":"BHorizontalDivider.js"}

View File

@@ -0,0 +1,5 @@
import './divider.sass';
import { BDividerProps } from './BHorizontalDivider';
export default function BVerticalDivider(props: BDividerProps): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>;

View File

@@ -0,0 +1,16 @@
import "../../../../src/components/layout/divider/divider.sass";
import { DEFAULT_THEME_COLOR_MAP, useTheme } from '../../../composables/theme';
import { h } from 'vue';
export default function BVerticalDivider(props) {
const {
themeClasses
} = useTheme({
themeMap: props.themeMap ?? DEFAULT_THEME_COLOR_MAP,
isThemeable: props.isThemeable ?? true
});
return h(props.tag ?? 'hr', {
class: ['is-divider-vertical', ...themeClasses.value],
'data-content': props.text || null
});
}
//# sourceMappingURL=BVerticalDivider.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/layout/divider/BVerticalDivider.ts"],"names":[],"mappings":"AAAA,OAAO,wDAAP;AACA,SAAS,uBAAT,EAAkC,QAAlC,QAAkD,4BAAlD;AACA,SAAS,CAAT,QAAkB,KAAlB;AAGA,eAAc,SAAU,gBAAV,CAA2B,KAA3B,EAA+C;AAC3D,QAAM;AAAE,IAAA;AAAF,MAAmB,QAAQ,CAAC;AAChC,IAAA,QAAQ,EAAE,KAAK,CAAC,QAAN,IAAkB,uBADI;AAEhC,IAAA,WAAW,EAAE,KAAK,CAAC,WAAN,IAAqB;AAFF,GAAD,CAAjC;AAIA,SAAO,CAAC,CAAC,KAAK,CAAC,GAAN,IAAa,IAAd,EAAoB;AAC1B,IAAA,KAAK,EAAE,CAAC,qBAAD,EAAwB,GAAG,YAAY,CAAC,KAAxC,CADmB;AAE1B,oBAAgB,KAAK,CAAC,IAAN,IAAc;AAFJ,GAApB,CAAR;AAID","sourcesContent":["import './divider.sass';\nimport { DEFAULT_THEME_COLOR_MAP, useTheme } from '../../../composables/theme';\nimport { h } from 'vue';\nimport { BDividerProps } from './BHorizontalDivider';\n\nexport default function BVerticalDivider(props: BDividerProps) {\n const { themeClasses } = useTheme({\n themeMap: props.themeMap ?? DEFAULT_THEME_COLOR_MAP,\n isThemeable: props.isThemeable ?? true\n });\n return h(props.tag ?? 'hr', {\n class: ['is-divider-vertical', ...themeClasses.value],\n 'data-content': props.text || null\n });\n}\n"],"sourceRoot":"","file":"BVerticalDivider.js"}

View File

@@ -0,0 +1,3 @@
import BHorizontalDivider from './BHorizontalDivider';
import BVerticalDivider from './BVerticalDivider';
export { BHorizontalDivider, BVerticalDivider };

View File

@@ -0,0 +1,4 @@
import BHorizontalDivider from './BHorizontalDivider';
import BVerticalDivider from './BVerticalDivider';
export { BHorizontalDivider, BVerticalDivider };
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/components/layout/divider/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAP,MAA+B,sBAA/B;AACA,OAAO,gBAAP,MAA6B,oBAA7B;AAEA,SAAS,kBAAT,EAA6B,gBAA7B","sourcesContent":["import BHorizontalDivider from './BHorizontalDivider';\nimport BVerticalDivider from './BVerticalDivider';\n\nexport { BHorizontalDivider, BVerticalDivider };\n"],"sourceRoot":"","file":"index.js"}