@zeo-app/design-system 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/dist/components/Alert/Alert.d.ts +10 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +11 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +10 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +10 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +12 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +6 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +17 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +15 -0
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/FormElements/FormElements.d.ts +35 -0
- package/dist/components/FormElements/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +21 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +11 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +14 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/Spinner/Spinner.d.ts +9 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +26 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +27 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/index.d.ts +17 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1156 -0
- package/dist/lib.d.ts +1 -0
- package/dist/style.css +1 -0
- package/package.json +60 -0
- package/tailwind.config.ts +93 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type AlertVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: AlertVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Alert({ variant, title, children, onClose, icon, className, ...props }: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type AvatarStatus = 'online' | 'offline' | 'busy' | 'away';
|
|
4
|
+
export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
size?: AvatarSize;
|
|
9
|
+
status?: AvatarStatus;
|
|
10
|
+
}
|
|
11
|
+
export declare function Avatar({ src, alt, name, size, status, className, ...props }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type BadgeVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
export type BadgeSize = 'sm' | 'md';
|
|
4
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
variant?: BadgeVariant;
|
|
6
|
+
size?: BadgeSize;
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
icon?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Badge({ variant, size, dot, icon, children, className, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbProps extends HTMLAttributes<HTMLElement> {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
}
|
|
10
|
+
export declare function Breadcrumb({ items, className, ...props }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger' | 'success';
|
|
3
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
iconLeft?: string;
|
|
9
|
+
iconRight?: string;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
attached?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function ButtonGroup({ children, attached, className, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type CardVariant = 'elevated' | 'outlined' | 'filled';
|
|
3
|
+
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: CardVariant;
|
|
5
|
+
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
6
|
+
}
|
|
7
|
+
export interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
icon?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
}
|
|
15
|
+
export declare function Card({ variant, padding, children, className, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function CardHeader({ title, subtitle, action, icon, className, ...props }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function CardFooter({ children, className, ...props }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface DropdownItem {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
danger?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
dividerAfter?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
trigger: ReactNode;
|
|
12
|
+
items: DropdownItem[];
|
|
13
|
+
align?: 'left' | 'right';
|
|
14
|
+
}
|
|
15
|
+
export declare function Dropdown({ trigger, items, align, className, ...props }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SelectHTMLAttributes, TextareaHTMLAttributes, InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
options: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLSelectElement>>;
|
|
14
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
15
|
+
label?: string;
|
|
16
|
+
hint?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
20
|
+
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
21
|
+
label?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
26
|
+
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
27
|
+
label?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
31
|
+
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
32
|
+
label?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export type InputSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
inputSize?: InputSize;
|
|
8
|
+
iconLeft?: string;
|
|
9
|
+
iconRight?: string;
|
|
10
|
+
onIconRightClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
3
|
+
export interface ModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
size?: ModalSize;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface ModalHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface ModalBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
}
|
|
16
|
+
export interface ModalFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
}
|
|
18
|
+
export declare function Modal({ open, onClose, size, children }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
export declare function ModalHeader({ title, subtitle, onClose, className, ...props }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function ModalBody({ children, className, ...props }: ModalBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function ModalFooter({ children, className, ...props }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type PaginationVariant = 'full' | 'text' | 'icon';
|
|
3
|
+
export interface PaginationProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
totalItems?: number;
|
|
7
|
+
itemsPerPage?: number;
|
|
8
|
+
onPageChange: (page: number) => void;
|
|
9
|
+
variant?: PaginationVariant;
|
|
10
|
+
}
|
|
11
|
+
export declare function Pagination({ currentPage, totalPages, totalItems, itemsPerPage, onPageChange, variant, className, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type ProgressBarSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'danger';
|
|
4
|
+
export type ProgressBarLabel = 'none' | 'outside' | 'inside';
|
|
5
|
+
export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
value: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
size?: ProgressBarSize;
|
|
9
|
+
variant?: ProgressBarVariant;
|
|
10
|
+
label?: ProgressBarLabel;
|
|
11
|
+
showPercent?: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ProgressBar({ value, max, size, variant, label, showPercent, title, className, ...props }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type SpinnerVariant = 'primary' | 'secondary' | 'white';
|
|
4
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
size?: SpinnerSize;
|
|
6
|
+
variant?: SpinnerVariant;
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Spinner({ size, variant, label, className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HTMLAttributes, ThHTMLAttributes, TdHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface TableProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare function Table({ children, className, ...props }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export interface TableHeadProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
7
|
+
}
|
|
8
|
+
export declare function TableHead({ children, className, ...props }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface TableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
10
|
+
}
|
|
11
|
+
export declare function TableBody({ children, className, ...props }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
13
|
+
selected?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function TableRow({ selected, children, className, ...props }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export interface TableHeaderCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
17
|
+
sortable?: boolean;
|
|
18
|
+
sorted?: 'asc' | 'desc' | false;
|
|
19
|
+
onSort?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function TableHeaderCell({ sortable, sorted, onSort, children, className, ...props }: TableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
23
|
+
muted?: boolean;
|
|
24
|
+
mono?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare function TableCell({ muted, mono, children, className, ...props }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
export type TabsVariant = 'default' | 'underline' | 'vertical';
|
|
3
|
+
export interface TabsProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
variant?: TabsVariant;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface TabProps {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
badge?: number | string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface TabPanelProps {
|
|
20
|
+
value: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function Tabs({ value, onChange, variant, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function TabList({ children, className, ...props }: TabListProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare function Tab({ value, label, icon, badge, disabled }: TabProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function TabPanel({ value, children, className }: TabPanelProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
export type TooltipVariant = 'dark' | 'light';
|
|
4
|
+
export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
content: string;
|
|
6
|
+
position?: TooltipPosition;
|
|
7
|
+
variant?: TooltipVariant;
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function Tooltip({ content, position, variant, children, className, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export * from './Avatar';
|
|
3
|
+
export * from './Badge';
|
|
4
|
+
export * from './Breadcrumb';
|
|
5
|
+
export * from './Button';
|
|
6
|
+
export * from './ButtonGroup';
|
|
7
|
+
export * from './Card';
|
|
8
|
+
export * from './Dropdown';
|
|
9
|
+
export * from './FormElements';
|
|
10
|
+
export * from './Input';
|
|
11
|
+
export * from './Modal';
|
|
12
|
+
export * from './Pagination';
|
|
13
|
+
export * from './ProgressBar';
|
|
14
|
+
export * from './Spinner';
|
|
15
|
+
export * from './Table';
|
|
16
|
+
export * from './Tabs';
|
|
17
|
+
export * from './Tooltip';
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),F={info:{container:"bg-blue-50 border-blue-200 text-blue-800",icon:"text-blue-500",defaultIcon:"info"},success:{container:"bg-green-50 border-green-200 text-green-800",icon:"text-green-500",defaultIcon:"check_circle"},warning:{container:"bg-yellow-50 border-yellow-200 text-yellow-800",icon:"text-yellow-500",defaultIcon:"warning"},danger:{container:"bg-red-50 border-red-200 text-red-800",icon:"text-red-500",defaultIcon:"error"}};function S({variant:t="info",title:r,children:s,onClose:a,icon:n,className:o="",...i}){const c=F[t],l=n??c.defaultIcon;return e.jsxs("div",{role:"alert",className:["flex gap-3 p-4 rounded-lg border",c.container,o].filter(Boolean).join(" "),...i,children:[e.jsx("span",{className:`material-symbols-outlined text-[20px] shrink-0 mt-0.5 ${c.icon}`,children:l}),e.jsxs("div",{className:"flex-1 min-w-0",children:[r&&e.jsx("p",{className:"font-semibold text-sm mb-0.5",children:r}),e.jsx("div",{className:"text-sm leading-relaxed",children:s})]}),a&&e.jsx("button",{onClick:a,className:"shrink-0 opacity-70 hover:opacity-100 transition-opacity","aria-label":"Fechar alerta",children:e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]})}const I={xs:"w-6 h-6 text-[10px]",sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-12 h-12 text-base",xl:"w-16 h-16 text-lg"},L={xs:"w-1.5 h-1.5",sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3",xl:"w-3.5 h-3.5"},M={online:"bg-green-500",offline:"bg-gray-400",busy:"bg-red-500",away:"bg-yellow-400"};function E(t){return t.split(" ").slice(0,2).map(r=>r[0]).join("").toUpperCase()}function R(t){const r=["bg-orange-100 text-orange-700","bg-blue-100 text-blue-700","bg-green-100 text-green-700","bg-purple-100 text-purple-700","bg-pink-100 text-pink-700","bg-teal-100 text-teal-700"],s=t.charCodeAt(0)%r.length;return r[s]}function A({src:t,alt:r="",name:s,size:a="md",status:n,className:o="",...i}){return e.jsxs("div",{className:["relative inline-flex shrink-0",o].filter(Boolean).join(" "),...i,children:[e.jsx("div",{className:["rounded-full overflow-hidden flex items-center justify-center font-semibold",I[a],!t&&s?R(s):"bg-surface-container"].filter(Boolean).join(" "),children:t?e.jsx("img",{src:t,alt:r||s,className:"w-full h-full object-cover"}):s?E(s):e.jsx("span",{className:"material-symbols-outlined text-on-surface-variant",style:{fontSize:"60%"},children:"person"})}),n&&e.jsx("span",{className:["absolute bottom-0 right-0 rounded-full border-2 border-white",L[a],M[n]].filter(Boolean).join(" ")})]})}const H={default:"bg-surface-container text-on-surface-variant",primary:"bg-orange-100 text-orange-700",success:"bg-green-100 text-green-700",warning:"bg-yellow-100 text-yellow-700",danger:"bg-red-100 text-red-700",info:"bg-blue-100 text-blue-700"},D={default:"bg-on-surface-variant",primary:"bg-orange-500",success:"bg-green-500",warning:"bg-yellow-500",danger:"bg-red-500",info:"bg-blue-500"},q={sm:"px-2 py-0.5 text-xs gap-1",md:"px-2.5 py-1 text-xs gap-1.5"};function G({variant:t="default",size:r="md",dot:s=!1,icon:a,children:n,className:o="",...i}){return e.jsxs("span",{className:["inline-flex items-center font-medium rounded-full",H[t],q[r],o].filter(Boolean).join(" "),...i,children:[s&&e.jsx("span",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${D[t]}`}),a&&!s&&e.jsx("span",{className:"material-symbols-outlined text-[12px]",children:a}),n]})}function O({items:t,className:r="",...s}){return e.jsx("nav",{"aria-label":"Breadcrumb",className:r,...s,children:e.jsx("ol",{className:"inline-flex items-center gap-1.5 text-sm flex-wrap",children:t.map((a,n)=>{const o=n===t.length-1;return e.jsxs("li",{className:"flex items-center gap-1.5",children:[n>0&&e.jsx("span",{className:"material-symbols-outlined text-[16px] text-on-surface-variant select-none",children:"chevron_right"}),o?e.jsxs("span",{"aria-current":"page",className:"font-semibold text-on-surface flex items-center gap-1",children:[a.icon&&e.jsx("span",{className:"material-symbols-outlined text-[18px] leading-none",children:a.icon}),a.label]}):e.jsxs("a",{href:a.href??"#",className:"text-on-surface-variant hover:text-zeo-orange transition-colors flex items-center gap-1",children:[a.icon&&e.jsx("span",{className:"material-symbols-outlined text-[18px] leading-none",children:a.icon}),a.label]})]},n)})})})}const K={primary:"bg-zeo-orange text-white hover:bg-orange-700 active:bg-orange-800 focus:shadow-zeo-focus border-transparent",secondary:"bg-white text-on-surface border-outline-variant hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",ghost:"bg-transparent text-on-surface-variant border-transparent hover:bg-surface-container-low active:bg-surface-container focus:shadow-zeo-focus",danger:"bg-error text-on-error border-transparent hover:bg-red-700 active:bg-red-800 focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]",success:"bg-tertiary text-on-tertiary border-transparent hover:bg-green-800 active:bg-green-900 focus:shadow-[0_0_0_4px_rgba(0,108,73,0.15)]"},U={sm:"px-3 py-1.5 text-sm gap-1.5 h-8",md:"px-4 py-2 text-sm gap-2 h-10",lg:"px-5 py-2.5 text-base gap-2 h-11"},b={sm:"text-[16px]",md:"text-[18px]",lg:"text-[20px]"},v=u.forwardRef(({variant:t="primary",size:r="md",loading:s=!1,iconLeft:a,iconRight:n,fullWidth:o=!1,disabled:i,children:c,className:l="",...d},x)=>{const f=i||s;return e.jsxs("button",{ref:x,disabled:f,className:["inline-flex items-center justify-center font-medium rounded border transition-all duration-200 select-none","focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed",K[t],U[r],o?"w-full":"",l].filter(Boolean).join(" "),...d,children:[s?e.jsx("span",{className:`material-symbols-outlined animate-spin ${b[r]}`,children:"progress_activity"}):a&&e.jsx("span",{className:`material-symbols-outlined ${b[r]}`,children:a}),c,!s&&n&&e.jsx("span",{className:`material-symbols-outlined ${b[r]}`,children:n})]})});v.displayName="Button";function V({children:t,attached:r=!1,className:s="",...a}){return e.jsx("div",{role:"group",className:["inline-flex",r?"[&>button]:rounded-none [&>button:first-child]:rounded-l [&>button:last-child]:rounded-r [&>button:not(:first-child)]:-ml-px":"gap-2",s].filter(Boolean).join(" "),...a,children:t})}const J={elevated:"bg-white shadow-theme-lg border border-surface-container-high",outlined:"bg-white border border-outline-variant",filled:"bg-surface-container-low border border-transparent"},Q={none:"",sm:"p-4",md:"p-5",lg:"p-6"};function W({variant:t="elevated",padding:r="md",children:s,className:a="",...n}){return e.jsx("div",{className:["rounded-xl overflow-hidden",J[t],a].filter(Boolean).join(" "),...n,children:e.jsx("div",{className:Q[r],children:s})})}function X({title:t,subtitle:r,action:s,icon:a,className:n="",...o}){return e.jsxs("div",{className:["flex items-start justify-between gap-4 pb-4",n].filter(Boolean).join(" "),...o,children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a&&e.jsx("span",{className:"material-symbols-outlined text-on-surface-variant text-[24px] shrink-0",children:a}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-base font-semibold text-on-surface truncate",children:t}),r&&e.jsx("p",{className:"text-sm text-on-surface-variant mt-0.5",children:r})]})]}),s&&e.jsx("div",{className:"shrink-0",children:s})]})}function Y({children:t,className:r="",...s}){return e.jsx("div",{className:["flex items-center justify-end gap-3 pt-4 border-t border-surface-container-high",r].filter(Boolean).join(" "),...s,children:t})}function Z({trigger:t,items:r,align:s="right",className:a="",...n}){const[o,i]=u.useState(!1),c=u.useRef(null);return u.useEffect(()=>{const l=d=>{c.current&&!c.current.contains(d.target)&&i(!1)};return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[]),u.useEffect(()=>{const l=d=>{d.key==="Escape"&&i(!1)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[]),e.jsxs("div",{ref:c,className:["relative inline-block",a].filter(Boolean).join(" "),...n,children:[e.jsx("div",{onClick:()=>i(l=>!l),children:t}),o&&e.jsx("div",{className:["absolute z-40 mt-2 min-w-[180px] bg-white border border-surface-container-high rounded-xl shadow-theme-lg py-1",s==="right"?"right-0":"left-0"].join(" "),role:"menu",children:r.map((l,d)=>e.jsxs("div",{children:[e.jsxs("button",{role:"menuitem",disabled:l.disabled,onClick:()=>{var x;l.disabled||((x=l.onClick)==null||x.call(l),i(!1))},className:["w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors text-left",l.danger?"text-error hover:bg-red-50":"text-on-surface hover:bg-surface-container-low",l.disabled?"opacity-40 cursor-not-allowed":"cursor-pointer"].filter(Boolean).join(" "),children:[l.icon&&e.jsx("span",{className:"material-symbols-outlined text-[18px] opacity-70",children:l.icon}),l.label]}),l.dividerAfter&&e.jsx("div",{className:"my-1 border-t border-surface-container-high"})]},d))})]})}const y=u.forwardRef(({label:t,hint:r,error:s,options:a,placeholder:n,disabled:o,className:i="",id:c,...l},d)=>{const x=c??(t==null?void 0:t.toLowerCase().replace(/\s+/g,"-"));return e.jsxs("div",{className:"flex flex-col gap-1.5",children:[t&&e.jsx("label",{htmlFor:x,className:"text-sm font-medium text-on-surface",children:t}),e.jsxs("div",{className:"relative",children:[e.jsxs("select",{ref:d,id:x,disabled:o,className:["w-full appearance-none bg-white border rounded px-3 py-2 text-sm pr-9 transition-all duration-200","text-on-surface focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",s?"border-error":"border-outline-variant","disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",i].filter(Boolean).join(" "),...l,children:[n&&e.jsx("option",{value:"",disabled:!0,children:n}),a.map(f=>e.jsx("option",{value:f.value,disabled:f.disabled,children:f.label},f.value))]}),e.jsx("span",{className:"material-symbols-outlined absolute right-3 top-1/2 -translate-y-1/2 text-[18px] text-on-surface-variant pointer-events-none",children:"expand_more"})]}),s&&e.jsxs("p",{className:"text-xs text-error flex items-center gap-1",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),s]}),!s&&r&&e.jsx("p",{className:"text-xs text-on-surface-variant",children:r})]})});y.displayName="Select";const N=u.forwardRef(({label:t,hint:r,error:s,disabled:a,className:n="",id:o,rows:i=4,...c},l)=>{const d=o??(t==null?void 0:t.toLowerCase().replace(/\s+/g,"-"));return e.jsxs("div",{className:"flex flex-col gap-1.5",children:[t&&e.jsx("label",{htmlFor:d,className:"text-sm font-medium text-on-surface",children:t}),e.jsx("textarea",{ref:l,id:d,rows:i,disabled:a,className:["w-full bg-white border rounded px-3 py-2 text-sm resize-y transition-all duration-200","text-on-surface placeholder:text-on-surface-variant","focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",s?"border-error":"border-outline-variant","disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",n].filter(Boolean).join(" "),...c}),s&&e.jsxs("p",{className:"text-xs text-error flex items-center gap-1",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),s]}),!s&&r&&e.jsx("p",{className:"text-xs text-on-surface-variant",children:r})]})});N.displayName="Textarea";const C=u.forwardRef(({label:t,description:r,error:s,disabled:a,className:n="",id:o,...i},c)=>{const l=o??`checkbox-${t==null?void 0:t.toLowerCase().replace(/\s+/g,"-")}`;return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("label",{htmlFor:l,className:["flex items-start gap-3 cursor-pointer",a?"opacity-50 cursor-not-allowed":""].filter(Boolean).join(" "),children:[e.jsx("input",{ref:c,type:"checkbox",id:l,disabled:a,className:["mt-0.5 w-4 h-4 rounded border-outline-variant text-zeo-orange shrink-0","focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0","disabled:cursor-not-allowed",n].filter(Boolean).join(" "),...i}),t&&e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-medium text-on-surface leading-tight",children:t}),r&&e.jsx("span",{className:"text-xs text-on-surface-variant mt-0.5",children:r})]})]}),s&&e.jsxs("p",{className:"text-xs text-error flex items-center gap-1 ml-7",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),s]})]})});C.displayName="Checkbox";const B=u.forwardRef(({label:t,description:r,disabled:s,className:a="",id:n,...o},i)=>{const c=n??`radio-${t==null?void 0:t.toLowerCase().replace(/\s+/g,"-")}`;return e.jsxs("label",{htmlFor:c,className:["flex items-start gap-3 cursor-pointer",s?"opacity-50 cursor-not-allowed":""].filter(Boolean).join(" "),children:[e.jsx("input",{ref:i,type:"radio",id:c,disabled:s,className:["mt-0.5 w-4 h-4 border-outline-variant text-zeo-orange shrink-0","focus:ring-2 focus:ring-zeo-orange/30 focus:ring-offset-0","disabled:cursor-not-allowed",a].filter(Boolean).join(" "),...o}),t&&e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-medium text-on-surface leading-tight",children:t}),r&&e.jsx("span",{className:"text-xs text-on-surface-variant mt-0.5",children:r})]})]})});B.displayName="Radio";const k=u.forwardRef(({label:t,description:r,disabled:s,className:a="",id:n,...o},i)=>{const c=n??`switch-${t==null?void 0:t.toLowerCase().replace(/\s+/g,"-")}`;return e.jsxs("label",{htmlFor:c,className:["flex items-start gap-3 cursor-pointer select-none",s?"opacity-50 cursor-not-allowed":""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:"relative mt-0.5 shrink-0",children:[e.jsx("input",{ref:i,type:"checkbox",id:c,disabled:s,className:"sr-only peer",...o}),e.jsx("div",{className:"w-10 h-6 bg-surface-container-high rounded-full peer-checked:bg-zeo-orange transition-colors duration-200 peer-focus:ring-2 peer-focus:ring-zeo-orange/30"}),e.jsx("div",{className:"absolute top-1 left-1 w-4 h-4 bg-white rounded-full shadow transition-transform duration-200 peer-checked:translate-x-4"})]}),t&&e.jsxs("span",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-medium text-on-surface leading-tight",children:t}),r&&e.jsx("span",{className:"text-xs text-on-surface-variant mt-0.5",children:r})]})]})});k.displayName="Switch";const P={sm:"px-3 py-1.5 text-sm h-8",md:"px-3 py-2 text-sm h-10",lg:"px-4 py-2.5 text-base h-11"},w={sm:"text-[16px]",md:"text-[18px]",lg:"text-[20px]"},z=u.forwardRef(({label:t,hint:r,error:s,inputSize:a="md",iconLeft:n,iconRight:o,onIconRightClick:i,disabled:c,className:l="",id:d,...x},f)=>{const m=d??(t==null?void 0:t.toLowerCase().replace(/\s+/g,"-"));return e.jsxs("div",{className:"flex flex-col gap-1.5",children:[t&&e.jsx("label",{htmlFor:m,className:"text-sm font-medium text-on-surface",children:t}),e.jsxs("div",{className:"relative flex items-center",children:[n&&e.jsx("span",{className:`material-symbols-outlined absolute left-3 text-on-surface-variant pointer-events-none ${w[a]}`,children:n}),e.jsx("input",{ref:f,id:m,disabled:c,className:["w-full bg-white border rounded transition-all duration-200","text-on-surface placeholder:text-on-surface-variant","focus:outline-none focus:border-zeo-orange focus:shadow-zeo-focus",s?"border-error focus:border-error focus:shadow-[0_0_0_4px_rgba(186,26,26,0.15)]":"border-outline-variant","disabled:bg-surface-container-low disabled:cursor-not-allowed disabled:opacity-60",P[a],n?"pl-9":"",o?"pr-9":"",l].filter(Boolean).join(" "),...x}),o&&e.jsx("span",{className:["material-symbols-outlined absolute right-3 text-on-surface-variant",w[a],i?"cursor-pointer hover:text-on-surface":"pointer-events-none"].filter(Boolean).join(" "),onClick:i,children:o})]}),s&&e.jsxs("p",{className:"text-xs text-error flex items-center gap-1",children:[e.jsx("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),s]}),!s&&r&&e.jsx("p",{className:"text-xs text-on-surface-variant",children:r})]})});z.displayName="Input";const ee={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-2xl",full:"max-w-[calc(100vw-2rem)]"};function te({open:t,onClose:r,size:s="md",children:a}){return u.useEffect(()=>{if(!t)return;const n=o=>{o.key==="Escape"&&r()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t,r]),t?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4","aria-modal":"true",role:"dialog",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:r,"aria-hidden":"true"}),e.jsx("div",{className:["relative w-full bg-white rounded-2xl shadow-theme-lg z-10 flex flex-col max-h-[90vh]",ee[s]].filter(Boolean).join(" "),children:a})]}):null}function re({title:t,subtitle:r,onClose:s,className:a="",...n}){return e.jsxs("div",{className:["flex items-start justify-between gap-4 p-6 border-b border-surface-container-high",a].filter(Boolean).join(" "),...n,children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-on-surface",children:t}),r&&e.jsx("p",{className:"text-sm text-on-surface-variant mt-0.5",children:r})]}),s&&e.jsx("button",{onClick:s,className:"p-1 text-on-surface-variant hover:text-on-surface hover:bg-surface-container-low rounded-lg transition-all -mt-1 -mr-1","aria-label":"Fechar modal",children:e.jsx("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]})}function se({children:t,className:r="",...s}){return e.jsx("div",{className:["p-6 overflow-y-auto flex-1",r].filter(Boolean).join(" "),...s,children:t})}function ae({children:t,className:r="",...s}){return e.jsx("div",{className:["flex items-center justify-end gap-3 p-6 border-t border-surface-container-high",r].filter(Boolean).join(" "),...s,children:t})}function ne(t,r){return r<=7?Array.from({length:r},(s,a)=>a+1):t<=4?[1,2,3,4,5,"...",r]:t>=r-3?[1,"...",r-4,r-3,r-2,r-1,r]:[1,"...",t-1,t,t+1,"...",r]}function oe({currentPage:t,totalPages:r,totalItems:s,itemsPerPage:a=10,onPageChange:n,variant:o="full",className:i="",...c}){const l=ne(t,r),d=(t-1)*a+1,x=Math.min(t*a,s??t*a),f="inline-flex items-center justify-center text-sm font-medium rounded transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-zeo-orange/30 disabled:opacity-40 disabled:cursor-not-allowed select-none",m=`${f} w-9 h-9`,$="bg-zeo-orange text-white",h="text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface",j=`${f} px-3 h-9 gap-1.5 border border-surface-container-high text-on-surface-variant hover:bg-surface-container-low hover:text-on-surface`;return e.jsxs("div",{className:["flex items-center justify-between gap-4 flex-wrap",i].filter(Boolean).join(" "),...c,children:[o==="full"&&s!==void 0&&e.jsxs("p",{className:"text-sm text-on-surface-variant",children:["Mostrando ",e.jsxs("strong",{children:[d,"–",x]})," de ",e.jsx("strong",{children:s})," itens"]}),e.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[e.jsxs("button",{onClick:()=>n(t-1),disabled:t===1,"aria-label":"Página anterior",className:o==="icon"?m+" "+h:j,children:[e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"arrow_back"}),o==="text"&&"Anterior"]}),l.map((p,_)=>p==="..."?e.jsx("span",{className:"w-9 text-center text-sm text-on-surface-variant select-none",children:"…"},`ellipsis-${_}`):e.jsx("button",{onClick:()=>n(p),"aria-current":t===p?"page":void 0,className:[m,t===p?$:h].join(" "),children:p},p)),e.jsxs("button",{onClick:()=>n(t+1),disabled:t===r,"aria-label":"Próxima página",className:o==="icon"?m+" "+h:j,children:[o==="text"&&"Próxima",e.jsx("span",{className:"material-symbols-outlined text-[18px]",children:"arrow_forward"})]})]})]})}const le={xs:"h-1",sm:"h-1.5",md:"h-2",lg:"h-3"},ie={primary:"bg-zeo-orange",success:"bg-green-500",warning:"bg-amber-400",danger:"bg-red-500"};function ce({value:t,max:r=100,size:s="md",variant:a="primary",label:n="none",showPercent:o=!0,title:i,className:c="",...l}){const d=Math.min(100,Math.max(0,t/r*100)),x=`${Math.round(d)}%`;return e.jsxs("div",{className:["flex flex-col gap-1.5",c].filter(Boolean).join(" "),...l,children:[(i||n==="outside"&&o)&&e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i&&e.jsx("span",{className:"text-sm font-medium text-on-surface",children:i}),n==="outside"&&o&&e.jsx("span",{className:"text-sm font-semibold text-on-surface",children:x})]}),e.jsx("div",{role:"progressbar","aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":r,className:["relative w-full bg-surface-container-high rounded-full overflow-hidden",le[s]].join(" "),children:e.jsx("div",{className:["h-full rounded-full transition-all duration-500 flex items-center justify-end pr-1",ie[a]].join(" "),style:{width:`${d}%`},children:n==="inside"&&o&&d>=20&&e.jsx("span",{className:"text-[10px] font-bold text-white leading-none",children:x})})})]})}const de={xs:"w-3 h-3 border",sm:"w-4 h-4 border-2",md:"w-6 h-6 border-2",lg:"w-8 h-8 border-[3px]",xl:"w-12 h-12 border-4"},xe={primary:"border-orange-200 border-t-zeo-orange",secondary:"border-surface-container-high border-t-on-surface-variant",white:"border-white/30 border-t-white"};function ue({size:t="md",variant:r="primary",label:s="Carregando...",className:a="",...n}){return e.jsx("span",{role:"status","aria-label":s,className:["inline-block rounded-full animate-spin",de[t],xe[r],a].filter(Boolean).join(" "),...n})}function fe({children:t,className:r="",...s}){return e.jsx("div",{className:["overflow-x-auto rounded-xl border border-surface-container-high shadow-sm",r].filter(Boolean).join(" "),...s,children:e.jsx("table",{className:"w-full text-sm",children:t})})}function me({children:t,className:r="",...s}){return e.jsx("thead",{className:["bg-surface-container-low border-b border-surface-container-high",r].filter(Boolean).join(" "),...s,children:t})}function pe({children:t,className:r="",...s}){return e.jsx("tbody",{className:["bg-white divide-y divide-surface-container-high",r].filter(Boolean).join(" "),...s,children:t})}function he({selected:t=!1,children:r,className:s="",...a}){return e.jsx("tr",{className:["hover:bg-surface-container-low transition-colors",t?"bg-orange-50/40":"",s].filter(Boolean).join(" "),...a,children:r})}function be({sortable:t=!1,sorted:r=!1,onSort:s,children:a,className:n="",...o}){return e.jsx("th",{className:["px-4 py-3 text-left text-xs font-semibold text-on-surface-variant uppercase tracking-wide whitespace-nowrap",t?"cursor-pointer hover:text-on-surface select-none":"",n].filter(Boolean).join(" "),onClick:t?s:void 0,...o,children:e.jsxs("span",{className:"inline-flex items-center gap-1",children:[a,t&&e.jsx("span",{className:`material-symbols-outlined text-[14px] ${r?"text-zeo-orange":"opacity-40"}`,children:r==="asc"?"arrow_upward":r==="desc"?"arrow_downward":"unfold_more"})]})})}function ge({muted:t=!1,mono:r=!1,children:s,className:a="",...n}){return e.jsx("td",{className:["px-4 py-3",t?"text-on-surface-variant":"text-on-surface",r?"font-mono text-xs":"",a].filter(Boolean).join(" "),...n,children:s})}const T=u.createContext(null);function g(){const t=u.useContext(T);if(!t)throw new Error("Tab must be used inside Tabs");return t}function je({value:t,onChange:r,variant:s="default",children:a}){return e.jsx(T.Provider,{value:{active:t,onChange:r,variant:s},children:e.jsx("div",{className:s==="vertical"?"flex gap-6":"flex flex-col gap-4",children:a})})}function we({children:t,className:r="",...s}){const{variant:a}=g(),n={default:"flex gap-1 bg-surface-container-low rounded-lg p-1 w-fit",underline:"flex gap-0 border-b border-surface-container-high w-full",vertical:"flex flex-col gap-1 bg-surface-container-low rounded-lg p-1 w-48 shrink-0 h-fit"}[a];return e.jsx("div",{role:"tablist",className:[n,r].filter(Boolean).join(" "),...s,children:t})}function ve({value:t,label:r,icon:s,badge:a,disabled:n=!1}){const{active:o,onChange:i,variant:c}=g(),l=o===t,d="inline-flex items-center gap-2 font-medium text-sm transition-all duration-200 select-none focus:outline-none",x="opacity-40 cursor-not-allowed pointer-events-none",f={default:l?"bg-white text-on-surface shadow-sm rounded-md px-4 py-2":"text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2",underline:l?"text-zeo-orange border-b-2 border-zeo-orange px-4 py-2.5 -mb-px":"text-on-surface-variant hover:text-on-surface border-b-2 border-transparent px-4 py-2.5 -mb-px",vertical:l?"bg-white text-on-surface shadow-sm rounded-md px-4 py-2 w-full":"text-on-surface-variant hover:text-on-surface rounded-md px-4 py-2 w-full"}[c];return e.jsxs("button",{role:"tab","aria-selected":l,"aria-disabled":n,disabled:n,onClick:()=>!n&&i(t),className:[d,f,n?x:""].filter(Boolean).join(" "),children:[s&&e.jsx("span",{className:"material-symbols-outlined text-[18px]",style:l?{fontVariationSettings:"'FILL' 1"}:void 0,children:s}),r,a!==void 0&&e.jsx("span",{className:`text-[11px] font-semibold px-1.5 py-0.5 rounded-full leading-none ${l?"bg-zeo-orange text-white":"bg-surface-container-high text-on-surface-variant"}`,children:a})]})}function ye({value:t,children:r,className:s=""}){const{active:a}=g();return a!==t?null:e.jsx("div",{role:"tabpanel",className:s,children:r})}const Ne={top:{wrapper:"bottom-full left-1/2 -translate-x-1/2 mb-2",arrow:"top-full left-1/2 -translate-x-1/2 border-t-4 border-x-4 border-x-transparent border-b-0"},bottom:{wrapper:"top-full left-1/2 -translate-x-1/2 mt-2",arrow:"bottom-full left-1/2 -translate-x-1/2 border-b-4 border-x-4 border-x-transparent border-t-0"},left:{wrapper:"right-full top-1/2 -translate-y-1/2 mr-2",arrow:"left-full top-1/2 -translate-y-1/2 border-l-4 border-y-4 border-y-transparent border-r-0"},right:{wrapper:"left-full top-1/2 -translate-y-1/2 ml-2",arrow:"right-full top-1/2 -translate-y-1/2 border-r-4 border-y-4 border-y-transparent border-l-0"}},Ce={dark:{tooltip:"bg-slate-800 text-white",arrow:"border-t-slate-800 border-r-slate-800 border-b-slate-800 border-l-slate-800"},light:{tooltip:"bg-white text-on-surface border border-surface-container-high shadow-theme-lg",arrow:"border-t-white border-r-white border-b-white border-l-white"}};function Be({content:t,position:r="top",variant:s="dark",children:a,className:n="",...o}){const i=Ne[r],c=Ce[s];return e.jsxs("div",{className:["relative inline-flex group",n].filter(Boolean).join(" "),...o,children:[a,e.jsxs("div",{role:"tooltip",className:["absolute z-50 pointer-events-none","opacity-0 group-hover:opacity-100 transition-opacity duration-150","whitespace-nowrap text-xs font-medium px-2.5 py-1.5 rounded-lg",i.wrapper,c.tooltip].join(" "),children:[t,e.jsx("span",{className:["absolute w-0 h-0",i.arrow,c.arrow].join(" ")})]})]})}exports.Alert=S;exports.Avatar=A;exports.Badge=G;exports.Breadcrumb=O;exports.Button=v;exports.ButtonGroup=V;exports.Card=W;exports.CardFooter=Y;exports.CardHeader=X;exports.Checkbox=C;exports.Dropdown=Z;exports.Input=z;exports.Modal=te;exports.ModalBody=se;exports.ModalFooter=ae;exports.ModalHeader=re;exports.Pagination=oe;exports.ProgressBar=ce;exports.Radio=B;exports.Select=y;exports.Spinner=ue;exports.Switch=k;exports.Tab=ve;exports.TabList=we;exports.TabPanel=ye;exports.Table=fe;exports.TableBody=pe;exports.TableCell=ge;exports.TableHead=me;exports.TableHeaderCell=be;exports.TableRow=he;exports.Tabs=je;exports.Textarea=N;exports.Tooltip=Be;
|
package/dist/index.d.ts
ADDED