quasar-cosmos-design-system 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +56 -0
  2. package/dist/components/CBreadcrumbs/CBreadcrumbs.vue.d.ts +3 -0
  3. package/dist/components/CBreadcrumbs/index.d.ts +3 -0
  4. package/dist/components/CBreadcrumbs/types.d.ts +13 -0
  5. package/dist/components/CBtn/CBtn.vue.d.ts +19 -0
  6. package/dist/components/CBtn/index.d.ts +1 -0
  7. package/dist/components/CBtn/types.d.ts +11 -0
  8. package/dist/config/quasar.user-options.d.ts +5 -0
  9. package/dist/config/setup.d.ts +2 -0
  10. package/dist/main.d.ts +8 -0
  11. package/dist/quasar-cosmos-design-system.css +1 -0
  12. package/dist/quasar-cosmos-design-system.js +976 -0
  13. package/dist/utils/slots.d.ts +1 -0
  14. package/lib/components/CBreadcrumbs/CBreadcrumbs.vue +27 -0
  15. package/lib/components/CBreadcrumbs/index.ts +4 -0
  16. package/lib/components/CBreadcrumbs/types.ts +15 -0
  17. package/lib/components/CBtn/CBtn.vue +36 -0
  18. package/lib/components/CBtn/index.ts +1 -0
  19. package/lib/components/CBtn/types.ts +11 -0
  20. package/lib/config/quasar.user-options.ts +9 -0
  21. package/lib/config/setup.ts +8 -0
  22. package/lib/css/components/__c-breadcrumbs.sass +29 -0
  23. package/lib/css/components/__c-btn.sass +32 -0
  24. package/lib/css/globals/__background.sass +10 -0
  25. package/lib/css/globals/__borders.sass +10 -0
  26. package/lib/css/globals/__icons.sass +3 -0
  27. package/lib/css/globals/__text.sass +83 -0
  28. package/lib/css/index.sass +9 -0
  29. package/lib/css/quasar.variables.sass +9 -0
  30. package/lib/css/utils/__mixins.sass +20 -0
  31. package/lib/css/variables/__colors.sass +27 -0
  32. package/lib/main.ts +14 -0
  33. package/lib/utils/slots.ts +10 -0
  34. package/lib/vite-env.d.ts +1 -0
  35. package/package.json +46 -0
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # Cosmos UI Lib
2
+
3
+ A Cosmos UI Lib é uma biblioteca de componentes e design system desenvolvida para o produto Cosmos, uma parceria entre as empresas Farmarcas e Febrafar.
4
+
5
+ ## Tecnologias
6
+
7
+ - [Quasar](https://quasar.dev/) - Um framework Vue.js de código aberto que ajuda a criar rapidamente sites e aplicativos responsivos e de alto desempenho.
8
+ - [SASS](https://sass-lang.com/) - Um preprocessador CSS que adiciona recursos como variáveis, mixins e funções para tornar o CSS mais poderoso e fácil de manter.
9
+ - [TypeScript](https://www.typescriptlang.org/) - Um superset do JavaScript que adiciona tipagem estática opcional e outros recursos para tornar o código mais robusto e fácil de manter.
10
+ - [Vite](https://vitejs.dev/) - Um build tool que visa fornecer uma experiência de desenvolvimento rápida e enxuta para projetos web modernos.
11
+
12
+ ## Componentes
13
+
14
+ A biblioteca inclui componentes prontos para uso, como:
15
+
16
+ - Botões (CBtn)
17
+ - Breadcrumbs (CBreadcrumbs)
18
+ - ... outros componentes
19
+
20
+ ## Como usar
21
+
22
+ Para utilizar a Cosmos UI Lib no seu projeto Quasar, siga estas etapas:
23
+
24
+ 1. Instale o pacote:
25
+ ```bash
26
+ npm install cosmos-ui-lib
27
+ ```
28
+
29
+ 2. Configure o plugin no seu arquivo `quasar.config.js`:
30
+
31
+ ```js
32
+ module.exports = configure(function (ctx) {
33
+ return {
34
+ // ...
35
+ framework: {
36
+ plugins: ['CosmosUILib']
37
+ }
38
+ }
39
+ })
40
+ ```
41
+
42
+ 3. Importe o CSS no seu arquivo principal:
43
+
44
+ ```js
45
+ import 'cosmos-ui-lib/dist/index.css'
46
+ ```
47
+
48
+ 4. Agora você pode usar os componentes da Cosmos UI Lib no seu aplicativo!
49
+
50
+ ## Contribuindo
51
+
52
+ Se você deseja contribuir para a Cosmos UI Lib, por favor abra uma issue ou envie um pull request no nosso repositório do GitHub. Ficaremos felizes em analisar suas sugestões e melhorias.
53
+
54
+ ## Licença
55
+
56
+ A Cosmos UI Lib é licenciada sob a [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,3 @@
1
+ import { CBreadcrumbsProps } from './types';
2
+ declare const _default: import('vue').DefineComponent<CBreadcrumbsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CBreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as CBreadcrumbs } from './CBreadcrumbs.vue';
2
+ import { CBreadcrumbsProps, CBreadcrumbsSlots } from './types';
3
+ export { CBreadcrumbs, type CBreadcrumbsProps, type CBreadcrumbsSlots };
@@ -0,0 +1,13 @@
1
+ import { QBreadcrumbsProps, QBreadcrumbsElSlots } from 'quasar';
2
+ import { CBreadcrumbs } from '.';
3
+ export type CBreadcrumbItem = {
4
+ label: string;
5
+ icon?: string;
6
+ to?: string;
7
+ disable?: boolean;
8
+ };
9
+ export type CBreadcrumbs = InstanceType<typeof CBreadcrumbs>;
10
+ export interface CBreadcrumbsProps extends QBreadcrumbsProps {
11
+ breadcrumbs: Array<CBreadcrumbItem>;
12
+ }
13
+ export type CBreadcrumbsSlots = QBreadcrumbsElSlots;
@@ -0,0 +1,19 @@
1
+ import { CBtnProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<import('quasar').QBtnSlots> & import('quasar').QBtnSlots;
5
+ refs: {};
6
+ rootEl: any;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<CBtnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CBtnProps> & Readonly<{}>, {
10
+ unelevated: boolean;
11
+ color: import('quasar').NamedColor;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export { default as CBtn } from './CBtn.vue';
@@ -0,0 +1,11 @@
1
+ import { QBtnProps, QBtnSlots } from 'quasar';
2
+ import { CBtn } from '.';
3
+ export type CBtn = InstanceType<typeof CBtn>;
4
+ export interface CBtnProps extends Partial<QBtnProps> {
5
+ onClick?: (evt: Event, go?: (opts?: {
6
+ to?: any;
7
+ replace?: boolean;
8
+ returnRouterError?: boolean;
9
+ }) => Promise<any>) => void | undefined;
10
+ }
11
+ export type CBtnSlots = QBtnSlots;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ config: {};
3
+ plugins: never[];
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { App } from 'vue';
2
+ export declare function setupQuasar(app: App): void;
package/dist/main.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import { App } from 'vue';
2
+ import { default as CBtn } from './components/CBtn/CBtn.vue';
3
+ import { default as CBreadcrumbs } from './components/CBreadcrumbs/CBreadcrumbs.vue';
4
+ export { CBtn, CBreadcrumbs };
5
+ declare const _default: {
6
+ install(app: App): void;
7
+ };
8
+ export default _default;
@@ -0,0 +1 @@
1
+ .bg-primary{background-color:#5b1979!important}.bg-primary-medium{background-color:#7543a7!important}.bg-primary-light{background-color:#f7f6ff!important}.bg-neutral-high{background-color:#fafbfc!important}.bg-neutral-high-medium{background-color:#f0f2f8!important}.bg-neutral-high-dark{background-color:#c9cbd6!important}.bg-neutral-low,.bg-neutral-low-medium{background-color:#333a44!important}.bg-neutral-low-light{background-color:#bbb!important}.bg-success{background-color:#14a696!important}.bg-success-medium{background-color:#b5f2ea!important}.bg-success-light{background-color:#e0fffb!important}.bg-warning{background-color:#bd820f!important}.bg-warning-medium{background-color:#ffdfb8!important}.bg-warning-light{background-color:#ffeece!important}.bg-error{background-color:#983043!important}.bg-error-medium{background-color:#ffd0d8!important}.bg-error-light{background-color:#fff2f5!important}.hover-bg-primary:hover{background-color:#5b1979!important}.hover-bg-primary-medium:hover{background-color:#7543a7!important}.hover-bg-primary-light:hover{background-color:#f7f6ff!important}.hover-bg-neutral-high:hover{background-color:#fafbfc!important}.hover-bg-neutral-high-medium:hover{background-color:#f0f2f8!important}.hover-bg-neutral-high-dark:hover{background-color:#c9cbd6!important}.hover-bg-neutral-low:hover,.hover-bg-neutral-low-medium:hover{background-color:#333a44!important}.hover-bg-neutral-low-light:hover{background-color:#bbb!important}.hover-bg-success:hover{background-color:#14a696!important}.hover-bg-success-medium:hover{background-color:#b5f2ea!important}.hover-bg-success-light:hover{background-color:#e0fffb!important}.hover-bg-warning:hover{background-color:#bd820f!important}.hover-bg-warning-medium:hover{background-color:#ffdfb8!important}.hover-bg-warning-light:hover{background-color:#ffeece!important}.hover-bg-error:hover{background-color:#983043!important}.hover-bg-error-medium:hover{background-color:#ffd0d8!important}.hover-bg-error-light:hover{background-color:#fff2f5!important}.bg-primary{border-color:#5b1979!important}.bg-primary-medium{border-color:#7543a7!important}.bg-primary-light{border-color:#f7f6ff!important}.bg-neutral-high{border-color:#fafbfc!important}.bg-neutral-high-medium{border-color:#f0f2f8!important}.bg-neutral-high-dark{border-color:#c9cbd6!important}.bg-neutral-low,.bg-neutral-low-medium{border-color:#333a44!important}.bg-neutral-low-light{border-color:#bbb!important}.bg-success{border-color:#14a696!important}.bg-success-medium{border-color:#b5f2ea!important}.bg-success-light{border-color:#e0fffb!important}.bg-warning{border-color:#bd820f!important}.bg-warning-medium{border-color:#ffdfb8!important}.bg-warning-light{border-color:#ffeece!important}.bg-error{border-color:#983043!important}.bg-error-medium{border-color:#ffd0d8!important}.bg-error-light{border-color:#fff2f5!important}.hover-bg-primary:hover{border-color:#5b1979!important}.hover-bg-primary-medium:hover{border-color:#7543a7!important}.hover-bg-primary-light:hover{border-color:#f7f6ff!important}.hover-bg-neutral-high:hover{border-color:#fafbfc!important}.hover-bg-neutral-high-medium:hover{border-color:#f0f2f8!important}.hover-bg-neutral-high-dark:hover{border-color:#c9cbd6!important}.hover-bg-neutral-low:hover,.hover-bg-neutral-low-medium:hover{border-color:#333a44!important}.hover-bg-neutral-low-light:hover{border-color:#bbb!important}.hover-bg-success:hover{border-color:#14a696!important}.hover-bg-success-medium:hover{border-color:#b5f2ea!important}.hover-bg-success-light:hover{border-color:#e0fffb!important}.hover-bg-warning:hover{border-color:#bd820f!important}.hover-bg-warning-medium:hover{border-color:#ffdfb8!important}.hover-bg-warning-light:hover{border-color:#ffeece!important}.hover-bg-error:hover{border-color:#983043!important}.hover-bg-error-medium:hover{border-color:#ffd0d8!important}.hover-bg-error-light:hover{border-color:#fff2f5!important}i.material-symbols-rounded,i.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24!important}.bg-primary{color:#5b1979!important}.bg-primary-medium{color:#7543a7!important}.bg-primary-light{color:#f7f6ff!important}.bg-neutral-high{color:#fafbfc!important}.bg-neutral-high-medium{color:#f0f2f8!important}.bg-neutral-high-dark{color:#c9cbd6!important}.bg-neutral-low,.bg-neutral-low-medium{color:#333a44!important}.bg-neutral-low-light{color:#bbb!important}.bg-success{color:#14a696!important}.bg-success-medium{color:#b5f2ea!important}.bg-success-light{color:#e0fffb!important}.bg-warning{color:#bd820f!important}.bg-warning-medium{color:#ffdfb8!important}.bg-warning-light{color:#ffeece!important}.bg-error{color:#983043!important}.bg-error-medium{color:#ffd0d8!important}.bg-error-light{color:#fff2f5!important}.hover-bg-primary:hover{color:#5b1979!important}.hover-bg-primary-medium:hover{color:#7543a7!important}.hover-bg-primary-light:hover{color:#f7f6ff!important}.hover-bg-neutral-high:hover{color:#fafbfc!important}.hover-bg-neutral-high-medium:hover{color:#f0f2f8!important}.hover-bg-neutral-high-dark:hover{color:#c9cbd6!important}.hover-bg-neutral-low:hover,.hover-bg-neutral-low-medium:hover{color:#333a44!important}.hover-bg-neutral-low-light:hover{color:#bbb!important}.hover-bg-success:hover{color:#14a696!important}.hover-bg-success-medium:hover{color:#b5f2ea!important}.hover-bg-success-light:hover{color:#e0fffb!important}.hover-bg-warning:hover{color:#bd820f!important}.hover-bg-warning-medium:hover{color:#ffdfb8!important}.hover-bg-warning-light:hover{color:#ffeece!important}.hover-bg-error:hover{color:#983043!important}.hover-bg-error-medium:hover{color:#ffd0d8!important}.hover-bg-error-light:hover{color:#fff2f5!important}h1,.text-h1{font-size:6rem;font-weight:300;letter-spacing:-.09375rem}h2,.text-h2{font-size:3.75rem;font-weight:300;letter-spacing:-.03125rem}h3,.text-h3{font-size:3rem;font-weight:400;letter-spacing:0}h4,.text-h4{font-size:2.125rem;font-weight:400;letter-spacing:.015625rem}h5,.text-h5{font-size:1.5rem;font-weight:400;letter-spacing:0}h6,.text-h6{font-size:1.25rem;font-weight:500;letter-spacing:.009375rem}.text-subtitle-1{font-size:1rem;font-weight:400;letter-spacing:.009375rem}.text-subtitle-2{font-size:.875rem;font-weight:500;letter-spacing:.00625rem}.text-body-1{font-size:1rem;font-weight:400;letter-spacing:.03125rem}.text-body-2{font-size:.875rem;font-weight:400;letter-spacing:.015625rem}.text-button{font-size:.875rem;font-weight:500;letter-spacing:.078125rem;text-transform:uppercase}.text-caption{font-size:.75rem;font-weight:400;letter-spacing:.025rem}.text-overline{font-size:.625rem;font-weight:400;letter-spacing:.09375rem;text-transform:uppercase}.c-btn{text-transform:none!important;font-size:1rem!important;border-radius:.25rem!important}.c-btn--dense{padding:.25rem .5rem!important;font-size:.75rem!important}.c-btn.bg-primary{color:#fff!important}.c-btn.q-btn--flat{background-color:transparent!important;color:#5b1979!important}.c-btn.bg-secondary{color:#5b1979!important;background-color:#f7f6ff!important}.c-btn.bg-tertiary{border:.0625rem solid!important;background-color:#fff!important}.c-btn.bg-tertiary.text-white{color:#5b1979!important}.c-breadcrumbs{text-transform:none}.c-breadcrumbs .q-breadcrumbs--last{color:#5b1979!important}.c-breadcrumbs .q-breadcrumbs__separator,.c-breadcrumbs a.q-breadcrumbs__el{color:#bbb}.c-breadcrumbs a.q-breadcrumbs__el:hover{color:#7543a7}.c-breadcrumbs a.q-breadcrumbs__el .q-breadcrumbs__el-label{text-decoration:underline}.c-breadcrumbs a.q-breadcrumbs__el .q-breadcrumbs__el-icon{padding-right:.5rem}.c-breadcrumbs a.q-breadcrumbs__el.q-breadcrumbs__el-label--disabled,.c-breadcrumbs .q-breadcrumbs__el.q-breadcrumbs__el-label--disabled{pointer-events:none;cursor:not-allowed;color:#c9cbd6}