@economic/taco 2.67.2 → 2.68.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.
- package/dist/taco.cjs +609 -621
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.d.ts +31 -28
- package/dist/taco.js +609 -621
- package/dist/taco.js.map +1 -1
- package/package.json +3 -3
- package/tailwind.config.js +1 -0
package/dist/taco.d.ts
CHANGED
@@ -1268,7 +1268,7 @@ export declare type FieldProps = React_2.LabelHTMLAttributes<HTMLLabelElement> &
|
|
1268
1268
|
message?: string;
|
1269
1269
|
};
|
1270
1270
|
|
1271
|
-
declare type FixedForwardRef = <T, P =
|
1271
|
+
declare type FixedForwardRef = <T, P = object>(render: (props: P, ref: default_2.Ref<T>) => JSX.Element) => (props: P & default_2.RefAttributes<T>) => JSX.Element;
|
1272
1272
|
|
1273
1273
|
export declare const fixedForwardRef: FixedForwardRef;
|
1274
1274
|
|
@@ -1328,14 +1328,14 @@ export declare type ForwardedDrawerWithStatics = React_2.ForwardRefExoticCompone
|
|
1328
1328
|
|
1329
1329
|
declare type ForwardedGenericTableWithStatics = default_2.ForwardRefExoticComponent<LegacyTableProps<any> & default_2.RefAttributes<HTMLDivElement>> & {
|
1330
1330
|
/** Represents a column in your table */
|
1331
|
-
Column: <TRow extends
|
1331
|
+
Column: <TRow extends object>(props: LegacyTableColumnProps<TRow>) => JSX.Element | null;
|
1332
1332
|
/**
|
1333
1333
|
* Container for columns.
|
1334
1334
|
* Visually this adds a column above and spans all group children.
|
1335
1335
|
* *Note* that groups can only be nested two levels deep
|
1336
1336
|
*/
|
1337
|
-
Group: <TRow extends
|
1338
|
-
} & (<TRow extends
|
1337
|
+
Group: <TRow extends object>(props: LegacyTableGroupProps<TRow>) => JSX.Element | null;
|
1338
|
+
} & (<TRow extends object>(props: LegacyTableProps<TRow> & {
|
1339
1339
|
ref?: default_2.Ref<HTMLDivElement>;
|
1340
1340
|
}) => JSX.Element);
|
1341
1341
|
|
@@ -1424,7 +1424,7 @@ export declare type ForwardedTreeviewWithStatics = default_2.ForwardRefExoticCom
|
|
1424
1424
|
Group: default_2.ForwardRefExoticComponent<TreeviewGroupProps & default_2.RefAttributes<HTMLDivElement>>;
|
1425
1425
|
};
|
1426
1426
|
|
1427
|
-
export declare const getByRowIndexPath: <TRow extends
|
1427
|
+
export declare const getByRowIndexPath: <TRow extends object>(data: Row<TRow>[], rowIndexPath: RowIndexPath) => Row<TRow> | undefined;
|
1428
1428
|
|
1429
1429
|
export declare const getNavigationLinkClasses: (isDraggedOver?: boolean) => string;
|
1430
1430
|
|
@@ -1486,6 +1486,7 @@ export declare type HangerContentProps = React_2.HTMLAttributes<HTMLDivElement>
|
|
1486
1486
|
/** Set the position of the Hanger relative to its achor. Default value is `bottom` */
|
1487
1487
|
placement?: Placement;
|
1488
1488
|
hideWhenDetached?: boolean;
|
1489
|
+
container?: HTMLElement | null;
|
1489
1490
|
};
|
1490
1491
|
|
1491
1492
|
export declare type HangerProps = React_2.PropsWithChildren<{
|
@@ -1533,7 +1534,7 @@ export declare type HoverCardContentProps = React_2.HTMLAttributes<HTMLDivElemen
|
|
1533
1534
|
placement?: Placement;
|
1534
1535
|
};
|
1535
1536
|
|
1536
|
-
export declare type HoverCardProps = React_2.PropsWithChildren<
|
1537
|
+
export declare type HoverCardProps = React_2.PropsWithChildren<object>;
|
1537
1538
|
|
1538
1539
|
export declare type HoverCardTriggerProps = React_2.HTMLAttributes<HTMLAnchorElement>;
|
1539
1540
|
|
@@ -1648,7 +1649,7 @@ export declare type InputWithoutDeprecatedFeaturesProps = Omit<React_2.InputHTML
|
|
1648
1649
|
prefix?: string | JSX.Element;
|
1649
1650
|
};
|
1650
1651
|
|
1651
|
-
export declare const insertChildTableRow: <TRow extends
|
1652
|
+
export declare const insertChildTableRow: <TRow extends object>(data: Row<TRow>[], rowIndexPath: RowIndexPath, values: Row<TRow>) => [Row<TRow>[], RowIndexPath];
|
1652
1653
|
|
1653
1654
|
export declare const isMacOs: () => boolean;
|
1654
1655
|
|
@@ -1716,7 +1717,7 @@ export declare type LegacyDonutChartSegmentProps = {
|
|
1716
1717
|
|
1717
1718
|
export declare type LegacyDonutSegmentIds = string[];
|
1718
1719
|
|
1719
|
-
export declare type LegacyTableCell<TRow extends
|
1720
|
+
export declare type LegacyTableCell<TRow extends object> = {
|
1720
1721
|
accessor: string;
|
1721
1722
|
/** Represents the row which renders the specific cell, exposing its properties */
|
1722
1723
|
row: LegacyTableRow<TRow>;
|
@@ -1724,11 +1725,11 @@ export declare type LegacyTableCell<TRow extends {}> = {
|
|
1724
1725
|
value: any;
|
1725
1726
|
};
|
1726
1727
|
|
1727
|
-
declare type LegacyTableChild<TRow extends
|
1728
|
+
declare type LegacyTableChild<TRow extends object> = default_2.ReactElement<LegacyTableColumnProps<TRow>> | default_2.ReactElement<LegacyTableGroupProps<TRow>> | boolean | null;
|
1728
1729
|
|
1729
|
-
declare type LegacyTableChildren<TRow extends
|
1730
|
+
declare type LegacyTableChildren<TRow extends object> = LegacyTableChild<TRow> | LegacyTableChild<TRow>[];
|
1730
1731
|
|
1731
|
-
export declare type LegacyTableColumnProps<TRow extends
|
1732
|
+
export declare type LegacyTableColumnProps<TRow extends object> = {
|
1732
1733
|
/**
|
1733
1734
|
* This string is used to build the data model for your column.
|
1734
1735
|
* It should match one of the properties defined in your `data` object on `Table`,
|
@@ -1782,7 +1783,7 @@ export declare type LegacyTableColumnProps<TRow extends {}> = {
|
|
1782
1783
|
style?: object;
|
1783
1784
|
};
|
1784
1785
|
|
1785
|
-
export declare type LegacyTableGroupProps<TRow extends
|
1786
|
+
export declare type LegacyTableGroupProps<TRow extends object> = {
|
1786
1787
|
/** Content of a group should be another `Table.Group` or a `Table.Column` */
|
1787
1788
|
children: default_2.ReactElement<LegacyTableColumnProps<TRow>> | default_2.ReactElement<LegacyTableColumnProps<TRow>>[];
|
1788
1789
|
/** Hide the entire group (and columns defined within group) */
|
@@ -1791,7 +1792,7 @@ export declare type LegacyTableGroupProps<TRow extends {}> = {
|
|
1791
1792
|
title: string;
|
1792
1793
|
};
|
1793
1794
|
|
1794
|
-
export declare type LegacyTableProps<TRow extends
|
1795
|
+
export declare type LegacyTableProps<TRow extends object> = default_2.HTMLAttributes<HTMLDivElement> & {
|
1795
1796
|
/** Autofocus the table when loaded */
|
1796
1797
|
autoFocus?: boolean;
|
1797
1798
|
/**
|
@@ -1894,7 +1895,7 @@ export declare type LegacyTableRef = HTMLDivElement & {
|
|
1894
1895
|
};
|
1895
1896
|
};
|
1896
1897
|
|
1897
|
-
export declare type LegacyTableRow<TRow extends
|
1898
|
+
export declare type LegacyTableRow<TRow extends object> = {
|
1898
1899
|
/**
|
1899
1900
|
* Index of the row.
|
1900
1901
|
* Note: This index is relative to the root or parent row if it is a sub row
|
@@ -2595,6 +2596,7 @@ export declare type PopoverContentProps = Omit<PopoverPrimitive.PopoverContentPr
|
|
2595
2596
|
children: React_2.ReactNode | ((props: PopoverContentRenderProps) => React_2.ReactNode);
|
2596
2597
|
/** Set the position of the Popover relative to its trigger. Default value is `bottom` */
|
2597
2598
|
placement?: Placement;
|
2599
|
+
container?: HTMLElement | null;
|
2598
2600
|
};
|
2599
2601
|
|
2600
2602
|
export declare type PopoverContentRenderProps = {
|
@@ -2673,7 +2675,7 @@ export declare type RemapReactAriaIsProperties<T> = {
|
|
2673
2675
|
[K in keyof T as K extends `is${infer Rest}` ? Uncapitalize<Rest> : K]: T[K];
|
2674
2676
|
};
|
2675
2677
|
|
2676
|
-
export declare const removeChildTableRow: <TRow extends
|
2678
|
+
export declare const removeChildTableRow: <TRow extends object>(data: Row<TRow>[], rowIndexPath: RowIndexPath) => Row<TRow>[];
|
2677
2679
|
|
2678
2680
|
declare const Report_2: (<TType = unknown>(props: ReportProps<TType> & default_2.RefAttributes<ReportRef>) => JSX.Element) & {
|
2679
2681
|
Column: typeof Column;
|
@@ -2703,11 +2705,11 @@ declare const Root_2: default_2.ForwardRefExoticComponent<default_2.HTMLAttribut
|
|
2703
2705
|
value?: Listbox2Value;
|
2704
2706
|
} & default_2.RefAttributes<CollectionPrimitive_2.CollectionRef>>;
|
2705
2707
|
|
2706
|
-
export declare type Row<TRow extends
|
2708
|
+
export declare type Row<TRow extends object> = TRow & {
|
2707
2709
|
subRows?: Row<TRow>[];
|
2708
2710
|
};
|
2709
2711
|
|
2710
|
-
declare type RowAction<TRow extends
|
2712
|
+
declare type RowAction<TRow extends object> = {
|
2711
2713
|
disabled?: ((row: LegacyTableRow<TRow>) => boolean) | boolean;
|
2712
2714
|
icon: ((row: LegacyTableRow<TRow>) => IconName) | IconName;
|
2713
2715
|
onClick: (row: LegacyTableRow<TRow>, event: default_2.MouseEvent<HTMLElement>) => void;
|
@@ -2717,21 +2719,21 @@ declare type RowAction<TRow extends {}> = {
|
|
2717
2719
|
visible?: ((row: LegacyTableRow<TRow>) => boolean) | boolean;
|
2718
2720
|
};
|
2719
2721
|
|
2720
|
-
export declare type RowActionHandler<TRow extends
|
2722
|
+
export declare type RowActionHandler<TRow extends object> = RowAction<TRow> | undefined | null | boolean;
|
2721
2723
|
|
2722
|
-
declare type RowActiveHandler<TRow extends
|
2724
|
+
declare type RowActiveHandler<TRow extends object> = (row: LegacyTableRow<TRow>) => void;
|
2723
2725
|
|
2724
|
-
export declare type RowClickHandler<TRow extends
|
2726
|
+
export declare type RowClickHandler<TRow extends object> = (row: LegacyTableRow<TRow>, event: default_2.MouseEvent) => void;
|
2725
2727
|
|
2726
|
-
export declare type RowCopyHandler<TRow extends
|
2728
|
+
export declare type RowCopyHandler<TRow extends object> = (row: LegacyTableRow<TRow>, event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
2727
2729
|
|
2728
|
-
export declare type RowCreateHandler<TRow extends
|
2730
|
+
export declare type RowCreateHandler<TRow extends object> = (parentRow: LegacyTableRow<TRow>, event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
2729
2731
|
|
2730
|
-
export declare type RowDeleteHandler<TRow extends
|
2732
|
+
export declare type RowDeleteHandler<TRow extends object> = (row: LegacyTableRow<TRow>, event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
2731
2733
|
|
2732
|
-
export declare type RowDragHandler<TRow extends
|
2734
|
+
export declare type RowDragHandler<TRow extends object> = (rows: Array<LegacyTableRow<TRow>>, showPlaceholder: (placeholder: string) => void, event: default_2.DragEvent) => void;
|
2733
2735
|
|
2734
|
-
declare type RowEditHandler<TRow extends
|
2736
|
+
declare type RowEditHandler<TRow extends object> = (row: LegacyTableRow<TRow>, event: default_2.MouseEvent<HTMLButtonElement>) => void;
|
2735
2737
|
|
2736
2738
|
export declare type RowIndexPath = string | undefined;
|
2737
2739
|
|
@@ -2925,7 +2927,7 @@ export declare type SelectTexts = {
|
|
2925
2927
|
allOptionsSelected: string;
|
2926
2928
|
};
|
2927
2929
|
|
2928
|
-
export declare const setByRowIndexPath: <TRow extends
|
2930
|
+
export declare const setByRowIndexPath: <TRow extends object>(data: Row<TRow>[], rowIndexPath: RowIndexPath, values: unknown) => Row<TRow>[];
|
2929
2931
|
|
2930
2932
|
export declare const Shortcut: ({ keys, ...props }: ShortcutProps) => default_2.JSX.Element;
|
2931
2933
|
|
@@ -3039,6 +3041,7 @@ export declare interface Table3CommonProps<TType = unknown> extends Table3Featur
|
|
3039
3041
|
onEditingCreate?: Table3EditingCreateHandler<TType>;
|
3040
3042
|
onEditingDiscard?: Table3EditingDiscardHandler;
|
3041
3043
|
validator?: Table3EditingValidatorFn<TType>;
|
3044
|
+
showEditingActions?: boolean;
|
3042
3045
|
}
|
3043
3046
|
|
3044
3047
|
export declare type Table3EditingChangeHandler<TType = unknown> = (accessor: string, value: unknown, row: TType, prevRow: TType) => Promise<Partial<TType>> | undefined;
|
@@ -4052,14 +4055,14 @@ export declare type useTableDataPageFetcher2<TType = unknown> = (pageIndex: numb
|
|
4052
4055
|
length: number;
|
4053
4056
|
}>;
|
4054
4057
|
|
4055
|
-
export declare type useTableRowCreation<TRow extends
|
4058
|
+
export declare type useTableRowCreation<TRow extends object> = {
|
4056
4059
|
data: Row<TRow>[];
|
4057
4060
|
create: (rowIndexPath: RowIndexPath, values?: object | undefined) => RowIndexPath;
|
4058
4061
|
remove: (rowIndexPath: RowIndexPath) => void;
|
4059
4062
|
isCreating: boolean;
|
4060
4063
|
};
|
4061
4064
|
|
4062
|
-
export declare const useTableRowCreation: <TRow extends
|
4065
|
+
export declare const useTableRowCreation: <TRow extends object>(data: Row<TRow>[], tableRef: default_2.RefObject<LegacyTableRef>) => useTableRowCreation<TRow>;
|
4063
4066
|
|
4064
4067
|
export declare const useToast: () => Toaster<ToastReference>;
|
4065
4068
|
|