
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
@zydon/common
Advanced tools
yarn add @zydon/common
yarn 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/common
Basta 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
, Telefone
children
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.tsx
para testar suas implementações/correções de forma prática
FAQs
## Instalação no seu projeto
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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.