gantri-components 2.119.3 → 2.120.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/components/aspect-ratio/aspect-ratio.styles.d.ts +6 -3
- package/dist/components/badge/badge.styles.d.ts +3 -1
- package/dist/components/box/box.adapters.d.ts +1 -0
- package/dist/components/box/box.styles.d.ts +3 -1
- package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +6 -1
- package/dist/components/button/button.styles.d.ts +5 -2
- package/dist/components/button-menu/button-menu.styles.d.ts +2 -1
- package/dist/components/cell/cell.styles.d.ts +4 -1
- package/dist/components/checkbox/checkbox.styles.d.ts +13 -3
- package/dist/components/circular-progress/circular-progress.styles.d.ts +4 -1
- package/dist/components/color-picker/color-picker.styles.d.ts +3 -2
- package/dist/components/color-picker/components/color-picker-item/color-picker-item.styles.d.ts +1131 -2
- package/dist/components/confirmation-modal/confirmationModal.types.d.ts +2 -1
- package/dist/components/dropdown/dropdown.styles.d.ts +23 -4
- package/dist/components/dropdown-menu/dropdown-menu.styles.d.ts +16 -3
- package/dist/components/filter-button/filter-button.styles.d.ts +2 -1
- package/dist/components/flex/flex.styles.d.ts +5 -1
- package/dist/components/grid/grid.styles.d.ts +4 -1
- package/dist/components/icon/icon.styles.d.ts +12 -1
- package/dist/components/image/image.styles.d.ts +8 -4
- package/dist/components/image/image.types.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-group/input-group.styles.d.ts +7 -2
- package/dist/components/line/line.styles.d.ts +3 -1
- package/dist/components/linear-progress/linear-progress.styles.d.ts +8 -2
- package/dist/components/max-width/max-width.styles.d.ts +9 -2
- package/dist/components/modal/modal.styles.d.ts +33 -9
- package/dist/components/multi-select-list/multi-select-list.styles.d.ts +4 -1
- package/dist/components/overlay/overlay.styles.d.ts +8 -4
- package/dist/components/pills/components/pill/pill.styles.d.ts +4 -1
- package/dist/components/pills/pills.styles.d.ts +2 -1
- package/dist/components/quantity/quantity.styles.d.ts +2 -1
- package/dist/components/radio/radio.styles.d.ts +13 -5
- package/dist/components/radio-list/radio-list.styles.d.ts +6 -1
- package/dist/components/search-field/search-field.styles.d.ts +3 -2
- package/dist/components/slider/slider.styles.styles.d.ts +5 -3
- package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-drag-handle/preference-item-drag-handle.styles.d.ts +2 -1
- package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-overlay/preference-item-overlay.styles.d.ts +2 -1
- package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable-preference-item/sortable-preference-item.styles.d.ts +2 -1
- package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/user-preferences-modal/user-preferences-modal.styles.d.ts +10 -5
- package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/user-preferences-toggle.styles.d.ts +4 -1
- package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.styles.d.ts +4 -1
- package/dist/components/table/components/table-actions-wrapper/components/clear-selected-rows/clear-selected-rows.styles.d.ts +6 -1
- package/dist/components/table/components/table-actions-wrapper/components/paging/paging.styles.d.ts +5 -2
- package/dist/components/table/components/table-actions-wrapper/components/search/search.styles.d.ts +5 -1
- package/dist/components/table/components/table-actions-wrapper/components/sort/sort.styles.d.ts +4 -1
- package/dist/components/table/components/table-actions-wrapper/table-actions-wrapper.styles.d.ts +6 -1
- package/dist/components/table/components/table-header/table-header.styles.d.ts +8 -2
- package/dist/components/table/components/table-row/helpers/get-row-component-props/get-row-component-props.d.ts +24 -24
- package/dist/components/table/components/table-row-cells/components/selectable-row-cell-wrapper/selectable-row-cell-wrapper.styles.d.ts +4 -1
- package/dist/components/table/components/table-row-cells/table-row-cells.styles.d.ts +3 -1
- package/dist/components/table/components/table-row-overlay/table-row-overlay.styles.d.ts +2 -1
- package/dist/components/table/table.styles.d.ts +19 -8
- package/dist/components/tabs/components/tab/tab.styled.d.ts +5 -1
- package/dist/components/tabs/components/tab-panel/tab-panel.styles.d.ts +2 -1
- package/dist/components/tabs/components/tabs-list/tabs-list.styles.d.ts +9 -2
- package/dist/components/text-area/text-area.styles.d.ts +6 -4
- package/dist/components/text-field/text-field.styles.d.ts +5 -3
- package/dist/components/toggle/toggle.styles.styles.d.ts +10 -3
- package/dist/components/tooltip/tooltip.styles.d.ts +8 -1
- package/dist/components/typography/typography.styles.d.ts +7 -2
- package/dist/components/video/video.presets.d.ts +1 -2
- package/dist/components/video/video.styles.d.ts +18 -3
- package/dist/components/video/video.types.d.ts +24 -23
- package/dist/helpers/layout.helpers.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/styles/animations.d.ts +1 -1
- package/dist/styles/base.d.ts +6 -1
- package/dist/styles/hooks/use-theme-defaults.d.ts +2 -1
- package/dist/styles/theme.d.ts +40 -40
- package/package.json +6 -6
|
@@ -1,15 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Property } from 'csstype';
|
|
1
3
|
import { DefaultTheme } from 'styled-components';
|
|
2
4
|
export declare const getTableRowBackgroundColors: ({ theme, backgroundColor, clickableRowHoverBackgroundColor, }: {
|
|
3
5
|
backgroundColor: string | undefined;
|
|
4
6
|
clickableRowHoverBackgroundColor: string | undefined;
|
|
5
7
|
theme: DefaultTheme;
|
|
6
8
|
}) => {
|
|
7
|
-
readonly statusErrorClickableHoverColor:
|
|
8
|
-
readonly statusErrorColor:
|
|
9
|
-
readonly statusNoneClickableHoverColor:
|
|
10
|
-
readonly statusNoneColor:
|
|
11
|
-
readonly statusWarningClickableHoverColor:
|
|
12
|
-
readonly statusWarningColor:
|
|
9
|
+
readonly statusErrorClickableHoverColor: string;
|
|
10
|
+
readonly statusErrorColor: string;
|
|
11
|
+
readonly statusNoneClickableHoverColor: string;
|
|
12
|
+
readonly statusNoneColor: string;
|
|
13
|
+
readonly statusWarningClickableHoverColor: string;
|
|
14
|
+
readonly statusWarningColor: string;
|
|
13
15
|
};
|
|
14
|
-
export declare const StyledTableContainer:
|
|
15
|
-
export declare const StyledTable:
|
|
16
|
+
export declare const StyledTableContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export declare const StyledTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {
|
|
18
|
+
backgroundColor: string | undefined;
|
|
19
|
+
clickableRowHoverBackgroundColor: string | undefined;
|
|
20
|
+
highlightHoveredRow: boolean | undefined;
|
|
21
|
+
isCustomColumnsEnabled: boolean;
|
|
22
|
+
stickyFirstColumn: boolean | undefined;
|
|
23
|
+
stickyFooter: boolean | undefined;
|
|
24
|
+
stickyLastColumn: boolean | undefined;
|
|
25
|
+
verticalAlign: Property.VerticalAlign | undefined;
|
|
26
|
+
}>> & string;
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledTab: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$active: boolean;
|
|
4
|
+
$disabled?: boolean | undefined;
|
|
5
|
+
}>> & string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledTabPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
export declare const StyledTabsList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$align?: Property.JustifyContent | undefined;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const StyledTabsContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
$hasBorder?: boolean | undefined;
|
|
8
|
+
$variant?: "default" | "plain" | undefined;
|
|
9
|
+
}>> & string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledInputContainerProps, StyledParentContainerProps } from '../text-field';
|
|
3
|
+
export declare const StyledTextareaParentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledParentContainerProps>> & string;
|
|
4
|
+
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledInputContainerProps>> & string;
|
|
5
|
+
export declare const StyledInputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const StyledTextarea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, never>> & string;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledInputContainerProps, StyledParentContainerProps } from './text-field.types';
|
|
3
|
+
export declare const StyledParentContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledParentContainerProps>> & string;
|
|
4
|
+
export declare const StyledInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledInputContainerProps>> & string;
|
|
5
|
+
export declare const StyledInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledToggleContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$disabled?: boolean | undefined;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export declare const StyledToggle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$checked: boolean;
|
|
7
|
+
$disabled?: boolean | undefined;
|
|
8
|
+
$withErrors: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const StyledToggleSwitch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { OverlayPosition } from '../overlay/overlay.types';
|
|
4
|
+
export declare const StyledTooltipContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$hasPadding?: boolean | undefined;
|
|
6
|
+
$maxWidth: Property.MaxWidth | undefined;
|
|
7
|
+
$position?: OverlayPosition | undefined;
|
|
8
|
+
}>> & string;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TypographyProps } from './typography.types';
|
|
3
|
+
export declare const StyledText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, TypographyProps>> & string;
|
|
4
|
+
export declare const StyledIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
+
marginLeft?: string | undefined;
|
|
6
|
+
marginRight?: string | undefined;
|
|
7
|
+
}>> & string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { Color } from '../../styles';
|
|
4
|
+
import { Optional } from '../../types/common';
|
|
5
|
+
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
6
|
+
import { AspectRatio, ImageDimension } from '../image/image.types';
|
|
7
|
+
export interface StyledVideoContainerProps {
|
|
8
|
+
$containerAspectRatio?: ResolutionAwareProp<AspectRatio>;
|
|
9
|
+
$fallbackColor?: Optional<Color>;
|
|
10
|
+
$height?: Optional<ResolutionAwareProp<ImageDimension>>;
|
|
11
|
+
$maxHeight?: Optional<ResolutionAwareProp<Property.MaxHeight>>;
|
|
12
|
+
$maxWidth?: Optional<ResolutionAwareProp<Property.MinWidth>>;
|
|
13
|
+
$minHeight?: Optional<ResolutionAwareProp<Property.MinHeight>>;
|
|
14
|
+
$minWidth?: Optional<ResolutionAwareProp<Property.MinWidth>>;
|
|
15
|
+
$width?: Optional<ResolutionAwareProp<ImageDimension>>;
|
|
16
|
+
}
|
|
17
|
+
export declare const StyledVideoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledVideoContainerProps>> & string;
|
|
18
|
+
export declare const StyledPoster: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
+
import { CSSProperties, ReactEventHandler, VideoHTMLAttributes } from 'react';
|
|
2
3
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
3
|
-
import { Color } from '../../styles';
|
|
4
4
|
import { Optional } from '../../types/common';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { Color } from '../../styles';
|
|
6
|
+
import { AspectRatio, ImageDimension } from '../image/image.types';
|
|
7
|
+
export interface VideoDefaultProps extends Pick<VideoHTMLAttributes<HTMLVideoElement>, 'autoPlay' | 'loop' | 'playsInline'> {
|
|
8
|
+
muted: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface VideoProps extends Partial<VideoDefaultProps>, Omit<VideoHTMLAttributes<HTMLVideoElement>, 'height' | 'width' | 'src'> {
|
|
11
|
+
className?: string;
|
|
12
|
+
containerAspectRatio?: ResolutionAwareProp<AspectRatio>;
|
|
13
|
+
containerClassName?: string;
|
|
8
14
|
fallbackColor?: Optional<Color>;
|
|
9
|
-
height?: Optional<ResolutionAwareProp<
|
|
10
|
-
immediateAvailable?:
|
|
15
|
+
height?: Optional<ResolutionAwareProp<ImageDimension>>;
|
|
16
|
+
immediateAvailable?: boolean;
|
|
11
17
|
maxHeight?: Optional<ResolutionAwareProp<Property.MaxHeight>>;
|
|
12
18
|
maxWidth?: Optional<ResolutionAwareProp<Property.MinWidth>>;
|
|
13
19
|
minHeight?: Optional<ResolutionAwareProp<Property.MinHeight>>;
|
|
14
20
|
minWidth?: Optional<ResolutionAwareProp<Property.MinWidth>>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export interface Transformations {
|
|
24
|
-
aspectRatio?: Optional<string>;
|
|
25
|
-
height?: Optional<number>;
|
|
26
|
-
mode?: Optional<TransformationMode>;
|
|
27
|
-
width?: Optional<number>;
|
|
21
|
+
objectFit?: Optional<ResolutionAwareProp<Property.ObjectFit>>;
|
|
22
|
+
objectPosition?: Optional<ResolutionAwareProp<Property.ObjectPosition>>;
|
|
23
|
+
observerMargin?: string;
|
|
24
|
+
onLoad?: ReactEventHandler<HTMLVideoElement>;
|
|
25
|
+
src: ResolutionAwareProp<string>;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
transformations?: VideoTransformations;
|
|
28
|
+
width?: Optional<ResolutionAwareProp<ImageDimension>>;
|
|
28
29
|
}
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
export interface VideoTransformations {
|
|
31
|
+
aspectRatio?: Optional<ResolutionAwareProp<AspectRatio>>;
|
|
32
|
+
height?: Optional<ResolutionAwareProp<number>>;
|
|
33
|
+
width?: Optional<ResolutionAwareProp<number>>;
|
|
33
34
|
}
|
|
@@ -7,7 +7,7 @@ export declare const calculateDimensionsFromAspectRatio: (aspectRatio: string) =
|
|
|
7
7
|
height: string;
|
|
8
8
|
width: string;
|
|
9
9
|
};
|
|
10
|
-
export declare function generateStylesForResolutionAwareProps<T>(entries: ExtractStyleFromResolutionAwarePropEntry[]):
|
|
10
|
+
export declare function generateStylesForResolutionAwareProps<T>(entries: ExtractStyleFromResolutionAwarePropEntry[]): import("styled-components").RuleSet<object>;
|
|
11
11
|
export declare const isLargeScreen: () => boolean;
|
|
12
12
|
export declare const isSmallScreen: () => boolean;
|
|
13
13
|
export declare const extractValueFromResolutionAwarePropertyForCurrentScreenSize: (property: ResolutionAwareProp<any>) => any;
|