wca-designsystem 0.0.39 → 0.0.41

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.39",
2
+ "version": "0.0.41",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -44,7 +44,7 @@ const TabsCustomizado = ({
44
44
  }`,
45
45
  }}
46
46
  >
47
- {tab.children}
47
+ {tab.value}
48
48
  </S.TabsTab>
49
49
  ))}
50
50
  {hasAddMore && (
@@ -15,7 +15,7 @@ import Botao from '../../atomos/Botao';
15
15
  import CalendarioModal from './Calendario.modal';
16
16
  import { ComboboxData } from '@mantine/core';
17
17
 
18
- interface CalendarioProps extends FullCalendar {
18
+ interface CalendarioProps {
19
19
  events: EventSourceInput | undefined;
20
20
  confirm: (form: any) => void;
21
21
  liberar: () => void;
@@ -44,7 +44,6 @@ const Calendario = ({
44
44
  liberar,
45
45
  hierarquiaOptions,
46
46
  perfilOptions,
47
- ...props
48
47
  }: CalendarioProps) => {
49
48
  const calendarRef = useRef<CalendarApi | null>(null);
50
49
  const [adicionar, setAdicionar] = useState(false);
@@ -86,11 +85,11 @@ const Calendario = ({
86
85
  { label: 'Visualizar por semana', value: 'timeGridWeek' },
87
86
  { label: 'Visualizar por dia', value: 'timeGridDay' },
88
87
  ]}
89
- onChange={(e) => handleViewChange(e!)}
88
+ onChange={e => handleViewChange(e!)}
90
89
  />
91
90
  </S.CalendarioHeaderControl>
92
91
  <FullCalendar
93
- ref={(element) => {
92
+ ref={element => {
94
93
  if (element) {
95
94
  calendarRef.current = element.getApi(); // Armazena a API do calendário na ref
96
95
  }
@@ -102,7 +101,6 @@ const Calendario = ({
102
101
  weekends={true}
103
102
  events={events}
104
103
  eventContent={renderEventContent}
105
- {...props}
106
104
  />
107
105
  </S.CalendarioWrapper>
108
106
  );