@zydon/common 1.0.90 → 1.0.92

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 (35) hide show
  1. package/README.md +136 -2
  2. package/dist/components/Incrementer/index.d.ts +5 -0
  3. package/dist/components/Incrementer/index.d.ts.map +1 -0
  4. package/dist/components/Incrementer/props.d.ts +14 -0
  5. package/dist/components/Incrementer/props.d.ts.map +1 -0
  6. package/dist/components/MaskedInput/index.d.ts +2 -2
  7. package/dist/components/NumberInput/index.d.ts +52 -0
  8. package/dist/components/NumberInput/index.d.ts.map +1 -0
  9. package/dist/components/NumberInput/props.d.ts +19 -0
  10. package/dist/components/NumberInput/props.d.ts.map +1 -0
  11. package/dist/components/animate/variants/background.d.ts +9 -9
  12. package/dist/components/animate/variants/bounce.d.ts +9 -9
  13. package/dist/components/animate/variants/fade.d.ts +20 -20
  14. package/dist/components/animate/variants/flip.d.ts +6 -6
  15. package/dist/components/animate/variants/rotate.d.ts +3 -3
  16. package/dist/components/animate/variants/scale.d.ts +6 -6
  17. package/dist/components/animate/variants/slide.d.ts +16 -16
  18. package/dist/components/animate/variants/transition.d.ts +3 -3
  19. package/dist/components/animate/variants/zoom.d.ts +15 -15
  20. package/dist/components/index.d.ts +6 -2
  21. package/dist/components/index.d.ts.map +1 -1
  22. package/dist/components/nav-section/NavSectionHorizontal/styles.d.ts +1 -1
  23. package/dist/components/nav-section/NavSectionMini/styles.d.ts +1 -1
  24. package/dist/components/nav-section/NavSectionVertical/styles.d.ts +2 -2
  25. package/dist/{features-1972e1a9.js → features-f584f6f6.js} +1 -1
  26. package/dist/{index-b1342370.js → index-10f536c4.js} +12385 -11663
  27. package/dist/index.js +82 -79
  28. package/dist/index.umd.cjs +89 -81
  29. package/dist/utils/formatNumber.d.ts +1 -0
  30. package/dist/utils/formatNumber.d.ts.map +1 -1
  31. package/dist/utils/index.d.ts +1 -0
  32. package/dist/utils/index.d.ts.map +1 -1
  33. package/dist/utils/number.d.ts +3 -0
  34. package/dist/utils/number.d.ts.map +1 -0
  35. package/package.json +2 -1
package/README.md CHANGED
@@ -1,5 +1,139 @@
1
- - Configure:
1
+ # Design system da Zydon
2
2
 
