@zealicsolutions/web-ui 0.2.62 → 0.2.64

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.
Files changed (30) hide show
  1. package/dist/cjs/index.js +21 -21
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Buttons/Button.d.ts +6 -2
  4. package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +3 -3
  5. package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -13
  6. package/dist/cjs/src/icons/Check.d.ts +1 -1
  7. package/dist/cjs/src/icons/Info.d.ts +1 -1
  8. package/dist/cjs/src/molecules/Columns/styles.d.ts +1 -5
  9. package/dist/cjs/src/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +1 -1
  10. package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +1 -1
  11. package/dist/cjs/src/molecules/index.d.ts +1 -0
  12. package/dist/cjs/src/organisms/Body/Body.d.ts +1 -1
  13. package/dist/cjs/src/organisms/Body/Body.stories.d.ts +1 -1
  14. package/dist/cjs/src/theme/types.d.ts +1 -1
  15. package/dist/esm/index.js +18 -18
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/esm/src/atoms/Buttons/Button.d.ts +6 -2
  18. package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +3 -3
  19. package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -13
  20. package/dist/esm/src/icons/Check.d.ts +1 -1
  21. package/dist/esm/src/icons/Info.d.ts +1 -1
  22. package/dist/esm/src/molecules/Columns/styles.d.ts +1 -5
  23. package/dist/esm/src/molecules/SelectableInfoCard/SelectableCardGroup.d.ts +1 -1
  24. package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +1 -1
  25. package/dist/esm/src/molecules/index.d.ts +1 -0
  26. package/dist/esm/src/organisms/Body/Body.d.ts +1 -1
  27. package/dist/esm/src/organisms/Body/Body.stories.d.ts +1 -1
  28. package/dist/esm/src/theme/types.d.ts +1 -1
  29. package/dist/index.d.ts +68 -62
  30. package/package.json +1 -1
@@ -1,12 +1,15 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { CSSProperties } from 'styled-components';
3
3
  import type { Callback } from 'typescript';
4
+ export declare type ButtonVariant = 'primary' | 'secondary' | 'text';
4
5
  export declare type BaseButtonProps = PropsWithChildren<{
5
6
  onClick?: Callback;
6
- variant?: 'primary' | 'secondary';
7
+ variant?: ButtonVariant;
7
8
  disabled?: boolean;
8
9
  fullWidth?: boolean;
9
10
  size?: 'medium' | 'small';
11
+ activeOpacity?: number;
12
+ withoutOpacityEffect?: boolean;
10
13
  }>;
11
14
  export declare type ButtonProps = BaseButtonProps & {
12
15
  fullWidth?: boolean;
@@ -16,5 +19,6 @@ export declare type ButtonProps = BaseButtonProps & {
16
19
  loading?: boolean;
17
20
  isRichText?: boolean;
18
21
  containerStyle?: CSSProperties;
22
+ buttonStyle?: CSSProperties;
19
23
  };
20
- export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, size, }: ButtonProps) => JSX.Element | null;
24
+ export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
@@ -1,12 +1,12 @@
1
1
  import type { ComponentStory } from '@storybook/react';
2
- import { FC } from 'react';
3
2
  import { TextButtonProps } from 'atoms/Buttons/TextButton';
3
+ import { FC } from 'react';
4
4
  import { Button as ButtonComponent } from './Button';
5
- import { TouchableOpacityProps } from './TouchableOpacity';
6
5
  import { IconButton as IconButtonComponent } from './IconButton';
6
+ import { TouchableOpacityProps } from './TouchableOpacity';
7
7
  declare const _default: {
8
8
  title: string;
9
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, size, }: import("./Button").ButtonProps) => JSX.Element | null;
9
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: import("./Button").ButtonProps) => JSX.Element | null;
10
10
  };
11
11
  export default _default;
12
12
  export declare const Button: ComponentStory<typeof ButtonComponent>;
