gantri-components 2.133.0-beta.9 → 2.133.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/file-uploader/components/configured-custom-content/configured-custom-content.types.d.ts +1 -1
- package/dist/components/file-uploader/file-uploader.styles.d.ts +2 -2
- package/dist/components/file-uploader/file-uploader.types.d.ts +3 -13
- package/dist/components/file-uploader/helpers/get-valid-files/get-valid-files.types.d.ts +1 -1
- package/dist/components/file-uploader/helpers/index.d.ts +0 -1
- package/dist/components/file-uploader/helpers/validate-image-dimensions/validate-image-dimensions.d.ts +3 -3
- package/dist/components/file-uploader/helpers/validate-image-dimensions/validate-image-dimensions.types.d.ts +1 -8
- package/dist/components/file-uploader/hooks/use-drag-and-drop-files/use-drag-and-drop-files.d.ts +1 -6
- package/dist/components/file-uploader/hooks/use-drag-and-drop-files/use-drag-and-drop-files.types.d.ts +3 -3
- package/dist/components/file-uploader/hooks/use-uploader-actions/hooks/use-handle-selected-files/use-handle-selected-files.types.d.ts +1 -1
- package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts +1 -1
- package/dist/components/filter-button/filter-button.types.d.ts +1 -0
- package/dist/components/icon/generated/ui-control/PlusCircleFilled.d.ts +3 -0
- package/dist/components/icon/generated/ui-control/PlusCircleFilled24.d.ts +3 -0
- package/dist/components/icon/generated/ui-control/index.d.ts +2 -0
- package/dist/components/icon/icon.type.d.ts +1 -1
- package/dist/components/pills/components/pill/pill.types.d.ts +1 -0
- package/dist/components/search-field/search-field.styles.d.ts +4 -0
- package/dist/components/search-field/search-field.types.d.ts +8 -1
- package/dist/components/table/components/selectable-row-checkbox-wrapper/selectable-row-checkbox-wrapper.types.d.ts +1 -0
- package/dist/components/table/components/table-draggable-row/table-draggable-row.styles.d.ts +3 -0
- package/dist/helpers/generate-skus-functions/helpers/generate-skus-from-options/generate-skus-from-options.types.d.ts +1 -0
- package/dist/index.cjs.js +1 -2
- package/dist/index.esm.js +1 -2
- package/dist/index.umd.js +1 -2
- package/package.json +4 -5
- package/dist/components/file-uploader/helpers/validate-file-extension/index.d.ts +0 -1
- package/dist/components/file-uploader/helpers/validate-file-extension/validate-file-extension.d.ts +0 -3
- package/dist/components/file-uploader/helpers/validate-file-extension/validate-file-extension.types.d.ts +0 -4
- package/dist/components/table/hooks/use-selectable-table-rows/components/clear-selected-rows/clear-selected-rows.d.ts +0 -2
- package/dist/components/table/hooks/use-selectable-table-rows/components/clear-selected-rows/clear-selected-rows.styles.d.ts +0 -2
- package/dist/components/table/hooks/use-selectable-table-rows/components/clear-selected-rows/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-row-cell/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-row-cell/selectable-row-cell.d.ts +0 -4
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-row-cell/selectable-row-cell.styles.d.ts +0 -2
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-row-cell/selectable-row-cell.types.d.ts +0 -6
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-footer/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-footer/selectable-table-row-footer.d.ts +0 -3
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-footer/selectable-table-row-footer.types.d.ts +0 -3
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-header/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-header/selectable-table-row-header.d.ts +0 -4
- package/dist/components/table/hooks/use-selectable-table-rows/components/selectable-table-row-header/selectable-table-row-header.types.d.ts +0 -5
- package/dist/components/table/hooks/use-selectable-table-rows/helpers/get-row-range/get-row-range.d.ts +0 -3
- package/dist/components/table/hooks/use-selectable-table-rows/helpers/get-row-range/get-row-range.types.d.ts +0 -6
- package/dist/components/table/hooks/use-selectable-table-rows/helpers/get-row-range/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/index.d.ts +0 -1
- package/dist/components/table/hooks/use-selectable-table-rows/use-selectable-table-rows.constants.d.ts +0 -6
- package/dist/components/table/hooks/use-selectable-table-rows/use-selectable-table-rows.d.ts +0 -10
- package/dist/components/table/hooks/use-selectable-table-rows/use-selectable-table-rows.types.d.ts +0 -9
- package/dist/global/context/index.d.ts +0 -1
- package/dist/global/context/translation/index.d.ts +0 -1
- package/dist/global/context/translation/translation.context.d.ts +0 -11
- package/dist/global/context/translation-name-space/index.d.ts +0 -1
- package/dist/global/context/translation-name-space/translation-name-space.context.d.ts +0 -11
- package/dist/helpers/generate-skus-functions/get-colors-by-product-id/__tests__/get-colors-by-product-id.test.d.ts +0 -1
- package/dist/helpers/generate-skus-functions/get-colors-by-product-id/get-colors-by-product-id.d.ts +0 -9
- package/dist/helpers/generate-skus-functions/get-colors-by-product-id/index.d.ts +0 -1
- package/dist/helpers/generate-skus-functions/get-sku-selectors/get-sku-selectors.d.ts +0 -13
- package/dist/helpers/generate-skus-functions/get-sku-selectors/get-sku-selectors.types.d.ts +0 -8
- package/dist/helpers/generate-skus-functions/get-sku-selectors/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/use-provider/index.d.ts +0 -1
- package/dist/hooks/use-provider/use-provider.d.ts +0 -33
- package/dist/hooks/use-provider/use-provider.types.d.ts +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type ConfiguredCustomContentProps = OptionalValues<
|
|
3
|
+
export type ConfiguredCustomContentProps = OptionalValues<Pick<FileUploaderProps, 'CustomContent' | 'enableCopyUrl' | 'fileName' | 'fileUrl' | 'isDraggable' | 'isReplaceable' | 'processing' | 'SortableDragHandleWrapper'>> & {
|
|
4
4
|
deleteFile: () => Promise<void>;
|
|
5
5
|
handleOpenFileSelect: () => void;
|
|
6
6
|
isDraggingOver: boolean;
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { OptionalValues } from '../../types/common';
|
|
3
3
|
export declare const StyledFileInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, OptionalValues<{
|
|
4
4
|
$fileUrl: string;
|
|
5
|
-
$
|
|
6
|
-
|
|
5
|
+
$isDisabled: boolean;
|
|
6
|
+
$isThumbnail: boolean;
|
|
7
7
|
}, undefined>>> & string;
|
|
@@ -12,19 +12,16 @@ export type FileUploaderProps = {
|
|
|
12
12
|
fileUrl: string;
|
|
13
13
|
/** This function should delete the record from the database, ***then*** delete the file. */
|
|
14
14
|
handleDeleteFile: HandleDeleteFile;
|
|
15
|
+
/** Provide this if supporting multiple uploads to prevent multiple calls to update the database. */
|
|
16
|
+
handleUploadsComplete: HandleUploadsComplete;
|
|
15
17
|
inputName?: string;
|
|
16
18
|
isActive?: boolean;
|
|
17
19
|
isDisabled?: boolean;
|
|
18
|
-
/** Updates the input to be used as a file drop zone. */
|
|
19
|
-
isDropZone?: boolean;
|
|
20
20
|
/** Use with variant `'thumbnail'` to always show the uploader view. */
|
|
21
21
|
isUploaderOnly?: boolean;
|
|
22
22
|
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
23
23
|
onClick?: BoxProps['onClick'];
|
|
24
24
|
onError: OnFileUploaderError;
|
|
25
|
-
onValidationCompleted?: () => void;
|
|
26
|
-
onValidationStarted?: () => void;
|
|
27
|
-
onlyUseCustomValidationFn?: boolean;
|
|
28
25
|
/** Used to show loading indicator for `'thumbnail'` variant. For the `'button'` variant, it can be passed here or as part of `buttonProps`. */
|
|
29
26
|
processing: boolean;
|
|
30
27
|
purifyFileName?: boolean;
|
|
@@ -33,7 +30,6 @@ export type FileUploaderProps = {
|
|
|
33
30
|
transformThumbnailSrc?: TransformThumbnailSrc;
|
|
34
31
|
/** If invalid, return the error message to display. */
|
|
35
32
|
validateFile?: ValidateFile;
|
|
36
|
-
validateSequentially?: boolean;
|
|
37
33
|
/** The 'link' and 'plain' variants will show the 'button' variant if nothing has been uploaded yet. */
|
|
38
34
|
variant: FileUploaderVariant;
|
|
39
35
|
} & Partial<FileUploaderDefaultProps> & (WithDraggableProps | WithoutDraggableProps) & (WithReplaceableProps | WithoutReplaceableProps) & (ImmediatelyUploadProps | DelayUploadProps) & (WithCustomContent | WithoutCustomContent);
|
|
@@ -61,13 +57,12 @@ export interface FileMetaData {
|
|
|
61
57
|
}
|
|
62
58
|
export interface SelectedFileDetails {
|
|
63
59
|
fileBlob: Blob;
|
|
64
|
-
fileExtension: string;
|
|
65
60
|
fileName: string;
|
|
66
61
|
fileSize: number;
|
|
67
62
|
metadata: FileMetaData;
|
|
68
63
|
}
|
|
69
64
|
/** If invalid, return the error message to display. */
|
|
70
|
-
export type ValidateFile = (file: SelectedFileDetails) =>
|
|
65
|
+
export type ValidateFile = (file: SelectedFileDetails) => string | undefined | void;
|
|
71
66
|
export type HandleFileSelected = (props: SelectedFileDetails) => Promise<any>;
|
|
72
67
|
export type FileUploaderCustomContent = (props: {
|
|
73
68
|
IconCopyUrl: () => JSX.Element;
|
|
@@ -78,7 +73,6 @@ export type FileUploaderCustomContent = (props: {
|
|
|
78
73
|
fileName: string;
|
|
79
74
|
fileUrl: string;
|
|
80
75
|
handleOpenFileSelect: () => void;
|
|
81
|
-
isDisabled: boolean | undefined;
|
|
82
76
|
isDraggingOver: boolean;
|
|
83
77
|
processing: boolean;
|
|
84
78
|
}) => JSX.Element;
|
|
@@ -93,14 +87,10 @@ export type TransformThumbnailSrc = (props: {
|
|
|
93
87
|
type ImmediatelyUploadProps = {
|
|
94
88
|
handleFileSelected?: never;
|
|
95
89
|
handleUploadFile: HandleUploadFile;
|
|
96
|
-
/** Use this if supporting multiple uploads to prevent multiple calls to update the database. */
|
|
97
|
-
handleUploadsComplete: HandleUploadsComplete;
|
|
98
90
|
};
|
|
99
91
|
type DelayUploadProps = {
|
|
100
92
|
handleFileSelected: HandleFileSelected;
|
|
101
93
|
handleUploadFile?: never;
|
|
102
|
-
/** Use this if supporting multiple uploads to prevent multiple calls to update the database. */
|
|
103
|
-
handleUploadsComplete?: never;
|
|
104
94
|
};
|
|
105
95
|
type WithDraggableProps = {
|
|
106
96
|
SortableDragHandleWrapper: (props: PropsWithChildren<HTMLAttributes<HTMLElement>>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type GetValidFilesProps = OptionalValues<
|
|
3
|
+
export type GetValidFilesProps = OptionalValues<Pick<FileUploaderProps, 'expectedExtensions' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'transformFileName' | 'validateFile'>> & {
|
|
4
4
|
files: File[];
|
|
5
5
|
};
|
|
@@ -2,6 +2,5 @@ export * from './get-base-64-from-blob';
|
|
|
2
2
|
export * from './get-purified-file-name';
|
|
3
3
|
export * from './get-valid-files';
|
|
4
4
|
export * from './transform-file-name';
|
|
5
|
-
export * from './validate-file-extension';
|
|
6
5
|
export * from './validate-file-size';
|
|
7
6
|
export * from './validate-image-dimensions';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/** Returns error message if invalid. */
|
|
3
|
-
export declare const validateImageDimensions: (props:
|
|
1
|
+
import { ValidateImageScale } from './validate-image-dimensions.types';
|
|
2
|
+
/** Returns an error message if invalid. */
|
|
3
|
+
export declare const validateImageDimensions: (props: ValidateImageScale) => string | undefined;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type ValidateImageScale = {
|
|
2
2
|
fileName: string;
|
|
3
3
|
img: HTMLImageElement;
|
|
4
4
|
minHeight: number;
|
|
5
5
|
minWidth: number;
|
|
6
6
|
};
|
|
7
|
-
export interface ValidateImageDimensionsProps {
|
|
8
|
-
fileName: string;
|
|
9
|
-
minHeight: number;
|
|
10
|
-
minWidth: number;
|
|
11
|
-
/** If file is a `Blob`, convert to base64 `src` using `getBase64FromBlob`. */
|
|
12
|
-
src: string;
|
|
13
|
-
}
|
package/dist/components/file-uploader/hooks/use-drag-and-drop-files/use-drag-and-drop-files.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { DragEvent } from 'react';
|
|
2
2
|
import { UseDragAndDropFilesProps } from './use-drag-and-drop-files.types';
|
|
3
3
|
export declare const useDragAndDropFiles: (props: UseDragAndDropFilesProps) => {
|
|
4
|
+
isDraggingOver: boolean;
|
|
4
5
|
onDragEnter: (event: DragEvent<HTMLInputElement>) => void;
|
|
5
6
|
onDragLeave: (event: DragEvent<HTMLInputElement>) => void;
|
|
6
7
|
onDrop: (event: DragEvent<HTMLInputElement>) => Promise<void>;
|
|
7
|
-
isDraggingOver: boolean;
|
|
8
|
-
} | {
|
|
9
|
-
onDragEnter?: undefined;
|
|
10
|
-
onDragLeave?: undefined;
|
|
11
|
-
onDrop?: undefined;
|
|
12
|
-
isDraggingOver: boolean;
|
|
13
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
|
+
export type UseDragAndDropFilesProps = Pick<FileUploaderProps, 'variant' | 'fileUrl'> & {
|
|
3
3
|
handleSelectedFiles: (files: File[]) => Promise<void>;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { SelectedFileDetails, FileUploaderProps } from '../../../../file-uploader.types';
|
|
3
3
|
import { OptionalValues } from '../../../../../../types/common';
|
|
4
|
-
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | '
|
|
4
|
+
export type UseHandleSelectedFilesProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileUrl' | 'handleFileSelected' | 'handleUploadsComplete' | 'isUploaderOnly' | 'maxFileSizeMB' | 'maxUploadsAllowed' | 'minImageHeight' | 'minImageWidth' | 'onError' | 'transformFileName' | 'validateFile'>>> & {
|
|
5
5
|
purgeInput: () => void;
|
|
6
6
|
setFileName: Dispatch<SetStateAction<string>>;
|
|
7
7
|
setFileUrl: Dispatch<SetStateAction<string>>;
|
package/dist/components/file-uploader/hooks/use-uploader-actions/use-uploader-actions.types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileUploaderProps } from '../../file-uploader.types';
|
|
2
2
|
import { OptionalValues } from '../../../../types/common';
|
|
3
|
-
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileName' | 'fileUrl' | 'handleDeleteFile' | 'handleFileSelected' | 'handleUploadsComplete' | 'handleUploadFile' | 'isUploaderOnly' | 'maxUploadsAllowed' | 'onError' | '
|
|
3
|
+
export type UseUploadActionsProps = OptionalValues<Required<Pick<FileUploaderProps, 'expectedExtensions' | 'fileName' | 'fileUrl' | 'handleDeleteFile' | 'handleFileSelected' | 'handleUploadsComplete' | 'handleUploadFile' | 'isUploaderOnly' | 'maxUploadsAllowed' | 'onError' | 'purifyFileName' | 'transformFileName' | 'validateFile'>>> & Partial<Pick<FileUploaderProps, 'maxFileSizeMB' | 'minImageHeight' | 'minImageWidth'>> & {
|
|
4
4
|
purgeInput: () => void;
|
|
5
5
|
};
|
|
@@ -34,6 +34,8 @@ export { default as Plus } from './Plus';
|
|
|
34
34
|
export { default as Plus24 } from './Plus24';
|
|
35
35
|
export { default as PlusCircle } from './PlusCircle';
|
|
36
36
|
export { default as PlusCircle24 } from './PlusCircle24';
|
|
37
|
+
export { default as PlusCircleFilled } from './PlusCircleFilled';
|
|
38
|
+
export { default as PlusCircleFilled24 } from './PlusCircleFilled24';
|
|
37
39
|
export { default as Shield } from './Shield';
|
|
38
40
|
export { default as Shield24 } from './Shield24';
|
|
39
41
|
export { default as SoundOff } from './SoundOff';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:funnel_filled", "actions:funnel_filled_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_half", "actions:star_half_24", "actions:stroke_play", "actions:stroke_play_24", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_diag", "arrows:arrow_diag_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_return", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_rotate_two", "arrows:arrow_rotate_two_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:document_lines", "docs:document_lines_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_affirm_colored", "logos:logo_apple", "logos:logo_apple_text", "logos:logo_apple_text_24", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_google_text", "logos:logo_google_text_24", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_tiktok", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "people:person_outline", "people:person_outline_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:award_ribbon", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:email_24", "ui-control:exclamation_circle_filled", "ui-control:exclamation_circle_filled_24", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_three_vertical", "ui-control:lines_three_vertical_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:lines_two_dots", "ui-control:lines_two_dots_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:minus_circle_filled", "ui-control:minus_circle_filled_24", "ui-control:pause", "ui-control:pause_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:shield", "ui-control:shield_24", "ui-control:sound_off", "ui-control:sound_off_24", "ui-control:sound_on", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "ui-control:x_small", "ui-control:x_small_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:broom", "work:broom_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:glue", "work:glue_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_painted", "work:sand_painted_24", "work:sand_paper", "work:sand_paper_24", "work:sand_primed", "work:sand_primed_24", "work:sd_card_filled_exclamation", "work:sd_card_filled_exclamation_24", "work:sd_card_outline", "work:sd_card_outline_24", "work:spool", "work:spool_24", "work:sun", "work:sun_24", "work:tape", "work:tape_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:triangle_ruler_filled", "work:tumbler", "work:tumbler_24", "work:water_drop", "work:water_drop_24", "work:water_drop_dotted", "work:water_drop_dotted_24", "work:wrench", "work:wrench_24"];
|
|
1
|
+
export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:funnel_filled", "actions:funnel_filled_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_half", "actions:star_half_24", "actions:stroke_play", "actions:stroke_play_24", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_diag", "arrows:arrow_diag_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_return", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_rotate_two", "arrows:arrow_rotate_two_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:document_lines", "docs:document_lines_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_affirm_colored", "logos:logo_apple", "logos:logo_apple_text", "logos:logo_apple_text_24", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_google_text", "logos:logo_google_text_24", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_tiktok", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "people:person_outline", "people:person_outline_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:award_ribbon", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:email_24", "ui-control:exclamation_circle_filled", "ui-control:exclamation_circle_filled_24", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_three_vertical", "ui-control:lines_three_vertical_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:lines_two_dots", "ui-control:lines_two_dots_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:minus_circle_filled", "ui-control:minus_circle_filled_24", "ui-control:pause", "ui-control:pause_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:plus_circle_filled", "ui-control:plus_circle_filled_24", "ui-control:shield", "ui-control:shield_24", "ui-control:sound_off", "ui-control:sound_off_24", "ui-control:sound_on", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "ui-control:x_small", "ui-control:x_small_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:broom", "work:broom_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:glue", "work:glue_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_painted", "work:sand_painted_24", "work:sand_paper", "work:sand_paper_24", "work:sand_primed", "work:sand_primed_24", "work:sd_card_filled_exclamation", "work:sd_card_filled_exclamation_24", "work:sd_card_outline", "work:sd_card_outline_24", "work:spool", "work:spool_24", "work:sun", "work:sun_24", "work:tape", "work:tape_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:triangle_ruler_filled", "work:tumbler", "work:tumbler_24", "work:water_drop", "work:water_drop_24", "work:water_drop_dotted", "work:water_drop_dotted_24", "work:wrench", "work:wrench_24"];
|
|
2
2
|
export type IconType = typeof IconsList[number];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledSelect: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
3
|
export declare const StyledLoadingContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const StyledOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const StyledTagOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, never>> & string;
|
|
@@ -8,10 +8,14 @@ import { Maybe } from '../../global';
|
|
|
8
8
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
9
9
|
import { TextVariant } from '../typography';
|
|
10
10
|
import { TooltipProps } from '../tooltip/tooltip.types';
|
|
11
|
-
export interface SearchFieldProps<T extends DynamicListItem<Record<any, any
|
|
11
|
+
export interface SearchFieldProps<T extends DynamicListItem<Record<any, any> & {
|
|
12
|
+
isAddTag?: boolean;
|
|
13
|
+
}>> extends Omit<DropdownMenuProps<T>, 'items'> {
|
|
12
14
|
borderless?: boolean;
|
|
13
15
|
className?: string;
|
|
14
16
|
clearButtonText?: string;
|
|
17
|
+
/** Create new [creatableLabel]: “tim” */
|
|
18
|
+
creatableLabel?: string;
|
|
15
19
|
disabled?: boolean;
|
|
16
20
|
/** Applies to any disabled tooltips within the dropdown menu. */
|
|
17
21
|
disabledTooltipProps?: Partial<TooltipProps>;
|
|
@@ -21,6 +25,9 @@ export interface SearchFieldProps<T extends DynamicListItem<Record<any, any>>> e
|
|
|
21
25
|
filterFn?: (searchBy: string, item: T) => boolean;
|
|
22
26
|
hideErrors?: boolean;
|
|
23
27
|
icon?: ReactElement;
|
|
28
|
+
isCreatable?: boolean;
|
|
29
|
+
/** function to determine if the creatable query string is valid to show the creatable dropdown option */
|
|
30
|
+
isValidCreatableItem?: (query: string) => boolean;
|
|
24
31
|
/** Can optionally include `disabled: true` to any index to disable that item. */
|
|
25
32
|
items?: DynamicListItem<T>[];
|
|
26
33
|
keyProperty?: (option?: DynamicListItem<T>) => string;
|
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>;
|