@aiready/components 0.11.19 → 0.12.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/button.d.ts +1 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +154 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/icons.tsx +155 -0
- package/src/utils/__tests__/formatters.test.ts +51 -0
- package/src/utils/__tests__/score.test.ts +40 -0
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "
|
|
6
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "glow" | "glass" | "accent" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "icon" | "xs" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
package/dist/index.d.ts
CHANGED
|
@@ -91,6 +91,27 @@ declare function SaveIcon({ className, ...props }: {
|
|
|
91
91
|
declare function RefreshCwIcon({ className, ...props }: {
|
|
92
92
|
className?: string;
|
|
93
93
|
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
94
|
+
declare function WalletIcon({ className, ...props }: {
|
|
95
|
+
className?: string;
|
|
96
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
97
|
+
declare function ClockIcon({ className, ...props }: {
|
|
98
|
+
className?: string;
|
|
99
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
100
|
+
declare function ZapIcon({ className, ...props }: {
|
|
101
|
+
className?: string;
|
|
102
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare function HammerIcon({ className, ...props }: {
|
|
104
|
+
className?: string;
|
|
105
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
106
|
+
declare function ArrowRightIcon({ className, ...props }: {
|
|
107
|
+
className?: string;
|
|
108
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
109
|
+
declare function ShieldCheckIcon({ className, ...props }: {
|
|
110
|
+
className?: string;
|
|
111
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
112
|
+
declare function AlertTriangleIcon({ className, ...props }: {
|
|
113
|
+
className?: string;
|
|
114
|
+
} & React__default.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
94
115
|
|
|
95
116
|
interface CodeBlockProps {
|
|
96
117
|
children: React__default.ReactNode;
|
|
@@ -259,4 +280,4 @@ interface GraphControlsProps {
|
|
|
259
280
|
}
|
|
260
281
|
declare const GraphControls: React__default.FC<GraphControlsProps>;
|
|
261
282
|
|
|
262
|
-
export { AlertCircleIcon, BrainIcon, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, ChartIcon, CodeBlock, type CodeBlockProps, CommandLineIcon, type EffectiveTheme, EmptyState, type EmptyStateProps, ErrorDisplay, type ErrorDisplayProps, FeedbackWidget, type FeedbackWidgetProps, FileIcon, GraphControls, type GraphControlsProps, InfoIcon, InlineCode, LoadingOverlay, type LoadingOverlayProps, LoadingSpinner, type LoadingSpinnerProps, Modal, type ModalProps, type NavItem, PlatformShell, type PlatformShellProps, PlayIcon, RefreshCwIcon, RobotIcon, RocketIcon, SaveIcon, ScoreBar, type ScoreBarProps, ScoreCard, type ScoreCardProps, ScoreCircle, type ScoreCircleProps, type ScoreRating, SettingsIcon, ShieldIcon, TargetIcon, type Team, type TeamMember, TerminalIcon, type Theme, ThemeProvider, TrashIcon, TrendingUpIcon, UploadIcon, type User, getScoreRating, scoreBg, scoreColor, scoreGlow, scoreLabel, useTheme };
|
|
283
|
+
export { AlertCircleIcon, AlertTriangleIcon, ArrowRightIcon, BrainIcon, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, ChartIcon, ClockIcon, CodeBlock, type CodeBlockProps, CommandLineIcon, type EffectiveTheme, EmptyState, type EmptyStateProps, ErrorDisplay, type ErrorDisplayProps, FeedbackWidget, type FeedbackWidgetProps, FileIcon, GraphControls, type GraphControlsProps, HammerIcon, InfoIcon, InlineCode, LoadingOverlay, type LoadingOverlayProps, LoadingSpinner, type LoadingSpinnerProps, Modal, type ModalProps, type NavItem, PlatformShell, type PlatformShellProps, PlayIcon, RefreshCwIcon, RobotIcon, RocketIcon, SaveIcon, ScoreBar, type ScoreBarProps, ScoreCard, type ScoreCardProps, ScoreCircle, type ScoreCircleProps, type ScoreRating, SettingsIcon, ShieldCheckIcon, ShieldIcon, TargetIcon, type Team, type TeamMember, TerminalIcon, type Theme, ThemeProvider, TrashIcon, TrendingUpIcon, UploadIcon, type User, WalletIcon, ZapIcon, getScoreRating, scoreBg, scoreColor, scoreGlow, scoreLabel, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -655,6 +655,159 @@ function RefreshCwIcon({
|
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
|
+
function WalletIcon({
|
|
659
|
+
className = "w-6 h-6",
|
|
660
|
+
...props
|
|
661
|
+
}) {
|
|
662
|
+
return /* @__PURE__ */ jsxs(
|
|
663
|
+
"svg",
|
|
664
|
+
{
|
|
665
|
+
viewBox: "0 0 24 24",
|
|
666
|
+
fill: "none",
|
|
667
|
+
stroke: "currentColor",
|
|
668
|
+
strokeWidth: "2",
|
|
669
|
+
strokeLinecap: "round",
|
|
670
|
+
strokeLinejoin: "round",
|
|
671
|
+
className,
|
|
672
|
+
...props,
|
|
673
|
+
children: [
|
|
674
|
+
/* @__PURE__ */ jsx("path", { d: "M21 12V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-1" }),
|
|
675
|
+
/* @__PURE__ */ jsx("path", { d: "M16 12h5" }),
|
|
676
|
+
/* @__PURE__ */ jsx("circle", { cx: "16", cy: "12", r: "1" })
|
|
677
|
+
]
|
|
678
|
+
}
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
function ClockIcon({
|
|
682
|
+
className = "w-6 h-6",
|
|
683
|
+
...props
|
|
684
|
+
}) {
|
|
685
|
+
return /* @__PURE__ */ jsxs(
|
|
686
|
+
"svg",
|
|
687
|
+
{
|
|
688
|
+
viewBox: "0 0 24 24",
|
|
689
|
+
fill: "none",
|
|
690
|
+
stroke: "currentColor",
|
|
691
|
+
strokeWidth: "2",
|
|
692
|
+
strokeLinecap: "round",
|
|
693
|
+
strokeLinejoin: "round",
|
|
694
|
+
className,
|
|
695
|
+
...props,
|
|
696
|
+
children: [
|
|
697
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
698
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
function ZapIcon({
|
|
704
|
+
className = "w-6 h-6",
|
|
705
|
+
...props
|
|
706
|
+
}) {
|
|
707
|
+
return /* @__PURE__ */ jsx(
|
|
708
|
+
"svg",
|
|
709
|
+
{
|
|
710
|
+
viewBox: "0 0 24 24",
|
|
711
|
+
fill: "none",
|
|
712
|
+
stroke: "currentColor",
|
|
713
|
+
strokeWidth: "2",
|
|
714
|
+
strokeLinecap: "round",
|
|
715
|
+
strokeLinejoin: "round",
|
|
716
|
+
className,
|
|
717
|
+
...props,
|
|
718
|
+
children: /* @__PURE__ */ jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" })
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
}
|
|
722
|
+
function HammerIcon({
|
|
723
|
+
className = "w-6 h-6",
|
|
724
|
+
...props
|
|
725
|
+
}) {
|
|
726
|
+
return /* @__PURE__ */ jsxs(
|
|
727
|
+
"svg",
|
|
728
|
+
{
|
|
729
|
+
viewBox: "0 0 24 24",
|
|
730
|
+
fill: "none",
|
|
731
|
+
stroke: "currentColor",
|
|
732
|
+
strokeWidth: "2",
|
|
733
|
+
strokeLinecap: "round",
|
|
734
|
+
strokeLinejoin: "round",
|
|
735
|
+
className,
|
|
736
|
+
...props,
|
|
737
|
+
children: [
|
|
738
|
+
/* @__PURE__ */ jsx("path", { d: "M18.42 13.59L7.46 2.63a1 1 0 0 0-1.42 0l-4.7 4.7a1 1 0 0 0 0 1.42L11 18.23l1.07-1.07-1.41-1.41 1.42-1.42 1.41 1.41 1.41-1.41-1.41-1.41 1.42-1.42 1.41 1.41 2-2z" }),
|
|
739
|
+
/* @__PURE__ */ jsx("path", { d: "M13 18l6 6" })
|
|
740
|
+
]
|
|
741
|
+
}
|
|
742
|
+
);
|
|
743
|
+
}
|
|
744
|
+
function ArrowRightIcon({
|
|
745
|
+
className = "w-6 h-6",
|
|
746
|
+
...props
|
|
747
|
+
}) {
|
|
748
|
+
return /* @__PURE__ */ jsxs(
|
|
749
|
+
"svg",
|
|
750
|
+
{
|
|
751
|
+
viewBox: "0 0 24 24",
|
|
752
|
+
fill: "none",
|
|
753
|
+
stroke: "currentColor",
|
|
754
|
+
strokeWidth: "2",
|
|
755
|
+
strokeLinecap: "round",
|
|
756
|
+
strokeLinejoin: "round",
|
|
757
|
+
className,
|
|
758
|
+
...props,
|
|
759
|
+
children: [
|
|
760
|
+
/* @__PURE__ */ jsx("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
|
|
761
|
+
/* @__PURE__ */ jsx("polyline", { points: "12 5 19 12 12 19" })
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
);
|
|
765
|
+
}
|
|
766
|
+
function ShieldCheckIcon({
|
|
767
|
+
className = "w-6 h-6",
|
|
768
|
+
...props
|
|
769
|
+
}) {
|
|
770
|
+
return /* @__PURE__ */ jsxs(
|
|
771
|
+
"svg",
|
|
772
|
+
{
|
|
773
|
+
viewBox: "0 0 24 24",
|
|
774
|
+
fill: "none",
|
|
775
|
+
stroke: "currentColor",
|
|
776
|
+
strokeWidth: "2",
|
|
777
|
+
strokeLinecap: "round",
|
|
778
|
+
strokeLinejoin: "round",
|
|
779
|
+
className,
|
|
780
|
+
...props,
|
|
781
|
+
children: [
|
|
782
|
+
/* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }),
|
|
783
|
+
/* @__PURE__ */ jsx("path", { d: "M9 12l2 2 4-4" })
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
);
|
|
787
|
+
}
|
|
788
|
+
function AlertTriangleIcon({
|
|
789
|
+
className = "w-6 h-6",
|
|
790
|
+
...props
|
|
791
|
+
}) {
|
|
792
|
+
return /* @__PURE__ */ jsxs(
|
|
793
|
+
"svg",
|
|
794
|
+
{
|
|
795
|
+
viewBox: "0 0 24 24",
|
|
796
|
+
fill: "none",
|
|
797
|
+
stroke: "currentColor",
|
|
798
|
+
strokeWidth: "2",
|
|
799
|
+
strokeLinecap: "round",
|
|
800
|
+
strokeLinejoin: "round",
|
|
801
|
+
className,
|
|
802
|
+
...props,
|
|
803
|
+
children: [
|
|
804
|
+
/* @__PURE__ */ jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
805
|
+
/* @__PURE__ */ jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
806
|
+
/* @__PURE__ */ jsx("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
);
|
|
810
|
+
}
|
|
658
811
|
var Container = React2.forwardRef(
|
|
659
812
|
({ className, size = "lg", ...props }, ref) => {
|
|
660
813
|
return /* @__PURE__ */ jsx(
|
|
@@ -3228,6 +3381,6 @@ var GraphControls = ({
|
|
|
3228
3381
|
};
|
|
3229
3382
|
GraphControls.displayName = "GraphControls";
|
|
3230
3383
|
|
|
3231
|
-
export { AlertCircleIcon, Badge, BrainIcon, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartIcon, Checkbox, CodeBlock, CommandLineIcon, Container, EmptyState, ErrorDisplay, FeedbackWidget, FileIcon, ForceDirectedGraph, GlassCard, GlassCardContent, GlassCardHeader, GraphControls, Grid, InfoIcon, InlineCode, Input, Label, LoadingOverlay, LoadingSpinner, Modal, PlatformShell, PlayIcon, RadioGroup, RefreshCwIcon, RobotIcon, RocketIcon, SaveIcon, ScoreBar, ScoreCard, ScoreCircle, Select, Separator, SettingsIcon, ShieldIcon, Stack, Switch, TargetIcon, TerminalIcon, Textarea, ThemeProvider, TrashIcon, TrendingUpIcon, UploadIcon, badgeVariants, buttonVariants, chartColors, cn, domainColors, formatCompactNumber, formatDate, formatDateTime, formatDecimal, formatDuration, formatFileSize, formatMetric, formatNumber, formatPercentage, formatRange, formatRelativeTime, getDomainColor, getScoreRating, getSeverityColor, hexToRgba, scoreBg, scoreColor, scoreGlow, scoreLabel, severityColors, useD3, useD3WithResize, useDebounce, useDrag, useForceSimulation, useTheme };
|
|
3384
|
+
export { AlertCircleIcon, AlertTriangleIcon, ArrowRightIcon, Badge, BrainIcon, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartIcon, Checkbox, ClockIcon, CodeBlock, CommandLineIcon, Container, EmptyState, ErrorDisplay, FeedbackWidget, FileIcon, ForceDirectedGraph, GlassCard, GlassCardContent, GlassCardHeader, GraphControls, Grid, HammerIcon, InfoIcon, InlineCode, Input, Label, LoadingOverlay, LoadingSpinner, Modal, PlatformShell, PlayIcon, RadioGroup, RefreshCwIcon, RobotIcon, RocketIcon, SaveIcon, ScoreBar, ScoreCard, ScoreCircle, Select, Separator, SettingsIcon, ShieldCheckIcon, ShieldIcon, Stack, Switch, TargetIcon, TerminalIcon, Textarea, ThemeProvider, TrashIcon, TrendingUpIcon, UploadIcon, WalletIcon, ZapIcon, badgeVariants, buttonVariants, chartColors, cn, domainColors, formatCompactNumber, formatDate, formatDateTime, formatDecimal, formatDuration, formatFileSize, formatMetric, formatNumber, formatPercentage, formatRange, formatRelativeTime, getDomainColor, getScoreRating, getSeverityColor, hexToRgba, scoreBg, scoreColor, scoreGlow, scoreLabel, severityColors, useD3, useD3WithResize, useDebounce, useDrag, useForceSimulation, useTheme };
|
|
3232
3385
|
//# sourceMappingURL=index.js.map
|
|
3233
3386
|
//# sourceMappingURL=index.js.map
|