wca-designsystem 0.0.21 → 0.0.23

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 (39) hide show
  1. package/package.json +12 -6
  2. package/src/components/atomos/BadgeModulos/Badge.test.tsx +12 -0
  3. package/src/components/atomos/BadgeModulos/BadgeModulos.stories.tsx +21 -0
  4. package/src/components/atomos/BadgeModulos/index.tsx +33 -0
  5. package/src/components/atomos/BadgeModulos/styles.ts +16 -0
  6. package/src/components/atomos/Botao/Botao.test.tsx +3 -6
  7. package/src/components/atomos/Botao/index.tsx +6 -0
  8. package/src/components/atomos/Botao/styles.ts +12 -12
  9. package/src/components/atomos/IconeBotao/index.tsx +8 -3
  10. package/src/components/atomos/IconeBotao/styles.ts +10 -6
  11. package/src/components/atomos/InputDeData/InputDeData.stories.tsx +16 -0
  12. package/src/components/atomos/InputDeData/InputDeData.test.tsx +12 -0
  13. package/src/components/atomos/InputDeData/index.tsx +26 -0
  14. package/src/components/atomos/InputDeData/styles.ts +16 -0
  15. package/src/components/atomos/InputDeTexto/InputDeTexto.stories.tsx +2 -0
  16. package/src/components/atomos/InputDeTexto/index.tsx +7 -4
  17. package/src/components/atomos/InputDeTexto/styles.ts +15 -8
  18. package/src/components/atomos/LinkNavbar/index.tsx +4 -2
  19. package/src/components/atomos/MultiSelect/MultiSelect.stories.tsx +14 -0
  20. package/src/components/atomos/MultiSelect/MultiSelect.test.tsx +14 -0
  21. package/src/components/atomos/MultiSelect/index.tsx +33 -0
  22. package/src/components/atomos/MultiSelect/styles.ts +14 -0
  23. package/src/components/atomos/NavbarTituloHeader/styles.ts +1 -0
  24. package/src/components/modules/Cabecalho/index.tsx +7 -2
  25. package/src/components/modules/Cabecalho/styles.ts +10 -6
  26. package/src/components/modules/ConchaAplicacao/index.tsx +5 -2
  27. package/src/components/modules/ConchaAplicacao/styles.ts +8 -4
  28. package/src/components/modules/Navbar/index.tsx +6 -5
  29. package/src/components/modules/Navbar/styles.ts +13 -12
  30. package/src/components/molecules/CardInicial/CardInicial.stories.tsx +1 -0
  31. package/src/components/molecules/Modal/Modal.stories.tsx +31 -0
  32. package/src/components/molecules/Modal/Modal.test.tsx +22 -0
  33. package/src/components/molecules/Modal/index.tsx +46 -0
  34. package/src/components/molecules/Modal/styles.ts +34 -0
  35. package/src/components/organismos/Calendario/Calendario.modal.tsx +75 -0
  36. package/src/components/organismos/Calendario/Calendario.stories.tsx +29 -0
  37. package/src/components/organismos/Calendario/index.tsx +111 -0
  38. package/src/components/organismos/Calendario/styles.ts +128 -0
  39. package/src/components/organismos/Tabela/Tabela.stories.tsx +1 -1
@@ -0,0 +1,128 @@
1
+ import styled, { css } from 'styled-components';
2
+
3
+ type StylesProps = {
4
+ color?: string;
5
+ };
6
+
7
+ export const CalendarioWrapper = styled.div<StylesProps>`
8
+ ${({ color, theme }) => css`
9
+ .fc-header-toolbar {
10
+ max-width: 212px;
11
+
12
+ h2 {
13
+ color: ${color};
14
+ font-size: ${theme.sizes.meddium};
15
+ font-weight: 600;
16
+ }
17
+ }
18
+
19
+ .fc .fc-toolbar {
20
+ justify-content: start;
21
+ position: relative;
22
+ }
23
+
24
+ .fc-toolbar-chunk {
25
+ .fc-today-button {
26
+ display: none;
27
+ }
28
+
29
+ .fc-button-group {
30
+ display: flex;
31
+ gap: 15px;
32
+
33
+ button {
34
+ width: 30px;
35
+ height: 30px;
36
+ border-radius: 4px;
37
+ background-color: ${theme.colors.gray['300']};
38
+ border: none;
39
+ border-left: 2px solid ${color};
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ }
44
+ .fc-button .fc-icon {
45
+ color: ${color};
46
+ }
47
+ }
48
+ }
49
+
50
+ .fc-col-header-cell {
51
+ background-color: ${color};
52
+ color: ${theme.colors.white};
53
+ height: 28px;
54
+ font-weight: 600;
55
+ font-size: ${theme.sizes.meddium};
56
+ border-right: 2px solid ${theme.colors.white};
57
+ }
58
+
59
+ .fc-daygrid-day-top {
60
+ flex-direction: row;
61
+ font-size: ${theme.sizes.large};
62
+ font-weight: bold;
63
+ color: ${theme.colors.gray['700']};
64
+ }
65
+ `}
66
+ `;
67
+
68
+ export const EventosWrapper = styled.div`
69
+ ${({ theme }) => css`
70
+ background-color: ${theme.colors.success};
71
+ color: ${theme.colors.white};
72
+ width: 100%;
73
+ font-weight: 600;
74
+ font-size: ${theme.sizes.meddium};
75
+ border: 1px solid ${theme.colors.gray['700']};
76
+
77
+ .fc-h-event {
78
+ border: none;
79
+ background-color: transparent;
80
+ }
81
+ `}
82
+ `;
83
+
84
+ export const CalendarioHeaderControl = styled.div`
85
+ ${() => css`
86
+ position: absolute;
87
+ right: 1%;
88
+ width: 950px;
89
+ display: flex;
90
+ gap: 24px;
91
+ justify-content: end;
92
+ `}
93
+ `;
94
+
95
+ export const CalendarioHeaderButtons = styled.div`
96
+ ${() => css`
97
+ display: flex;
98
+ gap: 30px;
99
+ margin-bottom: 15px;
100
+ `}
101
+ `;
102
+
103
+ export const CalendarioModalWrapper = styled.div<StylesProps>`
104
+ ${({ theme, color }) => css`
105
+ padding: 24px;
106
+ background-color: ${theme.colors.white};
107
+ border-radius: 4px;
108
+
109
+ h2 {
110
+ font-size: ${theme.sizes.meddium};
111
+ font-weight: 600;
112
+ color: ${color};
113
+ }
114
+
115
+ p {
116
+ font-size: ${theme.sizes.small};
117
+ color: ${theme.colors.gray['700']};
118
+ font-weight: 300;
119
+ }
120
+ `}
121
+ `;
122
+
123
+ export const CalendarioModalInputs = styled.div`
124
+ ${() => css`
125
+ display: flex;
126
+ gap: 24px;
127
+ `}
128
+ `;
@@ -134,8 +134,8 @@ const data: any = [
134
134
 
135
135
  const props: TabelaProps<any> = {
136
136
  data: data,
137
- isLoading: false,
138
137
  columns: columns,
138
+ setPagination: () => console.log('aqui'),
139
139
  enableExpanding: false,
140
140
  enableRowSelection: false,
141
141
  enableRowActions: false,