@rubeusteam/rb-angular-components 0.0.14 → 0.0.15

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 (26) hide show
  1. package/package.json +6 -7
  2. package/src/lib/styles/README.md +83 -0
  3. package/src/lib/styles/_crud.scss +22 -0
  4. package/src/lib/styles/_dialog.scss +38 -0
  5. package/src/lib/styles/_layout.scss +86 -0
  6. package/src/lib/styles/_typography.scss +62 -0
  7. package/src/lib/styles/index.scss +4 -0
  8. package/fesm2022/rubeusteam-rb-angular-components.mjs +0 -580
  9. package/fesm2022/rubeusteam-rb-angular-components.mjs.map +0 -1
  10. package/index.d.ts +0 -5
  11. package/lib/components/rb-content-box/rb-content-box.component.d.ts +0 -5
  12. package/lib/components/rb-copy-confirm-dialog/rb-copy-confirm-dialog.component.d.ts +0 -14
  13. package/lib/components/rb-crud/rb-crud.component.d.ts +0 -34
  14. package/lib/components/rb-crud-tool-bar/rb-crud-tool-bar.component.d.ts +0 -19
  15. package/lib/components/rb-dialog/rb-dialog.component.d.ts +0 -10
  16. package/lib/components/rb-filter-dropdown/rb-filter-dropdown.component.d.ts +0 -23
  17. package/lib/components/rb-filter-panel/rb-filter-panel.component.d.ts +0 -12
  18. package/lib/directives/rb-dynamic-button/rb-dynamic-button.directive.d.ts +0 -17
  19. package/lib/i18n/paginator-ptbr-intl/paginator-ptbr-intl.service.d.ts +0 -12
  20. package/lib/interfaces/button.interface.d.ts +0 -15
  21. package/lib/interfaces/rb-crud.interface.d.ts +0 -11
  22. package/lib/interfaces/rb-dialog.interface.d.ts +0 -16
  23. package/lib/interfaces/rb-filter.interface.d.ts +0 -11
  24. package/lib/pipes/rb-custom/rb-custom.pipe.d.ts +0 -20
  25. package/lib/services/filter/client-filter.service.d.ts +0 -10
  26. package/public-api.d.ts +0 -13
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rubeusteam/rb-angular-components",
3
- "version": "0.0.14",
4
- "description": "Inclusão dos estilos compartilhados entre mais de um componente.",
3
+ "version": "0.0.15",
4
+ "description": "Inclusão dos",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "angular",
@@ -35,11 +35,10 @@
35
35
  "module": "fesm2022/rubeusteam-rb-angular-components.mjs",
36
36
  "typings": "index.d.ts",
37
37
  "files": [
38
- "fesm2022",
39
- "index.d.ts",
40
- "lib",
41
- "public-api.d.ts",
42
- "styles/**/*"
38
+ "src/lib/styles",
39
+ "dist",
40
+ "public_api.ts",
41
+ "README.md"
43
42
  ],