3
+ ## Instalação no seu projeto
4
+
5
+ - **instalação pacote:** `yarn add @zydon/common`
6
+ - **instalação dependências necessárias:** `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 react-router-dom`
7
+ - **instalação @types necessários:** `yarn add @types/react-lazy-load-image-component -D`
8
+
9
+ ## Configuração `@zydon/common`
10
+ Basta fazer a seguinte configuração no arquivo `main.ts`:
11
+ ```
12
+ import React from 'react';
13
+ import { LicenseInfo } from '@mui/x-license-pro';
14
+ import { Common } from '@zydon/common';
15
+ import ReactDOM from 'react-dom/client';
16
+
17
+ import '@zydon/common/styles.css';
18
+
19
+ import App from './App';
20
+
21
+ LicenseInfo.setLicenseKey(import.meta.env.VITE_MUI_PREMIUM_KEY);
22
+
23
+ ReactDOM.createRoot(document.getElementById('root')!).render(
24
+ <React.StrictMode>
25
+ <Common themeColor="cor_hexadecimal_aqui">
26
+ <App />
27
+ </Common>
28
+ </React.StrictMode>,
29
+ );
30
+
31
+ ```
32
+ ## Recursos disponíveis
33
+ > Esse pacote tem os seguintes recursos disponiveis (components, hooks, utils e types):
34
+
35
+ ### Componentes
36
+ - **animate:** recursos construídos utilizando [framer-motion](https://www.npmjs.com/package/framer-motion)
37
+ - **Autocomplete:** componente dropdown de seleção única/múltipla
38
+ - **ColorPickerInput:** componente de seleção de cor
39
+ - **Common:** componente wrapper/provider que faz esse pacote funcionar
40
+ - **ConfirmDelete:** mensagem de confirmação de exclusão
41
+ - **CustomAvatar e CustomAvatarGroup**: avatares customizados
42
+ - **DataGrid:** componente de tabela construido em cima do [MUI-Datagrid](https://mui.com/x/react-data-grid/)
43
+ - **Delayed:** componente que renderiza um `children` com um delay
44
+ - **Drawer:** componente Drawer construido em cima do [MUI-Drawer](https://mui.com/material-ui/react-drawer/)
45
+ - **Editor:** editor `rich text` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill)
46
+ - **FixedProgressBar:** barra de progresso de loading que é apresentado fixo no topo da tela
47
+ - **Iconify:** componente de ícones `SVG` construido em cima do [@iconify/react](https://www.npmjs.com/package/@iconify/react)
48
+ - **Image:** componente de imagem construido em cima do [react-lazy-load-image-component](https://www.npmjs.com/package/react-lazy-load-image-component) *(Priorize quando for utilizar/rendererizar uma imagem)*
49
+ - **Incrementer:** input numérico com botões laterais para incrementar/decrementar o valor
50
+ - **ImageCrop:** componente para cortar imagens
51
+ - **Label:** componente que renderiza uma tag *bonitinha*
52
+ - **MaskedInput:** input com máscara. Util para campos como `CPF`, `CNPJ`, `Telefone`
53
+ - **MenuPopover:** menu flutuante com setinha apontado para um ponto escolhido
54
+ - **Modal:** componente de modal
55
+ - **NumberInput:** input que aceita somente números
56
+ - **Portal:** componente que renderiza o `children` em outro local desejado [React Portals](https://react.dev/reference/react-dom/createPortal)
57
+ - **Scrollbar:** Scrollbar `bonitinha` construido em cima do [simplebar-react](https://www.npmjs.com/package/simplebar-react)
58
+ - **SearchInput:** componente para busca/filtros. Funciona com `onChange` e como click na tecla `enter`
59
+ - **snackbar:** componente para mostrar mensagens `[sucesso | alerta | informação | erro]` para o usuário
60
+ ```
61
+ const { enqueueSnackbar } = useSnackbar();
62
+ enqueueSnackbar('Mensagem', { variant: 'error' });
63
+ ```
64
+ - **Steps:** componente que indica etapas e o progresso. Construido em cima do [MUI-Stepper](https://mui.com/material-ui/react-stepper/)
65
+ - **TabPanel:** componente para renderizar o conteúdos de uma `Tab`. Todas as tabs são rendreziadas, mas somente o conteúdo da `Tab` ativa será exibido
66
+ - **ThemeProvider:** wrapper/provider para configuração do tema. *(Provavelmente vc nunca vai precisar usá-lo, já que ele já está includo no component* `<Common />`)
67
+ - **upload (Upload, UploadAvatar, UplaodBox e UploadWithCrop):** componentes para uploads de arquivos
68
+
69
+ #### Componentes de formulário (react-hook-form)
70
+ - **Form:** componente de formulário construido em cima do [react-hook-form](https://www.npmjs.com/package/react-hook-form). *(Todos os componentes abaixo funcionam somente dentro desse componente:)* `<Form />`
71
+ - **Autocomplete:** componente dropdown de seleção única/múltipla
72
+ - **Checkbox / MultiCheckbox:** caixa seleção
73
+ - **Codes:** campos para inserção de código. Ex: código recebido por e-email
74
+ - **ColorPickerField:** componente de seleção de cor
75
+ - **DatePicker:** componente de seleção de data. Construido em cima do [MUI-DatePicker](https://mui.com/x/react-date-pickers/date-picker/)
76
+ - **DateRangePicker:** componente de seleção de intervalo de data. Construido em cima do [MUI-DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
77
+ - **DateTimePicker:** componente de seleção de data e hora. Construido em cima do [MUI-DateTimePicker](https://mui.com/x/react-date-pickers/getting-started/)
78
+ - **EditorField:** editor `rich text` construido em cima do [react-quill](https://www.npmjs.com/package/react-quill)
79
+ - **Field:** componente de inserção de texto. Construido em cima do [MUI-TextField](https://mui.com/material-ui/react-text-field/)
80
+ - **MaskedInputField:** componente de input com máscara. Util para campos como `CPF`, `CNPJ`, `Telefone`
81
+ - **PasswordField:** componente para inserção de senha com um olhinho para visualização da senha no canto direito.
82
+ - **RadioGroup:** componente de seleção única. Construido em cima do [MUI-RadioGroup](https://mui.com/material-ui/api/radio-group/)
83
+ - **Switch:** componente de ativação/desativação. Construido em cima do [MUI-Switch](https://mui.com/material-ui/react-switch/)
84
+ - **TimePicker:** componente de seleção hora. Construido em cima do [MUI-TimePicker](https://mui.com/x/react-date-pickers/time-picker/)
85
+ - **UploadWithCropField:** componente para upload/crop de imagem
86
+
87
+ #### Componentes de navegação
88
+ - **NavSectionHorizontal:** itens para navegação na horizontal
89
+ - **NavSectionMini:** itens para navegação, versão mini
90
+ - **NavSectionVertical:** itens para navegação na vertical
91
+
92
+ ### Utils
93
+ - **file:** utils para lidar com arquivos `(downloadFile)`
94
+ - **formatNumber:** utils para formatar números `(fNumber, fCurrency, fPercent, fShortenNumber, fData result, fWithDecimalPlacesOrNot)`
95
+ - **formatTime:** utils para lidar com datas `(fDate, fDateTime format, fTimestamp, fToNow)` (*Construido utilizando* [date-fns](https://www.npmjs.com/package/date-fns))
96
+ - **cssStyles:** utils para lidar com estilos CSS `(bgBlur, bgGradient, textGradient, filterStyles, hideScrollbarY, hideScrollbarX)`
97
+ - **routes:** utils para lidar com rotas `(getRoot)`
98
+ - **sort:** utils para lidar com ordenação de arrys de objetos `(sort, updatePosition)`
99
+ - **validators:** utils para validação de dados `(cpfIsValid, cnpjIsValid)`
100
+ - **number:** utils para lidar com números `(isMultiple, roundIfNecessary)`
101
+ - **uuidv4:** utils para gerar um UUID v4
102
+ - **loadable:** util para utilizar com code split. Ele irá carregar o compomente e exibirá um loading fixo no topo da tela
103
+
104
+ ### Hooks
105
+ - **useActiveElement:** hook que indicar qual compnente (input, button, etc.) está com foco ativo
106
+ - **useActiveLink:** hook que mostra se a rota passada está ativa ou não
107
+ - **useCopyToClipboard:** hook para copiar algum texto para a área de transferência. Equivalente a `ctrl`+`c`
108
+ - **useDatagrid:** hook com recursos utéis para serem usados por um `<Datagrid />`
109
+ - **useDeepCompareEffect:** hook semelhante ao `useEffect` do React, mas que lida melhor com objetos complexos
110
+ - **useEventListener:** hook para lidar com eventos JavaScript
111
+ - **useIsMounting:** hook que retorna um booleano indicando se é a primeira renderezição do componente
112
+ - **useResponsive:** hook que retorna qual a media-query está ativa `(xs, sm, md, lg, xl)`
113
+ - **useTabs:** hook com recursos utéis para lidar com tabs `(currentTab, onChangeTab, setCurrentTab)`
114
+ - **useToggle:** hook que alterna o estado que uma variável boolean. Ex:
115
+ ```
116
+ const [detailsOpen, toggleDetailsOpen] = useToggle(true);
117
+ ```
118
+
119
+ ### Types
120
+ - **PagedRequest** interface para tipar requisições paginadas. Ex: `PagedRequest<{userId: string}>` *(agora o userId também vai estar disponivel no objeto)*
121
+ ```
122
+ export type PagedRequest<T = unknown> = T & {
123
+ search?: string;
124
+ page?: number;
125
+ perPage?: number;
126
+ sort?: string;
127
+ dir?: 'asc' | 'desc';
128
+ };
129
+ ```
130
+
131
+ - **PagedResponse** interface para tipar respostas paginadas. Ex: `PagedResponse<User[]>` *(agora sabemos que no 'items' temos um array de usuários)*
3
132
  ```
4
- yarn add @emotion/react @emotion/styled @mui/lab @mui/material @mui/x-data-grid-premium @mui/x-date-pickers-pro react-hook-form
133
+ export interface PagedResponse<T> {
134
+ currentPage: number;
135
+ perPage: number;
136
+ total: number;
137
+ items: T;
138
+ }
5
139
  ```
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { IncrementerProps } from './props';
3
+ declare const Incrementer: import("react").ForwardRefExoticComponent<Omit<IncrementerProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export default Incrementer;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Incrementer/index.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,QAAA,MAAM,WAAW,0HA8HhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ export type IncrementerProps = {
3
+ name: string;
4
+ increment?: number;
5
+ updadteForMultiple?: boolean;
6
+ allowNegative?: boolean;
7
+ decimalScale?: number;
8
+ value?: number;
9
+ onChange: (value: string | number | undefined | null) => void;
10
+ minValue?: number;
11
+ maxValue?: number;
12
+ loading?: boolean;
13
+ } & Omit<TextFieldProps, 'onChange'>;
14
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/Incrementer/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -10,7 +10,7 @@ declare const MaskedInput: import("react").ForwardRefExoticComponent<(Omit<{
10
10
  value: string;
11
11
  };
12
12
  }) => void;
13
- } & import("@mui/material").FilledTextFieldProps, "ref"> | Omit<{
13
+ } & import("@mui/material").OutlinedTextFieldProps, "ref"> | Omit<{
14
14
  name: string;
15
15
  mask: {
16
16
  mask: string;
@@ -21,7 +21,7 @@ declare const MaskedInput: import("react").ForwardRefExoticComponent<(Omit<{
21
21
  value: string;
22
22
  };
23
23
  }) => void;
24
- } & import("@mui/material").OutlinedTextFieldProps, "ref"> | Omit<{
24
+ } & import("@mui/material").FilledTextFieldProps, "ref"> | Omit<{
25
25
  name: string;
26
26
  mask: {
27
27
  mask: string;
@@ -0,0 +1,52 @@
1
+ import React from 'react';
2
+ declare const NumberInput: React.ForwardRefExoticComponent<(Omit<{
3
+ name: string;
4
+ decimalScale?: number | undefined;
5
+ fixedDecimalScale?: boolean | undefined;
6
+ prefix?: string | undefined;
7
+ allowNegative?: boolean | undefined;
8
+ minValue?: number | undefined;
9
+ maxValue?: number | undefined;
10
+ maxLength?: number | undefined;
11
+ value?: string | number | null | undefined;
12
+ onChange?: ((event: {
13
+ target: {
14
+ name: string;
15
+ value: number | undefined;
16
+ };
17
+ }) => void) | undefined;
18
+ } & import("@mui/material").OutlinedTextFieldProps, "ref"> | Omit<{
19
+ name: string;
20
+ decimalScale?: number | undefined;
21
+ fixedDecimalScale?: boolean | undefined;
22
+ prefix?: string | undefined;
23
+ allowNegative?: boolean | undefined;
24
+ minValue?: number | undefined;
25
+ maxValue?: number | undefined;
26
+ maxLength?: number | undefined;
27
+ value?: string | number | null | undefined;
28
+ onChange?: ((event: {
29
+ target: {
30
+ name: string;
31
+ value: number | undefined;
32
+ };
33
+ }) => void) | undefined;
34
+ } & import("@mui/material").FilledTextFieldProps, "ref"> | Omit<{
35
+ name: string;
36
+ decimalScale?: number | undefined;
37
+ fixedDecimalScale?: boolean | undefined;
38
+ prefix?: string | undefined;
39
+ allowNegative?: boolean | undefined;
40
+ minValue?: number | undefined;
41
+ maxValue?: number | undefined;
42
+ maxLength?: number | undefined;
43
+ value?: string | number | null | undefined;
44
+ onChange?: ((event: {
45
+ target: {
46
+ name: string;
47
+ value: number | undefined;
48
+ };
49
+ }) => void) | undefined;
50
+ } & import("@mui/material").StandardTextFieldProps, "ref">) & React.RefAttributes<HTMLDivElement>>;
51
+ export default NumberInput;
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAMjD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGA4FhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { TextFieldProps } from '@mui/material';
2
+ export type NumberInputProps = {
3
+ name: string;
4
+ decimalScale?: number;
5
+ fixedDecimalScale?: boolean;
6
+ prefix?: string;
7
+ allowNegative?: boolean;
8
+ minValue?: number;
9
+ maxValue?: number;
10
+ maxLength?: number;
11
+ value?: string | number | null | undefined;
12
+ onChange?: (event: {
13
+ target: {
14
+ name: string;
15
+ value: number | undefined;
16
+ };
17
+ }) => void;
18
+ } & TextFieldProps;
19
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QACjB,MAAM,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,CAAC;KACrD,KAAK,IAAI,CAAC;CACZ,GAAG,cAAc,CAAC"}
@@ -4,7 +4,7 @@ export declare const varBgColor: (props?: BackgroundType) => {
4
4
  background: string[];
5
5
  transition: {
6
6
  duration: number;
7
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
7
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
8
8
  };
9
9
  };
10
10
  };
@@ -16,7 +16,7 @@ export declare const varBgKenburns: (props?: BackgroundType) => {
16
16
  transformOrigin: string[];
17
17
  transition: {
18
18
  duration: number;
19
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
19
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
20
20
  };
21
21
  };
22
22
  };
@@ -28,7 +28,7 @@ export declare const varBgKenburns: (props?: BackgroundType) => {
28
28
  transformOrigin: string[];
29
29
  transition: {
30
30
  duration: number;
31
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
31
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
32
32
  };
33
33
  };
34
34
  };
@@ -39,7 +39,7 @@ export declare const varBgKenburns: (props?: BackgroundType) => {
39
39
  transformOrigin: string[];
40
40
  transition: {
41
41
  duration: number;
42
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
42
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
43
43
  };
44
44
  };
45
45
  };
@@ -51,7 +51,7 @@ export declare const varBgKenburns: (props?: BackgroundType) => {
51
51
  transformOrigin: string[];
52
52
  transition: {
53
53
  duration: number;
54
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
54
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
55
55
  };
56
56
  };
57
57
  };
@@ -64,7 +64,7 @@ export declare const varBgPan: (props?: BackgroundType) => {
64
64
  backgroundSize: string[];
65
65
  transition: {
66
66
  duration: number;
67
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
67
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
68
68
  };
69
69
  };
70
70
  };
@@ -75,7 +75,7 @@ export declare const varBgPan: (props?: BackgroundType) => {
75
75
  backgroundSize: string[];
76
76
  transition: {
77
77
  duration: number;
78
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
78
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
79
79
  };
80
80
  };
81
81
  };
@@ -86,7 +86,7 @@ export declare const varBgPan: (props?: BackgroundType) => {
86
86
  backgroundSize: string[];
87
87
  transition: {
88
88
  duration: number;
89
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
89
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
90
90
  };
91
91
  };
92
92
  };
@@ -97,7 +97,7 @@ export declare const varBgPan: (props?: BackgroundType) => {
97
97
  backgroundSize: string[];
98
98
  transition: {
99
99
  duration: number;
100
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
100
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
101
101
  };
102
102
  };
103
103
  };
@@ -7,7 +7,7 @@ export declare const varBounce: (props?: VariantsType) => {
7
7
  opacity: number[];
8
8
  transition: {
9
9
  duration: number;
10
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
10
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
11
11
  };
12
12
  };
13
13
  exit: {
@@ -23,7 +23,7 @@ export declare const varBounce: (props?: VariantsType) => {
23
23
  opacity: number[];
24
24
  transition: {
25
25
  duration: number;
26
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
26
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
27
27
  };
28
28
  };
29
29
  exit: {
@@ -32,7 +32,7 @@ export declare const varBounce: (props?: VariantsType) => {
32
32
  opacity: number[];
33
33
  transition: {
34
34
  duration: number;
35
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
35
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
36
36
  };
37
37
  };
38
38
  };
@@ -44,7 +44,7 @@ export declare const varBounce: (props?: VariantsType) => {
44
44
  opacity: number[];
45
45
  transition: {
46
46
  duration: number;
47
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
47
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
48
48
  };
49
49
  };
50
50
  exit: {
@@ -53,7 +53,7 @@ export declare const varBounce: (props?: VariantsType) => {
53
53
  opacity: number[];
54
54
  transition: {
55
55
  duration: number;
56
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
56
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
57
57
  };
58
58
  };
59
59
  };
@@ -65,7 +65,7 @@ export declare const varBounce: (props?: VariantsType) => {
65
65
  opacity: number[];
66
66
  transition: {
67
67
  duration: number;
68
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
68
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
69
69
  };
70
70
  };
71
71
  exit: {
@@ -74,7 +74,7 @@ export declare const varBounce: (props?: VariantsType) => {
74
74
  opacity: number[];
75
75
  transition: {
76
76
  duration: number;
77
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
77
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
78
78
  };
79
79
  };
80
80
  };
@@ -86,7 +86,7 @@ export declare const varBounce: (props?: VariantsType) => {
86
86
  opacity: number[];
87
87
  transition: {
88
88
  duration: number;
89
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
89
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
90
90
  };
91
91
  };
92
92
  exit: {
@@ -95,7 +95,7 @@ export declare const varBounce: (props?: VariantsType) => {
95
95
  opacity: number[];
96
96
  transition: {
97
97
  duration: number;
98
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
98
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
99
99
  };
100
100
  };
101
101
  };
@@ -8,14 +8,14 @@ export declare const varFade: (props?: VariantsType) => {
8
8
  opacity: number;
9
9
  transition: (props?: import("../types").TranEnterType | undefined) => {
10
10
  duration: number;
11
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
11
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
12
12
  };
13
13
  };
14
14
  exit: {
15
15
  opacity: number;
16
16
  transition: (props?: import("../types").TranExitType | undefined) => {
17
17
  duration: number;
18
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
18
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
19
19
  };
20
20
  };
21
21
  };
@@ -29,7 +29,7 @@ export declare const varFade: (props?: VariantsType) => {
29
29
  opacity: number;
30
30
  transition: {
31
31
  duration: number;
32
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
32
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
33
33
  };
34
34
  };
35
35
  exit: {
@@ -37,7 +37,7 @@ export declare const varFade: (props?: VariantsType) => {
37
37
  opacity: number;
38
38
  transition: {
39
39
  duration: number;
40
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
40
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
41
41
  };
42
42
  };
43
43
  };
@@ -51,7 +51,7 @@ export declare const varFade: (props?: VariantsType) => {
51
51
  opacity: number;
52
52
  transition: {
53
53
  duration: number;
54
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
54
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
55
55
  };
56
56
  };
57
57
  exit: {
@@ -59,7 +59,7 @@ export declare const varFade: (props?: VariantsType) => {
59
59
  opacity: number;
60
60
  transition: {
61
61
  duration: number;
62
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
62
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
63
63
  };
64
64
  };
65
65
  };
@@ -73,7 +73,7 @@ export declare const varFade: (props?: VariantsType) => {
73
73
  opacity: number;
74
74
  transition: {
75
75
  duration: number;
76
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
76
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
77
77
  };
78
78
  };
79
79
  exit: {
@@ -81,7 +81,7 @@ export declare const varFade: (props?: VariantsType) => {
81
81
  opacity: number;
82
82
  transition: {
83
83
  duration: number;
84
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
84
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
85
85
  };
86
86
  };
87
87
  };
@@ -95,7 +95,7 @@ export declare const varFade: (props?: VariantsType) => {
95
95
  opacity: number;
96
96
  transition: {
97
97
  duration: number;
98
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
98
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
99
99
  };
100
100
  };
101
101
  exit: {
@@ -103,7 +103,7 @@ export declare const varFade: (props?: VariantsType) => {
103
103
  opacity: number;
104
104
  transition: {
105
105
  duration: number;
106
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
106
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
107
107
  };
108
108
  };
109
109
  };
@@ -115,14 +115,14 @@ export declare const varFade: (props?: VariantsType) => {
115
115
  opacity: number;
116
116
  transition: {
117
117
  duration: number;
118
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
118
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
119
119
  };
120
120
  };
121
121
  exit: {
122
122
  opacity: number;
123
123
  transition: {
124
124
  duration: number;
125
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
125
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
126
126
  };
127
127
  };
128
128
  };
@@ -136,7 +136,7 @@ export declare const varFade: (props?: VariantsType) => {
136
136
  opacity: number;
137
137
  transition: {
138
138
  duration: number;
139
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
139
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
140
140
  };
141
141
  };
142
142
  exit: {
@@ -144,7 +144,7 @@ export declare const varFade: (props?: VariantsType) => {
144
144
  opacity: number;
145
145
  transition: {
146
146
  duration: number;
147
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
147
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
148
148
  };
149
149
  };
150
150
  };
@@ -158,7 +158,7 @@ export declare const varFade: (props?: VariantsType) => {
158
158
  opacity: number;
159
159
  transition: {
160
160
  duration: number;
161
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
161
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
162
162
  };
163
163
  };
164
164
  exit: {
@@ -166,7 +166,7 @@ export declare const varFade: (props?: VariantsType) => {
166
166
  opacity: number;
167
167
  transition: {
168
168
  duration: number;
169
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
169
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
170
170
  };
171
171
  };
172
172
  };
@@ -180,7 +180,7 @@ export declare const varFade: (props?: VariantsType) => {
180
180
  opacity: number;
181
181
  transition: {
182
182
  duration: number;
183
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
183
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
184
184
  };
185
185
  };
186
186
  exit: {
@@ -188,7 +188,7 @@ export declare const varFade: (props?: VariantsType) => {
188
188
  opacity: number;
189
189
  transition: {
190
190
  duration: number;
191
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
191
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
192
192
  };
193
193
  };
194
194
  };
@@ -202,7 +202,7 @@ export declare const varFade: (props?: VariantsType) => {
202
202
  opacity: number;
203
203
  transition: {
204
204
  duration: number;
205
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
205
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
206
206
  };
207
207
  };
208
208
  exit: {
@@ -210,7 +210,7 @@ export declare const varFade: (props?: VariantsType) => {
210
210
  opacity: number;
211
211
  transition: {
212
212
  duration: number;
213
- ease: "linear" | number[] | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
213
+ ease: number[] | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
214
214
  };
215
215
  };
216
216
  };