dawn-ui-react 1.0.0-alpha.12 → 1.0.0-alpha.14
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/chart/chart-container.d.ts +3 -1
- package/dist/components/chart/chart-tooltip-value.d.ts +1 -2
- package/dist/components/chart/chart.types.d.ts +1 -0
- package/dist/components/chart/index.d.ts +4 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.types.d.ts +3 -0
- package/dist/dawn-ui-react.js +4382 -4452
- package/dist/dawn-ui-react.umd.cjs +20 -23
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ChartContainerContextProps, ChartContainerProps } from './chart.types';
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const ChartContainerContext: React.Context<ChartContainerContextProps | null>;
|
|
4
|
+
export declare const ChartContainer: ({ id, config, className, children, ref, ...props }: ChartContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export declare const useChart: () => ChartContainerContextProps;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ChartTooltipValueProps } from './chart.types';
|
|
2
2
|
export declare const ChartTooltipValue: ({ className, children, ref, ...props }: ChartTooltipValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export {};
|
|
@@ -46,4 +46,5 @@ export type ChartLegendLabelProps = React.ComponentProps<'p'>;
|
|
|
46
46
|
export type ChartLegendIndicatorProps = React.ComponentProps<'div'> & {
|
|
47
47
|
shape?: 'circle' | 'square' | 'diamond' | 'triangle' | 'wye' | 'line';
|
|
48
48
|
};
|
|
49
|
+
export type ChartTooltipValueProps = React.ComponentProps<'p'>;
|
|
49
50
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ChartConfig, ChartTooltipContentProps, ChartTooltipLabelProps, ChartLegendContentProps, ChartLinearGradientProps, ChartContainerContextProps, ChartContainerProps, ChartLegendProps, ChartTooltipIndicatorProps, ChartTooltipNameProps, ChartTooltipPayloadProps, ChartTooltipProps, ChartLegendIconProps, ChartLegendLabelProps, ChartLegendIndicatorProps, ChartTooltipIconProps, ChartLegendPayloadProps, } from './chart.types';
|
|
1
|
+
export type { ChartConfig, ChartTooltipContentProps, ChartTooltipLabelProps, ChartLegendContentProps, ChartLinearGradientProps, ChartContainerContextProps, ChartContainerProps, ChartLegendProps, ChartTooltipIndicatorProps, ChartTooltipNameProps, ChartTooltipPayloadProps, ChartTooltipProps, ChartLegendIconProps, ChartLegendLabelProps, ChartLegendIndicatorProps, ChartTooltipIconProps, ChartLegendPayloadProps, ChartTooltipValueProps, } from './chart.types';
|
|
2
2
|
export { ChartContainer } from './chart-container';
|
|
3
3
|
export { ChartTooltip } from './chart-tooltip';
|
|
4
4
|
export { ChartTooltipContent, useChartTooltipContent } from './chart-tooltip-content';
|
|
@@ -14,3 +14,6 @@ export { ChartLegendLabel } from './chart-legend-label';
|
|
|
14
14
|
export { ChartLegendIndicator } from './chart-legend-indicator';
|
|
15
15
|
export { ChartTooltipIcon } from './chart-tooltip-icon';
|
|
16
16
|
export { getPayloadConfigFromPayload } from './chart.utils';
|
|
17
|
+
export { ChartTooltipValue } from './chart-tooltip-value';
|
|
18
|
+
export { useChart } from './chart-container';
|
|
19
|
+
export { ChartContainerContext } from './chart-container';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { TabsProps } from '.';
|
|
2
|
-
export declare const Tabs: ({ variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Tabs: ({ size, tone, variant, fill, className, ref, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,7 +6,10 @@ export type TabsTabProps = ComponentProps<typeof BaseTabs.Tab>;
|
|
|
6
6
|
export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
|
|
7
7
|
export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
|
|
8
8
|
export declare const tabsVariants: (props?: ({
|
|
9
|
+
size?: "small" | "large" | "medium" | null | undefined;
|
|
10
|
+
tone?: "brand" | "accent" | "neutral" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
9
11
|
variant?: "ghost" | "default" | "underline" | null | undefined;
|
|
10
12
|
fill?: boolean | null | undefined;
|
|
11
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
14
|
export type TabsProps = React.ComponentProps<typeof BaseTabs.Root> & VariantProps<typeof tabsVariants>;
|
|
15
|
+
export type TabsTabValue = TabsTabProps['value'];
|