
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@zydon/common
Advanced tools
yarn add @zydon/commonyarn add @emotion/react @emotion/styled @mui/lab @mui/material @mui/x-data-grid-premium @mui/x-date-pickers-pro @mui/x-license-pro react-hook-form@zydon/commonBasta fazer a seguinte configuração no arquivo main.ts:
import React from 'react';
import { LicenseInfo } from '@mui/x-license-pro';
import { Common } from '@zydon/common';
import ReactDOM from 'react-dom/client';
import '@zydon/common/styles.css';
import App from './App';
LicenseInfo.setLicenseKey(import.meta.env.VITE_MUI_PREMIUM_KEY);
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<Common themeColor="cor_hexadecimal_aqui">
<App />
</Common>
</React.StrictMode>,
);
Esse pacote tem os seguintes recursos disponiveis (components, hooks, utils e types):
children com um delaySVG construido em cima do @iconify/reactCPF, CNPJ, Telefonechildren em outro local desejado React Portalsbonitinha construido em cima do simplebar-reactonChange e como click na tecla enter[sucesso | alerta | informação | erro] para o usuárioconst { enqueueSnackbar } = useSnackbar();
enqueueSnackbar('Mensagem', { variant: 'error' });
Tab. Todas as tabs são rendreziadas, mas somente o conteúdo da Tab ativa será exibido<Common />)<Form />CPF, CNPJ, Telefone(downloadFile)(fNumber, fCurrency, fPercent, fShortenNumber, fData result, fWithDecimalPlacesOrNot)(fDate, fDateTime format, fTimestamp, fToNow) (Construido utilizando date-fns)(bgBlur, bgGradient, textGradient, filterStyles, hideScrollbarY, hideScrollbarX)(getRoot)(sort, updatePosition)(cpfIsValid, cnpjIsValid)(isMultiple, roundIfNecessary)(applyMask, cpfMask, cnpjMask, cepMask, phoneMask)ctrl+c<Datagrid />useEffect do React, mas que lida melhor com objetos complexos(xs, sm, md, lg, xl)(currentTab, onChangeTab, setCurrentTab)const [detailsOpen, toggleDetailsOpen] = useToggle(true);
(currentPage, totalPages, currentItems, goToPage, nextPage, prevPage,): Ex:const { currentItems, totalPages, goToPage } = usePagination({
items,
itemsPerPage: 5,
});
PagedRequest<{userId: string}> (agora o userId também vai estar disponivel no objeto)export type PagedRequest<T = unknown> = T & {
search?: string;
page?: number;
perPage?: number;
sort?: string;
dir?: 'asc' | 'desc';
};
PagedResponse<User[]> (agora sabemos que no 'items' temos um array de usuários)export interface PagedResponse<T> {
currentPage: number;
perPage: number;
total: number;
items: T;
}
ListResponse<User[]> (agora sabemos que no 'items' temos um array de usuários)export interface ListResponse<T> {
total: number;
items: T;
}
Para realizar implementações ou correções neste pacote, siga os passos abaixo:
yarn build para construir o pacote.
npm link para criar um link simbólico do pacote na sua máquina.@zydon/common-csr para conectar o pacote localmente e verificar se as alterações funcionam conforme o esperado.Dica: Você pode utilizar o componente
App.tsxpara testar suas implementações/correções de forma prática
FAQs
## Instalação no seu projeto
The npm package @zydon/common receives a total of 1,563 weekly downloads. As such, @zydon/common popularity was classified as popular.
We found that @zydon/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.