gantri-components 2.83.0-beta.9 → 2.83.1
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/table/components/after-row-component/after-row-component.types.d.ts +8 -2
- package/dist/components/table/components/table-draggable-row/table-draggable-row.styles.d.ts +3 -0
- package/dist/components/table/components/table-row/helpers/get-row-component-props/get-row-component-props.d.ts +1 -0
- package/dist/components/table/components/table-row/table-row.constants.d.ts +1 -0
- package/dist/components/table/table.styles.d.ts +2 -0
- package/dist/components/table/table.types.d.ts +2 -0
- package/dist/helpers/get-file-url/get-file-url.constants.d.ts +2 -1
- package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JSXElementConstructor } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSXElementConstructor } from 'react';
|
|
2
2
|
import { Row, RowData } from '@tanstack/react-table';
|
|
3
|
-
export interface AfterRowComponentProps<TData extends RowData> {
|
|
3
|
+
export interface AfterRowComponentProps<TData extends RowData> extends Partial<HTMLAttributes<HTMLTableRowElement>> {
|
|
4
4
|
getAfterRowComponent: GetAfterRowComponentDef<TData> | undefined;
|
|
5
5
|
row: Row<TData>;
|
|
6
6
|
}
|
|
@@ -8,9 +8,15 @@ export type GetAfterRowComponentDef<TData extends RowData> = (props: {
|
|
|
8
8
|
row: Row<TData>;
|
|
9
9
|
}) => {
|
|
10
10
|
Component: AfterRowComponentDef<TData> | false | null | undefined;
|
|
11
|
+
/** If `false`, your `Component` will not be wrapped in `tr`/`td` elements, but you can use the props passed to Component to create them. */
|
|
11
12
|
disableTableFormatting?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export type AfterRowComponentDef<TData extends RowData> = JSXElementConstructor<{
|
|
15
|
+
/** Can be used to calculate the `colSpan` for your `td` elements. */
|
|
14
16
|
numColumns: number;
|
|
15
17
|
row: Row<TData>;
|
|
18
|
+
/** If `disableTableFormatting === true`, you can pass these attributes to your own `td` elements. */
|
|
19
|
+
tdAttrs: HTMLAttributes<HTMLTableCellElement>;
|
|
20
|
+
/** If `disableTableFormatting === true`, you can pass these attributes to your own `tr` element. */
|
|
21
|
+
trAttrs: HTMLAttributes<HTMLTableRowElement>;
|
|
16
22
|
}>;
|
package/dist/components/table/components/table-draggable-row/table-draggable-row.styles.d.ts
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
+
export declare const StyledDraggableRowTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, {
|
|
2
|
+
reorderEnabled: boolean;
|
|
3
|
+
}, never>;
|
|
1
4
|
export declare const StyledDraggableRowWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -4,6 +4,7 @@ import { TableRowProps } from '../../table-row.types';
|
|
|
4
4
|
export declare const getRowComponentProps: <TData extends RowData<import("../../../..").CustomTData>>(props: TableRowProps<TData>) => {
|
|
5
5
|
className: string;
|
|
6
6
|
onClick: (event: MouseEvent<HTMLTableRowElement>) => void;
|
|
7
|
+
"data-is-data-row": string;
|
|
7
8
|
"data-row-is-clickable": string | undefined;
|
|
8
9
|
"data-row-status": import("../../../..").RowStatusValue | undefined;
|
|
9
10
|
defaultChecked?: boolean | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** See `RowStatusValue` type for possible values. */
|
|
2
2
|
export declare const dataAttrRowStatus: "data-row-status";
|
|
3
3
|
export declare const dataAttrRowIsClickable: "data-row-is-clickable";
|
|
4
|
+
export declare const dataAttrIsDataRow: "data-is-data-row";
|
|
4
5
|
export declare const dataAttrRowHighlightOnHover: "data-row-highlight-on-hover";
|
|
5
6
|
/** Applying this data attribute marks a row as active, applying a new background color. */
|
|
6
7
|
export declare const dataAttrActiveRow: "data-active-row";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
import { DefaultTheme } from 'styled-components';
|
|
2
3
|
export declare const getTableRowBackgroundColors: ({ theme, backgroundColor, clickableRowHoverBackgroundColor, }: {
|
|
3
4
|
backgroundColor: string | undefined;
|
|
@@ -20,4 +21,5 @@ export declare const StyledTable: import("styled-components").StyledComponent<"t
|
|
|
20
21
|
stickyFirstColumn: boolean | undefined;
|
|
21
22
|
stickyFooter: boolean | undefined;
|
|
22
23
|
stickyLastColumn: boolean | undefined;
|
|
24
|
+
verticalAlign: Property.VerticalAlign | undefined;
|
|
23
25
|
}, never>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
import { Cell, ColumnDef, Header, Row, RowData, TableOptions } from '@tanstack/react-table';
|
|
2
3
|
import { Dispatch, HTMLAttributes, MouseEvent, MouseEventHandler, SetStateAction } from 'react';
|
|
3
4
|
import { PagingProps } from './components/table-actions-wrapper/components/paging/paging.types';
|
|
@@ -71,6 +72,7 @@ export interface TableDefaultProps {
|
|
|
71
72
|
stickyFooter: boolean;
|
|
72
73
|
/** Providing `customColumns` will automatically make the last column sticky. */
|
|
73
74
|
stickyLastColumn: boolean;
|
|
75
|
+
verticalAlign: Property.VerticalAlign;
|
|
74
76
|
}
|
|
75
77
|
export type GetHeaderCellProps<TData extends RowData, TValue = unknown> = (cell?: Header<TData, TValue>) => CustomCellProps;
|
|
76
78
|
/** Include `status` in the returned object to set the row status color. */
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const cloudinaryImagePrefix = "https://res.cloudinary.com/gantri/image/upload";
|
|
2
|
+
export declare const cloudinaryVideoPrefix = "https://res.cloudinary.com/gantri/video/upload";
|
package/dist/helpers/get-folder-structure/helpers/get-products-path/get-products-path.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateVersion } from '../../globals.types';
|
|
2
2
|
import { Environment } from '../../../../global';
|
|
3
|
-
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'handouts' | 'universal-handouts' | 'instructions' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'value-props';
|
|
3
|
+
export type ProductsFileType = 'bulb-change-instructions' | 'dimming-photos' | 'handouts' | 'universal-handouts' | 'instructions' | 'lifestyle-photos' | 'model' | 'part-files' | 'product-photos' | 'scale-photo' | 'value-props' | 'videos';
|
|
4
4
|
interface ProductsRootLevel {
|
|
5
5
|
productId: number;
|
|
6
6
|
}
|
|
@@ -17,5 +17,5 @@ interface ProductsArgs<FileType extends ProductsFileType, Identifiers extends Re
|
|
|
17
17
|
fileType: FileType;
|
|
18
18
|
identifiers: Identifiers;
|
|
19
19
|
}
|
|
20
|
-
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'handouts' | 'value-props' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos' | 'model' | 'product-photos' | 'scale-photo' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
20
|
+
export type GetProductsArgs<FileType extends ProductsFileType> = FileType extends 'bulb-change-instructions' | 'handouts' | 'value-props' ? ProductsArgs<FileType, ProductsRootLevel> : FileType extends 'dimming-photos' | 'lifestyle-photos' | 'model' | 'product-photos' | 'scale-photo' | 'videos' ? ProductsArgs<FileType, ProductsSkuLevel> : FileType extends 'instructions' | 'part-files' ? ProductsArgs<FileType, ProductsTemplateLevel> : FileType extends 'universal-handouts' ? ProductsArgs<FileType, Record<string, never>> : never;
|
|
21
21
|
export {};
|