@alpic-ai/ui 1.175.3 → 1.176.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.
Files changed (35) hide show
  1. package/dist/components/accordion-card.d.mts +1 -1
  2. package/dist/components/accordion.d.mts +1 -1
  3. package/dist/components/alert.d.mts +1 -1
  4. package/dist/components/area-chart.mjs +1 -1
  5. package/dist/components/attachment-tile.mjs +1 -1
  6. package/dist/components/avatar.d.mts +2 -2
  7. package/dist/components/bar-chart.mjs +1 -1
  8. package/dist/components/bar-list.mjs +1 -1
  9. package/dist/components/button.d.mts +1 -1
  10. package/dist/components/chart-container.mjs +2 -2
  11. package/dist/components/combobox.d.mts +1 -1
  12. package/dist/components/combobox.mjs +1 -1
  13. package/dist/components/copyable.mjs +1 -1
  14. package/dist/components/dialog.d.mts +1 -1
  15. package/dist/components/donut-chart.mjs +1 -1
  16. package/dist/components/dropdown-menu.d.mts +1 -1
  17. package/dist/components/editable.mjs +2 -2
  18. package/dist/components/form.mjs +1 -1
  19. package/dist/components/heatmap-chart.mjs +1 -1
  20. package/dist/components/input-group.d.mts +1 -1
  21. package/dist/components/input.mjs +1 -1
  22. package/dist/components/line-chart.mjs +1 -1
  23. package/dist/components/select.d.mts +1 -1
  24. package/dist/components/sidebar.d.mts +1 -1
  25. package/dist/components/sidebar.mjs +2 -2
  26. package/dist/components/spinner.d.mts +1 -1
  27. package/dist/components/stat.mjs +1 -1
  28. package/dist/components/tabs.d.mts +1 -1
  29. package/dist/components/tabs.mjs +1 -1
  30. package/dist/components/textarea.mjs +1 -1
  31. package/dist/components/toggle-group.d.mts +1 -1
  32. package/dist/components/toggle-group.mjs +1 -1
  33. package/dist/components/tooltip-icon-button.mjs +1 -1
  34. package/dist/components/visually-hidden-input.mjs +1 -1
  35. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
1
  import * as React$1 from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
3
  //#region src/components/accordion-card.d.ts
