gantri-components 1.118.0 → 1.119.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.
@@ -1,2 +1,2 @@
1
1
  import { BadgeProps } from './badge.types';
2
- export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "width" | "borderColor" | "minWidth" | "opacity" | "size" | "textColor" | "variant">, never>;
2
+ export declare const StyledBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Pick<BadgeProps, "color" | "variant" | "minWidth" | "width" | "borderColor" | "opacity" | "size" | "textColor">, never>;
@@ -15,9 +15,15 @@ export interface CellProps extends BaseProps {
15
15
  gap?: ResolutionAwareProp<Property.Gap>;
16
16
  height?: ResolutionAwareProp<number>;
17
17
  hidden?: ResolutionAwareProp<boolean>;
18
+ horizontalMargin?: ResolutionAwareProp<BoxDimension>;
18
19
  horizontalPadding?: ResolutionAwareProp<BoxDimension>;
19
20
  justifyContent?: ResolutionAwareProp<Property.JustifyContent>;
20
21
  justifyItems?: ResolutionAwareProp<Property.JustifyItems>;
22
+ margin?: ResolutionAwareProp<BoxDimension>;
23
+ marginBottom?: ResolutionAwareProp<BoxDimension>;
24
+ marginLeft?: ResolutionAwareProp<BoxDimension>;
25
+ marginRight?: ResolutionAwareProp<BoxDimension>;
26
+ marginTop?: ResolutionAwareProp<BoxDimension>;
21
27
  maxHeight?: ResolutionAwareProp<string>;
22
28
  maxWidth?: ResolutionAwareProp<string>;
23
29
  minHeight?: ResolutionAwareProp<string>;
@@ -32,6 +38,7 @@ export interface CellProps extends BaseProps {
32
38
  rowGap?: ResolutionAwareProp<string>;
33
39
  style?: CSSProperties;
34
40
  textAlign?: ResolutionAwareProp<Property.TextAlign>;
41
+ verticalMargin?: ResolutionAwareProp<BoxDimension>;
35
42
  verticalPadding?: ResolutionAwareProp<BoxDimension>;
36
43
  width?: ResolutionAwareProp<number>;
37
44
  }
@@ -1,11 +1,4 @@
1
1
  import React from 'react';
2
- import { TypographyProps } from './typography.types';
3
- export declare const variantToType: {
4
- readonly badge: "span";
5
- readonly hero: "h1";
6
- readonly p0: "p";
7
- readonly p1: "p";
8
- readonly p2: "p";
9
- readonly p3: "p";
10
- };
2
+ import { TextVariant, TypographyProps } from './typography.types';
3
+ export declare const variantToType: Partial<Record<TextVariant, 'h1' | 'p'>>;
11
4
  export declare const Typography: React.ForwardRefExoticComponent<TypographyProps & React.RefAttributes<unknown>>;
@@ -1,2 +1,2 @@
1
- import { TypographyProps } from './typography.types';
2
- export declare const TypographyPresets: TypographyProps;
1
+ import { TypographyDefaultProps } from './typography.types';
2
+ export declare const TypographyPresets: TypographyDefaultProps;
@@ -6,13 +6,11 @@ export declare type TextAlign = 'string' | 'left' | 'center' | 'right' | 'unset'
6
6
  export declare type TypographyColor = keyof DefaultTheme['colors']['typography'];
7
7
  export declare type TextVariant = 'p0' | 'p1' | 'p2' | 'p3' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'hero';
8
8
  export declare type TextStyle = 'regular' | 'bold';
9
- export interface TypographyProps {
9
+ export interface TypographyProps extends Partial<TypographyDefaultProps> {
10
10
  align?: ResolutionAwareProp<string>;
11
11
  alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
12
12
  className?: string;
13
- color?: TypographyColor;
14
13
  decoration?: Property.TextDecoration;
15
- display?: ResolutionAwareProp<Property.Display>;
16
14
  fontSize?: ResolutionAwareProp<Property.Font>;
17
15
  fontWeight?: Property.FontWeight;
18
16
  hidden?: ResolutionAwareProp<boolean>;
@@ -21,7 +19,6 @@ export interface TypographyProps {
21
19
  htmlFor?: string;
22
20
  htmlText?: string;
23
21
  icon?: JSX.Element;
24
- iconPosition?: 'left' | 'right';
25
22
  justifySelf?: ResolutionAwareProp<Property.JustifySelf>;
26
23
  letterSpacing?: ResolutionAwareProp<Property.LetterSpacing>;
27
24
  lineHeight?: ResolutionAwareProp<Property.LineHeight>;
@@ -45,9 +42,14 @@ export interface TypographyProps {
45
42
  transform?: Property.TextTransform;
46
43
  tx?: string;
47
44
  txValues?: Record<string, unknown>;
48
- type?: string;
49
- variant?: TextVariant;
45
+ type?: keyof HTMLElementTagNameMap;
50
46
  verticalMargin?: ResolutionAwareProp<Property.Margin>;
51
47
  verticalPadding?: ResolutionAwareProp<Property.Padding>;
52
- whiteSpace?: ResolutionAwareProp<any>;
48
+ }
49
+ export interface TypographyDefaultProps {
50
+ color: TypographyColor;
51
+ display: ResolutionAwareProp<Property.Display>;
52
+ iconPosition: 'left' | 'right';
53
+ variant: TextVariant;
54
+ whiteSpace: ResolutionAwareProp<any>;
53
55
  }