@medway-ui/core 0.1.0
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 +113 -0
- package/dist/assets/css/globals.css +23 -0
- package/dist/assets/css/tokens.css +177 -0
- package/dist/index.d.mts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +90 -0
package/README.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<h1>Medway UI</h1>
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<br>
|
|
6
|
+
<br>
|
|
7
|
+
|
|
8
|
+
## Funcionalidades
|
|
9
|
+
|
|
10
|
+
- ⚡️ [NextJS](https://nextjs.org/) - Desenvolvido com NextJS
|
|
11
|
+
|
|
12
|
+
- 🔮 [Nextra](https://nextra.site/) - Framework para documentação do design system
|
|
13
|
+
|
|
14
|
+
- 🦾 [Typescript](https://docs.expo.dev/) - Desenvolvido com o poder do Typescript
|
|
15
|
+
|
|
16
|
+
- 💻 [ShadCN](https://ui.shadcn.com/) - Framework UI para desenvolvimento dos componentes. Baseado no RadixUI
|
|
17
|
+
|
|
18
|
+
- 🎨 [Tailwind](https://tailwindui.com/) - Framework CSS que utiliza classes utilitárias através do Atomic CSS - Tailwind para React Native
|
|
19
|
+
|
|
20
|
+
- 🐶 [Husky](https://github.com/typicode/husky) - Padronização e controle de commits
|
|
21
|
+
|
|
22
|
+
- 🚀 [Eslint + Prettier](https://eslint.org/) - Padronização do código e lint de errors
|
|
23
|
+
<br>
|
|
24
|
+
|
|
25
|
+
> O projeto requer Node >= 16.8.0
|
|
26
|
+
|
|
27
|
+
> Recomenda-se o uso do Yarn para o gerenciamento dos pacotes
|
|
28
|
+
|
|
29
|
+
<br>
|
|
30
|
+
|
|
31
|
+
## Requisitos
|
|
32
|
+
|
|
33
|
+
### Components
|
|
34
|
+
|
|
35
|
+
Todos os componentes que serão utilizados pela lib, deverão ser criados obrigatoriamente no seguinte diretório e na seguinte nomenclatura `(.src/components/Nome.tsx)`
|
|
36
|
+
|
|
37
|
+
### Tailwind
|
|
38
|
+
|
|
39
|
+
Utilizamos o Tailwind para criação da nossa UI. Ele se utiliza do classes utilitárias através do Atomic CSS. Os arquivos de configuração dos tokens estão dentro da pasta `(.src/assets/css/tokens.css)`
|
|
40
|
+
|
|
41
|
+
### Assets
|
|
42
|
+
|
|
43
|
+
Aqui deverá conter todos os assets que deverão ser usados na utilização da lib. Você encontrará na seguinte pasta `(.src/assets/)`
|
|
44
|
+
|
|
45
|
+
### Gitflow
|
|
46
|
+
|
|
47
|
+
Utilizamos o padrão de gitflow do mercado. Temos três branchs principais: `production` (produção), `homolog` (homologação) e `development` (desenvolvimento). Quando estiverem desenvolvendo uma nova feature, se utilizar da seguinte nomenclatura: `feat/nome-da-feature`. Após a finalização deve-se criar a PR e fazer o merge com `development`. Por regra, as PRs somente podem ser mergeados após o review e aceite de pelo menos um integrante da equipe.
|
|
48
|
+
|
|
49
|
+
### Commits
|
|
50
|
+
|
|
51
|
+
Nos commits deverá ser utilizado a convenção dos [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
|
|
52
|
+
|
|
53
|
+
### Husky
|
|
54
|
+
|
|
55
|
+
Ferramente utilizada para padronizar e controlar os commits que são feitos dentro do projeto. Quando for realizar o commit lembre-se de utilizar os `commits semânticos` e de não ter nenhum erro de lint em seu código, caso contrário o husky bloqueará seu commit até que você corrija esses erros e caso a mensagem no commit não seja semântica o husky também bloqueará seu commit.
|
|
56
|
+
|
|
57
|
+
### ESLint/Prettier
|
|
58
|
+
|
|
59
|
+
Para padronizar nosso código utilizamos o Eslint e o Prettier dentro de nossos projetos. É importante caso use o Vscode de utilizar as extensões: `esbenp.prettier-vscode`, `dbaeumer.vscode-eslint`
|
|
60
|
+
|
|
61
|
+
<br>
|
|
62
|
+
|
|
63
|
+
## Utilização
|
|
64
|
+
|
|
65
|
+
### Configuração
|
|
66
|
+
|
|
67
|
+
Rode o comando para instalar todas as dependências do projeto
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
yarn install
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Rode o comando para instalar o husky
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
yarn prepare
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Rode o comando para dar permissão aos scripts do husky
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
chmod ug+x .husky/*
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Desenvolvimento
|
|
86
|
+
|
|
87
|
+
Rode o comando para iniciar o ambiente de desenvolvimento
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
yarn dev
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
> OBS: Basta acessar o http://localhost:3000/ para visualizar a aplicação em seu browser favorito
|
|
94
|
+
|
|
95
|
+
### Build
|
|
96
|
+
|
|
97
|
+
Para fazer o processo de build
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
yarn build
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Para rodar a aplicação em modo de produção
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
yarn start
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Para lintar possíveis erros da aplicação
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
yarn lint
|
|
113
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "./tokens.css";
|
|
4
|
+
|
|
5
|
+
.nextra-code {
|
|
6
|
+
@apply mt-0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.nextra-sidebar-footer {
|
|
10
|
+
@apply fixed bottom-0 left-0 w-full max-w-64;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.precode {
|
|
14
|
+
@apply border-border rounded-md border p-6;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.precode-alt {
|
|
18
|
+
@apply my-6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.link {
|
|
22
|
+
@apply text-[#006BE6] underline;
|
|
23
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@custom-variant dark (&:is(.dark *));
|
|
2
|
+
@variant dark (&:where(.dark *));
|
|
3
|
+
|
|
4
|
+
@theme {
|
|
5
|
+
/* === Base colors === */
|
|
6
|
+
--color-background: #ffffff;
|
|
7
|
+
--color-foreground: #212631;
|
|
8
|
+
--color-ring: #ced3de;
|
|
9
|
+
--color-input: #e7e9ef;
|
|
10
|
+
--color-border: #e7e9ef;
|
|
11
|
+
|
|
12
|
+
/* === Utility colors === */
|
|
13
|
+
--color-black: #000000;
|
|
14
|
+
--color-white: #ffffff;
|
|
15
|
+
--color-gray-950: #080a0c;
|
|
16
|
+
--color-gray-900: #0c0e12;
|
|
17
|
+
--color-gray-850: #101318;
|
|
18
|
+
--color-gray-800: #181d25;
|
|
19
|
+
--color-gray-700: #212631;
|
|
20
|
+
--color-gray-600: #313949;
|
|
21
|
+
--color-gray-500: #49566e;
|
|
22
|
+
--color-gray-400: #627293;
|
|
23
|
+
--color-gray-300: #8592ad;
|
|
24
|
+
--color-gray-200: #a9b3c6;
|
|
25
|
+
--color-gray-150: #ced3de;
|
|
26
|
+
--color-gray-100: #e7e9ef;
|
|
27
|
+
--color-gray-50: #f6f7f9;
|
|
28
|
+
--color-green-darken-2: #054827;
|
|
29
|
+
--color-green-darken-1: #088147;
|
|
30
|
+
--color-green-accent: #0cbb66;
|
|
31
|
+
--color-green-accent-80: #0cbb66cc;
|
|
32
|
+
--color-green-accent-48: #0cbb667a;
|
|
33
|
+
--color-green-accent-24: #0cbb663d;
|
|
34
|
+
--color-green-accent-16: #0cbb6629;
|
|
35
|
+
--color-green-accent-8: #0cbb6614;
|
|
36
|
+
--color-green-accent-4: #0cbb660a;
|
|
37
|
+
--color-red-darken-2: #8a0a19;
|
|
38
|
+
--color-red-darken-1: #c20f24;
|
|
39
|
+
--color-red-accent: #ee2038;
|
|
40
|
+
--color-red-accent-80: #ee2038cc;
|
|
41
|
+
--color-red-accent-48: #ee20387a;
|
|
42
|
+
--color-red-accent-24: #ee20383d;
|
|
43
|
+
--color-red-accent-16: #ee203829;
|
|
44
|
+
--color-red-accent-8: #ee203814;
|
|
45
|
+
--color-red-accent-4: #ee20380a;
|
|
46
|
+
--color-yellow-darken-2: #796102;
|
|
47
|
+
--color-yellow-darken-1: #b59103;
|
|
48
|
+
--color-yellow-accent: #f1c204;
|
|
49
|
+
--color-yellow-accent-80: #f1c204cc;
|
|
50
|
+
--color-yellow-accent-48: #f1c2047a;
|
|
51
|
+
--color-yellow-accent-24: #f1c2043d;
|
|
52
|
+
--color-yellow-accent-16: #f1c20429;
|
|
53
|
+
--color-yellow-accent-8: #f1c20414;
|
|
54
|
+
--color-yellow-accent-4: #f1c2040a;
|
|
55
|
+
|
|
56
|
+
/* === Brand Medway utility === */
|
|
57
|
+
--color-primary: #00205b;
|
|
58
|
+
--color-primary-darken-2: #000b1f;
|
|
59
|
+
--color-primary-darken-1: #00163d;
|
|
60
|
+
--color-primary-accent-80: #00205bcc;
|
|
61
|
+
--color-primary-accent-48: #00205b7a;
|
|
62
|
+
--color-primary-accent-24: #00205b3d;
|
|
63
|
+
--color-primary-accent-16: #00205b29;
|
|
64
|
+
--color-primary-accent-8: #00205b14;
|
|
65
|
+
--color-primary-accent-4: #00205b0a;
|
|
66
|
+
|
|
67
|
+
/* === Brand Secondary utility === */
|
|
68
|
+
--color-secondary: #01d0b4;
|
|
69
|
+
--color-secondary-darken-2: #019380;
|
|
70
|
+
--color-secondary-darken-1: #01b29a;
|
|
71
|
+
--color-secondary-accent-80: #01d0b4cc;
|
|
72
|
+
--color-secondary-accent-48: #01d0b47a;
|
|
73
|
+
--color-secondary-accent-24: #01d0b43d;
|
|
74
|
+
--color-secondary-accent-16: #01d0b429;
|
|
75
|
+
--color-secondary-accent-8: #01d0b414;
|
|
76
|
+
--color-secondary-accent-4: #01d0b40a;
|
|
77
|
+
|
|
78
|
+
/* === Brand Other utility === */
|
|
79
|
+
--color-other-primary-darken-2: #0f3276;
|
|
80
|
+
--color-other-primary-darken-1: #133d91;
|
|
81
|
+
--color-other-primary-accent: #1649ac;
|
|
82
|
+
--color-other-primary-accent-80: #1649accc;
|
|
83
|
+
--color-other-primary-accent-48: #1649ac7a;
|
|
84
|
+
--color-other-primary-accent-24: #1649ac3d;
|
|
85
|
+
--color-other-primary-accent-16: #1649ac29;
|
|
86
|
+
--color-other-primary-accent-8: #1649ac14;
|
|
87
|
+
--color-other-primary-accent-4: #1649ac0a;
|
|
88
|
+
--color-other-secondary-darken-2: #b30f20;
|
|
89
|
+
--color-other-secondary-darken-1: #cf1225;
|
|
90
|
+
--color-other-secondary-accent: #eb152b;
|
|
91
|
+
--color-other-secondary-accent-80: #eb152bcc;
|
|
92
|
+
--color-other-secondary-accent-48: #eb152b7a;
|
|
93
|
+
--color-other-secondary-accent-24: #eb152b3d;
|
|
94
|
+
--color-other-secondary-accent-16: #eb152b29;
|
|
95
|
+
--color-other-secondary-accent-8: #eb152b14;
|
|
96
|
+
--color-other-secondary-accent-4: #eb152b0a;
|
|
97
|
+
|
|
98
|
+
/* === Typography fontfamily === */
|
|
99
|
+
--font-sans:
|
|
100
|
+
"Montserrat", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
101
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
102
|
+
|
|
103
|
+
/* === Typography size === */
|
|
104
|
+
--text-xxs: 10px;
|
|
105
|
+
--text-xs: 12px;
|
|
106
|
+
--text-sm: 14px;
|
|
107
|
+
--text-base: 16px;
|
|
108
|
+
--text-lg: 18px;
|
|
109
|
+
--text-xl: 20px;
|
|
110
|
+
--text-2xl: 24px;
|
|
111
|
+
--text-3xl: 28px;
|
|
112
|
+
--text-4xl: 32px;
|
|
113
|
+
--text-5xl: 36px;
|
|
114
|
+
--text-6xl: 40px;
|
|
115
|
+
--text-7xl: 46px;
|
|
116
|
+
--text-8xl: 52px;
|
|
117
|
+
--text-9xl: 58px;
|
|
118
|
+
|
|
119
|
+
/* === Typography leading === */
|
|
120
|
+
--leading-xxs: 12px;
|
|
121
|
+
--leading-xs: 16px;
|
|
122
|
+
--leading-sm: 20px;
|
|
123
|
+
--leading-md: 24px;
|
|
124
|
+
--leading-lg: 28px;
|
|
125
|
+
--leading-2xl: 32px;
|
|
126
|
+
--leading-3xl: 36px;
|
|
127
|
+
--leading-4xl: 40px;
|
|
128
|
+
--leading-5xl: 44px;
|
|
129
|
+
--leading-6xl: 52px;
|
|
130
|
+
--leading-7xl: 62px;
|
|
131
|
+
--leading-8xl: 70px;
|
|
132
|
+
--leading-9xl: 78px;
|
|
133
|
+
|
|
134
|
+
/* === Utility radius === */
|
|
135
|
+
--radius-none: 0;
|
|
136
|
+
--radius-sm: 4px;
|
|
137
|
+
--radius-md: 8px;
|
|
138
|
+
--radius-lg: 16px;
|
|
139
|
+
--radius-pill: 320px;
|
|
140
|
+
--radius-circular: 1600px;
|
|
141
|
+
|
|
142
|
+
/* === Breakpoint utility === */
|
|
143
|
+
--breakpoint-tv: 1920px;
|
|
144
|
+
--breakpoint-desktop: 1024px;
|
|
145
|
+
--breakpoint-tablet: 600px;
|
|
146
|
+
--breakpoint-mobile: 320px;
|
|
147
|
+
--breakpoint-sm: 320px;
|
|
148
|
+
--breakpoint-md: 600px;
|
|
149
|
+
--breakpoint-lg: 1024px;
|
|
150
|
+
--breakpoint-xl: 1280px;
|
|
151
|
+
--breakpoint-2xl: 1920px;
|
|
152
|
+
|
|
153
|
+
/* === Container utility === */
|
|
154
|
+
--container-desktop: 1288px;
|
|
155
|
+
--container-tablet: 768px;
|
|
156
|
+
--container-mobile: 480px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.dark {
|
|
160
|
+
--color-background: #000000;
|
|
161
|
+
--color-foreground: #ffffff;
|
|
162
|
+
--color-border: oklch(0.371 0 0);
|
|
163
|
+
--color-input: oklch(0.371 0 0);
|
|
164
|
+
--color-ring: oklch(0.556 0 0);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@layer base {
|
|
168
|
+
* {
|
|
169
|
+
@apply border-border outline-ring/50;
|
|
170
|
+
}
|
|
171
|
+
body {
|
|
172
|
+
@apply bg-background text-foreground h-full overflow-x-hidden antialiased;
|
|
173
|
+
}
|
|
174
|
+
main {
|
|
175
|
+
@apply desktop:max-w-desktop tablet:max-w-tablet max-w-mobile tablet:px-6 desktop:px-8 mx-auto h-full w-full px-4 py-12;
|
|
176
|
+
}
|
|
177
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
|
+
|
|
8
|
+
interface ButtonProps extends React$1.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
iconRight?: React$1.ReactElement;
|
|
11
|
+
iconLeft?: React$1.ReactElement;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const buttonVariants: (props?: ({
|
|
15
|
+
variant?: "primary" | "secondary" | "tertiary" | "outline" | "error" | "error-outline" | "error-tertiary" | null | undefined;
|
|
16
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
+
declare function Button({ className, variant, size, asChild, iconRight, iconLeft, loading, ...props }: ButtonProps): React$1.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface LoadingProps {
|
|
23
|
+
size?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function Loading({ size, className }: LoadingProps): React$1.JSX.Element;
|
|
27
|
+
|
|
28
|
+
interface LogoProps {
|
|
29
|
+
width?: string | number;
|
|
30
|
+
height?: string | number;
|
|
31
|
+
className?: string;
|
|
32
|
+
svgClassName?: string;
|
|
33
|
+
}
|
|
34
|
+
declare function Logo({ width, height, className, svgClassName, }: LogoProps): React$1.JSX.Element;
|
|
35
|
+
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): React$1.JSX.Element;
|
|
36
|
+
|
|
37
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): React$1.JSX.Element;
|
|
38
|
+
|
|
39
|
+
declare function Sheet({ ...props }: React$1.ComponentProps<typeof SheetPrimitive.Root>): React$1.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
44
|
+
side?: "left" | "right";
|
|
45
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
46
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
47
|
+
}): React$1.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
50
|
+
|
|
51
|
+
export { Button, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, Skeleton, Tooltip, buttonVariants };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import * as React$1 from 'react';
|
|
4
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
5
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
7
|
+
|
|
8
|
+
interface ButtonProps extends React$1.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
iconRight?: React$1.ReactElement;
|
|
11
|
+
iconLeft?: React$1.ReactElement;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const buttonVariants: (props?: ({
|
|
15
|
+
variant?: "primary" | "secondary" | "tertiary" | "outline" | "error" | "error-outline" | "error-tertiary" | null | undefined;
|
|
16
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
17
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
18
|
+
declare function Button({ className, variant, size, asChild, iconRight, iconLeft, loading, ...props }: ButtonProps): React$1.JSX.Element;
|
|
19
|
+
|
|
20
|
+
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
21
|
+
|
|
22
|
+
interface LoadingProps {
|
|
23
|
+
size?: number;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function Loading({ size, className }: LoadingProps): React$1.JSX.Element;
|
|
27
|
+
|
|
28
|
+
interface LogoProps {
|
|
29
|
+
width?: string | number;
|
|
30
|
+
height?: string | number;
|
|
31
|
+
className?: string;
|
|
32
|
+
svgClassName?: string;
|
|
33
|
+
}
|
|
34
|
+
declare function Logo({ width, height, className, svgClassName, }: LogoProps): React$1.JSX.Element;
|
|
35
|
+
declare function LogoShort({ width, height, className, svgClassName, }: LogoProps): React$1.JSX.Element;
|
|
36
|
+
|
|
37
|
+
declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): React$1.JSX.Element;
|
|
38
|
+
|
|
39
|
+
declare function Sheet({ ...props }: React$1.ComponentProps<typeof SheetPrimitive.Root>): React$1.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare function Tooltip({ ...props }: React$1.ComponentProps<typeof TooltipPrimitive.Root>): React$1.JSX.Element;
|
|
42
|
+
|
|
43
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
44
|
+
side?: "left" | "right";
|
|
45
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
46
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
47
|
+
}): React$1.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
50
|
+
|
|
51
|
+
export { Button, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, Skeleton, Tooltip, buttonVariants };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
'use strict';var reactSlot=require('@radix-ui/react-slot'),classVarianceAuthority=require('class-variance-authority'),h=require('react'),clsx=require('clsx'),Ke=require('@radix-ui/react-separator'),S=require('@radix-ui/react-dialog'),lucideReact=require('lucide-react');require('@medway-ui/icons');var V=require('@radix-ui/react-tooltip');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var h__namespace=/*#__PURE__*/_interopNamespace(h);var Ke__namespace=/*#__PURE__*/_interopNamespace(Ke);var S__namespace=/*#__PURE__*/_interopNamespace(S);var V__namespace=/*#__PURE__*/_interopNamespace(V);var Ye=Object.defineProperty;var re=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Re=(e,o,r)=>o in e?Ye(e,o,{enumerable:true,configurable:true,writable:true,value:r}):e[o]=r,f=(e,o)=>{for(var r in o||(o={}))ze.call(o,r)&&Re(e,r,o[r]);if(re)for(var r of re(o))Me.call(o,r)&&Re(e,r,o[r]);return e};var g=(e,o)=>{var r={};for(var t in e)ze.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&re)for(var t of re(e))o.indexOf(t)<0&&Me.call(e,t)&&(r[t]=e[t]);return r};var be="-",Qe=e=>{let o=tt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return {getClassGroupId:l=>{let u=l.split(be);return u[0]===""&&u.length!==1&&u.shift(),_e(u,o)||et(l)},getConflictingClassGroupIds:(l,u)=>{let m=r[l]||[];return u&&t[l]?[...m,...t[l]]:m}}},_e=(e,o)=>{var l;if(e.length===0)return o.classGroupId;let r=e[0],t=o.nextPart.get(r),s=t?_e(e.slice(1),t):void 0;if(s)return s;if(o.validators.length===0)return;let i=e.join(be);return (l=o.validators.find(({validator:u})=>u(i)))==null?void 0:l.classGroupId},Ne=/^\[(.+)\]$/,et=e=>{if(Ne.test(e)){let o=Ne.exec(e)[1],r=o==null?void 0:o.substring(0,o.indexOf(":"));if(r)return "arbitrary.."+r}},tt=e=>{let{theme:o,classGroups:r}=e,t={nextPart:new Map,validators:[]};for(let s in r)me(r[s],t,s,o);return t},me=(e,o,r,t)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?o:Te(o,s);i.classGroupId=r;return}if(typeof s=="function"){if(ot(s)){me(s(t),o,r,t);return}o.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([i,l])=>{me(l,Te(o,i),r,t);});});},Te=(e,o)=>{let r=e;return o.split(be).forEach(t=>{r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t);}),r},ot=e=>e.isThemeGetter,rt=e=>{if(e<1)return {get:()=>{},set:()=>{}};let o=0,r=new Map,t=new Map,s=(i,l)=>{r.set(i,l),o++,o>e&&(o=0,t=r,r=new Map);};return {get(i){let l=r.get(i);if(l!==void 0)return l;if((l=t.get(i))!==void 0)return s(i,l),l},set(i,l){r.has(i)?r.set(i,l):s(i,l);}}},ue="!",fe=":",at=fe.length,nt=e=>{let{prefix:o,experimentalParseClassName:r}=e,t=s=>{let i=[],l=0,u=0,m=0,b;for(let z=0;z<s.length;z++){let M=s[z];if(l===0&&u===0){if(M===fe){i.push(s.slice(m,z)),m=z+at;continue}if(M==="/"){b=z;continue}}M==="["?l++:M==="]"?l--:M==="("?u++:M===")"&&u--;}let x=i.length===0?s:s.substring(m),C=st(x),T=C!==x,K=b&&b>m?b-m:void 0;return {modifiers:i,hasImportantModifier:T,baseClassName:C,maybePostfixModifierPosition:K}};if(o){let s=o+fe,i=t;t=l=>l.startsWith(s)?i(l.substring(s.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:l,maybePostfixModifierPosition:void 0};}if(r){let s=t;t=i=>r({className:i,parseClassName:s});}return t},st=e=>e.endsWith(ue)?e.substring(0,e.length-1):e.startsWith(ue)?e.substring(1):e,it=e=>{let o=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,true]));return t=>{if(t.length<=1)return t;let s=[],i=[];return t.forEach(l=>{l[0]==="["||o[l]?(s.push(...i.sort(),l),i=[]):i.push(l);}),s.push(...i.sort()),s}},lt=e=>f({cache:rt(e.cacheSize),parseClassName:nt(e),sortModifiers:it(e)},Qe(e)),dt=/\s+/,ct=(e,o)=>{let{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:i}=o,l=[],u=e.trim().split(dt),m="";for(let b=u.length-1;b>=0;b-=1){let x=u[b],{isExternal:C,modifiers:T,hasImportantModifier:K,baseClassName:z,maybePostfixModifierPosition:M}=r(x);if(C){m=x+(m.length>0?" "+m:m);continue}let D=!!M,E=t(D?z.substring(0,M):z);if(!E){if(!D){m=x+(m.length>0?" "+m:m);continue}if(E=t(z),!E){m=x+(m.length>0?" "+m:m);continue}D=false;}let J=i(T).join(":"),U=K?J+ue:J,F=U+E;if(l.includes(F))continue;l.push(F);let H=s(E,D);for(let L=0;L<H.length;++L){let q=H[L];l.push(U+q);}m=x+(m.length>0?" "+m:m);}return m};function pt(){let e=0,o,r,t="";for(;e<arguments.length;)(o=arguments[e++])&&(r=Ge(o))&&(t&&(t+=" "),t+=r);return t}var Ge=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=Ge(e[t]))&&(r&&(r+=" "),r+=o);return r};function mt(e,...o){let r,t,s,i=l;function l(m){let b=o.reduce((x,C)=>C(x),e());return r=lt(b),t=r.cache.get,s=r.cache.set,i=u,u(m)}function u(m){let b=t(m);if(b)return b;let x=ct(m,r);return s(m,x),x}return function(){return i(pt.apply(null,arguments))}}var w=e=>{let o=r=>r[e]||[];return o.isThemeGetter=true,o},Ve=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ee=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ut=/^\d+\/\d+$/,ft=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>ut.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),G=e=>!!e&&Number.isInteger(Number(e)),ce=e=>e.endsWith("%")&&p(e.slice(0,-1)),_=e=>ft.test(e),xt=()=>true,wt=e=>bt.test(e)&&!gt.test(e),Le=()=>false,yt=e=>ht.test(e),kt=e=>vt.test(e),St=e=>!a(e)&&!n(e),Ct=e=>Z(e,De,Le),a=e=>Ve.test(e),O=e=>Z(e,Fe,wt),pe=e=>Z(e,Nt,p),Ie=e=>Z(e,Be,Le),Pt=e=>Z(e,Oe,kt),ae=e=>Z(e,He,yt),n=e=>Ee.test(e),X=e=>$(e,Fe),Rt=e=>$(e,Tt),Ae=e=>$(e,Be),zt=e=>$(e,De),Mt=e=>$(e,Oe),ne=e=>$(e,He,true),Z=(e,o,r)=>{let t=Ve.exec(e);return t?t[1]?o(t[1]):r(t[2]):false},$=(e,o,r=false)=>{let t=Ee.exec(e);return t?t[1]?o(t[1]):r:false},Be=e=>e==="position"||e==="percentage",Oe=e=>e==="image"||e==="url",De=e=>e==="length"||e==="size"||e==="bg-size",Fe=e=>e==="length",Nt=e=>e==="number",Tt=e=>e==="family-name",He=e=>e==="shadow";var It=()=>{let e=w("color"),o=w("font"),r=w("text"),t=w("font-weight"),s=w("tracking"),i=w("leading"),l=w("breakpoint"),u=w("container"),m=w("spacing"),b=w("radius"),x=w("shadow"),C=w("inset-shadow"),T=w("text-shadow"),K=w("drop-shadow"),z=w("blur"),M=w("perspective"),D=w("aspect"),E=w("ease"),J=w("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],H=()=>[...F(),n,a],L=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],c=()=>[n,a,m],I=()=>[W,"full","auto",...c()],ve=()=>[G,"none","subgrid",n,a],xe=()=>["auto",{span:["full",G,n,a]},G,n,a],Y=()=>[G,"auto",n,a],we=()=>["auto","min","max","fr",n,a],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...c()],B=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...c()],d=()=>[e,n,a],ye=()=>[...F(),Ae,Ie,{position:[n,a]}],ke=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",zt,Ct,{size:[n,a]}],le=()=>[ce,X,O],k=()=>["","none","full",b,n,a],P=()=>["",p,X,O],Q=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[p,ce,Ae,Ie],Pe=()=>["","none",z,n,a],ee=()=>["none",p,n,a],te=()=>["none",p,n,a],de=()=>[p,n,a],oe=()=>[W,"full",...c()];return {cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_],breakpoint:[_],color:[xt],container:[_],"drop-shadow":[_],ease:["in","out","in-out"],font:[St],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_],shadow:[_],spacing:["px",p],text:[_],"text-shadow":[_],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,a,n,D]}],container:["container"],columns:[{columns:[p,a,n,u]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:H()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[G,"auto",n,a]}],basis:[{basis:[W,"full","auto",u,...c()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,W,"auto","initial","none",a]}],grow:[{grow:["",p,n,a]}],shrink:[{shrink:["",p,n,a]}],order:[{order:[G,"first","last","none",n,a]}],"grid-cols":[{"grid-cols":ve()}],"col-start-end":[{col:xe()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":ve()}],"row-start-end":[{row:xe()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":we()}],"auto-rows":[{"auto-rows":we()}],gap:[{gap:c()}],"gap-x":[{"gap-x":c()}],"gap-y":[{"gap-y":c()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:c()}],px:[{px:c()}],py:[{py:c()}],ps:[{ps:c()}],pe:[{pe:c()}],pt:[{pt:c()}],pr:[{pr:c()}],pb:[{pb:c()}],pl:[{pl:c()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":c()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":c()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[u,"screen",...B()]}],"min-w":[{"min-w":[u,"screen","none",...B()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...B()]}],h:[{h:["screen",...B()]}],"min-h":[{"min-h":["screen","none",...B()]}],"max-h":[{"max-h":["screen",...B()]}],"font-size":[{text:["base",r,X,O]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,n,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ce,a]}],"font-family":[{font:[Rt,a,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,n,a]}],"line-clamp":[{"line-clamp":[p,"none",n,pe]}],leading:[{leading:[i,...c()]}],"list-image":[{"list-image":["none",n,a]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,a]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,O]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[p,"auto",n,a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:c()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,a]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,a]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:ke()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},G,n,a],radial:["",n,a],conic:[G,n,a]},Mt,Pt]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,a]}],"outline-w":[{outline:["",p,X,O]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",x,ne,ae]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",C,ne,ae]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[p,O]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",T,ne,ae]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[p,n,a]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[n,a]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:ke()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,a]}],filter:[{filter:["","none",n,a]}],blur:[{blur:Pe()}],brightness:[{brightness:[p,n,a]}],contrast:[{contrast:[p,n,a]}],"drop-shadow":[{"drop-shadow":["","none",K,ne,ae]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",p,n,a]}],"hue-rotate":[{"hue-rotate":[p,n,a]}],invert:[{invert:["",p,n,a]}],saturate:[{saturate:[p,n,a]}],sepia:[{sepia:["",p,n,a]}],"backdrop-filter":[{"backdrop-filter":["","none",n,a]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,a]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,a]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,a]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,a]}],"backdrop-invert":[{"backdrop-invert":["",p,n,a]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,a]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,a]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,a]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":c()}],"border-spacing-x":[{"border-spacing-x":c()}],"border-spacing-y":[{"border-spacing-y":c()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,a]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,a]}],ease:[{ease:["linear","initial",E,n,a]}],delay:[{delay:[p,n,a]}],animate:[{animate:["none",J,n,a]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[M,n,a]}],"perspective-origin":[{"perspective-origin":H()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[n,a,"","none","gpu","cpu"]}],"transform-origin":[{origin:H()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,a]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":c()}],"scroll-mx":[{"scroll-mx":c()}],"scroll-my":[{"scroll-my":c()}],"scroll-ms":[{"scroll-ms":c()}],"scroll-me":[{"scroll-me":c()}],"scroll-mt":[{"scroll-mt":c()}],"scroll-mr":[{"scroll-mr":c()}],"scroll-mb":[{"scroll-mb":c()}],"scroll-ml":[{"scroll-ml":c()}],"scroll-p":[{"scroll-p":c()}],"scroll-px":[{"scroll-px":c()}],"scroll-py":[{"scroll-py":c()}],"scroll-ps":[{"scroll-ps":c()}],"scroll-pe":[{"scroll-pe":c()}],"scroll-pt":[{"scroll-pt":c()}],"scroll-pr":[{"scroll-pr":c()}],"scroll-pb":[{"scroll-pb":c()}],"scroll-pl":[{"scroll-pl":c()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,a]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[p,X,O,pe]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}};var je=mt(It);function v(...e){return je(clsx.clsx(e))}function ge({size:e=24,className:o}){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:v("animate-spin",o)},React.createElement("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}))}var We=classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-all disabled:pointer-events-none disabled:opacity-50 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:cursor-pointer text-white",{variants:{variant:{primary:"bg-secondary hover:bg-secondary-darken-2",secondary:"bg-primary hover:bg-primary-darken-2",tertiary:"text-secondary underline-offset-4 hover:bg-secondary/12",outline:"border-2 border-border bg-transparent text-secondary hover:border-ring dark:bg-input/30 dark:border-input dark:hover:bg-input/50",error:"bg-red-accent hover:bg-red-darken-1","error-outline":"border-2 border-border bg-transparent text-red-accent hover:border-red-accent","error-tertiary":"text-red-accent underline-offset-4 hover:bg-red-accent/12"},size:{sm:"min-h-8 px-3 py-2 has-[>svg]:px-2 [&_svg:not([class*='size-'])]:size-4 text-xs",md:"min-h-10 px-3.5 py-2.5 has-[>svg]:px-2.5 [&_svg:not([class*='size-'])]:size-5 text-sm",lg:"min-h-12 px-4 py-3 has-[>svg]:px-3 [&_svg:not([class*='size-'])]:size-6 text-base",xl:"min-h-14 px-4.5 py-3.5 has-[>svg]:px-3.5 [&_svg:not([class*='size-'])]:size-7 text-lg"}},defaultVariants:{variant:"primary",size:"md"}});function Vt(m){var b=m,{className:e,variant:o,size:r,asChild:t=false,iconRight:s,iconLeft:i,loading:l=false}=b,u=g(b,["className","variant","size","asChild","iconRight","iconLeft","loading"]);let x=t?reactSlot.Slot:"button",C=T=>h__namespace.isValidElement(T)?h__namespace.cloneElement(T,f({},T.props||{})):null;return h__namespace.createElement(x,f({disabled:l,"data-slot":"button",className:v(We({variant:o,size:r,className:e}))},u),l?h__namespace.createElement(ge,null):h__namespace.createElement(h__namespace.Fragment,null,i&&C(i)),u.children?h__namespace.createElement("div",{className:"mt-0"},u.children):null,s&&C(s))}function Et(t){var s=t,{className:e,type:o}=s,r=g(s,["className","type"]);return h__namespace.createElement("input",f({type:o,"data-slot":"input",className:v("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e)},r))}function Lt({width:e=171,height:o=36,className:r,svgClassName:t}){return React.createElement("svg",{className:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 171 36",width:e,height:o},React.createElement("path",{fill:"#01CFB5",d:"M170.246 8.366 158.874 34.77c-.317.744-1.131 1.23-2.038 1.23h-3.47c-1.552 0-2.606-1.377-2.011-2.628l2.875-6.066-8.476-18.918c-.563-1.246.492-2.59 2.027-2.59h3.541c.929 0 1.755.513 2.061 1.278l4.688 11.864h.093l4.464-11.836c.295-.782 1.126-1.306 2.066-1.306h3.514c1.524 0 2.573 1.322 2.038 2.568Zm-24.869 8.623v10.42a.823.823 0 0 1-.82.826h-3.956a.818.818 0 0 1-.82-.825v-.667a11.207 11.207 0 0 1-5.699 1.541c-6.235 0-11.295-5.054-11.295-11.295 0-6.24 5.06-11.295 11.295-11.295 2.076 0 4.027.557 5.694 1.541v-.006a11.295 11.295 0 0 1 5.601 9.76Zm-5.984.005c0-2.94-2.377-5.327-5.306-5.327-2.929 0-5.306 2.388-5.306 5.327 0 2.94 2.377 5.323 5.306 5.323 2.929 0 5.306-2.383 5.306-5.323Zm5.793.4c.005-.099.005-.192.005-.29 0-.098-.005-.191-.005-.284v.573Zm-26.17-11.722h-4.355a.977.977 0 0 0-.978.978v11.902a3.416 3.416 0 0 1-6.831 0V6.65a.977.977 0 0 0-.978-.978h-4.355a.977.977 0 0 0-.978.978v11.902a3.417 3.417 0 0 1-5.83 2.415c-.618-.617-1-1.47-1-2.415V6.65a.977.977 0 0 0-.979-.978h-4.355a.977.977 0 0 0-.978.978v13.088h-.006c0 .781.115 1.535.334 2.256 1.098 3.623 4.765 6.29 9.13 6.29 2.739 0 5.209-1.054 6.935-2.732 1.689 1.83 4.197 2.994 7 2.994 4.53 0 8.295-3.043 9.06-7.043.093-.487.143-.99.143-1.497V6.65a.978.978 0 0 0-.979-.978Z"}),React.createElement("path",{fill:"#00205B",className:t,d:"M65.557 7.694c-.639.399-1.235.863-1.781 1.388.54-.536 1.137-1 1.781-1.388ZM82.727.831v26.617a.82.82 0 0 1-.82.825h-3.956a.77.77 0 0 1-.415-.12.81.81 0 0 1-.405-.71v-.755a11.018 11.018 0 0 1-5.689 1.574c-5.47 0-10.01-3.967-10.923-9.191-.016-.098-.038-.197-.054-.3-.011-.088-.028-.18-.039-.268 0-.028-.005-.055-.01-.088-.006-.06-.012-.12-.023-.18-.005-.076-.01-.159-.021-.24v-.028c-.006-.093-.017-.18-.017-.273a9.516 9.516 0 0 1 0-1.11l.017-.273v-.027l.032-.311c0-.033.006-.066.006-.099a.665.665 0 0 0 .01-.104c.012-.087.023-.18.039-.267.016-.11.033-.213.055-.323a11.09 11.09 0 0 1 3.17-6.005 11.548 11.548 0 0 1 1.88-1.48 9.127 9.127 0 0 1 1.31-.646c1.039-.42 2.186-.65 3.405-.683-.071 0-.142.011-.213.011a9.587 9.587 0 0 0-3.203.672c-.453.18-.896.4-1.311.65.393-.245.809-.459 1.23-.655-.006 0-.011.005-.017.005l.033-.016c-.011.005-.022.005-.038.01a8.79 8.79 0 0 1 .519-.229c-.039.017-.071.033-.104.05.038-.017.07-.033.11-.05.087-.033.174-.065.267-.098.087-.038.175-.066.268-.099.033-.016.065-.021.098-.032.055-.017.104-.039.158-.055.11-.033.214-.066.323-.098a9.584 9.584 0 0 1 .607-.153c.092-.022.196-.044.295-.066.098-.016.196-.033.295-.055l.295-.049h.005a2.82 2.82 0 0 0 .197-.027c.07-.005.131-.022.202-.022.087-.01.18-.016.268-.022.082-.01.164-.01.246-.016.07 0 .142-.011.213-.011.136-.006.273-.006.415-.006.093 0 .191.006.284.006h.12c.083 0 .159.005.236.01.098.006.196.012.295.023.087.005.174.01.256.022.05.005.099.01.142.016.088.01.175.022.257.038l.312.05c1.06.185 2.07.519 3.005.983v.115c-.038-.022-.076-.038-.12-.06.038.022.077.038.12.065v-.12c.268.131.525.273.77.426V.825a.827.827 0 0 1 .82-.825h3.957a.838.838 0 0 1 .836.83Zm-5.694 16.213a5.32 5.32 0 0 0-5.312-5.323c-2.929 0-5.306 2.388-5.306 5.323 0 2.94 2.377 5.322 5.306 5.322a5.316 5.316 0 0 0 5.312-5.322Zm-19.59.431c0 .41-.017.765-.066 1.132a.597.597 0 0 1-.596.524H42.284a.598.598 0 0 0-.574.77c.623 1.94 2.46 3.192 4.749 3.192 1.607 0 2.678-.574 3.656-1.749a.614.614 0 0 1 .47-.213h5.191c.448 0 .738.47.53.869-2.093 4.033-5.705 6.372-9.847 6.372-6.06 0-11.137-5.055-11.137-11.088 0-6.033 4.847-11.235 11.022-11.235h.006c6.284 0 11.093 4.94 11.093 11.426Zm-6.563-3.393c-.738-1.683-2.437-2.754-4.541-2.754-1.973 0-3.721 1.027-4.47 2.754a.594.594 0 0 0 .552.825h7.907a.593.593 0 0 0 .552-.825ZM23.13 5.803c-2.738 0-5.207 1.055-6.934 2.733-1.689-1.831-4.197-2.995-7-2.995-4.53 0-8.295 3.044-9.06 7.044-.088.486-.137.989-.137 1.497v13.35c0 .54.437.978.978.978h4.355a.977.977 0 0 0 .978-.978V15.618c0-1.65 1.328-3.263 2.962-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V15.618c0-1.65 1.327-3.263 2.961-3.476a3.398 3.398 0 0 1 2.87.973c.617.617 1 1.47 1 2.415v11.902c0 .54.436.978.977.978h4.355a.977.977 0 0 0 .979-.978V14.344a7.75 7.75 0 0 0-.334-2.257c-1.098-3.623-4.77-6.284-9.13-6.284Z"}))}function Bt({width:e=60,height:o=67,className:r,svgClassName:t}){return React.createElement("svg",{className:r,width:e,height:o,viewBox:"0 0 60 67",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{fill:"#00205B",className:t,d:"M42.33 10.8959C37.32 10.8959 32.8 12.8259 29.64 15.8959C26.55 12.5459 21.96 10.4159 16.83 10.4159C8.54 10.4159 1.65 15.9859 0.25 23.3059C0.09 24.1959 0 25.1159 0 26.0459V50.4759C0 51.4659 0.8 52.2659 1.79 52.2659H9.76C10.75 52.2659 11.55 51.4659 11.55 50.4759V28.8559C11.55 25.8359 13.98 22.8859 16.97 22.4959C19.03 22.2259 20.91 22.9659 22.22 24.2759C23.35 25.4059 24.05 26.9659 24.05 28.6959V50.4759C24.05 51.4659 24.85 52.2659 25.84 52.2659H33.81C34.8 52.2659 35.6 51.4659 35.6 50.4759V28.8559C35.6 25.8359 38.03 22.8859 41.02 22.4959C43.08 22.2259 44.96 22.9659 46.27 24.2759C47.4 25.4059 48.1 26.9659 48.1 28.6959V50.4759C48.1 51.4659 48.9 52.2659 49.89 52.2659H57.86C58.85 52.2659 59.65 51.4659 59.65 50.4759V26.5259C59.65 25.0959 59.44 23.7159 59.04 22.3959C57.03 15.7659 50.31 10.8959 42.33 10.8959Z"}))}function Ot(s){var i=s,{className:e,orientation:o="horizontal",decorative:r=true}=i,t=g(i,["className","orientation","decorative"]);return h__namespace.createElement(Ke__namespace.Root,f({"data-slot":"separator-root",decorative:r,orientation:o,className:v("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e)},t))}function he(o){var e=g(o,[]);return h__namespace.createElement(S__namespace.Root,f({"data-slot":"sheet"},e))}function Ft(o){var e=g(o,[]);return h__namespace.createElement(S__namespace.Portal,f({"data-slot":"sheet-portal"},e))}function Ht(r){var t=r,{className:e}=t,o=g(t,["className"]);return h__namespace.createElement(S__namespace.Overlay,f({"data-slot":"sheet-overlay",className:v("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e)},o))}function Ue(s){var i=s,{className:e,children:o,side:r="right"}=i,t=g(i,["className","children","side"]);return h__namespace.createElement(Ft,null,h__namespace.createElement(Ht,null),h__namespace.createElement(S__namespace.Content,f({"data-slot":"sheet-content",className:v("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e)},t),o,h__namespace.createElement(S__namespace.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none"},h__namespace.createElement(lucideReact.XIcon,{className:"size-4"}),h__namespace.createElement("span",{className:"sr-only"},"Close"))))}function qe(r){var t=r,{className:e}=t,o=g(t,["className"]);return h__namespace.createElement("div",f({"data-slot":"sheet-header",className:v("flex flex-col gap-1.5 p-4",e)},o))}function Xe(r){var t=r,{className:e}=t,o=g(t,["className"]);return h__namespace.createElement(S__namespace.Title,f({"data-slot":"sheet-title",className:v("text-foreground font-semibold",e)},o))}function Je(r){var t=r,{className:e}=t,o=g(t,["className"]);return h__namespace.createElement(S__namespace.Description,f({"data-slot":"sheet-description",className:v("text-muted-foreground text-sm",e)},o))}function jt(r){var t=r,{className:e}=t,o=g(t,["className"]);return React.createElement("div",f({"data-slot":"skeleton",className:v("bg-accent animate-pulse rounded-md",e)},o))}function Wt(r){var t=r,{delayDuration:e=0}=t,o=g(t,["delayDuration"]);return h__namespace.createElement(V__namespace.Provider,f({"data-slot":"tooltip-provider",delayDuration:e},o))}function Zt(o){var e=g(o,[]);return h__namespace.createElement(Wt,null,h__namespace.createElement(V__namespace.Root,f({"data-slot":"tooltip"},e)))}var Kt="300px";var Ut=h__namespace.createContext(null);function qt(){let e=h__namespace.useContext(Ut);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Xt(l){var u=l,{side:e="left",variant:o="sidebar",collapsible:r="offcanvas",className:t,children:s}=u,i=g(u,["side","variant","collapsible","className","children"]);let{isMobile:m,state:b,openMobile:x,setOpenMobile:C}=qt();return r==="none"?h__namespace.createElement("div",f({"data-slot":"sidebar",className:v("text-foreground dark:bg-foreground flex h-full w-(--sidebar-width) flex-col bg-white",t)},i),s):m?h__namespace.createElement(he,f({open:x,onOpenChange:C},i),h__namespace.createElement(Ue,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"text-foreground w-(--sidebar-width) bg-white p-0 [&>button]:hidden",style:{"--sidebar-width":Kt},side:e},h__namespace.createElement(qe,{className:"sr-only"},h__namespace.createElement(Xe,null,"Sidebar"),h__namespace.createElement(Je,null,"Displays the mobile sidebar.")),h__namespace.createElement("div",{className:"flex h-full w-full flex-col"},s))):h__namespace.createElement("div",{className:"group peer text-foreground hidden md:block","data-state":b,"data-collapsible":b==="collapsed"?r:"","data-variant":o,"data-side":e,"data-slot":"sidebar"},h__namespace.createElement("div",{"data-slot":"sidebar-gap",className:v("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",o==="floating"||o==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),h__namespace.createElement("div",f({"data-slot":"sidebar-container",className:v("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",o==="floating"||o==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",t)},i),h__namespace.createElement("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"group-data-[variant=floating]:border-border flex h-full w-full flex-col bg-white group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm dark:bg-gray-700"},s)))}classVarianceAuthority.cva("peer/menu-button font-medium flex w-full items-center gap-2.5 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-ring transition-[width,height,padding] hover:bg-secondary/12 hover:text-secondary-darken-2 focus-visible:ring-2 active:text-secondary disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:text-secondary-darken-2 data-[state=open]:hover:bg-secondary/12 data-[state=open]:hover:text-secondary-darken-2 group-data-[collapsible=icon]:size-10! group-data-[collapsible=icon]:p-2.5! [&>span:last-child]:truncate [&>svg]:size-5 [&>svg]:shrink-0 mx-auto hover:cursor-pointer!",{variants:{variant:{default:"hover:bg-secondary/12 hover:text-secondary-darken-2",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--color-border))] hover:bg-secondary/12 hover:text-secondary-darken-2 hover:shadow-[0_0_0_1px_hsl(var(--secondary))]"},size:{md:"h-10 text-sm",sm:"h-8 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"md"}});
|
|
2
|
+
exports.Button=Vt;exports.Input=Et;exports.Loading=ge;exports.Logo=Lt;exports.LogoShort=Bt;exports.Separator=Ot;exports.Sheet=he;exports.Sidebar=Xt;exports.Skeleton=jt;exports.Tooltip=Zt;exports.buttonVariants=We;//# sourceMappingURL=index.js.map
|
|
3
|
+
//# sourceMappingURL=index.js.map
|