@evergis/uilib-gl 1.0.13 → 1.0.15
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/atoms/Grid/Flex.d.ts +3 -3
- package/dist/atoms/Grid/types.d.ts +9 -2
- package/dist/atoms/Icon/Icon.d.ts +6 -0
- package/dist/molecules/NumberRangeSlider/styled.d.ts +1 -1
- package/dist/molecules/SymbolPreview/styled.d.ts +2 -2
- package/dist/organisms/ButtonsGroup/styled.d.ts +1 -1
- package/dist/organisms/ButtonsGroup/types.d.ts +2 -2
- package/dist/organisms/Card/styled.d.ts +1 -1
- package/dist/organisms/DatePicker/styled.d.ts +1 -1
- package/dist/organisms/Radio/FlexWithMargin.d.ts +1 -1
- package/dist/organisms/Radio/types.d.ts +2 -2
- package/dist/organisms/RangeNumberInput/styled.d.ts +1 -1
- package/dist/organisms/Stepper/styled.d.ts +1 -1
- package/dist/organisms/Tree/styled.d.ts +2 -2
- package/dist/organisms/Uploader/styled.d.ts +5 -5
- package/dist/theme/ITheme.d.ts +24 -0
- package/dist/theme/defaultThemeConstants.d.ts +10 -1
- package/dist/theme/getTheme.d.ts +3 -2
- package/dist/theme/index.d.ts +2 -1
- package/dist/uilib-gl.esm.js +686 -447
- package/dist/uilib-gl.esm.js.map +1 -1
- package/package.json +5 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme,
|
|
3
|
-
export declare const FlexSpan: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme,
|
|
1
|
+
import { FlexProps, FlexSpanProps } from "./types";
|
|
2
|
+
export declare const Flex: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, FlexProps, never>;
|
|
3
|
+
export declare const FlexSpan: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, FlexSpanProps, never>;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import { BackgroundProps, BorderProps, ColorProps, FlexboxProps, FontSizeProps, FontWeightProps, FontStyleProps, SpaceProps, LayoutProps, TextAlignProps, PositionProps, LineHeightProps } from "styled-system";
|
|
3
|
+
export interface FlexProps extends BackgroundProps, BorderProps, ColorProps, FlexboxProps, FontSizeProps, FontWeightProps, FontStyleProps, SpaceProps, LayoutProps, TextAlignProps, PositionProps, LineHeightProps {
|
|
2
4
|
column?: boolean;
|
|
3
|
-
|
|
5
|
+
row?: boolean;
|
|
6
|
+
gap?: CSSProperties["gap"];
|
|
7
|
+
}
|
|
8
|
+
export interface FlexSpanProps extends BackgroundProps, BorderProps, ColorProps, FlexboxProps, FontSizeProps, FontWeightProps, FontStyleProps, SpaceProps, LayoutProps, TextAlignProps, PositionProps, LineHeightProps {
|
|
9
|
+
width?: string | number;
|
|
10
|
+
whiteSpace?: CSSProperties["whiteSpace"];
|
|
4
11
|
}
|
|
@@ -283,6 +283,12 @@ export declare const iconTypes: {
|
|
|
283
283
|
redshift: string;
|
|
284
284
|
server_connection: string;
|
|
285
285
|
service_connection: string;
|
|
286
|
+
column_increment: string;
|
|
287
|
+
column_unique: string;
|
|
288
|
+
column_nullable: string;
|
|
289
|
+
projection: string;
|
|
290
|
+
id: string;
|
|
291
|
+
card: string;
|
|
286
292
|
};
|
|
287
293
|
export declare const Icon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, IIconProps, never>;
|
|
288
294
|
export declare const injectIcon: (icon: IconTypesKeys) => import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const NumberRangeSliderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const NumberRangeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
2
|
+
export declare const NumberRangeContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
3
3
|
export declare const SliderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HorizontalAnchorProps, VerticalAnchorProps } from "./types";
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps & {
|
|
3
3
|
size?: string | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const ImageContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const AnchorsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
6
|
+
export declare const AnchorsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
7
7
|
export declare const AnchorLine: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
8
8
|
export declare const HorizontalAnchor: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, HorizontalAnchorProps, never>;
|
|
9
9
|
export declare const VerticalAnchor: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, VerticalAnchorProps, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IGroupButtonProps } from "./types";
|
|
2
|
-
export declare const FlexWithMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
2
|
+
export declare const FlexWithMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
3
3
|
export declare const GroupButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("../../atoms/Button").IButtonProps & IGroupButtonProps, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { IconTypesKeys } from "../../atoms/Icon";
|
|
3
|
-
import {
|
|
3
|
+
import { FlexProps } from "../../atoms/Grid";
|
|
4
4
|
export interface IButtonItemProps {
|
|
5
5
|
label?: string;
|
|
6
6
|
kind?: IconTypesKeys;
|
|
@@ -9,7 +9,7 @@ export interface IButtonItemProps {
|
|
|
9
9
|
value?: string | number;
|
|
10
10
|
text?: ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export interface IButtonsGroupProps extends
|
|
12
|
+
export interface IButtonsGroupProps extends FlexProps {
|
|
13
13
|
options: IButtonItemProps[];
|
|
14
14
|
selected?: IButtonItemProps;
|
|
15
15
|
className?: string;
|
|
@@ -26,5 +26,5 @@ export declare const IconsBlock: import("styled-components").StyledComponent<"sp
|
|
|
26
26
|
export declare const marginRightStyle: {
|
|
27
27
|
marginRight: string;
|
|
28
28
|
};
|
|
29
|
-
export declare const ActionButtonsContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
29
|
+
export declare const ActionButtonsContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexSpanProps, never>;
|
|
30
30
|
export declare const CardBodyContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -27,7 +27,7 @@ export declare const RangeHeaderContainer: import("styled-components").StyledCom
|
|
|
27
27
|
}, never>;
|
|
28
28
|
export declare const HeaderTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
29
29
|
export declare const HeaderSubTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
30
|
-
export declare const WeekdaysContainer: import("styled-components").StyledComponent<"div", DefaultTheme, import("../../atoms/Grid").
|
|
30
|
+
export declare const WeekdaysContainer: import("styled-components").StyledComponent<"div", DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
31
31
|
export declare const WeekdaysItem: import("styled-components").StyledComponent<"span", DefaultTheme, {
|
|
32
32
|
amount: number;
|
|
33
33
|
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const FlexWithMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
1
|
+
export declare const FlexWithMargin: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { FlexProps } from "../../atoms/Grid";
|
|
3
3
|
export interface IRadioLabelProps {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
@@ -11,7 +11,7 @@ export interface IRadioItemProps {
|
|
|
11
11
|
label: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export interface IRadioGroupProps extends
|
|
14
|
+
export interface IRadioGroupProps extends FlexProps {
|
|
15
15
|
options?: IRadioItemProps[];
|
|
16
16
|
value?: string;
|
|
17
17
|
disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const RangeSliderContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
-
export declare const RangeSliderButtons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
2
|
+
export declare const RangeSliderButtons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
3
3
|
export declare const RangeInputContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
4
|
isDate?: boolean | undefined;
|
|
5
5
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StepTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
1
|
+
export declare const StepTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
2
2
|
export declare const StepHeaderText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
isFinished?: boolean | undefined;
|
|
4
4
|
isLast?: boolean | undefined;
|
|
@@ -3,7 +3,7 @@ export declare const TreeItems: import("styled-components").StyledComponent<"ul"
|
|
|
3
3
|
isExpanded?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const TreeItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
-
export declare const TreeRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
6
|
+
export declare const TreeRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps & {
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
hasChildren?: boolean | undefined;
|
|
9
9
|
}, never>;
|
|
@@ -11,7 +11,7 @@ export declare const ExpandButton: import("styled-components").StyledComponent<"
|
|
|
11
11
|
isExpanded?: boolean | undefined;
|
|
12
12
|
hasChildren?: boolean | undefined;
|
|
13
13
|
}, never>;
|
|
14
|
-
export declare const TreeContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
14
|
+
export declare const TreeContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
15
15
|
export declare const ItemIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../atoms/Icon").IIconProps, never>;
|
|
16
16
|
export declare const TreeText: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
17
|
export declare const TreeDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -4,7 +4,7 @@ export declare const UploaderItemArea: import("styled-components").StyledCompone
|
|
|
4
4
|
export declare const UploaderItemsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5
5
|
hasBorder?: boolean | undefined;
|
|
6
6
|
}, never>;
|
|
7
|
-
export declare const ItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
7
|
+
export declare const ItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
8
8
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
9
|
width?: string | undefined;
|
|
10
10
|
minHeight?: string | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const Container: import("styled-components").StyledComponent<"div
|
|
|
12
12
|
error?: boolean | undefined;
|
|
13
13
|
}, never>;
|
|
14
14
|
export declare const DragAreaWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
-
export declare const FileInfoTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
15
|
+
export declare const FileInfoTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps & {
|
|
16
16
|
isFinished: boolean;
|
|
17
17
|
error: boolean;
|
|
18
18
|
}, never>;
|
|
@@ -24,7 +24,7 @@ export declare const FileInfoComment: import("styled-components").StyledComponen
|
|
|
24
24
|
export declare const AdditionalInfo: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
25
|
export declare const DropHereTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
26
26
|
export declare const SelectFromComputerTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
27
|
-
export declare const UploaderTitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
27
|
+
export declare const UploaderTitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
28
28
|
export declare const UploaderTitleImage: import("styled-components").StyledComponent<import("react").FC<import("../../atoms/Image").ImageProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
29
|
-
export declare const FileSymbolContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
30
|
-
export declare const FileExt: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").
|
|
29
|
+
export declare const FileSymbolContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
30
|
+
export declare const FileExt: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
package/dist/theme/ITheme.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export interface IPalette {
|
|
|
19
19
|
elementDark: string;
|
|
20
20
|
elementDarkNoAlpha: string;
|
|
21
21
|
elementDeep: string;
|
|
22
|
+
elementLight: string;
|
|
23
|
+
elementOverlay: string;
|
|
24
|
+
elementTransparent: string;
|
|
22
25
|
textPrimary: string;
|
|
23
26
|
textSecondary: string;
|
|
24
27
|
textDisabled: string;
|
|
@@ -27,6 +30,13 @@ export interface IPalette {
|
|
|
27
30
|
iconAccent: string;
|
|
28
31
|
iconDisabled: string;
|
|
29
32
|
iconContrast: string;
|
|
33
|
+
menuBackground: string;
|
|
34
|
+
menuDefaultItem: string;
|
|
35
|
+
menuActiveItem: string;
|
|
36
|
+
menuActiveBackground: string;
|
|
37
|
+
menuHoverItem: string;
|
|
38
|
+
menuHoverBackground: string;
|
|
39
|
+
panelBackground: string;
|
|
30
40
|
}
|
|
31
41
|
export interface IShadows {
|
|
32
42
|
pressed: string;
|
|
@@ -35,6 +45,16 @@ export interface IShadows {
|
|
|
35
45
|
raised: string;
|
|
36
46
|
top: string;
|
|
37
47
|
}
|
|
48
|
+
export interface IBorderRadius {
|
|
49
|
+
tiny: string;
|
|
50
|
+
smallest: string;
|
|
51
|
+
xSmall: string;
|
|
52
|
+
small: string;
|
|
53
|
+
medium: string;
|
|
54
|
+
large: string;
|
|
55
|
+
xLarge: string;
|
|
56
|
+
xxLarge: string;
|
|
57
|
+
}
|
|
38
58
|
export interface IFonts {
|
|
39
59
|
h1: string;
|
|
40
60
|
h2: string;
|
|
@@ -124,8 +144,10 @@ export interface IIconColors {
|
|
|
124
144
|
}
|
|
125
145
|
export interface IThemeConstants {
|
|
126
146
|
palette: IPalette;
|
|
147
|
+
paletteDark?: Partial<IPalette>;
|
|
127
148
|
shadows: IShadows;
|
|
128
149
|
fonts: IFonts;
|
|
150
|
+
borderRadius: IBorderRadius;
|
|
129
151
|
}
|
|
130
152
|
export interface IIconToggle {
|
|
131
153
|
color: string;
|
|
@@ -178,6 +200,8 @@ export interface IDropdown {
|
|
|
178
200
|
}
|
|
179
201
|
export interface IElementsArea {
|
|
180
202
|
backgroundColor: string;
|
|
203
|
+
backgroundOverlayColor: string;
|
|
204
|
+
cardOverlayColor: string;
|
|
181
205
|
}
|
|
182
206
|
export interface ILink {
|
|
183
207
|
color: ILinkStates;
|
|
@@ -3,7 +3,16 @@ export declare const palette: IPalette;
|
|
|
3
3
|
export declare const shadows: IShadows;
|
|
4
4
|
export declare const collapseDuration = 500;
|
|
5
5
|
export declare const transition: ITransition;
|
|
6
|
-
export declare const borderRadius
|
|
6
|
+
export declare const borderRadius: {
|
|
7
|
+
tiny: string;
|
|
8
|
+
smallest: string;
|
|
9
|
+
xSmall: string;
|
|
10
|
+
small: string;
|
|
11
|
+
medium: string;
|
|
12
|
+
large: string;
|
|
13
|
+
xLarge: string;
|
|
14
|
+
xxLarge: string;
|
|
15
|
+
};
|
|
7
16
|
/**
|
|
8
17
|
* Google font sizes
|
|
9
18
|
* Thin 100
|
package/dist/theme/getTheme.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { IPartialThemeConstants, ITheme, OverrideTheme } from "./ITheme";
|
|
2
|
-
export declare const
|
|
1
|
+
import { IPartialThemeConstants, ITheme, IThemeConstants, OverrideTheme } from "./ITheme";
|
|
2
|
+
export declare const createTheme: ({ palette, fonts, shadows, borderRadius }: IThemeConstants) => ITheme;
|
|
3
|
+
export declare const getTheme: ({ palette, fonts, shadows, borderRadius }?: IPartialThemeConstants, overrideTheme?: OverrideTheme | import("./helpers").DeepPartial<ITheme> | undefined) => ITheme;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { theme as defaultTheme } from "./defaultTheme";
|
|
2
2
|
export { theme as darkTheme } from "./darkTheme";
|
|
3
|
-
export { getTheme } from "./getTheme";
|
|
3
|
+
export { getTheme, createTheme } from "./getTheme";
|
|
4
|
+
export type { IPartialThemeConstants, ITheme, IThemeConstants } from "./ITheme";
|
|
4
5
|
export * from "./defaultThemeConstants";
|
|
5
6
|
export * from "./helpers";
|