@grapadigital/shared-app-modules 0.0.70 → 0.0.72

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/pages.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as i, c as a, B as m } from "./chuncks/hover-card.m3BxHMUz.js";
1
+ import { a as i, c as a, B as m } from "./chuncks/chart.4XAWHpo6.js";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { useNavigate as d } from "react-router-dom";
package/dist/shadcn.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import { AllowInDimension } from 'recharts/types/util/types';
3
+ import { AnimationDuration } from 'recharts/types/util/types';
4
+ import { AnimationTiming } from 'recharts/types/util/types';
5
+ import { CartesianViewBox } from 'recharts/types/util/types';
2
6
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
7
  import { ClassProp } from 'class-variance-authority/types';
4
8
  import { ClassValue } from 'clsx';
9
+ import { ContentType } from 'recharts/types/component/Tooltip';
10
+ import { Coordinate } from 'recharts/types/util/types';
5
11
  import { DayButton } from 'react-day-picker';
6
12
  import { DayPicker } from 'react-day-picker';
7
13
  import { DialogCloseProps } from '@radix-ui/react-dialog';
@@ -16,14 +22,19 @@ import { Drawer as Drawer_2 } from 'vaul';
16
22
  import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
17
23
  import { JSX } from 'react/jsx-runtime';
18
24
  import * as LabelPrimitive from '@radix-ui/react-label';
25
+ import { NameType } from 'recharts/types/component/DefaultTooltipContent';
26
+ import { Payload } from 'recharts/types/component/DefaultTooltipContent';
19
27
  import * as PopoverPrimitive from '@radix-ui/react-popover';
20
28
  import { Portal } from 'vaul';
21
29
  import * as ProgressPrimitive from '@radix-ui/react-progress';
22
30
  import * as React_2 from 'react';
31
+ import * as RechartsPrimitive from 'recharts';
23
32
  import * as SelectPrimitive from '@radix-ui/react-select';
24
33
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
25
34
  import * as TabsPrimitive from '@radix-ui/react-tabs';
26
35
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
36
+ import { UniqueOption } from 'recharts/types/util/payload/getUniqPayload';
37
+ import { ValueType } from 'recharts/types/component/DefaultTooltipContent';
27
38
  import { VariantProps } from 'class-variance-authority';
28
39
 
29
40
  export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes<HTMLDivElement>>;
@@ -87,6 +98,68 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
87
98
 
88
99
  export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
89
100
 
101
+ export declare type ChartConfig = {
102
+ [k in string]: {
103
+ label?: React_2.ReactNode;
104
+ icon?: React_2.ComponentType;
105
+ } & ({
106
+ color?: string;
107
+ theme?: never;
108
+ } | {
109
+ color?: never;
110
+ theme: Record<keyof typeof THEMES, string>;
111
+ });
112
+ };
113
+
114
+ export declare const ChartContainer: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
115
+ config: ChartConfig;
116
+ children: React_2.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
117
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
118
+
119
+ export declare const ChartLegend: typeof RechartsPrimitive.Legend;
120
+
121
+ export declare const ChartLegendContent: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
122
+ hideIcon?: boolean;
123
+ nameKey?: string;
124
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
125
+
126
+ export declare const ChartStyle: ({ id, config }: {
127
+ id: string;
128
+ config: ChartConfig;
129
+ }) => JSX.Element | null;
130
+
131
+ export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
132
+
133
+ export declare const ChartTooltipContent: React_2.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<ValueType, NameType> & {
134
+ accessibilityLayer?: boolean;
135
+ active?: boolean | undefined;
136
+ includeHidden?: boolean | undefined;
137
+ allowEscapeViewBox?: AllowInDimension;
138
+ animationDuration?: AnimationDuration;
139
+ animationEasing?: AnimationTiming;
140
+ content?: ContentType<ValueType, NameType> | undefined;
141
+ coordinate?: Partial<Coordinate>;
142
+ cursor?: boolean | React_2.ReactElement | React_2.SVGProps<SVGElement>;
143
+ filterNull?: boolean;
144
+ defaultIndex?: number;
145
+ isAnimationActive?: boolean;
146
+ offset?: number;
147
+ payloadUniqBy?: UniqueOption<Payload<ValueType, NameType>> | undefined;
148
+ position?: Partial<Coordinate>;
149
+ reverseDirection?: AllowInDimension;
150
+ shared?: boolean;
151
+ trigger?: "hover" | "click";
152
+ useTranslate3d?: boolean;
153
+ viewBox?: CartesianViewBox;
154
+ wrapperStyle?: React_2.CSSProperties;
155
+ } & React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
156
+ hideLabel?: boolean;
157
+ hideIndicator?: boolean;
158
+ indicator?: "line" | "dot" | "dashed";
159
+ nameKey?: string;
160
+ labelKey?: string;
161
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
162
+
90
163
  export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
91
164
 
92
165
  export declare function cn(...inputs: ClassValue[]): string;
@@ -372,6 +445,11 @@ export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPri
372
445
 
373
446
  export declare const Textarea: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React_2.RefAttributes<HTMLTextAreaElement>>;
374
447
 
448
+ declare const THEMES: {
449
+ readonly light: "";
450
+ readonly dark: ".dark";
451
+ };
452
+
375
453
  export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
376
454
 
377
455
  export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;