@@ -1,24 +1,16 @@
1
- import { PropsWithChildren } from 'react';
2
- import type { Callback } from 'typescript';
3
- export declare type TextButtonProps = PropsWithChildren<{
4
- activeOpacity?: number;
5
- withoutOpacityEffect?: boolean;
6
- disabled?: boolean;
7
- onClick?: Callback;
1
+ /// <reference types="react" />
2
+ import { BaseButtonProps } from './Button';
3
+ export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'activeOpacity' | 'withoutOpacityEffect' | 'onClick' | 'children'> & {
8
4
  buttonLink?: string;
9
5
  elementId?: string;
10
- }>;
6
+ };
11
7
  export declare const TextButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
12
8
  activeOpacity?: number | undefined;
13
9
  withoutOpacityEffect?: boolean | undefined;
14
10
  disabled?: boolean | undefined;
15
11
  } & {
16
12
  children?: import("react").ReactNode;
17
- } & {
18
- activeOpacity?: number | undefined;
19
- withoutOpacityEffect?: boolean | undefined;
20
- disabled?: boolean | undefined;
21
- onClick?: Callback | undefined;
13
+ } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
22
14
  buttonLink?: string | undefined;
23
15
  elementId?: string | undefined;
24
16
  }, never>;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import type { IconProps } from '../atoms/Icon/Icon';
2
+ import type { IconProps } from 'atoms';
3
3
  export declare const Check: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import type { IconProps } from '../atoms/Icon/Icon';
2
+ import type { IconProps } from 'atoms';
3
3
  export declare const Info: ({ size, color }: Omit<IconProps, 'name'>) => JSX.Element;
@@ -9,11 +9,7 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
9
9
  disabled?: boolean | undefined;
10
10
  } & {
11
11
  children?: import("react").ReactNode;
12
- } & {
13
- activeOpacity?: number | undefined;
14
- withoutOpacityEffect?: boolean | undefined;
15
- disabled?: boolean | undefined;
16
- onClick?: import("../../typescript").Callback | undefined;
12
+ } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
17
13
  buttonLink?: string | undefined;
18
14
  elementId?: string | undefined;
19
15
  }, never>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SizesTypes } from '../../theme';
2
+ import { SizesTypes } from 'theme';
3
3
  import { BaseSelectableProps } from './BaseSelectable';
4
4
  export declare type SelectableCardGroupProps<T> = {
5
5
  cards: BaseSelectableProps<T>[];
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CSSProperties } from 'styled-components';
3
3
  import { SizesTypes } from 'theme/types';
4
- import { TabProps, TabTheme } from 'molecules/Tab/Tab';
4
+ import { TabProps, TabTheme } from '../Tab/Tab';
5
5
  export declare type TabGroupProps<T = string, K = string> = {
6
6
  tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
7
7
  activeTabKey: T;
@@ -10,6 +10,7 @@ export * from './Drawer/Drawer';
10
10
  export * from './Columns/Columns';
11
11
  export * from './MenuItems/MenuItems';
12
12
  export * from './AvatarDropdown/AvatarDropdown';
13
+ export * from './Tab/Tab';
13
14
  export * from './TabGroup/TabGroup';
14
15
  export * from './FieldSection/FieldSection';
15
16
  export * from './MenuNavigation/MenuNavigation';
@@ -12,4 +12,4 @@ export declare type BodyProps = {
12
12
  horizontalPaddings?: number;
13
13
  containerStyles?: CSSProperties;
14
14
  };
15
- export declare const Body: ({ elements, horizontalPaddings, containerStyles }: BodyProps) => JSX.Element;
15
+ export declare const Body: ({ elements, horizontalPaddings, containerStyles, }: BodyProps) => JSX.Element;
@@ -3,7 +3,7 @@ import { ComponentStory } from '@storybook/react';
3
3
  import { Body as BodyComponent } from './Body';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: ({ elements, horizontalPaddings, containerStyles }: import("./Body").BodyProps) => JSX.Element;
6
+ component: ({ elements, horizontalPaddings, containerStyles, }: import("./Body").BodyProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const Body: ComponentStory<typeof BodyComponent>;
@@ -1,5 +1,5 @@
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-2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
2
+ export declare type SizesTypes = '5XL' | '4XL' | '3XL' | '2XL' | 'XL' | 'L' | 'M' | 'S' | 'XS';
3
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>;