mblabs-roccato-frontend-commons 0.0.16
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/README.md +111 -0
- package/dist/index.d.ts +552 -0
- package/dist/mblabs-roccato-frontend-commons.css +1 -0
- package/dist/mblabs-roccato-frontend-commons.js +30761 -0
- package/package.json +119 -0
- package/src/components/atoms/Badge/__snapshots__/badge.test.tsx.snap +12 -0
- package/src/components/atoms/Badge/badge.stories.tsx +79 -0
- package/src/components/atoms/Badge/badge.test.tsx +59 -0
- package/src/components/atoms/Badge/badge.tsx +47 -0
- package/src/components/atoms/Badge/index.ts +1 -0
- package/src/components/atoms/Box/__snapshots__/box.test.tsx.snap +10 -0
- package/src/components/atoms/Box/box.stories.tsx +59 -0
- package/src/components/atoms/Box/box.test.tsx +47 -0
- package/src/components/atoms/Box/box.tsx +7 -0
- package/src/components/atoms/Box/index.ts +1 -0
- package/src/components/atoms/Button/__snapshots__/button.test.tsx.snap +13 -0
- package/src/components/atoms/Button/button.stories.tsx +95 -0
- package/src/components/atoms/Button/button.test.tsx +75 -0
- package/src/components/atoms/Button/button.tsx +58 -0
- package/src/components/atoms/Button/index.ts +1 -0
- package/src/components/atoms/Calendar/__snapshots__/calendar.test.tsx.snap +441 -0
- package/src/components/atoms/Calendar/calendar.stories.tsx +51 -0
- package/src/components/atoms/Calendar/calendar.test.tsx +64 -0
- package/src/components/atoms/Calendar/calendar.tsx +47 -0
- package/src/components/atoms/Calendar/index.ts +1 -0
- package/src/components/atoms/Checkbox/__snapshots__/checkbox.test.tsx.snap +16 -0
- package/src/components/atoms/Checkbox/checkbox.stories.tsx +130 -0
- package/src/components/atoms/Checkbox/checkbox.test.tsx +70 -0
- package/src/components/atoms/Checkbox/checkbox.tsx +31 -0
- package/src/components/atoms/Checkbox/index.ts +1 -0
- package/src/components/atoms/Flex/__snapshots__/flex.test.tsx.snap +10 -0
- package/src/components/atoms/Flex/flex.stories.tsx +26 -0
- package/src/components/atoms/Flex/flex.test.tsx +47 -0
- package/src/components/atoms/Flex/flex.tsx +7 -0
- package/src/components/atoms/Flex/index.ts +1 -0
- package/src/components/atoms/Grid/__snapshots__/grid.test.tsx.snap +10 -0
- package/src/components/atoms/Grid/grid.stories.tsx +26 -0
- package/src/components/atoms/Grid/grid.test.tsx +47 -0
- package/src/components/atoms/Grid/grid.tsx +7 -0
- package/src/components/atoms/Grid/index.ts +1 -0
- package/src/components/atoms/Input/__snapshots__/input.test.tsx.snap +44 -0
- package/src/components/atoms/Input/index.ts +1 -0
- package/src/components/atoms/Input/input.stories.tsx +49 -0
- package/src/components/atoms/Input/input.test.tsx +86 -0
- package/src/components/atoms/Input/input.tsx +44 -0
- package/src/components/atoms/Label/__snapshots__/label.test.tsx.snap +13 -0
- package/src/components/atoms/Label/index.ts +1 -0
- package/src/components/atoms/Label/label.stories.tsx +90 -0
- package/src/components/atoms/Label/label.test.tsx +59 -0
- package/src/components/atoms/Label/label.tsx +23 -0
- package/src/components/atoms/Separator/__snapshots__/separator.test.tsx.snap +13 -0
- package/src/components/atoms/Separator/index.ts +1 -0
- package/src/components/atoms/Separator/separator.stories.tsx +117 -0
- package/src/components/atoms/Separator/separator.test.tsx +50 -0
- package/src/components/atoms/Separator/separator.tsx +28 -0
- package/src/components/atoms/Skeleton/__snapshots__/skeleton.test.tsx.snap +11 -0
- package/src/components/atoms/Skeleton/index.ts +1 -0
- package/src/components/atoms/Skeleton/skeleton.stories.tsx +84 -0
- package/src/components/atoms/Skeleton/skeleton.test.tsx +39 -0
- package/src/components/atoms/Skeleton/skeleton.tsx +14 -0
- package/src/components/atoms/Sonner/__snapshots__/sonner.test.tsx.snap +13 -0
- package/src/components/atoms/Sonner/index.ts +1 -0
- package/src/components/atoms/Sonner/sonner.stories.tsx +105 -0
- package/src/components/atoms/Sonner/sonner.test.tsx +24 -0
- package/src/components/atoms/Sonner/sonner.tsx +21 -0
- package/src/components/atoms/Switch/__snapshots__/switch.test.tsx.snap +22 -0
- package/src/components/atoms/Switch/index.ts +1 -0
- package/src/components/atoms/Switch/switch.stories.tsx +120 -0
- package/src/components/atoms/Switch/switch.test.tsx +70 -0
- package/src/components/atoms/Switch/switch.tsx +31 -0
- package/src/components/atoms/Textarea/__snapshots__/textarea.test.tsx.snap +10 -0
- package/src/components/atoms/Textarea/index.ts +1 -0
- package/src/components/atoms/Textarea/textarea.stories.tsx +169 -0
- package/src/components/atoms/Textarea/textarea.test.tsx +56 -0
- package/src/components/atoms/Textarea/textarea.tsx +18 -0
- package/src/components/atoms/Toggle/__snapshots__/toggle.test.tsx.snap +13 -0
- package/src/components/atoms/Toggle/index.ts +1 -0
- package/src/components/atoms/Toggle/toggle.stories.tsx +170 -0
- package/src/components/atoms/Toggle/toggle.test.tsx +62 -0
- package/src/components/atoms/Toggle/toggle.tsx +47 -0
- package/src/components/atoms/Typography/__snapshots__/typography.test.tsx.snap +12 -0
- package/src/components/atoms/Typography/index.ts +1 -0
- package/src/components/atoms/Typography/typography.stories.tsx +95 -0
- package/src/components/atoms/Typography/typography.test.tsx +66 -0
- package/src/components/atoms/Typography/typography.tsx +63 -0
- package/src/components/atoms/index.ts +16 -0
- package/src/components/index.ts +3 -0
- package/src/components/molecules/Avatar/__snapshots__/avatar.test.tsx.snap +11 -0
- package/src/components/molecules/Avatar/avatar.stories.tsx +98 -0
- package/src/components/molecules/Avatar/avatar.test.tsx +55 -0
- package/src/components/molecules/Avatar/avatar.tsx +55 -0
- package/src/components/molecules/Avatar/index.ts +1 -0
- package/src/components/molecules/Breadcrumb/__snapshots__/breadcrumb.test.tsx.snap +11 -0
- package/src/components/molecules/Breadcrumb/breadcrumb.stories.tsx +125 -0
- package/src/components/molecules/Breadcrumb/breadcrumb.test.tsx +118 -0
- package/src/components/molecules/Breadcrumb/breadcrumb.tsx +120 -0
- package/src/components/molecules/Breadcrumb/index.ts +1 -0
- package/src/components/molecules/Card/__snapshots__/card.test.tsx.snap +11 -0
- package/src/components/molecules/Card/card.stories.tsx +109 -0
- package/src/components/molecules/Card/card.test.tsx +103 -0
- package/src/components/molecules/Card/card.tsx +78 -0
- package/src/components/molecules/Card/index.ts +1 -0
- package/src/components/molecules/Drawer/__snapshots__/drawer.test.tsx.snap +3 -0
- package/src/components/molecules/Drawer/drawer.stories.tsx +132 -0
- package/src/components/molecules/Drawer/drawer.test.tsx +100 -0
- package/src/components/molecules/Drawer/drawer.tsx +149 -0
- package/src/components/molecules/Drawer/index.ts +1 -0
- package/src/components/molecules/Dropdown/__snapshots__/dropdown.test.tsx.snap +82 -0
- package/src/components/molecules/Dropdown/dropdown.stories.tsx +38 -0
- package/src/components/molecules/Dropdown/dropdown.test.tsx +76 -0
- package/src/components/molecules/Dropdown/dropdown.tsx +68 -0
- package/src/components/molecules/Dropdown/index.ts +1 -0
- package/src/components/molecules/DropdownMenu/__snapshots__/dropdown-menu.test.tsx.snap +3 -0
- package/src/components/molecules/DropdownMenu/dropdown-menu.stories.tsx +127 -0
- package/src/components/molecules/DropdownMenu/dropdown-menu.test.tsx +163 -0
- package/src/components/molecules/DropdownMenu/dropdown-menu.tsx +235 -0
- package/src/components/molecules/DropdownMenu/index.ts +1 -0
- package/src/components/molecules/NavigationMenu/__snapshots__/navigation-menu.test.tsx.snap +20 -0
- package/src/components/molecules/NavigationMenu/index.ts +1 -0
- package/src/components/molecules/NavigationMenu/navigation-menu.stories.tsx +143 -0
- package/src/components/molecules/NavigationMenu/navigation-menu.test.tsx +69 -0
- package/src/components/molecules/NavigationMenu/navigation-menu.tsx +174 -0
- package/src/components/molecules/Select/__snapshots__/select.test.tsx.snap +15 -0
- package/src/components/molecules/Select/index.ts +1 -0
- package/src/components/molecules/Select/select.stories.tsx +63 -0
- package/src/components/molecules/Select/select.test.tsx +80 -0
- package/src/components/molecules/Select/select.tsx +172 -0
- package/src/components/molecules/Sheet/__snapshots__/sheet.test.tsx.snap +3 -0
- package/src/components/molecules/Sheet/index.ts +1 -0
- package/src/components/molecules/Sheet/sheet.stories.tsx +143 -0
- package/src/components/molecules/Sheet/sheet.test.tsx +70 -0
- package/src/components/molecules/Sheet/sheet.tsx +133 -0
- package/src/components/molecules/Tabs/__snapshots__/tabs.test.tsx.snap +12 -0
- package/src/components/molecules/Tabs/index.ts +1 -0
- package/src/components/molecules/Tabs/tabs.stories.tsx +133 -0
- package/src/components/molecules/Tabs/tabs.test.tsx +94 -0
- package/src/components/molecules/Tabs/tabs.tsx +62 -0
- package/src/components/molecules/ToggleGroup/__snapshots__/toggle-group.test.tsx.snap +42 -0
- package/src/components/molecules/ToggleGroup/index.ts +1 -0
- package/src/components/molecules/ToggleGroup/toggle-group.stories.tsx +117 -0
- package/src/components/molecules/ToggleGroup/toggle-group.test.tsx +100 -0
- package/src/components/molecules/ToggleGroup/toggle-group.tsx +70 -0
- package/src/components/molecules/Tooltip/__snapshots__/tooltip.test.tsx.snap +13 -0
- package/src/components/molecules/Tooltip/index.ts +1 -0
- package/src/components/molecules/Tooltip/tooltip.stories.tsx +133 -0
- package/src/components/molecules/Tooltip/tooltip.test.tsx +58 -0
- package/src/components/molecules/Tooltip/tooltip.tsx +58 -0
- package/src/components/molecules/index.ts +12 -0
- package/src/components/organisms/Chart/__snapshots__/chart.test.tsx.snap +154 -0
- package/src/components/organisms/Chart/chart.stories.tsx +102 -0
- package/src/components/organisms/Chart/chart.test.tsx +105 -0
- package/src/components/organisms/Chart/chart.tsx +294 -0
- package/src/components/organisms/Chart/index.ts +1 -0
- package/src/components/organisms/Form/__snapshots__/form.test.tsx.snap +141 -0
- package/src/components/organisms/Form/form.stories.tsx +102 -0
- package/src/components/organisms/Form/form.test.tsx +49 -0
- package/src/components/organisms/Form/form.tsx +127 -0
- package/src/components/organisms/Form/index.ts +1 -0
- package/src/components/organisms/Sidebar/__snapshots__/sidebar.test.tsx.snap +223 -0
- package/src/components/organisms/Sidebar/index.ts +1 -0
- package/src/components/organisms/Sidebar/sidebar.stories.tsx +86 -0
- package/src/components/organisms/Sidebar/sidebar.test.tsx +101 -0
- package/src/components/organisms/Sidebar/sidebar.tsx +666 -0
- package/src/components/organisms/Table/__snapshots__/table.test.tsx.snap +211 -0
- package/src/components/organisms/Table/index.ts +1 -0
- package/src/components/organisms/Table/table.stories.tsx +83 -0
- package/src/components/organisms/Table/table.test.tsx +44 -0
- package/src/components/organisms/Table/table.tsx +101 -0
- package/src/components/organisms/index.ts +4 -0
- package/src/constants/brazilian-states.ts +29 -0
- package/src/constants/index.ts +1 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useForm.ts +8 -0
- package/src/hooks/useFormField.ts +41 -0
- package/src/hooks/useMobile.ts +21 -0
- package/src/hooks/useSidebar.ts +23 -0
- package/src/index.css +85 -0
- package/src/main.ts +6 -0
- package/src/utils/api/api.test.ts +64 -0
- package/src/utils/api/api.ts +34 -0
- package/src/utils/api/index.ts +1 -0
- package/src/utils/array/array.test.ts +160 -0
- package/src/utils/array/array.ts +43 -0
- package/src/utils/array/index.ts +1 -0
- package/src/utils/cn/cn.test.ts +43 -0
- package/src/utils/cn/cn.ts +6 -0
- package/src/utils/cn/index.ts +1 -0
- package/src/utils/currency/currency.test.ts +123 -0
- package/src/utils/currency/currency.ts +59 -0
- package/src/utils/currency/index.ts +1 -0
- package/src/utils/date/date.test.ts +167 -0
- package/src/utils/date/date.ts +83 -0
- package/src/utils/date/index.ts +1 -0
- package/src/utils/get-initials/get-initials.test.ts +40 -0
- package/src/utils/get-initials/get-initials.ts +13 -0
- package/src/utils/get-initials/index.ts +1 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/string/index.ts +1 -0
- package/src/utils/string/string.test.ts +171 -0
- package/src/utils/string/string.ts +151 -0
- package/src/vite-env.d.ts +3 -0
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# 🧩 mblabs-roccato-frontend-commons
|
|
2
|
+
|
|
3
|
+
Uma coleção de componentes e utilitários de front-end reutilizáveis, desenvolvidos com tecnologias modernas como React 19, TailwindCSS, Radix UI e muito mais. Criado para ser compartilhado entre projetos dentro do ecossistema MB Labs Roccato.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📦 Instalação
|
|
8
|
+
|
|
9
|
+
Utilize o [pnpm](https://pnpm.io/) como gerenciador de pacotes (Node.js 22+):
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add mblabs-roccato-frontend-commons
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Certifique-se de instalar também as dependências peer:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pnpm add react@^19.0.0 react-dom@^19.0.0 react-hook-form@^7.55.0
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 🚀 Como usar
|
|
24
|
+
|
|
25
|
+
Importe os componentes ou utilitários diretamente do pacote:
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { MeuComponente } from 'mblabs-roccato-frontend-commons';
|
|
29
|
+
import 'mblabs-roccato-frontend-commons/css'; // estilos padrões
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## ✨ Destaques
|
|
35
|
+
|
|
36
|
+
- ✅ Suporte ao React 19
|
|
37
|
+
- 🎨 TailwindCSS 4 com variantes dinâmicas
|
|
38
|
+
- ⚙️ Componentes acessíveis via Radix UI
|
|
39
|
+
- 🧰 Drag & drop com DnD Kit
|
|
40
|
+
- 📊 Visualizações com Recharts
|
|
41
|
+
- 🧪 Totalmente tipado com TypeScript
|
|
42
|
+
- 📚 Documentação interativa com Storybook
|
|
43
|
+
- ⚡ Build otimizado com Vite
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 📂 Estrutura do Projeto
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
📁 src/
|
|
51
|
+
┣ 📦 components/
|
|
52
|
+
┣ ┣ 📦 atoms/
|
|
53
|
+
┣ ┣ 📦 molecules/
|
|
54
|
+
┣ ┣ 📦 organisms/
|
|
55
|
+
┣ ┣ 📄 index.ts
|
|
56
|
+
┣ 📦 hooks/
|
|
57
|
+
┣ 📦 utils/
|
|
58
|
+
┗ 📄 index.ts
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 🧪 Scripts
|
|
64
|
+
|
|
65
|
+
| Comando | Descrição |
|
|
66
|
+
| ---------------------- | ------------------------------------------------- |
|
|
67
|
+
| `pnpm build` | Compila a lib com TypeScript e Vite |
|
|
68
|
+
| `pnpm lint` | Lint no projeto com ESLint |
|
|
69
|
+
| `pnpm storybook` | Inicia o Storybook em ambiente de desenvolvimento |
|
|
70
|
+
| `pnpm build-storybook` | Gera versão estática do Storybook |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 📚 Storybook
|
|
75
|
+
|
|
76
|
+
Explore e teste os componentes interativamente:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pnpm storybook
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Ou gere a versão estática:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pnpm build-storybook
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 🧩 Tecnologias Utilizadas
|
|
91
|
+
|
|
92
|
+
- React 19
|
|
93
|
+
- TailwindCSS
|
|
94
|
+
- Radix UI
|
|
95
|
+
- DnD Kit
|
|
96
|
+
- Tanstack react-table
|
|
97
|
+
- Tabler icons-react
|
|
98
|
+
- Date fns
|
|
99
|
+
- Recharts
|
|
100
|
+
- React Hook Form
|
|
101
|
+
- Zod
|
|
102
|
+
- Storybook
|
|
103
|
+
- Vite
|
|
104
|
+
- TypeScript
|
|
105
|
+
- ESLint
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 📝 Licença
|
|
110
|
+
|
|
111
|
+
MIT © Roccato — Feito com ❤️ pelo time MB Labs.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import { ControllerProps } from 'react-hook-form';
|
|
6
|
+
import { DateTime } from 'luxon';
|
|
7
|
+
import { DayPicker } from 'react-day-picker';
|
|
8
|
+
import { default as default_2 } from 'react';
|
|
9
|
+
import { Drawer as Drawer_2 } from 'vaul';
|
|
10
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
11
|
+
import { FieldError } from 'react-hook-form';
|
|
12
|
+
import { FieldPath } from 'react-hook-form';
|
|
13
|
+
import { FieldValues } from 'react-hook-form';
|
|
14
|
+
import { GroupBase } from 'react-select';
|
|
15
|
+
import { JSX } from 'react/jsx-runtime';
|
|
16
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
17
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
18
|
+
import { Props } from 'react-select';
|
|
19
|
+
import * as React_2 from 'react';
|
|
20
|
+
import * as RechartsPrimitive from 'recharts';
|
|
21
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
22
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
23
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
24
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
25
|
+
import { SubmitErrorHandler } from 'react-hook-form';
|
|
26
|
+
import { SubmitHandler } from 'react-hook-form';
|
|
27
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
28
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
29
|
+
import { ToasterProps } from 'sonner';
|
|
30
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
31
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
32
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
33
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
34
|
+
import { VariantProps } from 'class-variance-authority';
|
|
35
|
+
|
|
36
|
+
export declare function addMonth(date: DateTime, month: number): DateTime;
|
|
37
|
+
|
|
38
|
+
export declare function Avatar({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Root>): JSX.Element;
|
|
39
|
+
|
|
40
|
+
export declare function AvatarFallback({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Fallback>): JSX.Element;
|
|
41
|
+
|
|
42
|
+
export declare function AvatarImage({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Image>): JSX.Element;
|
|
43
|
+
|
|
44
|
+
export declare function Badge({ className, variant, asChild, ...props }: React_2.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
}): JSX.Element;
|
|
47
|
+
|
|
48
|
+
export declare const badgeVariants: (props?: ({
|
|
49
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
50
|
+
} & ClassProp) | undefined) => string;
|
|
51
|
+
|
|
52
|
+
export declare function Box({ className, ...props }: React.ComponentProps<'div'>): JSX.Element;
|
|
53
|
+
|
|
54
|
+
export declare const brazilianStates: {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
}[];
|
|
58
|
+
|
|
59
|
+
export declare function Breadcrumb({ ...props }: React_2.ComponentProps<'nav'>): JSX.Element;
|
|
60
|
+
|
|
61
|
+
export declare function BreadcrumbEllipsis({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element;
|
|
62
|
+
|
|
63
|
+
export declare function BreadcrumbItem({ className, ...props }: React_2.ComponentProps<'li'>): JSX.Element;
|
|
64
|
+
|
|
65
|
+
export declare function BreadcrumbLink({ asChild, className, ...props }: React_2.ComponentProps<'a'> & {
|
|
66
|
+
asChild?: boolean;
|
|
67
|
+
}): JSX.Element;
|
|
68
|
+
|
|
69
|
+
export declare function BreadcrumbList({ className, ...props }: React_2.ComponentProps<'ol'>): JSX.Element;
|
|
70
|
+
|
|
71
|
+
export declare function BreadcrumbPage({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element;
|
|
72
|
+
|
|
73
|
+
export declare function BreadcrumbSeparator({ children, className, ...props }: React_2.ComponentProps<'li'>): JSX.Element;
|
|
74
|
+
|
|
75
|
+
export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
76
|
+
asChild?: boolean;
|
|
77
|
+
}): JSX.Element;
|
|
78
|
+
|
|
79
|
+
export declare const buttonVariants: (props?: ({
|
|
80
|
+
variant?: "default" | "destructive" | "outline" | "link" | "ghost" | null | undefined;
|
|
81
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
82
|
+
} & ClassProp) | undefined) => string;
|
|
83
|
+
|
|
84
|
+
export declare function Calendar({ className, showOutsideDays, ...props }: React_2.ComponentProps<typeof DayPicker>): JSX.Element;
|
|
85
|
+
|
|
86
|
+
export declare function Card({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
87
|
+
|
|
88
|
+
export declare function CardAction({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare function CardContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
91
|
+
|
|
92
|
+
export declare function CardDescription({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
93
|
+
|
|
94
|
+
export declare function CardFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
95
|
+
|
|
96
|
+
export declare function CardHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
97
|
+
|
|
98
|
+
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
99
|
+
|
|
100
|
+
export declare type ChartConfig = {
|
|
101
|
+
[k in string]: {
|
|
102
|
+
label?: React_2.ReactNode;
|
|
103
|
+
icon?: React_2.ComponentType;
|
|
104
|
+
} & ({
|
|
105
|
+
color?: string;
|
|
106
|
+
theme?: never;
|
|
107
|
+
} | {
|
|
108
|
+
color?: never;
|
|
109
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export declare function ChartContainer({ id, className, children, config, ...props }: React_2.ComponentProps<'div'> & {
|
|
114
|
+
config: ChartConfig;
|
|
115
|
+
children: React_2.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>['children'];
|
|
116
|
+
}): JSX.Element;
|
|
117
|
+
|
|
118
|
+
export declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
119
|
+
|
|
120
|
+
export declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React_2.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
|
|
121
|
+
hideIcon?: boolean;
|
|
122
|
+
nameKey?: string;
|
|
123
|
+
}): JSX.Element | null;
|
|
124
|
+
|
|
125
|
+
export declare const ChartStyle: ({ id, config }: {
|
|
126
|
+
id: string;
|
|
127
|
+
config: ChartConfig;
|
|
128
|
+
}) => JSX.Element | null;
|
|
129
|
+
|
|
130
|
+
export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
131
|
+
|
|
132
|
+
export declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React_2.ComponentProps<typeof RechartsPrimitive.Tooltip> & React_2.ComponentProps<'div'> & {
|
|
133
|
+
hideLabel?: boolean;
|
|
134
|
+
hideIndicator?: boolean;
|
|
135
|
+
indicator?: 'line' | 'dot' | 'dashed';
|
|
136
|
+
nameKey?: string;
|
|
137
|
+
labelKey?: string;
|
|
138
|
+
}): JSX.Element | null;
|
|
139
|
+
|
|
140
|
+
export declare function Checkbox({ className, ...props }: React_2.ComponentProps<typeof CheckboxPrimitive.Root>): JSX.Element;
|
|
141
|
+
|
|
142
|
+
export declare const checkSubset: (array: string[], subset: string[]) => boolean;
|
|
143
|
+
|
|
144
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
145
|
+
|
|
146
|
+
export declare function convertFromCents(value: string): number;
|
|
147
|
+
|
|
148
|
+
export declare function convertTextToNumbers(text: string): number[];
|
|
149
|
+
|
|
150
|
+
export declare function convertUnixTime(unix: number): string;
|
|
151
|
+
|
|
152
|
+
export declare function createISODate(date: string): DateTime;
|
|
153
|
+
|
|
154
|
+
export declare function currencyShortener(value: number, currency?: string, locale?: string): string;
|
|
155
|
+
|
|
156
|
+
export declare function displayAmount(amount: number, limit?: number): string;
|
|
157
|
+
|
|
158
|
+
export declare function Drawer({ ...props }: React_2.ComponentProps<typeof Drawer_2.Root>): JSX.Element;
|
|
159
|
+
|
|
160
|
+
export declare function DrawerClose({ ...props }: React_2.ComponentProps<typeof Drawer_2.Close>): JSX.Element;
|
|
161
|
+
|
|
162
|
+
export declare function DrawerContent({ className, children, ...props }: React_2.ComponentProps<typeof Drawer_2.Content>): JSX.Element;
|
|
163
|
+
|
|
164
|
+
export declare function DrawerDescription({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Description>): JSX.Element;
|
|
165
|
+
|
|
166
|
+
export declare function DrawerFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
167
|
+
|
|
168
|
+
export declare function DrawerHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
169
|
+
|
|
170
|
+
export declare function DrawerOverlay({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Overlay>): JSX.Element;
|
|
171
|
+
|
|
172
|
+
export declare function DrawerPortal({ ...props }: React_2.ComponentProps<typeof Drawer_2.Portal>): JSX.Element;
|
|
173
|
+
|
|
174
|
+
export declare function DrawerTitle({ className, ...props }: React_2.ComponentProps<typeof Drawer_2.Title>): JSX.Element;
|
|
175
|
+
|
|
176
|
+
export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
|
|
177
|
+
|
|
178
|
+
export declare const Dropdown: <Option extends {
|
|
179
|
+
label: string;
|
|
180
|
+
}, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ classNames, components: customComponents, ...props }: DropdownProps<Option, IsMulti, Group>) => JSX.Element;
|
|
181
|
+
|
|
182
|
+
export declare function DropdownMenu({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Root>): JSX.Element;
|
|
183
|
+
|
|
184
|
+
export declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): JSX.Element;
|
|
185
|
+
|
|
186
|
+
export declare function DropdownMenuContent({ className, sideOffset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Content>): JSX.Element;
|
|
187
|
+
|
|
188
|
+
export declare function DropdownMenuGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>): JSX.Element;
|
|
189
|
+
|
|
190
|
+
export declare function DropdownMenuItem({ className, inset, variant, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
191
|
+
inset?: boolean;
|
|
192
|
+
variant?: 'default' | 'destructive';
|
|
193
|
+
}): JSX.Element;
|
|
194
|
+
|
|
195
|
+
export declare function DropdownMenuLabel({ className, inset, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
196
|
+
inset?: boolean;
|
|
197
|
+
}): JSX.Element;
|
|
198
|
+
|
|
199
|
+
export declare function DropdownMenuPortal({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>): JSX.Element;
|
|
200
|
+
|
|
201
|
+
export declare function DropdownMenuRadioGroup({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): JSX.Element;
|
|
202
|
+
|
|
203
|
+
export declare function DropdownMenuRadioItem({ className, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): JSX.Element;
|
|
204
|
+
|
|
205
|
+
export declare function DropdownMenuSeparator({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Separator>): JSX.Element;
|
|
206
|
+
|
|
207
|
+
export declare function DropdownMenuShortcut({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element;
|
|
208
|
+
|
|
209
|
+
export declare function DropdownMenuSub({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Sub>): JSX.Element;
|
|
210
|
+
|
|
211
|
+
export declare function DropdownMenuSubContent({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): JSX.Element;
|
|
212
|
+
|
|
213
|
+
export declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
214
|
+
inset?: boolean;
|
|
215
|
+
}): JSX.Element;
|
|
216
|
+
|
|
217
|
+
export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): JSX.Element;
|
|
218
|
+
|
|
219
|
+
declare type DropdownProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group>;
|
|
220
|
+
|
|
221
|
+
export declare function Flex({ className, ...props }: React.ComponentProps<'div'>): JSX.Element;
|
|
222
|
+
|
|
223
|
+
export declare function Form<T extends FieldValues>({ methods, onValid, onInvalid, className, children, ...props }: FormProps<T>): JSX.Element;
|
|
224
|
+
|
|
225
|
+
export declare function formatCurrency(value: number, currency?: string, decimalPlaces?: number, locale?: string): string;
|
|
226
|
+
|
|
227
|
+
export declare function formatCurrencyFromString(value: string, currency?: string): string;
|
|
228
|
+
|
|
229
|
+
export declare function formatFromFromat(date: string, fromFormat: string, toFormat: string): string;
|
|
230
|
+
|
|
231
|
+
export declare function formatISODate(date: string, format: string): string;
|
|
232
|
+
|
|
233
|
+
export declare function formatNumberToKOrM(value: number): string;
|
|
234
|
+
|
|
235
|
+
export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
|
|
236
|
+
|
|
237
|
+
export declare function FormDescription({ className, ...props }: React_2.ComponentProps<'p'>): JSX.Element;
|
|
238
|
+
|
|
239
|
+
export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
|
|
240
|
+
|
|
241
|
+
export declare const FormFieldContext: default_2.Context<FormFieldContextValue<FieldValues, string>>;
|
|
242
|
+
|
|
243
|
+
declare type FormFieldContextValue<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
244
|
+
name: TName;
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
export declare function FormItem({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
248
|
+
|
|
249
|
+
export declare const FormItemContext: default_2.Context<FormItemContextValue>;
|
|
250
|
+
|
|
251
|
+
declare type FormItemContextValue = {
|
|
252
|
+
id: string;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export declare function FormLabel({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
256
|
+
|
|
257
|
+
export declare function FormMessage({ className, ...props }: React_2.ComponentProps<'p'>): JSX.Element | null;
|
|
258
|
+
|
|
259
|
+
declare interface FormProps<T extends FieldValues = FieldValues> extends Omit<React_2.ComponentProps<'form'>, 'onSubmit' | 'onInvalid'> {
|
|
260
|
+
methods: UseFormReturn<T>;
|
|
261
|
+
onValid: SubmitHandler<T>;
|
|
262
|
+
onInvalid?: SubmitErrorHandler<T>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export declare function fromIsoToLocale(date: string): string;
|
|
266
|
+
|
|
267
|
+
export declare function fromIsoToMillis(date: string): number;
|
|
268
|
+
|
|
269
|
+
export declare function getCurrentDate(): string | null;
|
|
270
|
+
|
|
271
|
+
export declare function getInitials(name: string): string;
|
|
272
|
+
|
|
273
|
+
export declare function Grid({ className, ...props }: React.ComponentProps<'div'>): JSX.Element;
|
|
274
|
+
|
|
275
|
+
export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
276
|
+
|
|
277
|
+
export declare function isAPIError(err: unknown): boolean;
|
|
278
|
+
|
|
279
|
+
export declare function isForbiddenError(err: unknown): boolean;
|
|
280
|
+
|
|
281
|
+
export declare const isValidCNPJ: (cnpj: string) => boolean;
|
|
282
|
+
|
|
283
|
+
export declare function isValidCPF(text: string): boolean;
|
|
284
|
+
|
|
285
|
+
export declare function isValidDocument(text: string): boolean;
|
|
286
|
+
|
|
287
|
+
export declare function isValidEmail(email: string): boolean;
|
|
288
|
+
|
|
289
|
+
export declare function isValidName(name: string): boolean;
|
|
290
|
+
|
|
291
|
+
export declare function isValidPhone(phone: string): boolean;
|
|
292
|
+
|
|
293
|
+
export declare function keepOnlyNumber(text: string): string;
|
|
294
|
+
|
|
295
|
+
export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
|
|
296
|
+
|
|
297
|
+
export declare function maskCurrency(value: number, locale?: string, currency?: string): string;
|
|
298
|
+
|
|
299
|
+
export declare function NavigationMenu({ className, children, viewport, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
300
|
+
viewport?: boolean;
|
|
301
|
+
}): JSX.Element;
|
|
302
|
+
|
|
303
|
+
export declare function NavigationMenuContent({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Content>): JSX.Element;
|
|
304
|
+
|
|
305
|
+
export declare function NavigationMenuIndicator({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Indicator>): JSX.Element;
|
|
306
|
+
|
|
307
|
+
export declare function NavigationMenuItem({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Item>): JSX.Element;
|
|
308
|
+
|
|
309
|
+
export declare function NavigationMenuLink({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Link>): JSX.Element;
|
|
310
|
+
|
|
311
|
+
export declare function NavigationMenuList({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.List>): JSX.Element;
|
|
312
|
+
|
|
313
|
+
export declare function NavigationMenuTrigger({ className, children, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Trigger>): JSX.Element;
|
|
314
|
+
|
|
315
|
+
export declare const navigationMenuTriggerStyle: (props?: ClassProp | undefined) => string;
|
|
316
|
+
|
|
317
|
+
export declare function NavigationMenuViewport({ className, ...props }: React_2.ComponentProps<typeof NavigationMenuPrimitive.Viewport>): JSX.Element;
|
|
318
|
+
|
|
319
|
+
export declare function normalizeCurrency(str: string): string;
|
|
320
|
+
|
|
321
|
+
export declare function removeInitialSlash(text: string): string;
|
|
322
|
+
|
|
323
|
+
export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
|
|
324
|
+
|
|
325
|
+
export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
|
|
326
|
+
|
|
327
|
+
export declare function SelectGroup({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
|
|
328
|
+
|
|
329
|
+
export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
|
|
330
|
+
|
|
331
|
+
export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
|
|
332
|
+
|
|
333
|
+
export declare function SelectScrollDownButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element;
|
|
334
|
+
|
|
335
|
+
export declare function SelectScrollUpButton({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element;
|
|
336
|
+
|
|
337
|
+
export declare function SelectSeparator({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
|
|
338
|
+
|
|
339
|
+
export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
340
|
+
size?: 'sm' | 'default';
|
|
341
|
+
}): JSX.Element;
|
|
342
|
+
|
|
343
|
+
export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
|
|
344
|
+
|
|
345
|
+
export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
|
|
346
|
+
|
|
347
|
+
export declare function Sheet({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Root>): JSX.Element;
|
|
348
|
+
|
|
349
|
+
export declare function SheetClose({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Close>): JSX.Element;
|
|
350
|
+
|
|
351
|
+
export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
352
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
353
|
+
}): JSX.Element;
|
|
354
|
+
|
|
355
|
+
export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Description>): JSX.Element;
|
|
356
|
+
|
|
357
|
+
export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
358
|
+
|
|
359
|
+
export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
360
|
+
|
|
361
|
+
export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Title>): JSX.Element;
|
|
362
|
+
|
|
363
|
+
export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element;
|
|
364
|
+
|
|
365
|
+
export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<'div'> & {
|
|
366
|
+
side?: 'left' | 'right';
|
|
367
|
+
variant?: 'sidebar' | 'floating' | 'inset';
|
|
368
|
+
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
369
|
+
}): JSX.Element;
|
|
370
|
+
|
|
371
|
+
export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
372
|
+
|
|
373
|
+
export declare const SidebarContext: default_2.Context<SidebarContextProps | null>;
|
|
374
|
+
|
|
375
|
+
export declare type SidebarContextProps = {
|
|
376
|
+
state: 'expanded' | 'collapsed';
|
|
377
|
+
open: boolean;
|
|
378
|
+
setOpen: (open: boolean) => void;
|
|
379
|
+
openMobile: boolean;
|
|
380
|
+
setOpenMobile: (open: boolean) => void;
|
|
381
|
+
isMobile: boolean;
|
|
382
|
+
toggleSidebar: () => void;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
386
|
+
|
|
387
|
+
export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
388
|
+
|
|
389
|
+
export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<'button'> & {
|
|
390
|
+
asChild?: boolean;
|
|
391
|
+
}): JSX.Element;
|
|
392
|
+
|
|
393
|
+
export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
394
|
+
|
|
395
|
+
export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<'div'> & {
|
|
396
|
+
asChild?: boolean;
|
|
397
|
+
}): JSX.Element;
|
|
398
|
+
|
|
399
|
+
export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
400
|
+
|
|
401
|
+
export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
|
|
402
|
+
|
|
403
|
+
export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<'main'>): JSX.Element;
|
|
404
|
+
|
|
405
|
+
export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<'ul'>): JSX.Element;
|
|
406
|
+
|
|
407
|
+
export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<'button'> & {
|
|
408
|
+
asChild?: boolean;
|
|
409
|
+
showOnHover?: boolean;
|
|
410
|
+
}): JSX.Element;
|
|
411
|
+
|
|
412
|
+
export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
413
|
+
|
|
414
|
+
export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React_2.ComponentProps<'button'> & {
|
|
415
|
+
asChild?: boolean;
|
|
416
|
+
isActive?: boolean;
|
|
417
|
+
tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
|
|
418
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): JSX.Element;
|
|
419
|
+
|
|
420
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
421
|
+
variant?: "default" | "outline" | null | undefined;
|
|
422
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
423
|
+
} & ClassProp) | undefined) => string;
|
|
424
|
+
|
|
425
|
+
export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<'li'>): JSX.Element;
|
|
426
|
+
|
|
427
|
+
export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<'div'> & {
|
|
428
|
+
showIcon?: boolean;
|
|
429
|
+
}): JSX.Element;
|
|
430
|
+
|
|
431
|
+
export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<'ul'>): JSX.Element;
|
|
432
|
+
|
|
433
|
+
export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<'a'> & {
|
|
434
|
+
asChild?: boolean;
|
|
435
|
+
size?: 'sm' | 'md';
|
|
436
|
+
isActive?: boolean;
|
|
437
|
+
}): JSX.Element;
|
|
438
|
+
|
|
439
|
+
export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<'li'>): JSX.Element;
|
|
440
|
+
|
|
441
|
+
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<'div'> & {
|
|
442
|
+
defaultOpen?: boolean;
|
|
443
|
+
open?: boolean;
|
|
444
|
+
onOpenChange?: (open: boolean) => void;
|
|
445
|
+
}): JSX.Element;
|
|
446
|
+
|
|
447
|
+
export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<'button'>): JSX.Element;
|
|
448
|
+
|
|
449
|
+
export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
|
|
450
|
+
|
|
451
|
+
export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
|
|
452
|
+
|
|
453
|
+
export declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): JSX.Element;
|
|
454
|
+
|
|
455
|
+
export declare const sortAscByKey: <T extends Record<string, unknown>>(array: T[], key: keyof T) => T[];
|
|
456
|
+
|
|
457
|
+
export declare const sortDescByKey: <T extends Record<string, unknown>>(array: T[], key: keyof T) => T[];
|
|
458
|
+
|
|
459
|
+
export declare function stringToNumber(value: string): string;
|
|
460
|
+
|
|
461
|
+
export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX.Element;
|
|
462
|
+
|
|
463
|
+
export declare function Table({ className, ...props }: React_2.ComponentProps<'table'>): JSX.Element;
|
|
464
|
+
|
|
465
|
+
export declare function TableBody({ className, ...props }: React_2.ComponentProps<'tbody'>): JSX.Element;
|
|
466
|
+
|
|
467
|
+
export declare function TableCaption({ className, ...props }: React_2.ComponentProps<'caption'>): JSX.Element;
|
|
468
|
+
|
|
469
|
+
export declare function TableCell({ className, ...props }: React_2.ComponentProps<'td'>): JSX.Element;
|
|
470
|
+
|
|
471
|
+
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<'tfoot'>): JSX.Element;
|
|
472
|
+
|
|
473
|
+
export declare function TableHead({ className, ...props }: React_2.ComponentProps<'th'>): JSX.Element;
|
|
474
|
+
|
|
475
|
+
export declare function TableHeader({ className, ...props }: React_2.ComponentProps<'thead'>): JSX.Element;
|
|
476
|
+
|
|
477
|
+
export declare function TableRow({ className, ...props }: React_2.ComponentProps<'tr'>): JSX.Element;
|
|
478
|
+
|
|
479
|
+
export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
|
|
480
|
+
|
|
481
|
+
export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
|
|
482
|
+
|
|
483
|
+
export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
|
|
484
|
+
|
|
485
|
+
export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
|
|
486
|
+
|
|
487
|
+
export declare function Textarea({ className, ...props }: React_2.ComponentProps<'textarea'>): JSX.Element;
|
|
488
|
+
|
|
489
|
+
declare const THEMES: {
|
|
490
|
+
readonly light: "";
|
|
491
|
+
readonly dark: ".dark";
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
|
|
495
|
+
|
|
496
|
+
export declare function toCapitalize(text: string): string;
|
|
497
|
+
|
|
498
|
+
export declare function toCurrentTimezone(date: string | undefined | null, format?: Intl.DateTimeFormatOptions): string;
|
|
499
|
+
|
|
500
|
+
export declare function toCurrentTimezoneWithSeconds(date: string | undefined | null): string;
|
|
501
|
+
|
|
502
|
+
export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
|
|
503
|
+
|
|
504
|
+
export declare function ToggleGroup({ className, variant, size, children, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
|
|
505
|
+
|
|
506
|
+
export declare function ToggleGroupItem({ className, children, variant, size, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): JSX.Element;
|
|
507
|
+
|
|
508
|
+
export declare const toggleVariants: (props?: ({
|
|
509
|
+
variant?: "default" | "outline" | null | undefined;
|
|
510
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
511
|
+
} & ClassProp) | undefined) => string;
|
|
512
|
+
|
|
513
|
+
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
514
|
+
|
|
515
|
+
export declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Content>): JSX.Element;
|
|
516
|
+
|
|
517
|
+
export declare function TooltipProvider({ delayDuration, ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element;
|
|
518
|
+
|
|
519
|
+
export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
|
|
520
|
+
|
|
521
|
+
export declare const Typography: default_2.FC<TypographyProps>;
|
|
522
|
+
|
|
523
|
+
declare type TypographyProps = {
|
|
524
|
+
as?: default_2.ElementType;
|
|
525
|
+
className?: string;
|
|
526
|
+
children: default_2.ReactNode;
|
|
527
|
+
} & VariantProps<typeof typographyVariants> & Omit<default_2.ComponentPropsWithoutRef<'span'>, 'as'>;
|
|
528
|
+
|
|
529
|
+
declare const typographyVariants: (props?: ({
|
|
530
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "small" | "lead" | "paragraph" | null | undefined;
|
|
531
|
+
} & ClassProp) | undefined) => string;
|
|
532
|
+
|
|
533
|
+
export declare function uniqueArrayElements<T>(arr: T[]): T[];
|
|
534
|
+
|
|
535
|
+
export declare const useFormField: () => {
|
|
536
|
+
invalid: boolean;
|
|
537
|
+
isDirty: boolean;
|
|
538
|
+
isTouched: boolean;
|
|
539
|
+
isValidating: boolean;
|
|
540
|
+
error?: FieldError;
|
|
541
|
+
id: string;
|
|
542
|
+
name: string;
|
|
543
|
+
formItemId: string;
|
|
544
|
+
formDescriptionId: string;
|
|
545
|
+
formMessageId: string;
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
export declare function useIsMobile(): boolean;
|
|
549
|
+
|
|
550
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
551
|
+
|
|
552
|
+
export { }
|