@grupor5/raya 0.1.5 → 0.2.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 +150 -2
- package/dist/index.d.mts +80 -43
- package/dist/index.d.ts +80 -43
- package/dist/index.js +578 -1526
- package/dist/index.mjs +440 -568
- package/dist/tailwind.css +1 -1
- package/package.json +3 -3
- package/dist/chunk-EIKJ5CQR.mjs +0 -879
- package/dist/icons/index.d.mts +0 -2
- package/dist/icons/index.d.ts +0 -2
- package/dist/icons/index.js +0 -888
- package/dist/icons/index.mjs +0 -54
- package/dist/index-nDOtSfV9.d.mts +0 -188
- package/dist/index-nDOtSfV9.d.ts +0 -188
package/README.md
CHANGED
|
@@ -168,12 +168,14 @@ Based on 4px base unit with carefully crafted multipliers:
|
|
|
168
168
|
|
|
169
169
|
### Instalación
|
|
170
170
|
|
|
171
|
-
Para integrar Raya en tu proyecto, instala
|
|
171
|
+
Para integrar Raya en tu proyecto, instala los paquetes desde npm:
|
|
172
172
|
|
|
173
173
|
```bash
|
|
174
|
-
npm install @grupor5/raya
|
|
174
|
+
npm install @grupor5/raya @grupor5/raya-icons
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
+
**Nota importante**: A partir de la versión 0.2.0, los iconos se han separado en un paquete independiente (`@grupor5/raya-icons`) para optimizar el bundle size y mejorar el tree-shaking.
|
|
178
|
+
|
|
177
179
|
### Configuración de Tailwind CSS
|
|
178
180
|
|
|
179
181
|
Para configurar Tailwind CSS, modifica tu archivo `tailwind.config.js`:
|
|
@@ -197,6 +199,28 @@ Finalmente, importa los estilos base de Raya en tu archivo CSS principal (por ej
|
|
|
197
199
|
|
|
198
200
|
Esto asegura que todas las variables CSS y estilos base del sistema de diseño estén disponibles en tu aplicación.
|
|
199
201
|
|
|
202
|
+
### Uso de Iconos
|
|
203
|
+
|
|
204
|
+
Los iconos ahora se importan desde el paquete separado `@grupor5/raya-icons`:
|
|
205
|
+
|
|
206
|
+
```tsx
|
|
207
|
+
// Importación individual (recomendado para tree-shaking óptimo)
|
|
208
|
+
import { AddIcon } from '@grupor5/raya-icons/icons/AddIcon';
|
|
209
|
+
import { EditIcon } from '@grupor5/raya-icons/icons/EditIcon';
|
|
210
|
+
|
|
211
|
+
// Importación por barrel (solo iconos comunes)
|
|
212
|
+
import { AddIcon, EditIcon, CheckIcon } from '@grupor5/raya-icons';
|
|
213
|
+
|
|
214
|
+
function MyComponent() {
|
|
215
|
+
return (
|
|
216
|
+
<div>
|
|
217
|
+
<AddIcon size={24} color="blue" />
|
|
218
|
+
<EditIcon size={20} />
|
|
219
|
+
</div>
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
200
224
|
## 🧩 Components (Coming Soon)
|
|
201
225
|
|
|
202
226
|
React components built on shadcn/ui foundation:
|
|
@@ -260,7 +284,131 @@ The documentation is organized into four main categories:
|
|
|
260
284
|
- [Colors Validation Report](./docs/testing/colors-validation-report.md)
|
|
261
285
|
- [Icons Testing Report](./docs/testing/icons-testing-report.md)
|
|
262
286
|
|
|
287
|
+
## 🚀 Deployment
|
|
288
|
+
|
|
289
|
+
### Publishing Packages
|
|
290
|
+
|
|
291
|
+
Este proyecto consta de dos paquetes npm que deben ser publicados por separado:
|
|
292
|
+
|
|
293
|
+
1. **@grupor5/raya-icons**: Biblioteca de iconos independiente
|
|
294
|
+
2. **@grupor5/raya**: Sistema de diseño principal (depende de raya-icons)
|
|
295
|
+
|
|
296
|
+
#### 1. Publicar Iconos (@grupor5/raya-icons)
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
# Navegar al directorio de iconos
|
|
300
|
+
cd raya-icons
|
|
301
|
+
|
|
302
|
+
# Verificar que todos los iconos estén compilados
|
|
303
|
+
npm run build
|
|
304
|
+
|
|
305
|
+
# Aumentar versión (patch, minor, o major)
|
|
306
|
+
npm version patch
|
|
307
|
+
|
|
308
|
+
# Publicar a npm
|
|
309
|
+
npm publish
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
#### 2. Publicar Sistema de Diseño (@grupor5/raya)
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
# Navegar al directorio del sistema de diseño
|
|
316
|
+
cd design_system
|
|
317
|
+
|
|
318
|
+
# Actualizar la versión de dependencia de raya-icons en package.json si es necesario
|
|
319
|
+
# "dependencies": {
|
|
320
|
+
# "@grupor5/raya-icons": "^X.X.X"
|
|
321
|
+
# }
|
|
322
|
+
|
|
323
|
+
# Compilar el paquete
|
|
324
|
+
npm run build
|
|
325
|
+
|
|
326
|
+
# Aumentar versión
|
|
327
|
+
npm version patch
|
|
328
|
+
|
|
329
|
+
# Publicar a npm
|
|
330
|
+
npm publish
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
#### Script de Despliegue Automatizado
|
|
334
|
+
|
|
335
|
+
Para facilitar el proceso, puedes usar el script `deploy.sh` desde la raíz del proyecto:
|
|
336
|
+
|
|
337
|
+
```bash
|
|
338
|
+
# Desde la raíz del proyecto
|
|
339
|
+
./deploy.sh
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
Este script:
|
|
343
|
+
1. Publica automáticamente `@grupor5/raya-icons` con versión patch
|
|
344
|
+
2. Actualiza la dependencia en el sistema de diseño
|
|
345
|
+
3. Publica `@grupor5/raya` con versión patch
|
|
346
|
+
4. Confirma las publicaciones
|
|
347
|
+
|
|
348
|
+
#### Versiones y Compatibilidad
|
|
349
|
+
|
|
350
|
+
- **Versiones patch** (X.X.+1): Correcciones de bugs, nuevos iconos
|
|
351
|
+
- **Versiones minor** (X.+1.0): Nuevas funcionalidades, componentes adicionales
|
|
352
|
+
- **Versiones major** (+1.0.0): Cambios breaking, nueva arquitectura
|
|
353
|
+
|
|
354
|
+
**Importante**: Siempre publicar primero `@grupor5/raya-icons` antes que `@grupor5/raya` para mantener la compatibilidad de dependencias.
|
|
355
|
+
|
|
263
356
|
## 🔧 Development
|
|
264
357
|
|
|
358
|
+
### Prerequisites
|
|
359
|
+
|
|
360
|
+
```bash
|
|
361
|
+
# Instalar dependencias en ambos proyectos
|
|
362
|
+
cd raya-icons && npm install
|
|
363
|
+
cd ../design_system && npm install
|
|
364
|
+
```
|
|
365
|
+
|
|
265
366
|
### Running Storybook
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
# Desde el directorio design_system
|
|
370
|
+
npm run storybook
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Esto iniciará Storybook en `http://localhost:6006` donde podrás ver todos los componentes, iconos y ejemplos de uso.
|
|
374
|
+
|
|
375
|
+
### Building Packages
|
|
376
|
+
|
|
377
|
+
#### Compilar Iconos
|
|
378
|
+
```bash
|
|
379
|
+
cd raya-icons
|
|
380
|
+
npm run build
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
#### Compilar Sistema de Diseño
|
|
384
|
+
```bash
|
|
385
|
+
cd design_system
|
|
386
|
+
npm run build
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### Testing
|
|
390
|
+
|
|
391
|
+
```bash
|
|
392
|
+
# Tests en design_system
|
|
393
|
+
cd design_system
|
|
394
|
+
npm test
|
|
395
|
+
|
|
396
|
+
# Verificar iconos
|
|
397
|
+
cd ../raya-icons
|
|
398
|
+
npm run test
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Estructura de Desarrollo
|
|
402
|
+
|
|
403
|
+
```
|
|
404
|
+
raya/
|
|
405
|
+
├── raya-icons/ # Paquete de iconos independiente
|
|
406
|
+
│ ├── src/icons/ # Componentes de iconos TSX
|
|
407
|
+
│ ├── scripts/ # Scripts de generación
|
|
408
|
+
│ └── package.json # @grupor5/raya-icons
|
|
409
|
+
├── design_system/ # Sistema de diseño principal
|
|
410
|
+
│ ├── src/ # Componentes y tokens
|
|
411
|
+
│ ├── stories/ # Historias de Storybook
|
|
412
|
+
│ └── package.json # @grupor5/raya
|
|
413
|
+
└── deploy.sh # Script de despliegue automatizado
|
|
266
414
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -10,8 +10,16 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
10
10
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
11
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
12
12
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
|
-
import
|
|
14
|
-
|
|
13
|
+
import * as recharts_types_util_useElementOffset from 'recharts/types/util/useElementOffset';
|
|
14
|
+
import * as recharts_types_state_cartesianAxisSlice from 'recharts/types/state/cartesianAxisSlice';
|
|
15
|
+
import * as recharts_types_chart_types from 'recharts/types/chart/types';
|
|
16
|
+
import * as recharts_types_util_payload_getUniqPayload from 'recharts/types/util/payload/getUniqPayload';
|
|
17
|
+
import * as recharts_types_state_tooltipSlice from 'recharts/types/state/tooltipSlice';
|
|
18
|
+
import * as recharts_types_component_Cursor from 'recharts/types/component/Cursor';
|
|
19
|
+
import * as recharts_types_component_Tooltip from 'recharts/types/component/Tooltip';
|
|
20
|
+
import * as recharts_types_util_types from 'recharts/types/util/types';
|
|
21
|
+
import * as recharts_types_component_DefaultTooltipContent from 'recharts/types/component/DefaultTooltipContent';
|
|
22
|
+
import * as RechartsPrimitive from 'recharts';
|
|
15
23
|
|
|
16
24
|
declare const colors: {
|
|
17
25
|
primary: {
|
|
@@ -1227,46 +1235,71 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<Omit<Accordi
|
|
|
1227
1235
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1228
1236
|
declare const Accordion: React$1.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & React$1.RefAttributes<HTMLDivElement>>;
|
|
1229
1237
|
|
|
1230
|
-
declare const
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
color
|
|
1240
|
-
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1238
|
+
declare const THEMES: {
|
|
1239
|
+
readonly light: "";
|
|
1240
|
+
readonly dark: ".dark";
|
|
1241
|
+
};
|
|
1242
|
+
type ChartConfig = {
|
|
1243
|
+
[k in string]: {
|
|
1244
|
+
label?: React$1.ReactNode;
|
|
1245
|
+
icon?: React$1.ComponentType;
|
|
1246
|
+
} & ({
|
|
1247
|
+
color?: string;
|
|
1248
|
+
theme?: never;
|
|
1249
|
+
} | {
|
|
1250
|
+
color?: never;
|
|
1251
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
declare const ChartContainer: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1255
|
+
config: ChartConfig;
|
|
1256
|
+
children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
1257
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1258
|
+
declare const ChartStyle: ({ id, config }: {
|
|
1259
|
+
id: string;
|
|
1260
|
+
config: ChartConfig;
|
|
1261
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
1262
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
1263
|
+
declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Omit<RechartsPrimitive.DefaultTooltipContentProps<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType>, "viewBox" | "active" | "label" | "payload" | "coordinate" | "accessibilityLayer"> & {
|
|
1264
|
+
active?: boolean;
|
|
1265
|
+
includeHidden?: boolean | undefined;
|
|
1266
|
+
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension;
|
|
1267
|
+
animationDuration?: recharts_types_util_types.AnimationDuration;
|
|
1268
|
+
animationEasing?: recharts_types_util_types.AnimationTiming;
|
|
1269
|
+
content?: recharts_types_component_Tooltip.ContentType<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
|
|
1270
|
+
cursor?: recharts_types_component_Cursor.CursorDefinition;
|
|
1271
|
+
filterNull?: boolean;
|
|
1272
|
+
defaultIndex?: number | recharts_types_state_tooltipSlice.TooltipIndex;
|
|
1273
|
+
isAnimationActive?: boolean;
|
|
1274
|
+
offset?: number;
|
|
1275
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_component_DefaultTooltipContent.Payload<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType>> | undefined;
|
|
1276
|
+
portal?: HTMLElement | null;
|
|
1277
|
+
position?: Partial<recharts_types_util_types.Coordinate>;
|
|
1278
|
+
reverseDirection?: recharts_types_util_types.AllowInDimension;
|
|
1279
|
+
shared?: boolean;
|
|
1280
|
+
trigger?: recharts_types_chart_types.TooltipTrigger;
|
|
1281
|
+
useTranslate3d?: boolean;
|
|
1282
|
+
wrapperStyle?: React$1.CSSProperties;
|
|
1283
|
+
axisId?: recharts_types_state_cartesianAxisSlice.AxisId;
|
|
1284
|
+
} & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1285
|
+
hideLabel?: boolean;
|
|
1286
|
+
hideIndicator?: boolean;
|
|
1287
|
+
indicator?: "line" | "dot" | "dashed";
|
|
1288
|
+
nameKey?: string;
|
|
1289
|
+
labelKey?: string;
|
|
1290
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1291
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
1292
|
+
declare const ChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Omit<RechartsPrimitive.DefaultLegendContentProps, "ref" | "payload"> & {
|
|
1293
|
+
wrapperStyle?: React$1.CSSProperties;
|
|
1294
|
+
width?: number;
|
|
1295
|
+
height?: number;
|
|
1296
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<RechartsPrimitive.LegendPayload>;
|
|
1297
|
+
onBBoxUpdate?: (box: recharts_types_util_useElementOffset.ElementOffset | null) => void;
|
|
1298
|
+
portal?: HTMLElement | null;
|
|
1299
|
+
} & {
|
|
1300
|
+
hideIcon?: boolean;
|
|
1301
|
+
nameKey?: string;
|
|
1302
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1270
1303
|
|
|
1271
1304
|
interface ModalProps {
|
|
1272
1305
|
open: boolean;
|
|
@@ -1287,5 +1320,9 @@ declare function useModal(initialOpen?: boolean): {
|
|
|
1287
1320
|
};
|
|
1288
1321
|
|
|
1289
1322
|
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1323
|
+
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
1324
|
+
size?: number | string;
|
|
1325
|
+
color?: string;
|
|
1326
|
+
}
|
|
1290
1327
|
|
|
1291
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AuthLayout, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle,
|
|
1328
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AuthLayout, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Dropdown, type DropdownProps, Form, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, type IconProps, Input, Label, Modal, Paragraph, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type Size, type SpacingToken, Step, StepContent, StepDescription, StepLabel, Stepper, type StepperAPI, type StrokeColorToken, type StrokeDirection, type StrokeToken, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Textarea, type TextareaProps, ThemeProvider, Title, Typography, type TypographyProps, badgeTokens, badgeVariants, classNames, cn, colors, componentStrokes, createStroke, fontFamily, fontSize, fontWeight, generateSpacingCSS, generateStrokesCSS, generateTypographyCSS, getSpacing, getSpacingPx, getStroke, getStrokeColor, letterSpacing, lineHeight, presets, responsiveStrokes, spacing, spacingPx, spacingStyles, stroke, strokeColors, strokeDirections, strokeStyles, strokeTransitions, tagTokens, tailwindSpacing, tailwindStrokes, typography, typographyVariants, typographyVars, useModal, useStepper, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,16 @@ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
|
10
10
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
11
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
12
12
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
|
-
import
|
|
14
|
-
|
|
13
|
+
import * as recharts_types_util_useElementOffset from 'recharts/types/util/useElementOffset';
|
|
14
|
+
import * as recharts_types_state_cartesianAxisSlice from 'recharts/types/state/cartesianAxisSlice';
|
|
15
|
+
import * as recharts_types_chart_types from 'recharts/types/chart/types';
|
|
16
|
+
import * as recharts_types_util_payload_getUniqPayload from 'recharts/types/util/payload/getUniqPayload';
|
|
17
|
+
import * as recharts_types_state_tooltipSlice from 'recharts/types/state/tooltipSlice';
|
|
18
|
+
import * as recharts_types_component_Cursor from 'recharts/types/component/Cursor';
|
|
19
|
+
import * as recharts_types_component_Tooltip from 'recharts/types/component/Tooltip';
|
|
20
|
+
import * as recharts_types_util_types from 'recharts/types/util/types';
|
|
21
|
+
import * as recharts_types_component_DefaultTooltipContent from 'recharts/types/component/DefaultTooltipContent';
|
|
22
|
+
import * as RechartsPrimitive from 'recharts';
|
|
15
23
|
|
|
16
24
|
declare const colors: {
|
|
17
25
|
primary: {
|
|
@@ -1227,46 +1235,71 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<Omit<Accordi
|
|
|
1227
1235
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1228
1236
|
declare const Accordion: React$1.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & React$1.RefAttributes<HTMLDivElement>>;
|
|
1229
1237
|
|
|
1230
|
-
declare const
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
color
|
|
1240
|
-
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1238
|
+
declare const THEMES: {
|
|
1239
|
+
readonly light: "";
|
|
1240
|
+
readonly dark: ".dark";
|
|
1241
|
+
};
|
|
1242
|
+
type ChartConfig = {
|
|
1243
|
+
[k in string]: {
|
|
1244
|
+
label?: React$1.ReactNode;
|
|
1245
|
+
icon?: React$1.ComponentType;
|
|
1246
|
+
} & ({
|
|
1247
|
+
color?: string;
|
|
1248
|
+
theme?: never;
|
|
1249
|
+
} | {
|
|
1250
|
+
color?: never;
|
|
1251
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
1252
|
+
});
|
|
1253
|
+
};
|
|
1254
|
+
declare const ChartContainer: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1255
|
+
config: ChartConfig;
|
|
1256
|
+
children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
1257
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1258
|
+
declare const ChartStyle: ({ id, config }: {
|
|
1259
|
+
id: string;
|
|
1260
|
+
config: ChartConfig;
|
|
1261
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
1262
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
1263
|
+
declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<Omit<Omit<RechartsPrimitive.DefaultTooltipContentProps<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType>, "viewBox" | "active" | "label" | "payload" | "coordinate" | "accessibilityLayer"> & {
|
|
1264
|
+
active?: boolean;
|
|
1265
|
+
includeHidden?: boolean | undefined;
|
|
1266
|
+
allowEscapeViewBox?: recharts_types_util_types.AllowInDimension;
|
|
1267
|
+
animationDuration?: recharts_types_util_types.AnimationDuration;
|
|
1268
|
+
animationEasing?: recharts_types_util_types.AnimationTiming;
|
|
1269
|
+
content?: recharts_types_component_Tooltip.ContentType<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType> | undefined;
|
|
1270
|
+
cursor?: recharts_types_component_Cursor.CursorDefinition;
|
|
1271
|
+
filterNull?: boolean;
|
|
1272
|
+
defaultIndex?: number | recharts_types_state_tooltipSlice.TooltipIndex;
|
|
1273
|
+
isAnimationActive?: boolean;
|
|
1274
|
+
offset?: number;
|
|
1275
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<recharts_types_component_DefaultTooltipContent.Payload<recharts_types_component_DefaultTooltipContent.ValueType, recharts_types_component_DefaultTooltipContent.NameType>> | undefined;
|
|
1276
|
+
portal?: HTMLElement | null;
|
|
1277
|
+
position?: Partial<recharts_types_util_types.Coordinate>;
|
|
1278
|
+
reverseDirection?: recharts_types_util_types.AllowInDimension;
|
|
1279
|
+
shared?: boolean;
|
|
1280
|
+
trigger?: recharts_types_chart_types.TooltipTrigger;
|
|
1281
|
+
useTranslate3d?: boolean;
|
|
1282
|
+
wrapperStyle?: React$1.CSSProperties;
|
|
1283
|
+
axisId?: recharts_types_state_cartesianAxisSlice.AxisId;
|
|
1284
|
+
} & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1285
|
+
hideLabel?: boolean;
|
|
1286
|
+
hideIndicator?: boolean;
|
|
1287
|
+
indicator?: "line" | "dot" | "dashed";
|
|
1288
|
+
nameKey?: string;
|
|
1289
|
+
labelKey?: string;
|
|
1290
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1291
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
1292
|
+
declare const ChartLegendContent: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & Omit<RechartsPrimitive.DefaultLegendContentProps, "ref" | "payload"> & {
|
|
1293
|
+
wrapperStyle?: React$1.CSSProperties;
|
|
1294
|
+
width?: number;
|
|
1295
|
+
height?: number;
|
|
1296
|
+
payloadUniqBy?: recharts_types_util_payload_getUniqPayload.UniqueOption<RechartsPrimitive.LegendPayload>;
|
|
1297
|
+
onBBoxUpdate?: (box: recharts_types_util_useElementOffset.ElementOffset | null) => void;
|
|
1298
|
+
portal?: HTMLElement | null;
|
|
1299
|
+
} & {
|
|
1300
|
+
hideIcon?: boolean;
|
|
1301
|
+
nameKey?: string;
|
|
1302
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1270
1303
|
|
|
1271
1304
|
interface ModalProps {
|
|
1272
1305
|
open: boolean;
|
|
@@ -1287,5 +1320,9 @@ declare function useModal(initialOpen?: boolean): {
|
|
|
1287
1320
|
};
|
|
1288
1321
|
|
|
1289
1322
|
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1323
|
+
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
1324
|
+
size?: number | string;
|
|
1325
|
+
color?: string;
|
|
1326
|
+
}
|
|
1290
1327
|
|
|
1291
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AuthLayout, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle,
|
|
1328
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AuthLayout, Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Dropdown, type DropdownProps, Form, FormField, type FormFieldProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, type IconProps, Input, Label, Modal, Paragraph, ProgressBar, type ProgressBarProps, RadioGroup, RadioGroupItem, type Size, type SpacingToken, Step, StepContent, StepDescription, StepLabel, Stepper, type StepperAPI, type StrokeColorToken, type StrokeDirection, type StrokeToken, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Textarea, type TextareaProps, ThemeProvider, Title, Typography, type TypographyProps, badgeTokens, badgeVariants, classNames, cn, colors, componentStrokes, createStroke, fontFamily, fontSize, fontWeight, generateSpacingCSS, generateStrokesCSS, generateTypographyCSS, getSpacing, getSpacingPx, getStroke, getStrokeColor, letterSpacing, lineHeight, presets, responsiveStrokes, spacing, spacingPx, spacingStyles, stroke, strokeColors, strokeDirections, strokeStyles, strokeTransitions, tagTokens, tailwindSpacing, tailwindStrokes, typography, typographyVariants, typographyVars, useModal, useStepper, useTheme };
|