@aleric.dev/ui 0.0.0-stage → 0.4.1
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 +120 -2
- package/bin/cli.cjs +145 -0
- package/dist/components/atoms/Badge.d.ts +9 -0
- package/dist/components/atoms/Button.d.ts +11 -0
- package/dist/components/atoms/Card.d.ts +5 -0
- package/dist/components/atoms/Input.d.ts +8 -0
- package/dist/components/atoms/Modal.d.ts +34 -0
- package/dist/components/atoms/Select.d.ts +34 -0
- package/dist/components/atoms/SocialIcons.d.ts +7 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/StatusToggle.d.ts +9 -0
- package/dist/components/atoms/StepTimeline.d.ts +17 -0
- package/dist/components/atoms/Table.d.ts +13 -0
- package/dist/components/atoms/Tabs.d.ts +21 -0
- package/dist/components/atoms/Textarea.d.ts +6 -0
- package/dist/components/atoms/Toggle.d.ts +9 -0
- package/dist/components/atoms/index.d.ts +14 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/molecules/ConfirmDialog.d.ts +13 -0
- package/dist/components/molecules/DatePicker.d.ts +14 -0
- package/dist/components/molecules/EmptyState.d.ts +10 -0
- package/dist/components/molecules/FormField.d.ts +10 -0
- package/dist/components/molecules/MarkdownRenderer.d.ts +7 -0
- package/dist/components/molecules/MetricStatCard.d.ts +10 -0
- package/dist/components/molecules/MetricStrip.d.ts +15 -0
- package/dist/components/molecules/ModalSplitLayout.d.ts +44 -0
- package/dist/components/molecules/ModalStepLayout.d.ts +28 -0
- package/dist/components/molecules/SearchInput.d.ts +10 -0
- package/dist/components/molecules/StatusBadge.d.ts +13 -0
- package/dist/components/molecules/index.d.ts +11 -0
- package/dist/components/organisms/NotificationCenter.d.ts +22 -0
- package/dist/components/organisms/Sidebar.d.ts +41 -0
- package/dist/components/organisms/TopNav.d.ts +23 -0
- package/dist/components/organisms/index.d.ts +3 -0
- package/dist/components/templates/AppLayout.d.ts +8 -0
- package/dist/components/templates/StudioLayout.d.ts +8 -0
- package/dist/components/templates/index.d.ts +2 -0
- package/dist/favicon.svg +24 -0
- package/dist/index.cjs +211 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7251 -0
- package/dist/ui.css +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/package.json +71 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ModalStepRatio = '5/7' | '6/6' | '4/8' | '7/5';
|
|
3
|
+
export interface ModalStepPaneConfig {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
badge?: React.ReactNode;
|
|
7
|
+
header?: React.ReactNode;
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
footer?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ModalStepLayoutProps {
|
|
13
|
+
/** Configuración del Paso 1 (Instrucciones / Entrada) */
|
|
14
|
+
step1: ModalStepPaneConfig;
|
|
15
|
+
/** Configuración del Paso 2 (Generación / Resultados) */
|
|
16
|
+
step2: ModalStepPaneConfig;
|
|
17
|
+
/** Paso actual activo (1 o 2) */
|
|
18
|
+
currentStep?: 1 | 2;
|
|
19
|
+
/** Lista de números de pasos completados (ej. [1]) */
|
|
20
|
+
completedSteps?: number[];
|
|
21
|
+
/** Callback al cambiar de paso */
|
|
22
|
+
onStepChange?: (step: 1 | 2) => void;
|
|
23
|
+
/** Relación de columnas en Desktop (>= 1024px) */
|
|
24
|
+
ratio?: ModalStepRatio;
|
|
25
|
+
/** Clases adicionales para el contenedor raíz */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const ModalStepLayout: React.FC<ModalStepLayoutProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SearchInputProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClear?: () => void;
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeVariant } from '../atoms/Badge';
|
|
3
|
+
export type GeneralStatus = 'pending' | 'ready' | 'published' | 'active' | 'inactive' | 'approved' | 'rejected' | 'open' | 'in_progress' | 'resolved' | 'closed';
|
|
4
|
+
export interface StatusBadgeProps {
|
|
5
|
+
status: GeneralStatus | string;
|
|
6
|
+
size?: 'xs' | 'sm' | 'md';
|
|
7
|
+
customConfig?: Record<string, {
|
|
8
|
+
label: string;
|
|
9
|
+
variant: BadgeVariant;
|
|
10
|
+
}>;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const StatusBadge: React.FC<StatusBadgeProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './FormField';
|
|
2
|
+
export * from './SearchInput';
|
|
3
|
+
export * from './ConfirmDialog';
|
|
4
|
+
export * from './EmptyState';
|
|
5
|
+
export * from './MetricStatCard';
|
|
6
|
+
export * from './MetricStrip';
|
|
7
|
+
export * from './StatusBadge';
|
|
8
|
+
export * from './DatePicker';
|
|
9
|
+
export * from './MarkdownRenderer';
|
|
10
|
+
export * from './ModalSplitLayout';
|
|
11
|
+
export * from './ModalStepLayout';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NotificationItem {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
timestamp?: string | Date;
|
|
7
|
+
read?: boolean;
|
|
8
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
9
|
+
tag?: string;
|
|
10
|
+
onAction?: () => void;
|
|
11
|
+
actionLabel?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface NotificationCenterProps {
|
|
14
|
+
notifications: NotificationItem[];
|
|
15
|
+
unreadCount?: number;
|
|
16
|
+
onMarkAllAsRead?: () => void;
|
|
17
|
+
onNotificationClick?: (item: NotificationItem) => void;
|
|
18
|
+
emptyTitle?: string;
|
|
19
|
+
emptyDescription?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const NotificationCenter: React.FC<NotificationCenterProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface NavItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
badge?: string | number;
|
|
8
|
+
badgeVariant?: 'default' | 'success' | 'warning' | 'error';
|
|
9
|
+
href?: string;
|
|
10
|
+
external?: boolean;
|
|
11
|
+
target?: string;
|
|
12
|
+
dataTour?: string;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface NavGroup {
|
|
16
|
+
id?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
icon?: React.ReactNode;
|
|
19
|
+
items: NavItem[];
|
|
20
|
+
collapsible?: boolean;
|
|
21
|
+
defaultCollapsed?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface SidebarBrand {
|
|
24
|
+
name?: string;
|
|
25
|
+
subtitle?: string;
|
|
26
|
+
logo?: React.ReactNode;
|
|
27
|
+
collapsedLogo?: React.ReactNode;
|
|
28
|
+
href?: string;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export interface SidebarProps {
|
|
32
|
+
brand?: SidebarBrand;
|
|
33
|
+
groups: NavGroup[];
|
|
34
|
+
footer?: React.ReactNode;
|
|
35
|
+
collapsed?: boolean;
|
|
36
|
+
onToggleCollapse?: () => void;
|
|
37
|
+
mobileOpen?: boolean;
|
|
38
|
+
onMobileClose?: () => void;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TopNavProps {
|
|
10
|
+
breadcrumbs?: BreadcrumbItem[];
|
|
11
|
+
title?: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
actions?: React.ReactNode;
|
|
14
|
+
userMenu?: React.ReactNode;
|
|
15
|
+
notificationSlot?: React.ReactNode;
|
|
16
|
+
themeToggle?: {
|
|
17
|
+
theme: 'dark' | 'light';
|
|
18
|
+
onToggle: () => void;
|
|
19
|
+
};
|
|
20
|
+
onMobileMenuToggle?: () => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const TopNav: React.FC<TopNavProps>;
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
|
3
|
+
<defs>
|
|
4
|
+
<clipPath id="rounded-corners">
|
|
5
|
+
<rect width="512" height="512" rx="120" ry="120" />
|
|
6
|
+
</clipPath>
|
|
7
|
+
</defs>
|
|
8
|
+
<g clip-path="url(#rounded-corners)">
|
|
9
|
+
<!-- Fondo corporativo Aleric (#040B1B) -->
|
|
10
|
+
<rect width="512" height="512" rx="120" ry="120" fill="#040B1B"/>
|
|
11
|
+
|
|
12
|
+
<!-- Llave izquierda < (Glifo original Aleric) -->
|
|
13
|
+
<path d="M0 0 C6.01 3.36 9.09 8.33 11.78 14.55 C13.05 23.49 12.1 31.17 6.78 38.55 C4.3 41.46 1.63 44.02 -1.22 46.55 C-1.82 47.09 -2.41 47.63 -3.02 48.18 C-5.57 50.45 -8.17 52.66 -10.76 54.87 C-12.52 56.37 -14.28 57.87 -16.04 59.37 C-16.64 59.88 -17.25 60.4 -17.87 60.93 C-21.61 64.14 -25.28 67.41 -28.91 70.74 C-32.36 73.91 -35.88 76.94 -39.54 79.87 C-44.59 83.94 -49.3 88.31 -54.03 92.75 C-58.34 96.79 -62.82 100.54 -67.43 104.24 C-71.86 107.91 -76.03 111.86 -80.24 115.78 C-85.48 120.66 -90.92 125.3 -96.36 129.96 C-97.59 131.02 -98.83 132.07 -100.06 133.13 C-102.67 135.37 -105.28 137.6 -107.9 139.81 C-108.63 140.43 -109.35 141.04 -110.1 141.68 C-110.71 142.2 -111.33 142.72 -111.96 143.25 C-113.45 144.49 -113.45 144.49 -113.22 146.55 C-111.69 147.93 -110.09 149.23 -108.47 150.49 C-104.18 153.92 -100.06 157.45 -96.04 161.18 C-95.53 161.65 -95.02 162.12 -94.49 162.61 C-93.99 163.07 -93.5 163.53 -92.98 164 C-88.41 168.23 -83.71 172.29 -78.97 176.33 C-72.73 181.67 -66.52 187.04 -60.43 192.55 C-56.02 196.55 -51.53 200.44 -47 204.3 C-41.44 209.05 -35.91 213.8 -30.54 218.74 C-27.04 221.95 -23.48 225.02 -19.79 227.99 C-15.19 231.7 -10.82 235.58 -6.51 239.6 C-3.67 242.25 -0.78 244.77 2.21 247.24 C7.02 251.39 11.45 257.24 12.09 263.68 C12.37 272.32 11.88 278.91 5.78 285.55 C-2.26 292.22 -8.94 293.17 -19.22 292.55 C-26.18 291.56 -30.45 286.92 -35.38 282.22 C-38.01 279.75 -40.71 277.49 -43.54 275.24 C-48.59 271.17 -53.3 266.8 -58.03 262.35 C-62.34 258.31 -66.83 254.56 -71.45 250.86 C-74.65 248.2 -77.69 245.4 -80.72 242.55 C-84.62 238.91 -88.56 235.4 -92.72 232.05 C-96.89 228.71 -100.83 225.2 -104.72 221.55 C-109.48 217.1 -114.39 212.92 -119.48 208.83 C-122.49 206.34 -125.36 203.72 -128.22 201.05 C-131.96 197.58 -135.75 194.25 -139.72 191.05 C-144.24 187.42 -148.5 183.6 -152.73 179.65 C-156.07 176.55 -159.52 173.68 -163.1 170.87 C-170.22 165.11 -176.37 158.23 -177.57 148.8 C-178.01 139.87 -175.83 133.67 -169.95 126.96 C-167.44 124.4 -164.87 121.96 -162.22 119.55 C-161.58 118.97 -160.95 118.39 -160.29 117.79 C-158.29 116.02 -156.26 114.28 -154.22 112.55 C-151.97 110.64 -149.72 108.72 -147.47 106.8 C-146.87 106.29 -146.27 105.78 -145.64 105.25 C-141.7 101.86 -137.84 98.4 -134.04 94.87 C-130.41 91.5 -126.71 88.28 -122.85 85.18 C-117.12 80.57 -111.8 75.59 -106.45 70.56 C-103.4 67.71 -100.29 64.94 -97.13 62.22 C-94.86 60.24 -92.64 58.21 -90.41 56.18 C-86.99 53.09 -83.5 50.13 -79.91 47.24 C-74.45 42.83 -69.33 38.11 -64.2 33.32 C-60.62 29.98 -56.94 26.75 -53.22 23.55 C-51.42 22 -49.63 20.45 -47.83 18.89 C-46.51 17.75 -45.19 16.61 -43.87 15.47 C-40.1 12.22 -36.42 8.89 -32.79 5.49 C-22.54 -3.82 -12.56 -5.61 0 0 Z" fill="#FCFDFD" transform="scale(0.5) translate(241.57,367.61)"/>
|
|
14
|
+
|
|
15
|
+
<!-- Cubo central 3D isométrico con trazo blanco y fondo transparente -->
|
|
16
|
+
<path d="M256 166 L334 211 L334 301 L256 346 L178 301 L178 211 Z" stroke="#FCFDFD" stroke-width="15" stroke-linejoin="round" fill="none"/>
|
|
17
|
+
<path d="M256 256 L256 346" stroke="#FCFDFD" stroke-width="15" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<path d="M256 256 L334 211" stroke="#FCFDFD" stroke-width="15" stroke-linecap="round" stroke-linejoin="round"/>
|
|
19
|
+
<path d="M256 256 L178 211" stroke="#FCFDFD" stroke-width="15" stroke-linecap="round" stroke-linejoin="round"/>
|
|
20
|
+
|
|
21
|
+
<!-- Llave derecha > (Glifo original Aleric) -->
|
|
22
|
+
<path d="M0 0 C5.02 2.26 8.88 6.53 12.81 10.3 C15.51 12.88 18.33 15.24 21.25 17.56 C26.98 22.17 32.31 27.17 37.67 32.2 C41.33 35.62 45.07 38.92 48.88 42.19 C56.82 49.03 64.73 55.9 72.46 62.99 C75.23 65.51 78.04 67.97 80.86 70.42 C83.16 72.44 85.42 74.5 87.69 76.56 C91.09 79.63 94.55 82.57 98.12 85.44 C103.2 89.54 107.94 93.93 112.69 98.4 C116.09 101.58 119.54 104.6 123.19 107.5 C128.23 111.55 132.97 115.89 137.69 120.31 C138.41 120.98 139.12 121.65 139.86 122.34 C153.28 135.02 153.28 135.02 154.25 143.39 C154.44 153.39 152.72 160.4 145.75 167.75 C141.97 171.25 137.91 174.44 133.9 177.67 C130.62 180.4 127.49 183.27 124.38 186.19 C119.64 190.63 114.75 194.78 109.69 198.84 C106.48 201.52 103.42 204.33 100.38 207.19 C95.61 211.65 90.71 215.83 85.62 219.91 C82.61 222.41 79.74 225.03 76.88 227.69 C73.17 231.14 69.39 234.45 65.44 237.62 C60.66 241.47 56.18 245.56 51.71 249.75 C47.52 253.65 43.15 257.26 38.69 260.84 C35.48 263.52 32.42 266.33 29.38 269.19 C24.53 273.72 19.56 278.01 14.37 282.15 C12.04 284.05 9.84 286.03 7.62 288.06 C0.54 294.18 -5.24 294.81 -14.53 294.59 C-22.36 293.71 -26.88 289.07 -31.71 283.14 C-35.99 277.21 -35.93 270.24 -35.12 263.19 C-31.89 250.63 -18.44 242.15 -8.87 234.46 C-5.86 231.97 -2.99 229.35 -0.12 226.69 C3.58 223.24 7.36 219.92 11.31 216.75 C16.09 212.91 20.57 208.82 25.04 204.63 C28.39 201.51 31.81 198.55 35.38 195.69 C40.78 191.35 45.82 186.68 50.89 181.96 C55.52 177.65 60.31 173.52 65.12 169.41 C66.33 168.38 67.54 167.35 68.75 166.31 C69.35 165.8 69.96 165.28 70.58 164.75 C75.05 160.92 79.45 157.01 83.79 153.03 C85.75 151.3 87.76 149.72 89.88 148.19 C88.31 144.22 85.55 141.77 82.44 139 C81.91 138.52 81.37 138.04 80.83 137.54 C76.45 133.62 71.9 129.92 67.32 126.23 C64.61 123.97 62.19 121.53 59.73 118.98 C57.49 116.82 55.12 114.89 52.69 112.94 C47.47 108.74 42.55 104.29 37.64 99.74 C33.08 95.53 28.38 91.47 23.66 87.45 C17.12 81.86 10.65 76.22 4.31 70.41 C-0.75 65.79 -5.95 61.33 -11.17 56.88 C-13.59 54.81 -16.01 52.73 -18.42 50.64 C-19.98 49.32 -21.54 48 -23.11 46.7 C-30.03 40.78 -34.48 35 -35.36 25.67 C-35.6 16.96 -33.72 11.71 -27.75 5.38 C-20.35 -2.01 -9.81 -2.74 0 0 Z" fill="#FCFDFD" transform="scale(0.5) translate(805.75,364.74)"/>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|