44
43
  "exports": {
45
44
  "./package.json": {
@@ -0,0 +1,83 @@
1
+
2
+ # Tipografia - rb-angular-components
3
+
4
+ No diretório styles, contém o arquivo `typography.scss` onde se define **tipografia** da biblioteca `rb-angular-components` contém as classes CSS responsáveis por estilizar os textos nos componentes. As classes estão baseadas no Rubeus Style Guide, que pode ser facilmente aplicado em qualquer elemento de texto na sua aplicação.
5
+
6
+ ## Como utilizar
7
+
8
+ Existem duas formas de utilizar os estilos de tipografia: inserindo diretamente no arquivo `styles.scss` ou configurando no `angular.json`. Ambas as abordagens permitem que você use as classes de tipografia em toda a sua aplicação.
9
+
10
+ ### Alternativa 1: Inserindo pelo `styles.scss`
11
+
12
+ A primeira alternativa é importar o arquivo de estilos diretamente no seu arquivo global de estilos, como o `styles.scss` ou `styles.css`. Para isso, basta adicionar a seguinte linha no início do seu arquivo:
13
+
14
+ ```scss
15
+ @import 'node_modules/rb-angular-components/styles/typography.scss';
16
+
17
+ ```
18
+
19
+ Esta abordagem é a mais simples e é adequada para projetos que já possuem um arquivo global de estilos.
20
+
21
+ #### Exemplo de uso:
22
+
23
+ Após a importação do arquivo de tipografia no `styles.scss`, você pode usar as classes de tipografia diretamente nos elementos HTML do seu projeto.
24
+
25
+ ```html
26
+ <div>
27
+ <h1 class="rb-h1">Título Principal</h1>
28
+ <p class="rb-font-body rb-large">Texto grande para o corpo.</p>
29
+ <p class="rb-font-body rb-medium">Texto médio para o corpo.</p>
30
+ <p class="rb-font-body rb-small">Texto pequeno para o corpo.</p>
31
+ <h2 class="rb-h2">Subtítulo</h2>
32
+ <p class="rb-font-body">Texto padrão no corpo.</p>
33
+ </div>
34
+ ```
35
+
36
+ ### Alternativa 2: Inserindo pelo `angular.json`
37
+
38
+ A segunda alternativa é configurar os estilos diretamente no arquivo `angular.json`. Isso garante que o arquivo de tipografia seja carregado globalmente em toda a aplicação, sem a necessidade de importação manual no `styles.scss`.
39
+
40
+ Para isso, siga os seguintes passos:
41
+
42
+ 1. Abra o arquivo `angular.json`.
43
+ 2. Encontre a seção `"styles"` dentro do seu projeto, que fica em `projects -> <nome-do-projeto> -> architect -> build`.
44
+ 3. Adicione o caminho do arquivo de tipografia na lista de estilos.
45
+
46
+ ```json
47
+ {
48
+ "projects": {
49
+ "<nome-do-projeto>": {
50
+ "architect": {
51
+ "build": {
52
+ "styles": [
53
+ "src/styles.scss",
54
+ "node_modules/rb-angular-components/styles/typography.scss",
55
+ ]
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ ```
62
+
63
+ Com isso, o arquivo de tipografia será carregado automaticamente, sem necessidade de importação explícita no `styles.scss`.
64
+
65
+ #### Exemplo de uso:
66
+
67
+ Após adicionar a referência no `angular.json`, você pode usar as classes de tipografia nos elementos HTML, assim como no exemplo anterior:
68
+
69
+ ```html
70
+ <div>
71
+ <h1 class="rb-font-heading rb-h1">Título Principal</h1>
72
+ <p class="rb-font-body rb-large">Texto grande para o corpo.</p>
73
+ <p class="rb-font-body rb-medium">Texto médio para o corpo.</p>
74
+ <p class="rb-font-body rb-small">Texto pequeno para o corpo.</p>
75
+ <h2 class="rb-font-heading rb-h2">Subtítulo</h2>
76
+ <p class="rb-font-body">Texto padrão no corpo.</p>
77
+ </div>
78
+ ```
79
+
80
+ ## Conclusão
81
+
82
+ As classes de tipografia são uma maneira prática e simples de garantir consistência visual no seu projeto. Você pode escolher a melhor abordagem para seu caso, seja inserindo os estilos pelo `styles.scss` ou configurando no `angular.json`. Ambas as opções oferecem flexibilidade e facilidade de manutenção.
83
+
@@ -0,0 +1,22 @@
1
+ .rb-menu-crud {
2
+ background: rgba(248, 250, 249, 1);
3
+ }
4
+
5
+ .rb-menu-crud .mat-menu-item,
6
+ .rb-menu-crud .mat-mdc-menu-item {
7
+ color: rgba(80, 83, 83, 1);
8
+ font-style: normal;
9
+ font-weight: 400;
10
+ line-height: var(24px);
11
+ letter-spacing: var(0.5px);
12
+ }
13
+
14
+ .rb-menu-crud .mat-icon {
15
+ color: rgba(80, 83, 83, 1);
16
+ }
17
+
18
+ .rb-table-container thead {
19
+ position: sticky;
20
+ top: 0;
21
+ z-index: 2;
22
+ }
@@ -0,0 +1,38 @@
1
+ .rb-dialog-header {
2
+ display: flex;
3
+ padding: 4px 16px 4px 32px;
4
+ justify-content: space-between;
5
+ align-items: center;
6
+ align-self: stretch;
7
+ background: rgba(239, 241, 240, 1); // Palettes/Neutral 95
8
+ color: rgba(80, 83, 83, 1); //Palettes/Neutral 35
9
+
10
+ h2{
11
+ font-family: Roboto;
12
+ font-size: 16px;
13
+ font-style: normal;
14
+ font-weight: 500;
15
+ line-height: 23.4px;
16
+ }
17
+ }
18
+
19
+ .rb-dialog-content {
20
+ text-align: center;
21
+ color: rgba(14, 18, 17, 1); // Palettes/Neutral 5
22
+ display: flex;
23
+ padding: 32px;
24
+ justify-content: center;
25
+ align-items: center;
26
+ align-self: stretch;
27
+ }
28
+
29
+ .rb-dialog-actions {
30
+ display: flex;
31
+ align-self: stretch;
32
+ padding: 16px 32px;
33
+ border-top: solid 1px rgba(225, 227, 226, 1); // Palettes/Neutral 90
34
+ }
35
+
36
+ .width-100 {
37
+ width: 100%;
38
+ }
@@ -0,0 +1,86 @@
1
+ /* Display */
2
+ .rb-row {
3
+ display: flex;
4
+ }
5
+
6
+ /* Direction */
7
+ .rb-flex-row {
8
+ flex-direction: row;
9
+ }
10
+
11
+ .rb-flex-row-reverse {
12
+ flex-direction: row-reverse;
13
+ }
14
+
15
+ .rb-flex-column {
16
+ flex-direction: column;
17
+ }
18
+
19
+ .rb-flex-column-reverse {
20
+ flex-direction: column-reverse;
21
+ }
22
+
23
+ /* Align */
24
+
25
+ .rb-align-items-start {
26
+ align-items: flex-start;
27
+ }
28
+
29
+ .rb-align-items-center {
30
+ align-items: center;
31
+ }
32
+
33
+ .rb-align-items-end {
34
+ align-items: flex-end;
35
+ }
36
+
37
+ .rb-align-items-stretch {
38
+ align-items: stretch;
39
+ }
40
+
41
+ .rb-align-items-baseline {
42
+ align-items: baseline;
43
+ }
44
+
45
+
46
+ /* Justify */
47
+
48
+ .rb-justify-content-start {
49
+ justify-content: flex-start;
50
+ }
51
+
52
+ .rb-justify-content-center {
53
+ justify-content: center;
54
+ }
55
+
56
+ .rb-justify-content-end {
57
+ justify-content: flex-end;
58
+ }
59
+
60
+ .rb-justify-content-around {
61
+ justify-content: space-around;
62
+ }
63
+
64
+ .rb-justify-content-between {
65
+ justify-content: space-between;
66
+ }
67
+
68
+ .rb-justify-content-evenly {
69
+ justify-content: space-evenly;
70
+ }
71
+
72
+ /* Wrap */
73
+
74
+ .rb-flex-wrap {
75
+ flex-wrap: wrap;
76
+ }
77
+
78
+ .rb-flex-nowrap {
79
+ flex-wrap: nowrap;
80
+ }
81
+
82
+ .rb-flex-wrap-reverse {
83
+ flex-wrap: wrap-reverse;
84
+ }
85
+
86
+
@@ -0,0 +1,62 @@
1
+ :root {
2
+ --font-plain: 'Roboto', sans-serif;
3
+ --font-heading: 'Poppins', sans-serif;
4
+ }
5
+
6
+ /* Fontes de corpo */
7
+
8
+ .rb-font-body {
9
+ font-family: var(--font-plain);
10
+ font-weight: regular;
11
+ }
12
+
13
+ .rb-large {
14
+ font-size: 1rem; // 16px
15
+ line-height: 1.5rem; // 24px
16
+ letter-spacing: 0.03125rem; // 0.5px
17
+ }
18
+
19
+ .rb-medium {
20
+ font-size: 0.875rem; // 14px
21
+ line-height: 1.25rem; // 20px
22
+ letter-spacing: 0.015625rem; // 0.25px
23
+ }
24
+
25
+ .rb-small {
26
+ font-size: 0.75rem; // 12px
27
+ line-height: 1rem; // 16px
28
+ }
29
+
30
+
31
+ /* Fontes de títulos */
32
+
33
+ .rb-font-heading {
34
+ font-family: var(--font-heading);
35
+ font-weight: bold;
36
+ }
37
+
38
+ .rb-h1 {
39
+ font-size: 2.4375rem; // 39px
40
+ line-height: 4.425rem; // 70.8px
41
+ }
42
+
43
+ .rb-h2 {
44
+ font-size: 1.9375rem; // 31px
45
+ line-height: 3.525rem; // 56.4px
46
+ }
47
+
48
+ .rb-h3 {
49
+ font-size: 1.5625rem; // 25px
50
+ line-height: 2.85rem; // 45.6px
51
+ }
52
+
53
+ .rb-h4 {
54
+ font-size: 1.25rem; // 20px
55
+ line-height: 2.25rem; // 36px
56
+ }
57
+
58
+ .rb-h5 {
59
+ font-size: 1rem; // 16px
60
+ line-height: 1.8rem; // 28.8px
61
+ }
62
+
@@ -0,0 +1,4 @@
1
+ @forward '_crud';
2
+ @forward '_dialog';
3
+ @forward '_layout';
4
+ @forward '_typography';