Files
personal_development/ServerManagerWebApp/frontend/node_modules/.vite/deps/chunk-YJD2PNP6.js
T

37 lines
875 B
JavaScript

import {
propsFactory
} from "./chunk-LZ5T2ERG.js";
import {
isRef,
toRef
} from "./chunk-2MKFL3BX.js";
// node_modules/vuetify/lib/composables/elevation.js
var makeElevationProps = propsFactory({
elevation: {
type: [Number, String],
validator(v) {
const value = parseInt(v);
return !isNaN(value) && value >= 0 && // Material Design has a maximum elevation of 24
// https://material.io/design/environment/elevation.html#default-elevations
value <= 24;
}
}
}, "elevation");
function useElevation(props) {
const elevationClasses = toRef(() => {
const elevation = isRef(props) ? props.value : props.elevation;
if (elevation == null) return [];
return [`elevation-${elevation}`];
});
return {
elevationClasses
};
}
export {
makeElevationProps,
useElevation
};
//# sourceMappingURL=chunk-YJD2PNP6.js.map