brd-ui-kit 0.1.75 → 0.1.76
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/brd-ui-kit.css +1 -1
- package/dist/calendar-B5QCV34E.cjs +2 -0
- package/dist/{calendar-DReGV_22.cjs.map → calendar-B5QCV34E.cjs.map} +1 -1
- package/dist/{calendar-C0DXP3T-.js → calendar-Ba3kHG6w.js} +264 -270
- package/dist/{calendar-C0DXP3T-.js.map → calendar-Ba3kHG6w.js.map} +1 -1
- package/dist/{calendar-locale-CP2pxhFK.cjs → calendar-locale-BHyNJPb2.cjs} +2 -2
- package/dist/{calendar-locale-CP2pxhFK.cjs.map → calendar-locale-BHyNJPb2.cjs.map} +1 -1
- package/dist/{calendar-locale-DJf03PI9.js → calendar-locale-DQ9wj0zF.js} +2 -2
- package/dist/{calendar-locale-DJf03PI9.js.map → calendar-locale-DQ9wj0zF.js.map} +1 -1
- package/dist/chart-9H_9wEfR.cjs +63 -0
- package/dist/{chart-C69jBlXa.cjs.map → chart-9H_9wEfR.cjs.map} +1 -1
- package/dist/{chart-CAPCe8o5.js → chart-DFbmMKiQ.js} +2956 -2951
- package/dist/{chart-CAPCe8o5.js.map → chart-DFbmMKiQ.js.map} +1 -1
- package/dist/components/basic-chart/basic-chart.d.ts +1 -1
- package/dist/components/basic-table/basic-table.d.ts +5 -5
- package/dist/components/data-table/data-table-actions-column.d.ts +3 -3
- package/dist/components/data-table/data-table-bulk-actions.d.ts +3 -3
- package/dist/components/data-table/data-table-column-visibility.d.ts +2 -2
- package/dist/components/data-table/data-table-filter.d.ts +2 -2
- package/dist/components/data-table/data-table-row-actions-column.d.ts +3 -3
- package/dist/components/data-table/use-data-table-editable-rows.d.ts +5 -5
- package/dist/components/input-field/input-field.d.ts +3 -3
- package/dist/components/input-phone/input-phone.d.ts +4 -4
- package/dist/components/popover-modal/popover-modal.d.ts +4 -4
- package/dist/components/select-field/select-field.d.ts +2 -2
- package/dist/components/ui/avatar/avatar.d.ts +7 -7
- package/dist/components/ui/badge/badge.d.ts +2 -2
- package/dist/components/ui/button/button.d.ts +3 -3
- package/dist/components/ui/calendar/calendar.d.ts +6 -6
- package/dist/components/ui/calendar/calendar.styles.d.ts +1 -1
- package/dist/components/ui/card/card.d.ts +13 -13
- package/dist/components/ui/chart/chart.d.ts +23 -21
- package/dist/components/ui/checkbox/checkbox.d.ts +4 -4
- package/dist/components/ui/combobox/combobox.d.ts +6 -6
- package/dist/components/ui/dialog/dialog.d.ts +11 -11
- package/dist/components/ui/drawer/drawer.d.ts +11 -11
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +40 -40
- package/dist/components/ui/icon/icon.d.ts +3 -3
- package/dist/components/ui/input/input.d.ts +2 -2
- package/dist/components/ui/input-group/input-group.d.ts +7 -7
- package/dist/components/ui/label/label.d.ts +4 -4
- package/dist/components/ui/pagination/pagination.d.ts +8 -8
- package/dist/components/ui/popover/popover.d.ts +8 -8
- package/dist/components/ui/progress/progress.d.ts +4 -4
- package/dist/components/ui/radio-group/radio-group.d.ts +7 -7
- package/dist/components/ui/select/select.d.ts +11 -11
- package/dist/components/ui/select-calendar-menu/select-calendar-menu.d.ts +4 -4
- package/dist/components/ui/separator/separator.d.ts +4 -4
- package/dist/components/ui/switch/switch.d.ts +4 -4
- package/dist/components/ui/table/table.d.ts +17 -17
- package/dist/components/ui/tabs/tabs.d.ts +8 -8
- package/dist/components/ui/tooltip/tooltip.d.ts +8 -8
- package/dist/components/ui/typography/typography.d.ts +174 -174
- package/dist/components-avatar-uploader-avatar-uploader.cjs +2 -2
- package/dist/components-avatar-uploader-avatar-uploader.cjs.map +1 -1
- package/dist/components-avatar-uploader-avatar-uploader.js +35 -36
- package/dist/components-avatar-uploader-avatar-uploader.js.map +1 -1
- package/dist/components-basic-avatar-basic-avatar.cjs +1 -1
- package/dist/components-basic-avatar-basic-avatar.js +3 -3
- package/dist/components-basic-chart-basic-chart.cjs +2 -2
- package/dist/components-basic-chart-basic-chart.cjs.map +1 -1
- package/dist/components-basic-chart-basic-chart.js +106 -108
- package/dist/components-basic-chart-basic-chart.js.map +1 -1
- package/dist/components-basic-table-basic-table.cjs +2 -2
- package/dist/components-basic-table-basic-table.cjs.map +1 -1
- package/dist/components-basic-table-basic-table.js +232 -231
- package/dist/components-basic-table-basic-table.js.map +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-actions-column.js +5 -6
- package/dist/components-data-table-data-table-actions-column.js.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs +1 -1
- package/dist/components-data-table-data-table-bulk-actions.cjs.map +1 -1
- package/dist/components-data-table-data-table-bulk-actions.js +9 -9
- package/dist/components-data-table-data-table-bulk-actions.js.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs +1 -1
- package/dist/components-data-table-data-table-column-visibility.cjs.map +1 -1
- package/dist/components-data-table-data-table-column-visibility.js +1 -1
- package/dist/components-data-table-data-table-column-visibility.js.map +1 -1
- package/dist/components-data-table-data-table-filter.cjs +1 -1
- package/dist/components-data-table-data-table-filter.cjs.map +1 -1
- package/dist/components-data-table-data-table-filter.js +15 -15
- package/dist/components-data-table-data-table-filter.js.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs +1 -1
- package/dist/components-data-table-data-table-row-actions-column.cjs.map +1 -1
- package/dist/components-data-table-data-table-row-actions-column.js +19 -20
- package/dist/components-data-table-data-table-row-actions-column.js.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.cjs.map +1 -1
- package/dist/components-data-table-use-data-table-editable-rows.js +88 -90
- package/dist/components-data-table-use-data-table-editable-rows.js.map +1 -1
- package/dist/components-input-contact-input-contact.cjs +1 -1
- package/dist/components-input-contact-input-contact.cjs.map +1 -1
- package/dist/components-input-contact-input-contact.js +8 -8
- package/dist/components-input-field-input-field.cjs +1 -1
- package/dist/components-input-field-input-field.cjs.map +1 -1
- package/dist/components-input-field-input-field.js +18 -19
- package/dist/components-input-field-input-field.js.map +1 -1
- package/dist/components-input-password-input-password.cjs +1 -1
- package/dist/components-input-password-input-password.cjs.map +1 -1
- package/dist/components-input-password-input-password.js +4 -4
- package/dist/components-input-phone-input-phone.cjs.map +1 -1
- package/dist/components-input-phone-input-phone.js.map +1 -1
- package/dist/components-popover-modal-popover-modal.cjs +1 -1
- package/dist/components-popover-modal-popover-modal.cjs.map +1 -1
- package/dist/components-popover-modal-popover-modal.js +40 -29
- package/dist/components-popover-modal-popover-modal.js.map +1 -1
- package/dist/components-select-field-select-field.cjs.map +1 -1
- package/dist/components-select-field-select-field.js.map +1 -1
- package/dist/components-ui-avatar-avatar.cjs +1 -1
- package/dist/components-ui-avatar-avatar.cjs.map +1 -1
- package/dist/components-ui-avatar-avatar.js +12 -13
- package/dist/components-ui-avatar-avatar.js.map +1 -1
- package/dist/components-ui-badge-badge.cjs +1 -1
- package/dist/components-ui-badge-badge.cjs.map +1 -1
- package/dist/components-ui-badge-badge.js +10 -11
- package/dist/components-ui-badge-badge.js.map +1 -1
- package/dist/components-ui-button-button.cjs +1 -1
- package/dist/components-ui-button-button.cjs.map +1 -1
- package/dist/components-ui-button-button.js +10 -11
- package/dist/components-ui-button-button.js.map +1 -1
- package/dist/components-ui-button-button.styles.cjs +4 -4
- package/dist/components-ui-button-button.styles.cjs.map +1 -1
- package/dist/components-ui-button-button.styles.js +4 -4
- package/dist/components-ui-button-button.styles.js.map +1 -1
- package/dist/components-ui-calendar-calendar.cjs +1 -1
- package/dist/components-ui-calendar-calendar.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs +1 -1
- package/dist/components-ui-calendar-calendar.styles.cjs.map +1 -1
- package/dist/components-ui-calendar-calendar.styles.js +1 -1
- package/dist/components-ui-calendar-calendar.styles.js.map +1 -1
- package/dist/components-ui-calendar.cjs +1 -1
- package/dist/components-ui-calendar.js +2 -2
- package/dist/components-ui-card-card.cjs +1 -1
- package/dist/components-ui-card-card.cjs.map +1 -1
- package/dist/components-ui-card-card.js +10 -11
- package/dist/components-ui-card-card.js.map +1 -1
- package/dist/components-ui-chart-chart.cjs +1 -1
- package/dist/components-ui-chart-chart.js +1 -1
- package/dist/components-ui-chart.cjs +1 -1
- package/dist/components-ui-chart.js +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs +1 -1
- package/dist/components-ui-checkbox-checkbox.cjs.map +1 -1
- package/dist/components-ui-checkbox-checkbox.js +11 -12
- package/dist/components-ui-checkbox-checkbox.js.map +1 -1
- package/dist/components-ui-combobox-combobox.cjs +5 -5
- package/dist/components-ui-combobox-combobox.cjs.map +1 -1
- package/dist/components-ui-combobox-combobox.js +1477 -1479
- package/dist/components-ui-combobox-combobox.js.map +1 -1
- package/dist/components-ui-dialog-dialog.cjs +1 -1
- package/dist/components-ui-dialog-dialog.cjs.map +1 -1
- package/dist/components-ui-dialog-dialog.js +4 -5
- package/dist/components-ui-dialog-dialog.js.map +1 -1
- package/dist/components-ui-drawer-drawer.cjs +2 -2
- package/dist/components-ui-drawer-drawer.cjs.map +1 -1
- package/dist/components-ui-drawer-drawer.js +16 -19
- package/dist/components-ui-drawer-drawer.js.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs +2 -2
- package/dist/components-ui-dropdown-menu-dropdown-menu.cjs.map +1 -1
- package/dist/components-ui-dropdown-menu-dropdown-menu.js +45 -46
- package/dist/components-ui-dropdown-menu-dropdown-menu.js.map +1 -1
- package/dist/components-ui-icon-icon.cjs +1 -1
- package/dist/components-ui-icon-icon.cjs.map +1 -1
- package/dist/components-ui-icon-icon.js +54 -61733
- package/dist/components-ui-icon-icon.js.map +1 -1
- package/dist/components-ui-input-group-input-group.cjs +1 -1
- package/dist/components-ui-input-group-input-group.cjs.map +1 -1
- package/dist/components-ui-input-group-input-group.js +12 -13
- package/dist/components-ui-input-group-input-group.js.map +1 -1
- package/dist/components-ui-input-input.cjs +1 -1
- package/dist/components-ui-input-input.cjs.map +1 -1
- package/dist/components-ui-input-input.js +2 -3
- package/dist/components-ui-input-input.js.map +1 -1
- package/dist/components-ui-label-label.cjs +1 -1
- package/dist/components-ui-label-label.cjs.map +1 -1
- package/dist/components-ui-label-label.js +1 -1
- package/dist/components-ui-label-label.js.map +1 -1
- package/dist/components-ui-pagination-pagination.cjs +1 -1
- package/dist/components-ui-pagination-pagination.cjs.map +1 -1
- package/dist/components-ui-pagination-pagination.js +0 -1
- package/dist/components-ui-pagination-pagination.js.map +1 -1
- package/dist/components-ui-popover-popover.cjs +1 -1
- package/dist/components-ui-popover-popover.cjs.map +1 -1
- package/dist/components-ui-popover-popover.js +14 -19
- package/dist/components-ui-popover-popover.js.map +1 -1
- package/dist/components-ui-progress-progress.cjs +1 -1
- package/dist/components-ui-progress-progress.cjs.map +1 -1
- package/dist/components-ui-progress-progress.js +1 -1
- package/dist/components-ui-progress-progress.js.map +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs +1 -1
- package/dist/components-ui-radio-group-radio-group.cjs.map +1 -1
- package/dist/components-ui-radio-group-radio-group.js +0 -1
- package/dist/components-ui-radio-group-radio-group.js.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.cjs.map +1 -1
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js +53 -47
- package/dist/components-ui-select-calendar-menu-select-calendar-menu.js.map +1 -1
- package/dist/components-ui-select-select.cjs +1 -1
- package/dist/components-ui-select-select.cjs.map +1 -1
- package/dist/components-ui-select-select.js +21 -22
- package/dist/components-ui-select-select.js.map +1 -1
- package/dist/components-ui-separator-separator.cjs +1 -1
- package/dist/components-ui-separator-separator.cjs.map +1 -1
- package/dist/components-ui-separator-separator.js +11 -12
- package/dist/components-ui-separator-separator.js.map +1 -1
- package/dist/components-ui-switch-switch.cjs +1 -1
- package/dist/components-ui-switch-switch.cjs.map +1 -1
- package/dist/components-ui-switch-switch.js +6 -7
- package/dist/components-ui-switch-switch.js.map +1 -1
- package/dist/components-ui-table-table.cjs +1 -1
- package/dist/components-ui-table-table.cjs.map +1 -1
- package/dist/components-ui-table-table.js +0 -1
- package/dist/components-ui-table-table.js.map +1 -1
- package/dist/components-ui-tabs-tabs.cjs +2 -2
- package/dist/components-ui-tabs-tabs.cjs.map +1 -1
- package/dist/components-ui-tabs-tabs.js +16 -16
- package/dist/components-ui-tabs-tabs.js.map +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs +1 -1
- package/dist/components-ui-tooltip-tooltip.cjs.map +1 -1
- package/dist/components-ui-tooltip-tooltip.js +9 -10
- package/dist/components-ui-tooltip-tooltip.js.map +1 -1
- package/dist/components-ui-typography-typography.cjs +1 -1
- package/dist/components-ui-typography-typography.cjs.map +1 -1
- package/dist/components-ui-typography-typography.js +7 -7
- package/dist/components-ui-typography-typography.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/calendar-DReGV_22.cjs +0 -2
- package/dist/chart-C69jBlXa.cjs +0 -63
|
@@ -6,7 +6,7 @@ type Props = {
|
|
|
6
6
|
chartContainer?: React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
config: ChartConfig;
|
|
8
8
|
};
|
|
9
|
-
barChart?: CartesianChartProps<
|
|
9
|
+
barChart?: CartesianChartProps<Record<string, unknown>> & {
|
|
10
10
|
ref?: React.Ref<SVGSVGElement> | undefined;
|
|
11
11
|
};
|
|
12
12
|
cartesianGrid?: React.ComponentProps<typeof CartesianGrid>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ColumnDef, ColumnFiltersState, PaginationState, Row, RowSelectionState, SortingState, Table as TanStackTable, Updater, VisibilityState } from '@tanstack/react-table';
|
|
2
|
-
import
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
export type DataTableColumnMeta<TData = unknown> = {
|
|
4
4
|
className?: string;
|
|
5
5
|
headClassName?: string;
|
|
6
6
|
cellClassName?: string;
|
|
7
|
-
style?:
|
|
8
|
-
headStyle?:
|
|
9
|
-
cellStyle?:
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
headStyle?: CSSProperties;
|
|
9
|
+
cellStyle?: CSSProperties;
|
|
10
10
|
editable?: boolean;
|
|
11
11
|
editKey?: Extract<keyof TData, string>;
|
|
12
12
|
editComponent?: "input" | "textarea";
|
|
@@ -17,7 +17,7 @@ export type DataTableColumnMeta<TData = unknown> = {
|
|
|
17
17
|
export interface DataTableProps<TData, TValue> {
|
|
18
18
|
columns: ColumnDef<TData, TValue>[];
|
|
19
19
|
data: TData[];
|
|
20
|
-
emptyState?:
|
|
20
|
+
emptyState?: ReactNode;
|
|
21
21
|
sorting?: SortingState;
|
|
22
22
|
columnFilters?: ColumnFiltersState;
|
|
23
23
|
columnVisibility?: VisibilityState;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { DropdownMenuConfigNode } from '../ui/dropdown-menu';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
type DataTableActionsColumnOptions<TData> = {
|
|
5
5
|
id?: string;
|
|
6
6
|
header?: ColumnDef<TData>["header"];
|
|
7
7
|
renderCell?: (ctx: {
|
|
8
8
|
row: Row<TData>;
|
|
9
9
|
data: TData;
|
|
10
|
-
}) =>
|
|
10
|
+
}) => ReactNode;
|
|
11
11
|
trigger?: (ctx: {
|
|
12
12
|
row: Row<TData>;
|
|
13
13
|
data: TData;
|
|
14
|
-
}) =>
|
|
14
|
+
}) => ReactNode;
|
|
15
15
|
menuItems?: DropdownMenuConfigNode[] | ((ctx: {
|
|
16
16
|
row: Row<TData>;
|
|
17
17
|
data: TData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Row, Table } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
import { DropdownMenuConfigNode } from '../ui/dropdown-menu';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
type DataTableBulkActionsContext<TData> = {
|
|
5
5
|
table: Table<TData>;
|
|
6
6
|
selectedRows: Row<TData>[];
|
|
@@ -10,8 +10,8 @@ type DataTableBulkActionsContext<TData> = {
|
|
|
10
10
|
};
|
|
11
11
|
type DataTableBulkActionsProps<TData> = {
|
|
12
12
|
table: Table<TData>;
|
|
13
|
-
children?: (ctx: DataTableBulkActionsContext<TData>) =>
|
|
14
|
-
trigger?:
|
|
13
|
+
children?: (ctx: DataTableBulkActionsContext<TData>) => ReactNode;
|
|
14
|
+
trigger?: ReactNode | ((ctx: DataTableBulkActionsContext<TData>) => ReactNode);
|
|
15
15
|
menuItems?: DropdownMenuConfigNode[] | ((ctx: DataTableBulkActionsContext<TData>) => DropdownMenuConfigNode[]);
|
|
16
16
|
onDeleteSelected?: (ctx: DataTableBulkActionsContext<TData>) => void;
|
|
17
17
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Table, Updater, VisibilityState } from '@tanstack/react-table';
|
|
2
|
-
import
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
type DataTableColumnVisibilityProps<TData> = {
|
|
4
4
|
table: Table<TData>;
|
|
5
5
|
columnVisibility?: VisibilityState;
|
|
6
6
|
onColumnVisibilityChange?: (updater: Updater<VisibilityState>) => void;
|
|
7
7
|
triggerLabel?: string;
|
|
8
|
-
trigger?:
|
|
8
|
+
trigger?: ReactNode;
|
|
9
9
|
menuLabel?: string;
|
|
10
10
|
includeColumnIds?: string[];
|
|
11
11
|
excludeColumnIds?: string[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Table } from '@tanstack/react-table';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
2
3
|
import { Input } from '../ui/input';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
type DataTableFilterProps<TData> = {
|
|
5
5
|
table: Table<TData>;
|
|
6
6
|
searchableColumnIds?: string[];
|
|
7
7
|
placeholder?: string;
|
|
8
|
-
inputProps?: Omit<
|
|
8
|
+
inputProps?: Omit<ComponentProps<typeof Input>, "value" | "onChange">;
|
|
9
9
|
};
|
|
10
10
|
declare function DataTableFilter<TData>({ table, searchableColumnIds, placeholder, inputProps, }: DataTableFilterProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export { DataTableFilter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ColumnDef, Row } from '@tanstack/react-table';
|
|
2
2
|
import { IconName } from 'phosphor-strokes-icons/by-name';
|
|
3
|
-
import
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
4
|
type DataTableRowActionContext<TData> = {
|
|
5
5
|
row: Row<TData>;
|
|
6
6
|
data: TData;
|
|
@@ -19,7 +19,7 @@ type DataTableRowActionSeparator = DataTableRowActionBase & {
|
|
|
19
19
|
type DataTableRowActionItem<TData> = DataTableRowActionBase & {
|
|
20
20
|
type?: "item";
|
|
21
21
|
label: string;
|
|
22
|
-
icon?:
|
|
22
|
+
icon?: ReactNode;
|
|
23
23
|
iconType?: IconName;
|
|
24
24
|
shortcut?: string;
|
|
25
25
|
disabled?: boolean;
|
|
@@ -34,7 +34,7 @@ type DataTableRowActionsColumnOptions<TData> = {
|
|
|
34
34
|
header?: ColumnDef<TData>["header"];
|
|
35
35
|
align?: "start" | "center" | "end";
|
|
36
36
|
editingRowId?: string | null;
|
|
37
|
-
trigger?: (ctx: DataTableRowActionContext<TData>) =>
|
|
37
|
+
trigger?: (ctx: DataTableRowActionContext<TData>) => ReactNode;
|
|
38
38
|
actions?: DataTableRowActionNode<TData>[] | ((ctx: DataTableRowActionContext<TData>) => DataTableRowActionNode<TData>[]);
|
|
39
39
|
onStartEdit?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
40
40
|
onSaveEdit?: (ctx: DataTableRowActionContext<TData>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
type EditableRowKey<TData> = Extract<keyof TData, string>;
|
|
3
3
|
type EditableValues = Record<string, string>;
|
|
4
4
|
type DataTableRowEditStartEvent<TData> = {
|
|
@@ -34,11 +34,11 @@ type DataTableRowsChangeEvent<TData> = ({
|
|
|
34
34
|
type UseDataTableEditableRowsOptions<TData> = {
|
|
35
35
|
rows: TData[];
|
|
36
36
|
getRowId: (row: TData) => string;
|
|
37
|
-
setRows?:
|
|
37
|
+
setRows?: Dispatch<SetStateAction<TData[]>>;
|
|
38
38
|
editingRowId?: string | null;
|
|
39
39
|
onEditingRowIdChange?: (rowId: string | null) => void;
|
|
40
40
|
editingValues?: EditableValues;
|
|
41
|
-
onEditingValuesChange?:
|
|
41
|
+
onEditingValuesChange?: Dispatch<SetStateAction<EditableValues>>;
|
|
42
42
|
onRowDelete?: (event: DataTableRowDeleteEvent<TData>) => void;
|
|
43
43
|
onRowEditCancel?: (event: DataTableRowEditCancelEvent<TData>) => void;
|
|
44
44
|
onRowEditSave?: (event: DataTableRowEditSaveEvent<TData>) => void;
|
|
@@ -52,8 +52,8 @@ declare function useDataTableEditableRows<TData>({ rows, getRowId, setRows, edit
|
|
|
52
52
|
editingRowId: string | null;
|
|
53
53
|
editingValues: EditableValues;
|
|
54
54
|
saveEditingRow: (rowId: string) => void;
|
|
55
|
-
setEditingValues: (updater:
|
|
56
|
-
setEditingRowId: (updater:
|
|
55
|
+
setEditingValues: (updater: SetStateAction<EditableValues>) => void;
|
|
56
|
+
setEditingRowId: (updater: SetStateAction<string | null>) => void;
|
|
57
57
|
startEditingRow: (row: TData, editableKeys: readonly EditableRowKey<TData>[], overrides?: Partial<Record<EditableRowKey<TData>, string>>) => void;
|
|
58
58
|
};
|
|
59
59
|
export { useDataTableEditableRows };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
export type DateAddon = {
|
|
3
3
|
id: string | number;
|
|
4
4
|
position?: "inline-start" | "inline-end" | "block-start" | "block-end" | null;
|
|
5
|
-
component:
|
|
5
|
+
component: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
type BaseProps = {
|
|
8
8
|
date?: DateAddon[];
|
|
@@ -15,7 +15,7 @@ type BaseProps = {
|
|
|
15
15
|
field?: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
type InputFieldProps = BaseProps &
|
|
18
|
+
type InputFieldProps = BaseProps & ComponentPropsWithRef<"input">;
|
|
19
19
|
export declare const InputField: ({ date, isValid, disabled, label, description, classes, ref, ...rest }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
type InputProps = InputFieldProps;
|
|
21
21
|
export type { InputFieldProps, InputProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type InputPhoneProps = Omit<
|
|
3
|
-
declare const MaskedInputField:
|
|
1
|
+
import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ComponentType } from 'react';
|
|
2
|
+
type InputPhoneProps = Omit<ComponentProps<typeof MaskedInputField>, "inputRef">;
|
|
3
|
+
declare const MaskedInputField: ForwardRefExoticComponent<Omit<{
|
|
4
4
|
[x: string]: unknown;
|
|
5
|
-
}, "ref"> &
|
|
5
|
+
}, "ref"> & RefAttributes<ComponentType<{
|
|
6
6
|
[x: string]: unknown;
|
|
7
7
|
}>>>;
|
|
8
8
|
export declare const InputPhone: (props: InputPhoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type PopoverBasicProps = {
|
|
3
|
-
trigger:
|
|
4
|
-
children:
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
5
|
side?: "top" | "right" | "bottom" | "left";
|
|
6
6
|
align?: "start" | "center" | "end";
|
|
7
7
|
className?: string;
|
|
8
8
|
triggerClassName?: string;
|
|
9
9
|
open?: boolean;
|
|
10
10
|
setOpen?: (value: boolean) => void;
|
|
11
|
-
triggerProps?:
|
|
11
|
+
triggerProps?: HTMLAttributes<HTMLElement>;
|
|
12
12
|
};
|
|
13
13
|
export declare function PopoverBasic({ trigger, children, className, triggerClassName, side, align, open, setOpen, triggerProps, }: PopoverBasicProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import {
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
3
|
import { badgeVariants } from '../ui/badge';
|
|
4
4
|
import { ComboboxChipsInput } from '../ui/combobox';
|
|
5
5
|
export type SelectList = {
|
|
@@ -18,7 +18,7 @@ type SelectBaseProps = {
|
|
|
18
18
|
description?: string;
|
|
19
19
|
onChange?: (value: SelectValue) => void;
|
|
20
20
|
};
|
|
21
|
-
type SelectProps = SelectBaseProps & Omit<
|
|
21
|
+
type SelectProps = SelectBaseProps & Omit<ComponentProps<typeof ComboboxChipsInput>, "list" | "onChange">;
|
|
22
22
|
export declare const SelectField: {
|
|
23
23
|
({ list, label, multiple, disabled, isValid, description, onChange, ...rest }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Avatar as AvatarPrimitive } from 'radix-ui';
|
|
2
|
-
import
|
|
3
|
-
declare function Avatar({ className, size, ...props }:
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
declare function Avatar({ className, size, ...props }: ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
4
4
|
size?: "default" | "sm" | "lg";
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function AvatarImage({ className, ...props }:
|
|
7
|
-
declare function AvatarFallback({ className, ...props }:
|
|
8
|
-
declare function AvatarBadge({ className, ...props }:
|
|
9
|
-
declare function AvatarGroup({ className, ...props }:
|
|
10
|
-
declare function AvatarGroupCount({ className, ...props }:
|
|
6
|
+
declare function AvatarImage({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AvatarFallback({ className, ...props }: ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AvatarBadge({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AvatarGroup({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AvatarGroupCount({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
2
3
|
import { badgeVariants } from './badge.styles';
|
|
3
|
-
|
|
4
|
-
export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "className">, VariantProps<typeof badgeVariants> {
|
|
4
|
+
export interface BadgeProps extends Omit<HTMLAttributes<HTMLDivElement>, "className">, VariantProps<typeof badgeVariants> {
|
|
5
5
|
dotPosition?: "left" | "right";
|
|
6
6
|
classNames?: {
|
|
7
7
|
dotClassName?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ButtonHTMLAttributes, Ref } from 'react';
|
|
2
3
|
import { buttonVariants } from './button.styles';
|
|
3
|
-
|
|
4
|
-
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
4
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
5
5
|
asChild?: boolean;
|
|
6
|
-
ref?:
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
7
7
|
}
|
|
8
8
|
declare const Button: {
|
|
9
9
|
({ className, variant, size, asChild, ref, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
1
2
|
import { DayPicker, DayButton } from 'react-day-picker';
|
|
2
3
|
import { Button } from '../button';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
type CalendarSize = "sm" | "md" | "lg";
|
|
5
5
|
type CalendarPreset = {
|
|
6
6
|
text: string;
|
|
7
7
|
days: number;
|
|
8
8
|
};
|
|
9
|
-
type Props =
|
|
10
|
-
buttonVariant?:
|
|
9
|
+
type Props = ComponentProps<typeof DayPicker> & {
|
|
10
|
+
buttonVariant?: ComponentProps<typeof Button>["variant"];
|
|
11
11
|
size?: CalendarSize;
|
|
12
12
|
classNameWrapper?: string;
|
|
13
13
|
classNameFooter?: string;
|
|
14
|
-
footer?:
|
|
15
|
-
appendFooter?:
|
|
14
|
+
footer?: ReactNode;
|
|
15
|
+
appendFooter?: ReactNode;
|
|
16
16
|
presets?: CalendarPreset[];
|
|
17
17
|
presetBaseDate?: Date;
|
|
18
18
|
onPresetClick?: (preset: CalendarPreset, date: Date) => void;
|
|
19
19
|
};
|
|
20
20
|
declare function Calendar({ className, classNames, classNameWrapper, classNameFooter, showOutsideDays, captionLayout, buttonVariant, size, locale, formatters, components, footer, appendFooter, presets, presetBaseDate, onPresetClick, onDayClick, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare function CalendarDayButton({ className, day, modifiers, children, ...props }:
|
|
21
|
+
declare function CalendarDayButton({ className, day, modifiers, children, ...props }: ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export { Calendar, CalendarDayButton };
|
|
23
23
|
export type { CalendarPreset, Props as CalendarProps };
|
|
@@ -57,6 +57,6 @@ export declare const calendarDayTextVariants: (props?: ({
|
|
|
57
57
|
export declare const calendarFooterVariants: (props?: ({
|
|
58
58
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
59
59
|
} & ClassProp) | undefined) => string;
|
|
60
|
-
export declare const calendarIconClassName = "text-primary-text
|
|
60
|
+
export declare const calendarIconClassName = "text-primary-text cursor-pointer";
|
|
61
61
|
export declare const calendarWeekNumberCellClassName = "flex size-(--cell-size) items-center justify-center text-center";
|
|
62
62
|
export declare const calendarDayTextClassName = "leading-none";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, RefObject } from 'react';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { cardVariants } from './card.styles';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
declare const Card: {
|
|
5
|
-
({ ref, className, variant, disabled, active, ...props }:
|
|
6
|
-
ref?:
|
|
5
|
+
({ ref, className, variant, disabled, active, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
7
7
|
variant?: VariantProps<typeof cardVariants>["variant"];
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
active?: boolean;
|
|
@@ -11,32 +11,32 @@ declare const Card: {
|
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
declare const CardHeader: {
|
|
14
|
-
({ ref, className, ...props }:
|
|
15
|
-
ref?:
|
|
14
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
displayName: string;
|
|
18
18
|
};
|
|
19
19
|
declare const CardTitle: {
|
|
20
|
-
({ ref, className, ...props }:
|
|
21
|
-
ref?:
|
|
20
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
22
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
declare const CardDescription: {
|
|
26
|
-
({ ref, className, ...props }:
|
|
27
|
-
ref?:
|
|
26
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
28
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
displayName: string;
|
|
30
30
|
};
|
|
31
31
|
declare const CardContent: {
|
|
32
|
-
({ ref, className, ...props }:
|
|
33
|
-
ref?:
|
|
32
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
33
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
34
34
|
}): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
displayName: string;
|
|
36
36
|
};
|
|
37
37
|
declare const CardFooter: {
|
|
38
|
-
({ ref, className, ...props }:
|
|
39
|
-
ref?:
|
|
38
|
+
({ ref, className, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
39
|
+
ref?: RefObject<HTMLDivElement | null>;
|
|
40
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
displayName: string;
|
|
42
42
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, ComponentType, ReactNode, MemoExoticComponent } from 'react';
|
|
2
|
+
import { LegendPayload, VerticalAlignmentType } from 'recharts/types/component/DefaultLegendContent';
|
|
3
|
+
import { Payload as TooltipPayloadEntry, ValueType as TooltipValueType, NameType as TooltipNameType } from 'recharts/types/component/DefaultTooltipContent';
|
|
2
4
|
import * as RechartsPrimitive from "recharts";
|
|
3
5
|
declare const THEMES: {
|
|
4
6
|
readonly light: "";
|
|
5
7
|
readonly dark: ".dark";
|
|
6
8
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
|
|
9
|
+
type ChartConfigItem = {
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
icon?: ComponentType;
|
|
12
|
+
} & ({
|
|
13
|
+
color?: string;
|
|
14
|
+
theme?: never;
|
|
15
|
+
} | {
|
|
16
|
+
color?: never;
|
|
17
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
18
|
+
});
|
|
19
|
+
export type ChartConfig = Partial<Record<string, ChartConfigItem>>;
|
|
20
|
+
declare function ChartContainer({ id, className, children, config, ...props }: ComponentProps<"div"> & {
|
|
20
21
|
config: ChartConfig;
|
|
21
|
-
children:
|
|
22
|
+
children: ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
23
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
declare const ChartStyle: ({ id, config }: {
|
|
24
25
|
id: string;
|
|
25
26
|
config: ChartConfig;
|
|
26
27
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
28
|
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
-
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }:
|
|
29
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: ComponentProps<typeof RechartsPrimitive.Tooltip> & ComponentProps<"div"> & {
|
|
29
30
|
hideLabel?: boolean;
|
|
30
31
|
hideIndicator?: boolean;
|
|
31
32
|
indicator?: "line" | "dot" | "dashed";
|
|
32
33
|
nameKey?: string;
|
|
33
34
|
labelKey?: string;
|
|
34
|
-
payload?:
|
|
35
|
-
label?:
|
|
35
|
+
payload?: ReadonlyArray<TooltipPayloadEntry<TooltipValueType, TooltipNameType>>;
|
|
36
|
+
label?: ReactNode;
|
|
36
37
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
37
|
-
declare const ChartLegend:
|
|
38
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }:
|
|
38
|
+
declare const ChartLegend: MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
39
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: ComponentProps<"div"> & {
|
|
40
|
+
payload?: ReadonlyArray<LegendPayload>;
|
|
41
|
+
verticalAlign?: VerticalAlignmentType;
|
|
39
42
|
hideIcon?: boolean;
|
|
40
43
|
nameKey?: string;
|
|
41
|
-
payload?: any[];
|
|
42
44
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
43
45
|
export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ComponentRef, Ref } from 'react';
|
|
1
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
ref?: React.Ref<CheckboxRef>;
|
|
3
|
+
type CheckboxRef = ComponentRef<typeof CheckboxPrimitive.Root>;
|
|
4
|
+
type CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {
|
|
5
|
+
ref?: Ref<CheckboxRef>;
|
|
6
6
|
};
|
|
7
7
|
declare const Checkbox: {
|
|
8
8
|
({ className, ref, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
import { ComponentProps, ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
3
|
import { Field } from '../field';
|
|
3
|
-
import * as React from "react";
|
|
4
4
|
declare function Combobox<Value, Multiple extends boolean | undefined = false>({ children, ...props }: ComboboxPrimitive.Root.Props<Value, Multiple>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function ComboboxField({ className, label, description, error, children, ...props }:
|
|
6
|
-
label?:
|
|
7
|
-
description?:
|
|
8
|
-
error?:
|
|
5
|
+
declare function ComboboxField({ className, label, description, error, children, ...props }: ComponentProps<typeof Field> & {
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
error?: ReactNode;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,7 +23,7 @@ declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupL
|
|
|
23
23
|
declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
declare function ComboboxChips({ className, disabled, ...props }:
|
|
26
|
+
declare function ComboboxChips({ className, disabled, ...props }: ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props & {
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
}): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, HTMLAttributes, FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
1
2
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
type DialogContentProps = React.ComponentPropsWithRef<typeof DialogPrimitive.Content> & {
|
|
3
|
+
type DialogOverlayProps = ComponentPropsWithRef<typeof DialogPrimitive.Overlay>;
|
|
4
|
+
type DialogContentProps = ComponentPropsWithRef<typeof DialogPrimitive.Content> & {
|
|
5
5
|
showCloseButton?: boolean;
|
|
6
6
|
};
|
|
7
|
-
type DialogTitleProps =
|
|
8
|
-
type DialogDescriptionProps =
|
|
9
|
-
declare const Dialog:
|
|
10
|
-
declare const DialogTrigger:
|
|
11
|
-
declare const DialogPortal:
|
|
12
|
-
declare const DialogClose:
|
|
7
|
+
type DialogTitleProps = ComponentPropsWithRef<typeof DialogPrimitive.Title>;
|
|
8
|
+
type DialogDescriptionProps = ComponentPropsWithRef<typeof DialogPrimitive.Description>;
|
|
9
|
+
declare const Dialog: FC<DialogPrimitive.DialogProps>;
|
|
10
|
+
declare const DialogTrigger: ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
declare const DialogPortal: FC<DialogPrimitive.DialogPortalProps>;
|
|
12
|
+
declare const DialogClose: ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
declare const DialogOverlay: {
|
|
14
14
|
({ className, ...props }: DialogOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
displayName: string | undefined;
|
|
@@ -19,11 +19,11 @@ declare const DialogContent: {
|
|
|
19
19
|
displayName: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
declare const DialogHeader: {
|
|
22
|
-
({ className, ...props }:
|
|
22
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
};
|
|
25
25
|
declare const DialogFooter: {
|
|
26
|
-
({ className, ...props }:
|
|
26
|
+
({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
displayName: string;
|
|
28
28
|
};
|
|
29
29
|
declare const DialogTitle: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
1
2
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
2
|
-
|
|
3
|
-
declare function
|
|
4
|
-
declare function
|
|
5
|
-
declare function
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
9
|
-
declare function
|
|
10
|
-
declare function
|
|
11
|
-
declare function
|
|
12
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Drawer({ ...props }: ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DrawerTrigger({ ...props }: ComponentProps<typeof DrawerPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DrawerPortal({ ...props }: ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DrawerClose({ ...props }: ComponentProps<typeof DrawerPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DrawerOverlay({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DrawerContent({ className, children, ...props }: ComponentProps<typeof DrawerPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function DrawerHeader({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function DrawerFooter({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function DrawerTitle({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DrawerDescription({ className, ...props }: ComponentProps<typeof DrawerPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, };
|