4
4
  declare function AccordionCard({ defaultOpen, open, onOpenChange, disabled, className, children, ...props }: {
5
5
  defaultOpen?: boolean;
@@ -1,5 +1,5 @@
1
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
2
1
  import * as React$1 from "react";
2
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
3
  //#region src/components/accordion.d.ts
4
4
  declare function Accordion({ ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root>): React$1.JSX.Element;
5
5
  declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Item>): React$1.JSX.Element;
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  //#region src/components/alert.d.ts
4
4
  declare const alertVariants: (props?: ({
5
5
  variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
@@ -6,8 +6,8 @@ import { ChartLegend } from "./chart-legend.mjs";
6
6
  import { computeNumericMax, makeActiveDot, makeChartAxis, makeLastValueLabel, makeLegendItems, renderMarkers, renderReferenceLine } from "./chart-primitives.mjs";
7
7
  import { ChartTooltipContent } from "./chart-tooltip.mjs";
8
8
  import { Skeleton } from "./skeleton.mjs";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import * as React$1 from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { Area, AreaChart as AreaChart$1, CartesianGrid, LabelList, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
12
12
  //#region src/components/area-chart.tsx
13
13
  const CURVE_TYPE = {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
3
  import { TooltipIconButton } from "./tooltip-icon-button.mjs";
4
+ import { useState } from "react";
4
5
  import { FileText, XIcon } from "lucide-react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { useState } from "react";
7
7
  //#region src/components/attachment-tile.tsx
8
8
  function AttachmentTile({ src, isImage, label, onRemove, onClick, className }) {
9
9
  const [hasError, setHasError] = useState(false);
@@ -1,9 +1,9 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
4
  //#region src/components/avatar.d.ts
5
5
  declare const avatarVariants: (props?: ({
6
- size?: "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
6
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  type AvatarSize = NonNullable<VariantProps<typeof avatarVariants>["size"]>;
9
9
  type AvatarStatus = "online";
@@ -6,8 +6,8 @@ import { ChartLegend } from "./chart-legend.mjs";
6
6
  import { computeNumericMax, makeChartAxis, makeLegendItems, renderMarkers, renderReferenceLine } from "./chart-primitives.mjs";
7
7
  import { ChartTooltipContent } from "./chart-tooltip.mjs";
8
8
  import { Skeleton } from "./skeleton.mjs";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import * as React$1 from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { Bar, BarChart as BarChart$1, CartesianGrid, Cell, LabelList, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
12
12
  //#region src/components/bar-chart.tsx
13
13
  const BAR_RADIUS = 4;
@@ -4,8 +4,8 @@ import { rampColor } from "../lib/chart-palette.mjs";
4
4
  import { useChartContext } from "./chart-container.mjs";
5
5
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
6
6
  import { Badge } from "./badge.mjs";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import * as React$1 from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/bar-list.tsx
10
10
  const SEMANTIC_KEY = {
11
11
  error: "destructive",
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  //#region src/components/button.d.ts
4
4
  declare const buttonVariants: (props?: ({
5
5
  variant?: "destructive" | "secondary" | "primary" | "tertiary" | "link" | "link-muted" | "cta" | null | undefined;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
+ import { useChartTheme } from "../hooks/use-chart-theme.mjs";
2
3
  import { cn } from "../lib/cn.mjs";
3
4
  import { CHART_PALETTES } from "../lib/chart-palette.mjs";
4
- import { useChartTheme } from "../hooks/use-chart-theme.mjs";
5
- import { jsx } from "react/jsx-runtime";
6
5
  import * as React$1 from "react";
6
+ import { jsx } from "react/jsx-runtime";
7
7
  //#region src/components/chart-container.tsx
8
8
  const ChartContext = React$1.createContext(null);
9
9
  function ChartContainer({ palette = "magenta", className, ...props }) {
@@ -1,7 +1,7 @@
1
1
  import { PopoverContent } from "./popover.mjs";
2
2
  import { selectTriggerVariants } from "./select-trigger-variants.mjs";
3
- import { VariantProps } from "class-variance-authority";
4
3
  import { ReactNode } from "react";
4
+ import { VariantProps } from "class-variance-authority";
5
5
  import { Command } from "cmdk";
6
6
  //#region src/components/combobox.d.ts
7
7
  interface ComboboxBaseProps {
@@ -3,9 +3,9 @@ import { cn } from "../lib/cn.mjs";
3
3
  import { Popover, PopoverContent, PopoverTrigger } from "./popover.mjs";
4
4
  import { selectTriggerVariants } from "./select-trigger-variants.mjs";
5
5
  import { TagDismissible } from "./tag.mjs";
6
+ import { createContext, useCallback, useContext, useMemo, useState } from "react";
6
7
  import { CheckIcon, ChevronDownIcon, SearchIcon } from "lucide-react";
7
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
- import { createContext, useCallback, useContext, useMemo, useState } from "react";
9
9
  import { Command } from "cmdk";
10
10
  //#region src/components/combobox.tsx
11
11
  const ComboboxContext = createContext(null);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
+ import { useCopyToClipboard } from "../hooks/use-copy-to-clipboard.mjs";
2
3
  import { cn } from "../lib/cn.mjs";
3
4
  import { Button } from "./button.mjs";
4
- import { useCopyToClipboard } from "../hooks/use-copy-to-clipboard.mjs";
5
5
  import { Check, Copy } from "lucide-react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/copyable.tsx
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps } from "./button.mjs";
2
- import { VariantProps } from "class-variance-authority";
3
2
  import * as React$1 from "react";
3
+ import { VariantProps } from "class-variance-authority";
4
4
  import * as DialogPrimitive from "@radix-ui/react-dialog";
5
5
  //#region src/components/dialog.d.ts
6
6
  declare function Dialog({ ...props }: React$1.ComponentProps<typeof DialogPrimitive.Root>): React$1.JSX.Element;
@@ -3,8 +3,8 @@ import { cn } from "../lib/cn.mjs";
3
3
  import { paletteColor } from "../lib/chart-palette.mjs";
4
4
  import { formatShare } from "../lib/chart.mjs";
5
5
  import { useChartContext } from "./chart-container.mjs";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import * as React$1 from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { Cell, Pie, PieChart, ResponsiveContainer } from "recharts";
9
9
  //#region src/components/donut-chart.tsx
10
10
  const GEOMETRY = {
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4
4
  //#region src/components/dropdown-menu.d.ts
5
5
  declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>): React$1.JSX.Element;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { cn } from "../lib/cn.mjs";
3
2
  import { useIsomorphicLayoutEffect } from "../hooks/use-isomorphic-layout-effect.mjs";
4
3
  import { useAsRef } from "../hooks/use-as-ref.mjs";
5
4
  import { useLazyRef } from "../hooks/use-lazy-ref.mjs";
5
+ import { cn } from "../lib/cn.mjs";
6
6
  import { useComposedRefs } from "../lib/compose-refs.mjs";
7
7
  import { VisuallyHiddenInput } from "./visually-hidden-input.mjs";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
8
  import * as React$1 from "react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { Slot } from "@radix-ui/react-slot";
11
11
  //#region src/components/editable.tsx
12
12
  const ROOT_NAME = "Editable";
@@ -7,9 +7,9 @@ import { Input } from "./input.mjs";
7
7
  import { RadioGroup, RadioGroupItem } from "./radio-group.mjs";
8
8
  import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "./select.mjs";
9
9
  import { Textarea } from "./textarea.mjs";
10
+ import * as React$1 from "react";
10
11
  import { Info } from "lucide-react";
11
12
  import { jsx, jsxs } from "react/jsx-runtime";
12
- import * as React$1 from "react";
13
13
  import { Slot } from "@radix-ui/react-slot";
14
14
  import { Controller, FormProvider, useFormContext, useFormState } from "react-hook-form";
15
15
  //#region src/components/form.tsx
@@ -2,8 +2,8 @@
2
2
  import { cn } from "../lib/cn.mjs";
3
3
  import { HEAT_EMPTY, heatColor, heatRamp } from "../lib/chart-palette.mjs";
4
4
  import { useChartContext } from "./chart-container.mjs";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import * as React$1 from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { createPortal } from "react-dom";
8
8
  //#region src/components/heatmap-chart.tsx
9
9
  const PLACEHOLDER_HEIGHT = 168;
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  //#region src/components/input-group.d.ts
4
4
  declare function InputGroup({ className, children, ...props }: React$1.ComponentProps<"fieldset">): React$1.JSX.Element;
5
5
  declare const inputGroupAddonVariants: (props?: ({
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
3
  import { Field } from "./field.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import * as React$1 from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/components/input.tsx
7
7
  const inputSizeStyles = {
8
8
  sm: {
@@ -6,8 +6,8 @@ import { ChartLegend } from "./chart-legend.mjs";
6
6
  import { computeNumericMax, makeActiveDot, makeChartAxis, makeLastValueLabel, makeLegendItems, renderMarkers, renderReferenceLine } from "./chart-primitives.mjs";
7
7
  import { ChartTooltipContent } from "./chart-tooltip.mjs";
8
8
  import { Skeleton } from "./skeleton.mjs";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import * as React$1 from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { CartesianGrid, LabelList, Line, LineChart as LineChart$1, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
12
12
  //#region src/components/line-chart.tsx
13
13
  const CURVE_TYPE = {
@@ -1,6 +1,6 @@
1
1
  import { selectTriggerVariants } from "./select-trigger-variants.mjs";
2
- import { VariantProps } from "class-variance-authority";
3
2
  import * as React$1 from "react";
3
+ import { VariantProps } from "class-variance-authority";
4
4
  import * as SelectPrimitive from "@radix-ui/react-select";
5
5
  //#region src/components/select.d.ts
6
6
  declare function Select({ ...props }: React$1.ComponentProps<typeof SelectPrimitive.Root>): React$1.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { Button } from "./button.mjs";
2
2
  import { TooltipContent } from "./tooltip.mjs";
3
- import { VariantProps } from "class-variance-authority";
4
3
  import * as React$1 from "react";
4
+ import { VariantProps } from "class-variance-authority";
5
5
  //#region src/components/sidebar.d.ts
6
6
  type SidebarContextProps = {
7
7
  state: "expanded" | "collapsed";
@@ -1,14 +1,14 @@
1
1
  "use client";
2
+ import { useIsMobile } from "../hooks/use-mobile.mjs";
2
3
  import { cn } from "../lib/cn.mjs";
3
4
  import { Skeleton } from "./skeleton.mjs";
4
5
  import { Button } from "./button.mjs";
5
6
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
6
7
  import { Separator } from "./separator.mjs";
7
8
  import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.mjs";
8
- import { useIsMobile } from "../hooks/use-mobile.mjs";
9
+ import * as React$1 from "react";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { cva } from "class-variance-authority";
11
- import * as React$1 from "react";
12
12
  import { Slot } from "@radix-ui/react-slot";
13
13
  //#region src/components/sidebar.tsx
14
14
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
2
2
  //#region src/components/spinner.d.ts
3
3
  declare const spinnerVariants: (props?: ({
4
4
  variant?: "secondary" | "primary" | null | undefined;
5
- size?: "sm" | "lg" | "md" | "xl" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface SpinnerProps extends Omit<React.ComponentProps<"svg">, "children">, VariantProps<typeof spinnerVariants> {}
8
8
  declare function Spinner({ className, variant, size, ...props }: SpinnerProps): import("react").JSX.Element;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
3
  import { useChartContext } from "./chart-container.mjs";
4
+ import * as React$1 from "react";
4
5
  import { ArrowDown, ArrowUp } from "lucide-react";
5
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
7
  import { cva } from "class-variance-authority";
7
- import * as React$1 from "react";
8
8
  import { Area, AreaChart, ResponsiveContainer } from "recharts";
9
9
  //#region src/components/stat.tsx
10
10
  const statDeltaVariants = cva("inline-flex items-center gap-0.5 rounded-md px-2 py-1 font-mono text-xs font-medium leading-none", {
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  import * as TabsPrimitive from "@radix-ui/react-tabs";
4
4
  //#region src/components/tabs.d.ts
5
5
  declare const tabsTriggerVariants: (props?: ({
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
+ import { createContext, use } from "react";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  import { cva } from "class-variance-authority";
5
- import { createContext, use } from "react";
6
6
  import { Slot } from "@radix-ui/react-slot";
7
7
  import * as TabsPrimitive from "@radix-ui/react-tabs";
8
8
  //#region src/components/tabs.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
3
  import { Field } from "./field.mjs";
4
- import { jsx } from "react/jsx-runtime";
5
4
  import * as React$1 from "react";
5
+ import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/textarea.tsx
7
7
  function Textarea({ className, id, label, required, hint, error, tooltip, ...props }) {
8
8
  const generatedId = React$1.useId();
@@ -1,5 +1,5 @@
1
- import { VariantProps } from "class-variance-authority";
2
1
  import * as React$1 from "react";
2
+ import { VariantProps } from "class-variance-authority";
3
3
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
4
4
  //#region src/components/toggle-group.d.ts
5
5
  declare const toggleGroupItemVariants: (props?: ({
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/cn.mjs";
3
+ import * as React$1 from "react";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  import { cva } from "class-variance-authority";
5
- import * as React$1 from "react";
6
6
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
7
7
  //#region src/components/toggle-group.tsx
8
8
  const toggleGroupItemVariants = cva([
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.mjs";
3
3
  import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { forwardRef } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Slottable } from "@radix-ui/react-slot";
7
7
  //#region src/components/tooltip-icon-button.tsx
8
8
  const TooltipIconButton = forwardRef(({ children, tooltip, side = "bottom", ...rest }, ref) => {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import * as React$1 from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  //#region src/components/visually-hidden-input.tsx
5
5
  function VisuallyHiddenInput(props) {
6
6
  const { control, value, checked, bubbles = true, type = "hidden", style, ...inputProps } = props;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/ui",
3
- "version": "1.175.3",
3
+ "version": "1.176.0",
4
4
  "description": "Alpic design system — shared UI components",
5
5
  "type": "module",
6
6
  "exports": {