@zealicsolutions/web-ui 0.2.40 → 0.2.42
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/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/molecules/Columns/Column.d.ts +3 -0
- package/dist/cjs/src/molecules/Columns/Columns.d.ts +10 -9
- package/dist/cjs/src/molecules/Columns/Columns.stories.d.ts +1 -1
- package/dist/cjs/src/molecules/Columns/styles.d.ts +18 -0
- package/dist/cjs/src/molecules/Columns/types.d.ts +5 -0
- package/dist/cjs/src/molecules/Columns/useAnnotationCircle.d.ts +5 -0
- package/dist/cjs/src/theme/types.d.ts +2 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/molecules/Columns/Column.d.ts +3 -0
- package/dist/esm/src/molecules/Columns/Columns.d.ts +10 -9
- package/dist/esm/src/molecules/Columns/Columns.stories.d.ts +1 -1
- package/dist/esm/src/molecules/Columns/styles.d.ts +18 -0
- package/dist/esm/src/molecules/Columns/types.d.ts +5 -0
- package/dist/esm/src/molecules/Columns/useAnnotationCircle.d.ts +5 -0
- package/dist/esm/src/theme/types.d.ts +2 -2
- package/dist/index.d.ts +14 -11
- package/package.json +1 -1
@@ -1,15 +1,16 @@
|
|
1
|
-
|
2
|
-
import {
|
3
|
-
import { LinkButtonProps } from '
|
1
|
+
import { CSSProperties } from 'react';
|
2
|
+
import { ColumnsTemplateKeys } from './types';
|
3
|
+
import { LinkButtonProps } from 'atoms';
|
4
|
+
export declare type ColumnsProps = {
|
5
|
+
type: 'columns';
|
6
|
+
columns: ColumnItem[];
|
7
|
+
containerStyles?: CSSProperties;
|
8
|
+
template?: ColumnsTemplateKeys;
|
9
|
+
};
|
4
10
|
export declare type ColumnItem = {
|
5
11
|
title?: string;
|
6
12
|
mainContent?: string;
|
7
13
|
button?: LinkButtonProps;
|
8
14
|
icon: string;
|
9
15
|
};
|
10
|
-
export declare
|
11
|
-
type: 'columns';
|
12
|
-
columns: ColumnItem[];
|
13
|
-
containerStyles?: CSSProperties;
|
14
|
-
};
|
15
|
-
export declare const Columns: ({ columns, containerStyles }: ColumnsProps) => JSX.Element;
|
16
|
+
export declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
@@ -3,7 +3,7 @@ import type { ComponentStory } from '@storybook/react';
|
|
3
3
|
import { Columns as ColumnsComponent } from './Columns';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ columns, containerStyles }: import("./Columns").ColumnsProps) => JSX.Element;
|
6
|
+
component: ({ columns, containerStyles, template }: import("./Columns").ColumnsProps) => JSX.Element;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Columns: ComponentStory<typeof ColumnsComponent>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const ColumnWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const InfoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const Link: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
5
|
+
activeOpacity?: number | undefined;
|
6
|
+
withoutOpacityEffect?: boolean | undefined;
|
7
|
+
disabled?: boolean | undefined;
|
8
|
+
} & {
|
9
|
+
children?: import("react").ReactNode;
|
10
|
+
} & {
|
11
|
+
activeOpacity?: number | undefined;
|
12
|
+
withoutOpacityEffect?: boolean | undefined;
|
13
|
+
disabled?: boolean | undefined;
|
14
|
+
onClick?: import("../../typescript").Callback | undefined;
|
15
|
+
buttonLink?: string | undefined;
|
16
|
+
elementId?: string | undefined;
|
17
|
+
}, never>;
|
18
|
+
export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning' | 'green' | 'greenTint';
|
2
|
-
export declare type SizesTypes = '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
3
|
-
export declare type FontSizesTypes = SizesTypes | 'H2' | 'H1';
|
2
|
+
export declare type SizesTypes = '3XL' | '2XL' | 'XL-2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
3
|
+
export declare type FontSizesTypes = Exclude<SizesTypes, 'XL-2XL'> | 'H2' | 'H1';
|
4
4
|
export declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
5
5
|
export declare type ThemeColorsType = Record<ThemeColors, string>;
|
6
6
|
export declare type ThemeTextType = Record<FontSizesTypes, {
|
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Callback as Callback$1, StylesType, Nullable } from 'typescript';
|
3
3
|
import * as React$1 from 'react';
|
4
|
-
import React__default, { PropsWithChildren, ReactNode, ComponentType, Dispatch, SetStateAction } from 'react';
|
4
|
+
import React__default, { PropsWithChildren, ReactNode, CSSProperties as CSSProperties$1, ComponentType, Dispatch, SetStateAction } from 'react';
|
5
5
|
import * as styled_components from 'styled-components';
|
6
6
|
import { CSSProperties, DefaultTheme } from 'styled-components';
|
7
7
|
import { IconNames as IconNames$1 } from 'atoms/Icon/Icon';
|
@@ -15,7 +15,7 @@ import { FeedContentTemplateTypes as FeedContentTemplateTypes$1, FeedContentProp
|
|
15
15
|
import { TooltipProps as TooltipProps$1 } from 'rc-tooltip/lib/Tooltip';
|
16
16
|
import { WithGoogleMapProps } from 'react-google-maps/lib/withGoogleMap';
|
17
17
|
import { WithScriptjsProps } from 'react-google-maps/lib/withScriptjs';
|
18
|
-
import { IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
18
|
+
import { IconNames as IconNames$2, TouchableOpacityProps as TouchableOpacityProps$1, InputProps as InputProps$1, ImageProps as ImageProps$1, ButtonProps as ButtonProps$1, LinkButtonProps as LinkButtonProps$1, RadioButtonsProps as RadioButtonsProps$1, HorizontalButtonsProps as HorizontalButtonsProps$1, IconProps as IconProps$1 } from 'atoms';
|
19
19
|
import { Control, ControllerProps } from 'react-hook-form/dist/types';
|
20
20
|
import { SelectOption as SelectOption$1 } from 'atoms/Select/types';
|
21
21
|
import { ControllerProps as ControllerProps$1, DeepPartial, FieldValues, FormState, Control as Control$1 } from 'react-hook-form';
|
@@ -453,8 +453,8 @@ declare const ZealThemeProvider: (props: PropsWithChildren<{
|
|
453
453
|
}>) => JSX.Element;
|
454
454
|
|
455
455
|
declare type ThemeColors = 'primary' | 'secondary' | 'background' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'indigo' | 'blue' | 'white' | 'black' | 'indigoTint' | 'indigoTint2' | 'success' | 'error' | 'warning' | 'green' | 'greenTint';
|
456
|
-
declare type SizesTypes = '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
457
|
-
declare type FontSizesTypes = SizesTypes | 'H2' | 'H1';
|
456
|
+
declare type SizesTypes = '3XL' | '2XL' | 'XL-2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
|
457
|
+
declare type FontSizesTypes = Exclude<SizesTypes, 'XL-2XL'> | 'H2' | 'H1';
|
458
458
|
declare type BreakpointSizesTypes = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
459
459
|
declare type ThemeColorsType = Record<ThemeColors, string>;
|
460
460
|
declare type ThemeTextType = Record<FontSizesTypes, {
|
@@ -517,18 +517,21 @@ declare type DrawerProps = DrawerProps$1 & {
|
|
517
517
|
|
518
518
|
declare const Drawer: ({ children, closeIconColor, ...props }: PropsWithChildren<DrawerProps>) => JSX.Element;
|
519
519
|
|
520
|
+
declare type ColumnsTemplateKeys = 'horizontal' | 'card';
|
521
|
+
|
522
|
+
declare type ColumnsProps = {
|
523
|
+
type: 'columns';
|
524
|
+
columns: ColumnItem[];
|
525
|
+
containerStyles?: CSSProperties$1;
|
526
|
+
template?: ColumnsTemplateKeys;
|
527
|
+
};
|
520
528
|
declare type ColumnItem = {
|
521
529
|
title?: string;
|
522
530
|
mainContent?: string;
|
523
|
-
button?: LinkButtonProps;
|
531
|
+
button?: LinkButtonProps$1;
|
524
532
|
icon: string;
|
525
533
|
};
|
526
|
-
declare
|
527
|
-
type: 'columns';
|
528
|
-
columns: ColumnItem[];
|
529
|
-
containerStyles?: CSSProperties;
|
530
|
-
};
|
531
|
-
declare const Columns: ({ columns, containerStyles }: ColumnsProps) => JSX.Element;
|
534
|
+
declare const Columns: ({ columns, containerStyles, template }: ColumnsProps) => JSX.Element;
|
532
535
|
|
533
536
|
declare type MenuItem<T> = {
|
534
537
|
id: T;
|