gantri-components 2.1.0-beta.8 → 2.1.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.
@@ -1,5 +1,10 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { ProductColorCode } from '../../styles/theme';
3
+ /**
4
+ * @typedef {'large' | 'small'} ColorPickerVariant
5
+ * @deprecated The `small` variant has been deprecated and will be removed in a future release.
6
+ * Please don't use the variant prop at all anymore since the default variant is `large`.
7
+ */
3
8
  export type ColorPickerVariant = 'large' | 'small';
4
9
  export interface ColorPickerProps extends Partial<ColorPickerDefaultProps> {
5
10
  labelText?: string;
@@ -23,6 +23,7 @@ export * from './overlay';
23
23
  export * from './pills';
24
24
  export * from './radio';
25
25
  export * from './search-field';
26
+ export * from './slider';
26
27
  export * from './stack';
27
28
  export * from './tabs';
28
29
  export * from './text-area';
@@ -1,22 +1,25 @@
1
1
  /// <reference types="react" />
2
2
  import { ModalProps } from './modal.types';
3
- export declare const StyledModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ModalProps & {
4
- isFullScreen?: boolean | undefined;
5
- noTopSpacing?: boolean | undefined;
3
+ export declare const StyledModalContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ModalProps & {
4
+ $noTopSpacing?: boolean | undefined;
6
5
  }, never>;
7
- export declare const StyledModalContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../stack/stack.types").StackProps & import("react").RefAttributes<import("../stack/stack.types").StackProps>>, import("styled-components").DefaultTheme, {
8
- isFullScreen?: boolean | undefined;
9
- noTopSpacing?: boolean | undefined;
6
+ export declare const StyledModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ $noTopSpacing?: boolean | undefined;
8
+ hasDetailsPanel?: boolean | undefined;
10
9
  }, never>;
11
- export declare const StyledDetailsPanelContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../box/box.types").BoxProps & import("react").RefAttributes<import("../box/box.types").BoxProps>>, import("styled-components").DefaultTheme, {
12
- isFullScreen?: boolean | undefined;
10
+ export declare const StyledDetailsPanelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
+ $mdHidden?: boolean | undefined;
13
12
  }, never>;
14
13
  export declare const StyledModalHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {
15
14
  $closeable?: boolean | undefined;
16
- isFullScreen?: boolean | undefined;
17
15
  }, never>;
18
16
  export declare const StyledModalFooter: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {
19
17
  $hasBorder: boolean;
20
18
  }, never>;
19
+ export declare const StyledModalBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
+ export declare const StyledModalBodyContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare const StyledModalScrollableContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../grid/grid.types").GridProps & import("react").RefAttributes<import("../grid/grid.types").GridProps>>, import("styled-components").DefaultTheme, {}, never>;
22
+ export declare const StyledModalChildrenContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
23
  export declare const StyledModalBackdrop: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
22
24
  export declare const StyledModalCloseButtonContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
25
+ export declare const StyleMobileCloseContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -5,18 +5,11 @@ export interface ModalProps {
5
5
  closeable?: boolean;
6
6
  dataAttributes?: Record<string, unknown>;
7
7
  detailsPanel?: ReactElement;
8
- /** Applies to desktop only. */
9
- detailsPanelWidth?: Property.Width;
10
8
  footer?: ReactElement;
11
9
  header?: ReactNode;
12
10
  height?: ResolutionAwareProp<Property.Height>;
13
- isFullScreen?: boolean;
14
- /** Ignored if `isFullScreen` is `true`. */
15
- maxWidth?: ResolutionAwareProp<Property.MaxWidth>;
16
- /** Applies to mobile/tablet only. */
17
11
  noTopSpacing?: boolean;
18
12
  onClose?: () => void;
19
- /** Ignored if `isFullScreen` is `true`. */
20
13
  top?: ResolutionAwareProp<Property.Top>;
21
14
  width?: ResolutionAwareProp<Property.Width>;
22
15
  }
@@ -0,0 +1 @@
1
+ export * from './slider';
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { SliderProps } from './slider.types';
3
+ export declare const Slider: FC<SliderProps>;
@@ -0,0 +1,2 @@
1
+ import { SliderProps } from './slider.types';
2
+ export declare const SliderPresets: Partial<SliderProps>;
@@ -0,0 +1,4 @@
1
+ import { StyledSliderContainerProps } from './slider.types';
2
+ export declare const StyledStepList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledLine: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledSliderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledSliderContainerProps, never>;
@@ -0,0 +1,27 @@
1
+ import { Property } from 'csstype';
2
+ export interface SliderProps {
3
+ disabled?: boolean;
4
+ failStep?: number;
5
+ max?: number;
6
+ min?: number;
7
+ minWidth?: Property.MinWidth<string | number>;
8
+ name?: string;
9
+ onChange?: (event: any) => void;
10
+ onValueChange?: (value: number) => void;
11
+ step?: number;
12
+ stepsVisible?: boolean;
13
+ value?: number;
14
+ width?: Property.Width<string | number>;
15
+ }
16
+ export interface SliderStepListProps extends Pick<SliderProps, 'name' | 'min' | 'max' | 'step'> {
17
+ }
18
+ export interface StyledSliderContainerProps {
19
+ $completePercentage?: number;
20
+ $disabled?: boolean;
21
+ $failed?: boolean;
22
+ $hasValue?: boolean;
23
+ $inFirstStep?: boolean;
24
+ $inLastStep?: boolean;
25
+ $minWidth?: Property.MinWidth<string | number>;
26
+ $width?: Property.Width<string | number>;
27
+ }