gantri-components 1.11.0 → 1.12.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.types.d.ts +5 -5
- package/dist/components/box/box.types.d.ts +2 -2
- package/dist/components/cell/cell.types.d.ts +2 -2
- package/dist/components/grid/grid.types.d.ts +2 -2
- package/dist/components/image/image.types.d.ts +2 -2
- package/dist/styles/index.d.ts +1 -2
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Property } from
|
|
2
|
-
import { ResolutionAwareProp } from
|
|
3
|
-
import { BaseProps } from
|
|
4
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
3
|
+
import { BaseProps } from '../box/box.types';
|
|
4
|
+
import { Color } from '../../styles';
|
|
5
5
|
export interface AspectRatioProps extends BaseProps {
|
|
6
6
|
aspectRatio?: ResolutionAwareProp<string>;
|
|
7
|
-
backgroundColor?: ResolutionAwareProp<
|
|
7
|
+
backgroundColor?: ResolutionAwareProp<Color>;
|
|
8
8
|
height?: ResolutionAwareProp<Property.Height>;
|
|
9
9
|
hidden?: ResolutionAwareProp<boolean>;
|
|
10
10
|
width?: ResolutionAwareProp<Property.Width>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Globals, Property } from 'csstype';
|
|
3
3
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
4
|
-
import {
|
|
4
|
+
import { Color } from '../../styles';
|
|
5
5
|
export declare type BoxDimension = 's1' | 's2' | 's3' | 's4' | 's5' | 's6' | Globals | string;
|
|
6
6
|
export interface BaseProps extends HTMLAttributes<any> {
|
|
7
7
|
children?: any;
|
|
@@ -9,7 +9,7 @@ export interface BaseProps extends HTMLAttributes<any> {
|
|
|
9
9
|
}
|
|
10
10
|
export interface BoxProps extends BaseProps {
|
|
11
11
|
alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
|
|
12
|
-
backgroundColor?: ResolutionAwareProp<
|
|
12
|
+
backgroundColor?: ResolutionAwareProp<Color>;
|
|
13
13
|
borderRadius?: ResolutionAwareProp<Property.BorderRadius>;
|
|
14
14
|
height?: ResolutionAwareProp<Property.Height>;
|
|
15
15
|
hidden?: ResolutionAwareProp<boolean>;
|
|
@@ -2,13 +2,13 @@ import { CSSProperties } from 'react';
|
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
4
4
|
import { BaseProps, BoxDimension } from '../box/box.types';
|
|
5
|
-
import {
|
|
5
|
+
import { Color } from '../../styles';
|
|
6
6
|
export interface CellProps extends BaseProps {
|
|
7
7
|
alignContent?: ResolutionAwareProp<Property.AlignContent>;
|
|
8
8
|
alignItems?: ResolutionAwareProp<Property.AlignItems>;
|
|
9
9
|
alignSelf?: ResolutionAwareProp<Property.AlignSelf>;
|
|
10
10
|
area?: ResolutionAwareProp<string>;
|
|
11
|
-
backgroundColor?: ResolutionAwareProp<
|
|
11
|
+
backgroundColor?: ResolutionAwareProp<Color>;
|
|
12
12
|
borderRadius?: Property.BorderRadius<string>;
|
|
13
13
|
column?: ResolutionAwareProp<any>;
|
|
14
14
|
columnGap?: ResolutionAwareProp<string>;
|
|
@@ -2,14 +2,14 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Property } from 'csstype';
|
|
3
3
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
4
4
|
import { BoxDimension, BoxProps } from '../box/box.types';
|
|
5
|
-
import {
|
|
5
|
+
import { Color } from '../../styles';
|
|
6
6
|
export interface GridProps extends BoxProps {
|
|
7
7
|
alignContent?: ResolutionAwareProp<Property.AlignContent>;
|
|
8
8
|
alignItems?: ResolutionAwareProp<Property.AlignItems>;
|
|
9
9
|
areas?: ResolutionAwareProp<string[]>;
|
|
10
10
|
autoColumns?: ResolutionAwareProp<Property.GridAutoColumns>;
|
|
11
11
|
autoRows?: ResolutionAwareProp<Property.GridAutoRows>;
|
|
12
|
-
backgroundColor?: ResolutionAwareProp<
|
|
12
|
+
backgroundColor?: ResolutionAwareProp<Color>;
|
|
13
13
|
border?: string;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
columnGap?: ResolutionAwareProp<BoxDimension>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
2
|
import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
|
|
3
|
-
import {
|
|
3
|
+
import { Color } from '../../styles';
|
|
4
4
|
import { Optional } from '../../types/common';
|
|
5
5
|
export interface ImageProps {
|
|
6
6
|
alt: string;
|
|
7
7
|
aspectRatio?: Optional<ResolutionAwareProp<string>>;
|
|
8
8
|
commonTransformations?: Optional<Transformations>;
|
|
9
|
-
fallbackColor?: Optional<
|
|
9
|
+
fallbackColor?: Optional<Color>;
|
|
10
10
|
height?: Optional<ResolutionAwareProp<string | number>>;
|
|
11
11
|
immediateAvailable?: Optional<boolean>;
|
|
12
12
|
maxHeight?: Optional<ResolutionAwareProp<Property.MaxHeight>>;
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { PaletteColor } from './theme';
|
|
2
1
|
export { combinationsByColor, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, } from './theme';
|
|
2
|
+
export { type PaletteColor as Color } from './theme';
|
|
3
3
|
export { ThemeProvider } from './theme-provider';
|
|
4
4
|
export { media } from './media';
|
|
5
|
-
export declare type Color = PaletteColor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gantri-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"umd": "dist/index.umd.js",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"rollup-plugin-terser": "^7.0.2",
|
|
102
102
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
103
103
|
"styled-components": "^5.3.5",
|
|
104
|
-
"typescript": "^4.6.
|
|
104
|
+
"typescript": "^4.6.3"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@cloudinary/url-gen": "^1.7.0",
|