dawn-ui-react 1.0.0-alpha.13 → 1.0.0-alpha.15
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/combobox/combobox-virtualized-list.d.ts +2 -0
- package/dist/components/combobox/combobox.types.d.ts +9 -0
- package/dist/components/combobox/index.d.ts +2 -1
- package/dist/dawn-ui-react.js +6632 -6081
- package/dist/dawn-ui-react.umd.cjs +21 -21
- package/package.json +2 -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';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ComboboxVirtualizedListProps } from './combobox.types';
|
|
2
|
+
export declare const ComboboxVirtualizedList: <TItem>({ open, virtualizerRef, estimateSize, overscan, className, children, ...props }: ComboboxVirtualizedListProps<TItem>) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Combobox as BaseCombobox } from '@base-ui/react/combobox';
|
|
2
2
|
import { inputVariants } from '../input/input.types';
|
|
3
|
+
import { Virtualizer } from '@tanstack/react-virtual';
|
|
3
4
|
import { VariantProps } from 'class-variance-authority';
|
|
4
5
|
export type ComboboxEmptyProps = React.ComponentProps<typeof BaseCombobox.Empty>;
|
|
5
6
|
export type ComboboxInputProps = React.ComponentProps<typeof BaseCombobox.Input> & VariantProps<typeof inputVariants> & {
|
|
@@ -19,4 +20,12 @@ export type ComboboxGroupProps = React.ComponentProps<typeof BaseCombobox.Group>
|
|
|
19
20
|
export type ComboboxGroupLabelProps = React.ComponentProps<typeof BaseCombobox.GroupLabel>;
|
|
20
21
|
export type ComboboxCollectionProps = React.ComponentProps<typeof BaseCombobox.Collection>;
|
|
21
22
|
export type ComboboxStatusProps = React.ComponentProps<typeof BaseCombobox.Status>;
|
|
23
|
+
export type ComboboxVirtualizedListProps<TItem> = Omit<React.ComponentProps<'div'>, 'children'> & {
|
|
24
|
+
open: boolean;
|
|
25
|
+
virtualizerRef?: React.RefObject<Virtualizer<HTMLDivElement, HTMLDivElement> | null>;
|
|
26
|
+
estimateSize?: number;
|
|
27
|
+
overscan?: number;
|
|
28
|
+
children?: React.ReactNode | ((item: TItem) => React.ReactNode);
|
|
29
|
+
};
|
|
22
30
|
export declare const useFilter: typeof BaseCombobox.useFilter;
|
|
31
|
+
export declare const useFilteredItems: typeof BaseCombobox.useFilteredItems;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Combobox } from './combobox';
|
|
2
|
-
export type { ComboboxChipProps, ComboboxChipsProps, ComboboxCollectionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxProps, ComboboxStatusProps, ComboboxTriggerProps, ComboboxValueProps, } from './combobox.types';
|
|
2
|
+
export type { ComboboxChipProps, ComboboxChipsProps, ComboboxCollectionProps, ComboboxEmptyProps, ComboboxGroupLabelProps, ComboboxGroupProps, ComboboxInputProps, ComboboxItemProps, ComboboxListProps, ComboboxPopupProps, ComboboxProps, ComboboxStatusProps, ComboboxTriggerProps, ComboboxValueProps, ComboboxVirtualizedListProps, useFilteredItems, useFilter, } from './combobox.types';
|
|
3
3
|
export { ComboboxChip } from './combobox-chip';
|
|
4
4
|
export { ComboboxChips } from './combobox-chips';
|
|
5
5
|
export { ComboboxCollection } from './combobox-collection';
|
|
@@ -13,3 +13,4 @@ export { ComboboxPopup } from './combobox-popup';
|
|
|
13
13
|
export { ComboboxStatus } from './combobox-status';
|
|
14
14
|
export { ComboboxTrigger } from './combobox-trigger';
|
|
15
15
|
export { ComboboxValue } from './combobox-value';
|
|
16
|
+
export { ComboboxVirtualizedList } from './combobox-virtualized-list';
|