0.0.14 • Published 2 months ago

@allomambo/queso v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

🧀 Queso

Required

  • Node 20.10.0
  • VueJS 3.2.37

Note
Complete documentation in progress

Installation

1. Install the package

# With Yarn:
yarn add @allomambo/queso

# With npm:
npm install @allomambo/queso

2. Use components in your project

<template>
    ...
    <queso-simple-component ...props />
    ...
    <queso-complex-component ...props>
        <template #slot>
            ...
        </template>
    </queso-complex-component>
    ...
</template>

<script setup>
import { QuesoSimpleComponent, QuesoComplexComponent } from "@allomambo/queso";
</script>

Use sass mixins, functions and utils

1. Import the sass core from the package

import "@allomambo/queso/styles/core";

2. You can update the config of some mixins by re-declaring variables in your own sass base. All the configs available are in this config file.

Frontend tooling

If you use a frontend tool like Vite or Webpack, we recommend that you import as additional data the sass core and your configs.

# Vite
export default defineConfig({
    ...
    css: {
        preprocessorOptions: {
            scss: {
                additionalData: `@import "@assets/scss/main.scss";`,
            },
        },
    },
    ...
});
# Webpackw
module.exports = {
    ...
    css: {
        loaderOptions: {
            sass: {
                data: `@import "@assets/scss/main.scss";`,
            },
        },
    },
    ...
};

JS utils

import {
    checkStatus,
    arrayToGraphQL,
    typeCheck,
    mutateState,
    resizeEnd,
    mailTo,
    tel,
    toKebab,
    capitalize,
    isTouch,
    reducedMotion,
} from "@allomambo/queso/scripts/utils";
0.0.13

2 months ago

0.0.14

2 months ago

0.0.12

3 months ago

0.0.11

5 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

9 months ago

0.0.7

10 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago