diff --git a/public/registry.json b/public/registry.json index d6143585..400e7801 100644 --- a/public/registry.json +++ b/public/registry.json @@ -86,8 +86,8 @@ "useAreaChart" ], "propsDefinitions": [ - "export interface AreaChartProps extends React.ComponentPropsWithoutRef<'div'> {\n data: Record[];\n series: AreaChartSeries[];\n /** @default '100%' */\n height?: number | string;\n /** @default true */\n showGrid?: boolean;\n /** @default true */\n showLabels?: boolean;\n /** @default true */\n showTooltip?: boolean;\n /** @default true */\n animate?: boolean;\n /** @default 'linear' */\n curve?: 'linear' | 'smooth';\n /** @default true */\n showDots?: boolean | 'hover';\n /** @default false */\n showYAxis?: boolean;\n /** @default false */\n showLegend?: boolean;\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\n labelKey?: string;\n /** Custom formatter for Y-axis ticks and tooltip values. */\n valueFormatter?: (value: number) => string;\n /** Accessible label for the chart SVG. @default 'Area chart' */\n ariaLabel?: string;\n}\n\n/**\n * Prop-driven (`data`, `series`) responsive SVG area chart with grid, labels, and interactive tooltips.\n *\n * @example\n * ```tsx\n * \n * ```\n */", - "export interface UseAreaChartProps {\n data: Record[];\n series: AreaChartSeries[];\n width?: number;\n svgHeight?: number;\n defaultColors?: string[];\n}" + "export interface AreaChartProps extends React.ComponentPropsWithoutRef<'div'> {\r\n data: Record[];\r\n series: AreaChartSeries[];\r\n /** @default '100%' */\r\n height?: number | string;\r\n /** @default true */\r\n showGrid?: boolean;\r\n /** @default true */\r\n showLabels?: boolean;\r\n /** @default true */\r\n showTooltip?: boolean;\r\n /** @default true */\r\n animate?: boolean;\r\n /** @default 'linear' */\r\n curve?: 'linear' | 'smooth';\r\n /** @default true */\r\n showDots?: boolean | 'hover';\r\n /** @default false */\r\n showYAxis?: boolean;\r\n /** @default false */\r\n showLegend?: boolean;\r\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\r\n labelKey?: string;\r\n /** Custom formatter for Y-axis ticks and tooltip values. */\r\n valueFormatter?: (value: number) => string;\r\n /** Accessible label for the chart SVG. @default 'Area chart' */\r\n ariaLabel?: string;\r\n}\r\n\r\n/**\r\n * Prop-driven (`data`, `series`) responsive SVG area chart with grid, labels, and interactive tooltips.\r\n *\r\n * @example\r\n * ```tsx\r\n * \r\n * ```\r\n */", + "export interface UseAreaChartProps {\r\n data: Record[];\r\n series: AreaChartSeries[];\r\n width?: number;\r\n svgHeight?: number;\r\n defaultColors?: string[];\r\n}" ] }, "avatar": { @@ -189,7 +189,7 @@ "useBarChart" ], "propsDefinitions": [ - "export interface BarChartProps extends ComponentPropsWithoutRef<'div'> {\n data: Record[];\n series: BarChartSeries[];\n /** @default '100%' */\n height?: number | string;\n /** @default true */\n showGrid?: boolean;\n /** @default true */\n showLabels?: boolean;\n /** @default true */\n showTooltip?: boolean;\n /** @default true */\n animate?: boolean;\n /** @default 4 */\n barGap?: number;\n /** @default 64 */\n maxBarWidth?: number;\n /** @default true */\n rounded?: boolean;\n /** @default 'none' */\n texture?: BarChartTexture;\n /** @default false */\n showTrack?: boolean;\n /** @default false */\n stacked?: boolean;\n /** @default false */\n showYAxis?: boolean;\n /** @default false */\n showLegend?: boolean;\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\n labelKey?: string;\n /** Custom formatter for Y-axis ticks and tooltip values. */\n valueFormatter?: (value: number) => string;\n /** Accessible label for the chart SVG. @default 'Bar chart' */\n ariaLabel?: string;\n}\n\n/**\n * Prop-driven (`data`, `series`) SVG bar chart supporting grouped/stacked bars and optional SVG textures.\n *\n * @example\n * ```tsx\n * \n * ```\n */" + "export interface BarChartProps extends ComponentPropsWithoutRef<'div'> {\r\n data: Record[];\r\n series: BarChartSeries[];\r\n /** @default '100%' */\r\n height?: number | string;\r\n /** @default true */\r\n showGrid?: boolean;\r\n /** @default true */\r\n showLabels?: boolean;\r\n /** @default true */\r\n showTooltip?: boolean;\r\n /** @default true */\r\n animate?: boolean;\r\n /** @default 4 */\r\n barGap?: number;\r\n /** @default 64 */\r\n maxBarWidth?: number;\r\n /** @default true */\r\n rounded?: boolean;\r\n /** @default 'none' */\r\n texture?: BarChartTexture;\r\n /** @default false */\r\n showTrack?: boolean;\r\n /** @default false */\r\n stacked?: boolean;\r\n /** @default false */\r\n showYAxis?: boolean;\r\n /** @default false */\r\n showLegend?: boolean;\r\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\r\n labelKey?: string;\r\n /** Custom formatter for Y-axis ticks and tooltip values. */\r\n valueFormatter?: (value: number) => string;\r\n /** Accessible label for the chart SVG. @default 'Bar chart' */\r\n ariaLabel?: string;\r\n}\r\n\r\n/**\r\n * Prop-driven (`data`, `series`) SVG bar chart supporting grouped/stacked bars and optional SVG textures.\r\n *\r\n * @example\r\n * ```tsx\r\n * \r\n * ```\r\n */" ] }, "bento-grid": { @@ -790,7 +790,7 @@ "IconButton" ], "propsDefinitions": [ - "export type IconButtonProps = IconButtonBaseProps &\r\n (\r\n | (React.ButtonHTMLAttributes & { href?: never })\r\n | (React.AnchorHTMLAttributes & { href: string })\r\n );\r\n\r\n/**\r\n * Prop-driven (`icon`) square or pill action button; renders `` automatically when `href` is passed.\r\n *\r\n * @example\r\n * ```tsx\r\n * } aria-label=\"Add item\" variant=\"soft\" />\r\n * ```\r\n */" + "export type IconButtonProps = IconButtonBaseProps &\r\n (\r\n | (Omit, 'color'> & { href?: never })\r\n | (Omit, 'color'> & { href: string })\r\n );\r\n\r\n/**\r\n * Prop-driven (`icon`) square or pill action button; renders `` automatically when `href` is passed.\r\n *\r\n * @example\r\n * ```tsx\r\n * } aria-label=\"Add item\" variant=\"soft\" />\r\n * ```\r\n */" ] }, "imageexpander": { @@ -865,8 +865,8 @@ "useLineChart" ], "propsDefinitions": [ - "export interface LineChartProps extends React.ComponentPropsWithoutRef<'div'> {\n data: Record[];\n series: LineChartSeries[];\n /** Optional explicit height. When omitted, defaults to a 2.5:1 aspect ratio. */\n height?: number | string;\n /** @default true */\n showGrid?: boolean;\n /** @default true */\n showLabels?: boolean;\n /** @default true */\n showTooltip?: boolean;\n /** @default true */\n animate?: boolean;\n /** @default 'linear' */\n curve?: 'linear' | 'smooth';\n /** @default true */\n showDots?: boolean | 'hover';\n /** @default false */\n showYAxis?: boolean;\n /** @default false */\n showLegend?: boolean;\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\n labelKey?: string;\n /** Custom formatter for Y-axis ticks and tooltip values. */\n valueFormatter?: (value: number) => string;\n /** Accessible label for the chart SVG. @default 'Line chart' */\n ariaLabel?: string;\n}\n\n/**\n * Prop-driven (`data`, `series`) multi-series SVG line chart with interactive hover tooltips.\n *\n * @example\n * ```tsx\n * \n * ```\n */", - "export interface UseLineChartProps {\n data: Record[];\n series: LineChartSeries[];\n width?: number;\n svgHeight?: number;\n}" + "export interface LineChartProps extends React.ComponentPropsWithoutRef<'div'> {\r\n data: Record[];\r\n series: LineChartSeries[];\r\n /** Optional explicit height. When omitted, defaults to a 2.5:1 aspect ratio. */\r\n height?: number | string;\r\n /** @default true */\r\n showGrid?: boolean;\r\n /** @default true */\r\n showLabels?: boolean;\r\n /** @default true */\r\n showTooltip?: boolean;\r\n /** @default true */\r\n animate?: boolean;\r\n /** @default 'linear' */\r\n curve?: 'linear' | 'smooth';\r\n /** @default true */\r\n showDots?: boolean | 'hover';\r\n /** @default false */\r\n showYAxis?: boolean;\r\n /** @default false */\r\n showLegend?: boolean;\r\n /** Key in `data` items used for x-axis and tooltip labels. @default 'label' */\r\n labelKey?: string;\r\n /** Custom formatter for Y-axis ticks and tooltip values. */\r\n valueFormatter?: (value: number) => string;\r\n /** Accessible label for the chart SVG. @default 'Line chart' */\r\n ariaLabel?: string;\r\n}\r\n\r\n/**\r\n * Prop-driven (`data`, `series`) multi-series SVG line chart with interactive hover tooltips.\r\n *\r\n * @example\r\n * ```tsx\r\n * \r\n * ```\r\n */", + "export interface UseLineChartProps {\r\n data: Record[];\r\n series: LineChartSeries[];\r\n width?: number;\r\n svgHeight?: number;\r\n}" ] }, "listtile": { @@ -1080,8 +1080,8 @@ "usePieChart" ], "propsDefinitions": [ - "export interface PieChartProps extends React.ComponentPropsWithoutRef<'div'> {\n data: PieChartDataItem[];\n /** @default 0 */\n innerRadius?: number;\n /** @default true */\n showLabels?: boolean;\n /** @default true */\n showTooltip?: boolean;\n /** @default true */\n animate?: boolean;\n /** @default 'none' */\n texture?: PieChartTexture;\n /** Custom formatter for tooltip values. */\n valueFormatter?: (value: number) => string;\n /** Accessible label for the chart SVG. @default 'Pie chart' */\n ariaLabel?: string;\n}\n\n/**\n * Prop-driven (`data`) SVG pie or donut chart with optional inner radius and tooltips.\n *\n * @example\n * ```tsx\n * \n * ```\n */", - "export interface UsePieChartProps {\n data: PieChartDataItem[];\n innerRadius: number;\n showTooltip: boolean;\n}" + "export interface PieChartProps extends React.ComponentPropsWithoutRef<'div'> {\r\n data: PieChartDataItem[];\r\n /** @default 0 */\r\n innerRadius?: number;\r\n /** @default true */\r\n showLabels?: boolean;\r\n /** @default true */\r\n showTooltip?: boolean;\r\n /** @default true */\r\n animate?: boolean;\r\n /** @default 'none' */\r\n texture?: PieChartTexture;\r\n /** Custom formatter for tooltip values. */\r\n valueFormatter?: (value: number) => string;\r\n /** Accessible label for the chart SVG. @default 'Pie chart' */\r\n ariaLabel?: string;\r\n}\r\n\r\n/**\r\n * Prop-driven (`data`) SVG pie or donut chart with optional inner radius and tooltips.\r\n *\r\n * @example\r\n * ```tsx\r\n * \r\n * ```\r\n */", + "export interface UsePieChartProps {\r\n data: PieChartDataItem[];\r\n innerRadius: number;\r\n showTooltip: boolean;\r\n}" ] }, "popover": { @@ -1291,7 +1291,7 @@ "propsDefinitions": [ "export interface SidebarProviderProps extends UseSidebarProps {\r\n children: React.ReactNode;\r\n}", "export interface SidebarProps extends\r\n Omit, 'children' | 'defaultValue'> {\r\n children: React.ReactNode;\r\n /** @default true */\r\n collapsible?: boolean;\r\n /** @default true */\r\n defaultOpen?: boolean;\r\n open?: boolean;\r\n onOpenChange?: (open: boolean) => void;\r\n /** @default 272 */\r\n width?: number;\r\n /** @default 72 */\r\n collapsedWidth?: number;\r\n /** @default true */\r\n responsive?: boolean;\r\n /** @default false */\r\n defaultOpenMobile?: boolean;\r\n openMobile?: boolean;\r\n onOpenMobileChange?: (open: boolean) => void;\r\n /** @default 768 */\r\n mobileBreakpoint?: number;\r\n}\r\n\r\n/**\r\n * Compound collapsible application sidebar (`children` inside `SidebarProvider`, using `SidebarContent`, `SidebarSection`, `SidebarItem`).\r\n *\r\n * @example\r\n * ```tsx\r\n * \r\n * \r\n * \r\n * \r\n * \r\n * \r\n * \r\n * \r\n * \r\n * ```\r\n */", - "export interface SidebarTriggerProps extends React.ButtonHTMLAttributes {\r\n icon?: React.ReactNode;\r\n /** @default 'sm' */\r\n size?: 'sm' | 'md' | 'lg';\r\n}", + "export interface SidebarTriggerProps extends Omit, 'color'> {\r\n icon?: React.ReactNode;\r\n /** @default 'sm' */\r\n size?: 'sm' | 'md' | 'lg';\r\n}", "export interface SidebarContentProps extends React.HTMLAttributes {\r\n children: React.ReactNode;\r\n}", "export interface SidebarSectionProps {\r\n title?: string;\r\n badge?: React.ReactNode;\r\n children: React.ReactNode;\r\n className?: string;\r\n /** @default false */\r\n collapsible?: boolean;\r\n /** @default true */\r\n defaultOpen?: boolean;\r\n}", "export interface SidebarSubItemProps extends Omit, 'children'> {\r\n children: React.ReactNode;\r\n active?: boolean;\r\n href?: string;\r\n target?: string;\r\n badgeSlot?: React.ReactNode;\r\n className?: string;\r\n}", diff --git a/src/dashkit/Button/Button.tsx b/src/dashkit/Button/Button.tsx index dca99859..7e29d61c 100644 --- a/src/dashkit/Button/Button.tsx +++ b/src/dashkit/Button/Button.tsx @@ -13,7 +13,7 @@ import type { StrictVariantProps } from '../utils/types'; import { Spinner } from '../Spinner/Spinner'; const buttonVariants = cva( - 'inline-flex font-medium items-center justify-center cursor-pointer whitespace-nowrap transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-transparent active:scale-[0.97] disabled:opacity-60 disabled:cursor-not-allowed disabled:pointer-events-none', + 'inline-flex font-medium items-center justify-center cursor-pointer whitespace-nowrap transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-transparent active:scale-[0.97] disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-none', { variants: { variant: { @@ -46,7 +46,7 @@ const buttonVariants = cva( { variant: 'filled', color: 'danger', - className: 'ds-danger-gradient text-red-50 hover:brightness-120', + className: 'ds-danger-gradient text-danger-foreground hover:brightness-120', }, // outlined { diff --git a/src/dashkit/Checkbox/Checkbox.tsx b/src/dashkit/Checkbox/Checkbox.tsx index 8ac03bd1..52f9de84 100644 --- a/src/dashkit/Checkbox/Checkbox.tsx +++ b/src/dashkit/Checkbox/Checkbox.tsx @@ -35,14 +35,14 @@ export const Checkbox = forwardRef( 'border-border group-hover:border-ds-400 dark:group-hover:border-ds-500', 'peer-checked:border-primary peer-checked:bg-background', 'peer-focus-visible:ring-2 peer-focus-visible:ring-ring peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-transparent', - 'peer-disabled:opacity-60 peer-disabled:cursor-not-allowed' + 'peer-disabled:opacity-50 peer-disabled:cursor-not-allowed' )} />
diff --git a/src/dashkit/Chip/Chip.tsx b/src/dashkit/Chip/Chip.tsx index 9bfeec80..80c6e7b9 100644 --- a/src/dashkit/Chip/Chip.tsx +++ b/src/dashkit/Chip/Chip.tsx @@ -24,7 +24,7 @@ const chipVariants = cva( info: '', }, interactive: { - true: 'cursor-pointer active:scale-[0.97]', + true: 'cursor-pointer active:scale-[0.97] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-transparent', false: 'cursor-default', }, disabled: { @@ -153,7 +153,7 @@ export const Chip = React.forwardRef diff --git a/src/dashkit/CopyField/CopyField.tsx b/src/dashkit/CopyField/CopyField.tsx index b5157547..c4d69c50 100644 --- a/src/dashkit/CopyField/CopyField.tsx +++ b/src/dashkit/CopyField/CopyField.tsx @@ -54,7 +54,7 @@ export const CopyField = forwardRef( className={cn('flex flex-col gap-1.5 w-full font-sans', className)} > {label && ( -