routie dev init since i didn't adhere to any proper guidance up until now

This commit is contained in:
2026-04-29 22:27:29 -06:00
commit e1dabb71e2
15301 changed files with 3562618 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import { createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from "vue";
// Components
import { VProgressLinear } from "../components/VProgressLinear/index.js"; // Utilities
import { toRef } from 'vue';
import { getCurrentInstanceName, propsFactory } from "../util/index.js"; // Types
// Composables
export const makeLoaderProps = propsFactory({
loading: [Boolean, String]
}, 'loader');
export function useLoader(props, name = getCurrentInstanceName()) {
const loaderClasses = toRef(() => ({
[`${name}--loading`]: props.loading
}));
return {
loaderClasses
};
}
export function LoaderSlot(props, {
slots
}) {
return _createElementVNode("div", {
"class": _normalizeClass(`${props.name}__loader`)
}, [slots.default?.({
color: props.color,
isActive: props.active
}) || _createVNode(VProgressLinear, {
"absolute": props.absolute,
"active": props.active,
"color": props.color,
"height": "2",
"indeterminate": true
}, null)]);
}
//# sourceMappingURL=loader.js.map