@scbt-ecom/ui 0.120.0 → 0.120.2
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/lib/shared/style.css +1 -1
- package/dist/lib/shared/ui/icon/allowedIcons.js +1 -1
- package/dist/lib/shared/ui/icon/allowedIcons.js.map +1 -1
- package/dist/lib/shared/ui/icon/iconsMap.js +1 -1
- package/dist/lib/shared/ui/icon/iconsMap.js.map +1 -1
- package/dist/lib/shared/ui/pagination/hooks/usePagination.js +1 -1
- package/dist/lib/shared/ui/pagination/hooks/usePagination.js.map +1 -1
- package/dist/lib/shared/ui/table/Desktop.js +1 -1
- package/dist/lib/shared/ui/table/Desktop.js.map +1 -1
- package/dist/lib/shared/ui/table/Horizontal.js +1 -1
- package/dist/lib/shared/ui/table/Horizontal.js.map +1 -1
- package/dist/lib/shared/ui/table/model/TableUtils.js +1 -1
- package/dist/lib/shared/ui/table/model/TableUtils.js.map +1 -1
- package/dist/lib/shared/ui/table/ui/editableCell/EditableCell.js +1 -1
- package/dist/lib/shared/ui/table/ui/editableCell/EditableCell.js.map +1 -1
- package/dist/lib/widgets/model/helpers.js +2 -2
- package/dist/lib/widgets/model/helpers.js.map +1 -1
- package/dist/static/files/fileMultiple.svg.js +2 -0
- package/dist/static/files/fileMultiple.svg.js.map +1 -0
- package/dist/static/static/files/fileMultiple.svg +3 -0
- package/dist/stats.html +1 -1
- package/dist/types/lib/shared/ui/icon/allowedIcons.d.ts +2 -2
- package/dist/types/lib/shared/ui/icon/iconsMap.d.ts +6 -0
- package/dist/types/lib/shared/ui/table/ui/editableCell/EditableCell.d.ts +6 -1
- package/package.json +1 -1
|
@@ -8,11 +8,11 @@ export declare const allowedIcons: {
|
|
|
8
8
|
readonly logos: readonly ["logos/beeline", "logos/megafon", "logos/mts"];
|
|
9
9
|
readonly info: readonly ["info/helpCircle", "info/warningCircle"];
|
|
10
10
|
readonly general: readonly ["general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/optionsHorizontal", "general/optionsVertical", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye"];
|
|
11
|
-
readonly files: readonly ["files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload"];
|
|
11
|
+
readonly files: readonly ["files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/fileMultiple", "files/upload"];
|
|
12
12
|
readonly editor: readonly ["editor/bold", "editor/fonts", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo"];
|
|
13
13
|
readonly communication: readonly ["communication/phone"];
|
|
14
14
|
readonly brandLogos: readonly ["brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite"];
|
|
15
15
|
readonly arrows: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll"];
|
|
16
16
|
};
|
|
17
|
-
readonly flatten: readonly ["status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser", "status/succesCircle", "social/classmates", "social/telegram", "social/vk", "media/desktop", "media/mobile", "logos/beeline", "logos/megafon", "logos/mts", "info/helpCircle", "info/warningCircle", "general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/optionsHorizontal", "general/optionsVertical", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload", "editor/bold", "editor/fonts", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "communication/phone", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll"];
|
|
17
|
+
readonly flatten: readonly ["status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser", "status/succesCircle", "social/classmates", "social/telegram", "social/vk", "media/desktop", "media/mobile", "logos/beeline", "logos/megafon", "logos/mts", "info/helpCircle", "info/warningCircle", "general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/optionsHorizontal", "general/optionsVertical", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/fileMultiple", "files/upload", "editor/bold", "editor/fonts", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "communication/phone", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll"];
|
|
18
18
|
};
|
|
@@ -203,6 +203,12 @@ export declare const iconsMap: {
|
|
|
203
203
|
desc?: string;
|
|
204
204
|
descId?: string;
|
|
205
205
|
}>;
|
|
206
|
+
'files/fileMultiple': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
207
|
+
title?: string;
|
|
208
|
+
titleId?: string;
|
|
209
|
+
desc?: string;
|
|
210
|
+
descId?: string;
|
|
211
|
+
}>;
|
|
206
212
|
'files/upload': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
207
213
|
title?: string;
|
|
208
214
|
titleId?: string;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
|
+
import { AllowedIcons } from '../../..';
|
|
2
3
|
type Cell<TData, TValue> = CellContext<TData, TValue> & {
|
|
3
4
|
rowIndex?: number;
|
|
4
5
|
};
|
|
5
6
|
interface EditableCellProps<TData, TValue> extends Cell<TData, TValue> {
|
|
6
7
|
target: keyof TData;
|
|
7
8
|
update: (target: number, values: TData) => void;
|
|
9
|
+
attachment?: {
|
|
10
|
+
icon: AllowedIcons;
|
|
11
|
+
handler?: (value: TValue | string, event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
};
|
|
8
13
|
}
|
|
9
|
-
export declare const EditableCell: <TData, TValue extends string | undefined>({ row, getValue, update, target, rowIndex }: EditableCellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const EditableCell: <TData, TValue extends string | undefined>({ row, getValue, update, target, rowIndex, attachment }: EditableCellProps<TData, TValue>) => import("react/jsx-runtime").JSX.Element;
|
|
10
15
|
export {};
|